blob: f02995afc4fe3ef4d87c40d4a3fb473e553fb8ec [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
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy86e86092013-08-04 17:43:57 +0000695WebPEncodeDelegate
696WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000697UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000699SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000701RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000702RMDelegate
703RLEEncodeDelegate
704PSDelegate
705POVDelegate
706PGPDecodeDelegate
707PCLDelegate
708MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000709MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000710MPEGEncodeDelegate
711MPEGDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000712MogrifyDelegate
cristy3ed852e2009-09-05 21:47:34 +0000713MANDelegate
714LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000715LPRDelegate
716LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000717JXREncodeDelegate
718JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000719ILBMEncodeDelegate
720ILBMDecodeDelegate
721HTMLDecodeDelegate
722HPGLDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000723GVCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000724GnuplotDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000725EditorDelegate
726EchoDelegate
cristy66f238e2014-05-16 12:21:48 +0000727DisplayDelegate
728ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000729DVIDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000730DOCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000731DNGDecodeDelegate
732CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000733BrowseDelegate
734BZIPDelegate
735BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000736AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000737SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000738SHAREARCH_RELATIVE_PATH
739SHAREARCH_DIRNAME
740SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000741SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000742CONFIGURE_PATH
cristydd17feb2014-03-05 02:06:32 +0000743INSTALL_DOC_FALSE
744INSTALL_DOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000745DOCUMENTATION_PATH
746FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000747FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000748CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000749CODER_DIRNAME
750MODULES_PATH
751MODULES_RELATIVE_PATH
752MODULES_DIRNAME
753MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000754LIB_BIN_DIR_PATH
755LIB_BIN_DIR_RELATIVE_PATH
756LIB_BIN_DIR
757LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000758LIBRARY_PATH
759EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000760INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000761INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000762PERLMAINCC
763XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000764XML_DELEGATE_FALSE
765XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000766xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000767WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000768WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000769WMF_DELEGATE_FALSE
770WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000771WEBP_LIBS
772WEBP_DELEGATE_FALSE
773WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000774TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000775TIFF_DELEGATE_FALSE
776TIFF_DELEGATE_TRUE
777CAIRO_DELEGATE_FALSE
778CAIRO_DELEGATE_TRUE
779RSVG_DELEGATE_FALSE
780RSVG_DELEGATE_TRUE
781CAIRO_SVG_LIBS
782CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000783RSVG_LIBS
784RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000785PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000786PNG_DELEGATE_FALSE
787PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000788PANGOCAIRO_DELEGATE_FALSE
789PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000790PANGO_DELEGATE_FALSE
791PANGO_DELEGATE_TRUE
792PANGO_LIBS
793PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000794OPENEXR_DELEGATE_FALSE
795OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796OPENEXR_LIBS
797OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000798LZMA_DELEGATE_FALSE
799LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000800LZMA_LIBS
801LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000802LQR_DELEGATE_FALSE
803LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804LQR_LIBS
805LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000806LIBOPENJP2_DELEGATE_FALSE
807LIBOPENJP2_DELEGATE_TRUE
808LIBOPENJP2_LIBS
809LIBOPENJP2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000810LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811LCMS_DELEGATE_FALSE
812LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000813JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814JPEG_DELEGATE_FALSE
815JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817JBIG_DELEGATE_FALSE
818JBIG_DELEGATE_TRUE
819GVC_DELEGATE_FALSE
820GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000821GVC_LIBS
822GVC_CFLAGS
823GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824GS_DELEGATE_FALSE
825GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000826FREETYPE_DELEGATE_FALSE
827FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000828FREETYPE_LIBS
829FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000830FONTCONFIG_DELEGATE_FALSE
831FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000832FONTCONFIG_LIBS
833FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000834DJVU_LIBS
835DJVU_DELEGATE_FALSE
836DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000837FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838FPX_DELEGATE_FALSE
839FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841FFTW_DELEGATE_FALSE
842FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844DPS_DELEGATE_FALSE
845DPS_DELEGATE_TRUE
846AUTOTRACE_DELEGATE_FALSE
847AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000848AUTOTRACE_LIBS
849AUTOTRACE_CFLAGS
850LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000851WITH_LTDL_FALSE
852WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000853ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000854ZLIB_DELEGATE_FALSE
855ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856XEXT_LIBS
857X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000858X11_DELEGATE_FALSE
859X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000860X_EXTRA_LIBS
861X_LIBS
862X_PRE_LIBS
863X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000864XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000865BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000866BZLIB_DELEGATE_FALSE
867BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000868CCMALLOCDelegate
869UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000870HasUMEM_FALSE
871HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000872JEMALLOC_LIBS
873HasJEMALLOC_FALSE
874HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000875GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000876WITH_MAGICK_PLUS_PLUS_FALSE
877WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000878OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000879MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000880POW_LIB
881LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000882UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000883UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000884UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000885UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000886UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000887UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000888INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000889INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000890UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000891UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000892INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000893INT32_T
894UINT16_T
895INT16_T
896UINT8_T
897INT8_T
898LIBRARY_EXTRA_CPPFLAGS
899MODULE_EXTRA_CPPFLAGS
900LIBSTDCLDFLAGS
901PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000902MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000903MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000904QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000905LEGACY_SUPPORT_FALSE
906LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000907MAINT
908MAINTAINER_MODE_FALSE
909MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000910MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000911WITH_MODULES_FALSE
912WITH_MODULES_TRUE
913WITH_SHARED_LIBS_FALSE
914WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000915LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000916CXXCPP
917OTOOL64
918OTOOL
919LIPO
920NMEDIT
921DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000922MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000923RANLIB
cristyda16f162011-02-19 23:52:17 +0000924ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000925AR
926NM
927ac_ct_DUMPBIN
928DUMPBIN
929LIBTOOL
930OBJDUMP
931DLLTOOL
932AS
cristy3ed852e2009-09-05 21:47:34 +0000933LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000934CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000935CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000936OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000937THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000938PTHREAD_CFLAGS
939PTHREAD_LIBS
940PTHREAD_CC
941ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000942pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000943SHAREARCH_DIR
944INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000945WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000946USING_CL_FALSE
947USING_CL_TRUE
948CYGWIN_BUILD_FALSE
949CYGWIN_BUILD_TRUE
950WIN32_NATIVE_BUILD_FALSE
951WIN32_NATIVE_BUILD_TRUE
952WINGDI32_DELEGATE_FALSE
953WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000954GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000955HAVE_LD_VERSION_SCRIPT_FALSE
956HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000957PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000958PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000959LN_S
cristy3ed852e2009-09-05 21:47:34 +0000960LD
cristy73bd4a52010-10-05 11:24:23 +0000961FGREP
962SED
963am__fastdepCXX_FALSE
964am__fastdepCXX_TRUE
965CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000966ac_ct_CXX
967CXXFLAGS
968CXX
cristya0b81c32010-01-22 02:54:33 +0000969EGREP
970GREP
971CPP
cristy73bd4a52010-10-05 11:24:23 +0000972am__fastdepCC_FALSE
973am__fastdepCC_TRUE
974CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000975am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000976AMDEPBACKSLASH
977AMDEP_FALSE
978AMDEP_TRUE
979am__quote
980am__include
981DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000982OBJEXT
983EXEEXT
984ac_ct_CC
985CPPFLAGS
986LDFLAGS
987CFLAGS
988CC
989DIRSEP
990MAGICK_FILTER_MODULE_PATH
991MAGICK_CONFIGURE_BUILD_PATH
992MAGICK_CONFIGURE_SRC_PATH
993MAGICK_CODER_MODULE_PATH
994MAN_DIR
995INFO_DIR
996PERSISTINCLUDE_DIR
997INCLUDE_DIR
998LIB_DIR
999LOCALSTATE_DIR
1000SHAREDSTATE_DIR
1001SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001002DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001003DATA_DIR
1004LIBEXEC_DIR
1005SBIN_DIR
1006BIN_DIR
1007EXEC_PREFIX_DIR
1008PREFIX_DIR
1009CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001010MAGICKPP_LIB_VERSION_TEXT
1011MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001012MAGICK_LIB_VERSION_NUMBER
1013MAGICK_LIB_VERSION_TEXT
1014MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001015AM_BACKSLASH
1016AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001017AM_DEFAULT_V
1018AM_V
cristy73bd4a52010-10-05 11:24:23 +00001019am__untar
1020am__tar
1021AMTAR
1022am__leading_dot
1023SET_MAKE
1024AWK
1025mkdir_p
1026MKDIR_P
1027INSTALL_STRIP_PROGRAM
1028STRIP
1029install_sh
1030MAKEINFO
1031AUTOHEADER
1032AUTOMAKE
1033AUTOCONF
1034ACLOCAL
1035VERSION
1036PACKAGE
1037CYGPATH_W
1038am__isrc
1039INSTALL_DATA
1040INSTALL_SCRIPT
1041INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001042PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001043PACKAGE_RELEASE_DATE
1044PACKAGE_LIB_VERSION_NUMBER
1045PACKAGE_LIB_VERSION
1046PACKAGE_CHANGE_DATE
1047PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001048PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001049MAGICKPP_LIBRARY_VERSION_INFO
1050MAGICKPP_LIBRARY_CURRENT_MIN
1051MAGICKPP_LIBRARY_AGE
1052MAGICKPP_LIBRARY_REVISION
1053MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001054MAGICK_LIBRARY_VERSION_INFO
1055MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001056MAGICK_LIBRARY_AGE
1057MAGICK_LIBRARY_REVISION
1058MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001059MAGICK_SVN_REVISION
1060MAGICK_VERSION
1061MAGICK_PATCHLEVEL_VERSION
1062MAGICK_MICRO_VERSION
1063MAGICK_MINOR_VERSION
1064MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001065MAGICK_TARGET_OS
1066MAGICK_TARGET_VENDOR
1067MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001068target_os
1069target_vendor
1070target_cpu
1071target
1072host_os
1073host_vendor
1074host_cpu
1075host
1076build_os
1077build_vendor
1078build_cpu
1079build
1080CONFIGURE_ARGS
1081DISTCHECK_CONFIG_FLAGS
1082target_alias
1083host_alias
1084build_alias
1085LIBS
1086ECHO_T
1087ECHO_N
1088ECHO_C
1089DEFS
1090mandir
1091localedir
1092libdir
1093psdir
1094pdfdir
1095dvidir
1096htmldir
1097infodir
1098docdir
1099oldincludedir
1100includedir
1101localstatedir
1102sharedstatedir
1103sysconfdir
1104datadir
1105datarootdir
1106libexecdir
1107sbindir
1108bindir
1109program_transform_name
1110prefix
1111exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001112PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001113PACKAGE_BUGREPORT
1114PACKAGE_STRING
1115PACKAGE_VERSION
1116PACKAGE_TARNAME
1117PACKAGE_NAME
1118PATH_SEPARATOR
1119SHELL'
1120ac_subst_files=''
1121ac_user_opts='
1122enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001123enable_silent_rules
1124enable_dependency_tracking
1125with_gnu_ld
1126with_dmalloc
cristya0459972013-11-03 18:09:35 +00001127with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001128enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001129enable_bounds_checking
1130enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001131with_includearch_dir
1132with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001133with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001134with_threads
1135enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001136enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001137enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001138enable_shared
1139enable_static
1140with_pic
1141enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001142with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001143enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001144with_modules
1145enable_delegate_build
1146enable_deprecated
1147enable_installed
1148enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001149enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001150enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001151enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001152enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001153enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001154enable_ccmalloc
1155enable_efence
1156enable_prof
1157enable_gprof
1158enable_gcov
1159with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001160enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001161with_quantum_depth
1162with_cache
1163with_frozenpaths
1164with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001165with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001166with_perl
1167with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001168with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001169with_umem
1170with_libstdc
1171with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001172with_x
cristy3ed852e2009-09-05 21:47:34 +00001173with_zlib
1174with_autotrace
1175with_dps
cristy430a7312010-01-21 20:44:04 +00001176with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001177with_fftw
1178with_fpx
cristy853d9902014-08-21 18:50:43 +00001179with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001180with_fontconfig
1181with_freetype
1182with_gslib
1183with_fontpath
1184with_gs_font_dir
1185with_gvc
1186with_jbig
1187with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001188with_lcms
cristy71203402010-06-18 13:12:03 +00001189with_lcms2
cristy99db3872014-01-01 15:11:34 +00001190with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001191with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001192with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001193with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001194with_pango
cristy3ed852e2009-09-05 21:47:34 +00001195with_png
1196with_rsvg
1197with_tiff
cristyb1860752011-03-14 00:27:46 +00001198with_webp
cristy3ed852e2009-09-05 21:47:34 +00001199with_windows_font_dir
1200with_wmf
1201with_xml
cristydd17feb2014-03-05 02:06:32 +00001202enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001203'
1204 ac_precious_vars='build_alias
1205host_alias
1206target_alias
1207CC
1208CFLAGS
1209LDFLAGS
1210LIBS
1211CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001212CPP
cristy3ed852e2009-09-05 21:47:34 +00001213CXX
1214CXXFLAGS
1215CCC
cristy73bd4a52010-10-05 11:24:23 +00001216PKG_CONFIG
1217CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001218XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001219AUTOTRACE_CFLAGS
1220AUTOTRACE_LIBS
1221FONTCONFIG_CFLAGS
1222FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001223FREETYPE_CFLAGS
1224FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001225GVC_CFLAGS
1226GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001227LIBOPENJP2_CFLAGS
1228LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001229LQR_CFLAGS
1230LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001231LZMA_CFLAGS
1232LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001233OPENEXR_CFLAGS
1234OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001235PANGO_CFLAGS
1236PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001237RSVG_CFLAGS
1238RSVG_LIBS
1239CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001240CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001241
1242
1243# Initialize some variables set by options.
1244ac_init_help=
1245ac_init_version=false
1246ac_unrecognized_opts=
1247ac_unrecognized_sep=
1248# The variables have the same names as the options, with
1249# dashes changed to underlines.
1250cache_file=/dev/null
1251exec_prefix=NONE
1252no_create=
1253no_recursion=
1254prefix=NONE
1255program_prefix=NONE
1256program_suffix=NONE
1257program_transform_name=s,x,x,
1258silent=
1259site=
1260srcdir=
1261verbose=
1262x_includes=NONE
1263x_libraries=NONE
1264
1265# Installation directory options.
1266# These are left unexpanded so users can "make install exec_prefix=/foo"
1267# and all the variables that are supposed to be based on exec_prefix
1268# by default will actually change.
1269# Use braces instead of parens because sh, perl, etc. also accept them.
1270# (The list follows the same order as the GNU Coding Standards.)
1271bindir='${exec_prefix}/bin'
1272sbindir='${exec_prefix}/sbin'
1273libexecdir='${exec_prefix}/libexec'
1274datarootdir='${prefix}/share'
1275datadir='${datarootdir}'
1276sysconfdir='${prefix}/etc'
1277sharedstatedir='${prefix}/com'
1278localstatedir='${prefix}/var'
1279includedir='${prefix}/include'
1280oldincludedir='/usr/include'
1281docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1282infodir='${datarootdir}/info'
1283htmldir='${docdir}'
1284dvidir='${docdir}'
1285pdfdir='${docdir}'
1286psdir='${docdir}'
1287libdir='${exec_prefix}/lib'
1288localedir='${datarootdir}/locale'
1289mandir='${datarootdir}/man'
1290
1291ac_prev=
1292ac_dashdash=
1293for ac_option
1294do
1295 # If the previous option needs an argument, assign it.
1296 if test -n "$ac_prev"; then
1297 eval $ac_prev=\$ac_option
1298 ac_prev=
1299 continue
1300 fi
1301
1302 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001303 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1304 *=) ac_optarg= ;;
1305 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001306 esac
1307
1308 # Accept the important Cygnus configure options, so we can diagnose typos.
1309
1310 case $ac_dashdash$ac_option in
1311 --)
1312 ac_dashdash=yes ;;
1313
1314 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1315 ac_prev=bindir ;;
1316 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1317 bindir=$ac_optarg ;;
1318
1319 -build | --build | --buil | --bui | --bu)
1320 ac_prev=build_alias ;;
1321 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1322 build_alias=$ac_optarg ;;
1323
1324 -cache-file | --cache-file | --cache-fil | --cache-fi \
1325 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1326 ac_prev=cache_file ;;
1327 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1328 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1329 cache_file=$ac_optarg ;;
1330
1331 --config-cache | -C)
1332 cache_file=config.cache ;;
1333
1334 -datadir | --datadir | --datadi | --datad)
1335 ac_prev=datadir ;;
1336 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1337 datadir=$ac_optarg ;;
1338
1339 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1340 | --dataroo | --dataro | --datar)
1341 ac_prev=datarootdir ;;
1342 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1343 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1344 datarootdir=$ac_optarg ;;
1345
1346 -disable-* | --disable-*)
1347 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001350 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001351 ac_useropt_orig=$ac_useropt
1352 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353 case $ac_user_opts in
1354 *"
1355"enable_$ac_useropt"
1356"*) ;;
1357 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1358 ac_unrecognized_sep=', ';;
1359 esac
1360 eval enable_$ac_useropt=no ;;
1361
1362 -docdir | --docdir | --docdi | --doc | --do)
1363 ac_prev=docdir ;;
1364 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1365 docdir=$ac_optarg ;;
1366
1367 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1368 ac_prev=dvidir ;;
1369 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1370 dvidir=$ac_optarg ;;
1371
1372 -enable-* | --enable-*)
1373 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1374 # Reject names that are not valid shell variable names.
1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001376 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001377 ac_useropt_orig=$ac_useropt
1378 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1379 case $ac_user_opts in
1380 *"
1381"enable_$ac_useropt"
1382"*) ;;
1383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1384 ac_unrecognized_sep=', ';;
1385 esac
1386 eval enable_$ac_useropt=\$ac_optarg ;;
1387
1388 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1389 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1390 | --exec | --exe | --ex)
1391 ac_prev=exec_prefix ;;
1392 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1393 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1394 | --exec=* | --exe=* | --ex=*)
1395 exec_prefix=$ac_optarg ;;
1396
1397 -gas | --gas | --ga | --g)
1398 # Obsolete; use --with-gas.
1399 with_gas=yes ;;
1400
1401 -help | --help | --hel | --he | -h)
1402 ac_init_help=long ;;
1403 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1404 ac_init_help=recursive ;;
1405 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1406 ac_init_help=short ;;
1407
1408 -host | --host | --hos | --ho)
1409 ac_prev=host_alias ;;
1410 -host=* | --host=* | --hos=* | --ho=*)
1411 host_alias=$ac_optarg ;;
1412
1413 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1414 ac_prev=htmldir ;;
1415 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1416 | --ht=*)
1417 htmldir=$ac_optarg ;;
1418
1419 -includedir | --includedir | --includedi | --included | --include \
1420 | --includ | --inclu | --incl | --inc)
1421 ac_prev=includedir ;;
1422 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1423 | --includ=* | --inclu=* | --incl=* | --inc=*)
1424 includedir=$ac_optarg ;;
1425
1426 -infodir | --infodir | --infodi | --infod | --info | --inf)
1427 ac_prev=infodir ;;
1428 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1429 infodir=$ac_optarg ;;
1430
1431 -libdir | --libdir | --libdi | --libd)
1432 ac_prev=libdir ;;
1433 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1434 libdir=$ac_optarg ;;
1435
1436 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1437 | --libexe | --libex | --libe)
1438 ac_prev=libexecdir ;;
1439 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1440 | --libexe=* | --libex=* | --libe=*)
1441 libexecdir=$ac_optarg ;;
1442
1443 -localedir | --localedir | --localedi | --localed | --locale)
1444 ac_prev=localedir ;;
1445 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1446 localedir=$ac_optarg ;;
1447
1448 -localstatedir | --localstatedir | --localstatedi | --localstated \
1449 | --localstate | --localstat | --localsta | --localst | --locals)
1450 ac_prev=localstatedir ;;
1451 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1452 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1453 localstatedir=$ac_optarg ;;
1454
1455 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1456 ac_prev=mandir ;;
1457 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1458 mandir=$ac_optarg ;;
1459
1460 -nfp | --nfp | --nf)
1461 # Obsolete; use --without-fp.
1462 with_fp=no ;;
1463
1464 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1465 | --no-cr | --no-c | -n)
1466 no_create=yes ;;
1467
1468 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1469 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1470 no_recursion=yes ;;
1471
1472 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1473 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1474 | --oldin | --oldi | --old | --ol | --o)
1475 ac_prev=oldincludedir ;;
1476 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1477 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1478 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1479 oldincludedir=$ac_optarg ;;
1480
1481 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1482 ac_prev=prefix ;;
1483 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1484 prefix=$ac_optarg ;;
1485
1486 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1487 | --program-pre | --program-pr | --program-p)
1488 ac_prev=program_prefix ;;
1489 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1490 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1491 program_prefix=$ac_optarg ;;
1492
1493 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1494 | --program-suf | --program-su | --program-s)
1495 ac_prev=program_suffix ;;
1496 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1497 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1498 program_suffix=$ac_optarg ;;
1499
1500 -program-transform-name | --program-transform-name \
1501 | --program-transform-nam | --program-transform-na \
1502 | --program-transform-n | --program-transform- \
1503 | --program-transform | --program-transfor \
1504 | --program-transfo | --program-transf \
1505 | --program-trans | --program-tran \
1506 | --progr-tra | --program-tr | --program-t)
1507 ac_prev=program_transform_name ;;
1508 -program-transform-name=* | --program-transform-name=* \
1509 | --program-transform-nam=* | --program-transform-na=* \
1510 | --program-transform-n=* | --program-transform-=* \
1511 | --program-transform=* | --program-transfor=* \
1512 | --program-transfo=* | --program-transf=* \
1513 | --program-trans=* | --program-tran=* \
1514 | --progr-tra=* | --program-tr=* | --program-t=*)
1515 program_transform_name=$ac_optarg ;;
1516
1517 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1518 ac_prev=pdfdir ;;
1519 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1520 pdfdir=$ac_optarg ;;
1521
1522 -psdir | --psdir | --psdi | --psd | --ps)
1523 ac_prev=psdir ;;
1524 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1525 psdir=$ac_optarg ;;
1526
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1529 silent=yes ;;
1530
1531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1532 ac_prev=sbindir ;;
1533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1534 | --sbi=* | --sb=*)
1535 sbindir=$ac_optarg ;;
1536
1537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1539 | --sharedst | --shareds | --shared | --share | --shar \
1540 | --sha | --sh)
1541 ac_prev=sharedstatedir ;;
1542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1545 | --sha=* | --sh=*)
1546 sharedstatedir=$ac_optarg ;;
1547
1548 -site | --site | --sit)
1549 ac_prev=site ;;
1550 -site=* | --site=* | --sit=*)
1551 site=$ac_optarg ;;
1552
1553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1554 ac_prev=srcdir ;;
1555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1556 srcdir=$ac_optarg ;;
1557
1558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1559 | --syscon | --sysco | --sysc | --sys | --sy)
1560 ac_prev=sysconfdir ;;
1561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1563 sysconfdir=$ac_optarg ;;
1564
1565 -target | --target | --targe | --targ | --tar | --ta | --t)
1566 ac_prev=target_alias ;;
1567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1568 target_alias=$ac_optarg ;;
1569
1570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1571 verbose=yes ;;
1572
1573 -version | --version | --versio | --versi | --vers | -V)
1574 ac_init_version=: ;;
1575
1576 -with-* | --with-*)
1577 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1578 # Reject names that are not valid shell variable names.
1579 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001580 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001581 ac_useropt_orig=$ac_useropt
1582 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1583 case $ac_user_opts in
1584 *"
1585"with_$ac_useropt"
1586"*) ;;
1587 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1588 ac_unrecognized_sep=', ';;
1589 esac
1590 eval with_$ac_useropt=\$ac_optarg ;;
1591
1592 -without-* | --without-*)
1593 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1594 # Reject names that are not valid shell variable names.
1595 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001596 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001597 ac_useropt_orig=$ac_useropt
1598 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1599 case $ac_user_opts in
1600 *"
1601"with_$ac_useropt"
1602"*) ;;
1603 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1604 ac_unrecognized_sep=', ';;
1605 esac
1606 eval with_$ac_useropt=no ;;
1607
1608 --x)
1609 # Obsolete; use --with-x.
1610 with_x=yes ;;
1611
1612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1613 | --x-incl | --x-inc | --x-in | --x-i)
1614 ac_prev=x_includes ;;
1615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1617 x_includes=$ac_optarg ;;
1618
1619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1621 ac_prev=x_libraries ;;
1622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1624 x_libraries=$ac_optarg ;;
1625
cristy98dddb52010-11-04 00:30:15 +00001626 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1627Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001628 ;;
1629
1630 *=*)
1631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1632 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001633 case $ac_envvar in #(
1634 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001635 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001636 esac
cristy3ed852e2009-09-05 21:47:34 +00001637 eval $ac_envvar=\$ac_optarg
1638 export $ac_envvar ;;
1639
1640 *)
1641 # FIXME: should be removed in autoconf 3.0.
1642 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1644 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001645 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001646 ;;
1647
1648 esac
1649done
1650
1651if test -n "$ac_prev"; then
1652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001653 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001654fi
1655
1656if test -n "$ac_unrecognized_opts"; then
1657 case $enable_option_checking in
1658 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001659 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001660 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1661 esac
1662fi
1663
1664# Check all directory arguments for consistency.
1665for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1666 datadir sysconfdir sharedstatedir localstatedir includedir \
1667 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1668 libdir localedir mandir
1669do
1670 eval ac_val=\$$ac_var
1671 # Remove trailing slashes.
1672 case $ac_val in
1673 */ )
1674 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1675 eval $ac_var=\$ac_val;;
1676 esac
1677 # Be sure to have absolute directory names.
1678 case $ac_val in
1679 [\\/$]* | ?:[\\/]* ) continue;;
1680 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1681 esac
cristy98dddb52010-11-04 00:30:15 +00001682 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001683done
1684
1685# There might be people who depend on the old broken behavior: `$host'
1686# used to hold the argument of --host etc.
1687# FIXME: To remove some day.
1688build=$build_alias
1689host=$host_alias
1690target=$target_alias
1691
1692# FIXME: To remove some day.
1693if test "x$host_alias" != x; then
1694 if test "x$build_alias" = x; then
1695 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001696 elif test "x$build_alias" != "x$host_alias"; then
1697 cross_compiling=yes
1698 fi
1699fi
1700
1701ac_tool_prefix=
1702test -n "$host_alias" && ac_tool_prefix=$host_alias-
1703
1704test "$silent" = yes && exec 6>/dev/null
1705
1706
1707ac_pwd=`pwd` && test -n "$ac_pwd" &&
1708ac_ls_di=`ls -di .` &&
1709ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001710 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001711test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001712 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001713
1714
1715# Find the source files, if location was not specified.
1716if test -z "$srcdir"; then
1717 ac_srcdir_defaulted=yes
1718 # Try the directory containing this script, then the parent directory.
1719 ac_confdir=`$as_dirname -- "$as_myself" ||
1720$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1721 X"$as_myself" : 'X\(//\)[^/]' \| \
1722 X"$as_myself" : 'X\(//\)$' \| \
1723 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1724$as_echo X"$as_myself" |
1725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1726 s//\1/
1727 q
1728 }
1729 /^X\(\/\/\)[^/].*/{
1730 s//\1/
1731 q
1732 }
1733 /^X\(\/\/\)$/{
1734 s//\1/
1735 q
1736 }
1737 /^X\(\/\).*/{
1738 s//\1/
1739 q
1740 }
1741 s/.*/./; q'`
1742 srcdir=$ac_confdir
1743 if test ! -r "$srcdir/$ac_unique_file"; then
1744 srcdir=..
1745 fi
1746else
1747 ac_srcdir_defaulted=no
1748fi
1749if test ! -r "$srcdir/$ac_unique_file"; then
1750 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001751 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001752fi
1753ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1754ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001755 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001756 pwd)`
1757# When building in place, set srcdir=.
1758if test "$ac_abs_confdir" = "$ac_pwd"; then
1759 srcdir=.
1760fi
1761# Remove unnecessary trailing slashes from srcdir.
1762# Double slashes in file names in object file debugging info
1763# mess up M-x gdb in Emacs.
1764case $srcdir in
1765*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1766esac
1767for ac_var in $ac_precious_vars; do
1768 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1769 eval ac_env_${ac_var}_value=\$${ac_var}
1770 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1771 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1772done
1773
1774#
1775# Report the --help message.
1776#
1777if test "$ac_init_help" = "long"; then
1778 # Omit some internal or obsolete options to make the list less imposing.
1779 # This message is too long to be a string in the A/UX 3.1 sh.
1780 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001781\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001782
1783Usage: $0 [OPTION]... [VAR=VALUE]...
1784
1785To assign environment variables (e.g., CC, CFLAGS...), specify them as
1786VAR=VALUE. See below for descriptions of some of the useful variables.
1787
1788Defaults for the options are specified in brackets.
1789
1790Configuration:
1791 -h, --help display this help and exit
1792 --help=short display options specific to this package
1793 --help=recursive display the short help of all the included packages
1794 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001795 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001796 --cache-file=FILE cache test results in FILE [disabled]
1797 -C, --config-cache alias for \`--cache-file=config.cache'
1798 -n, --no-create do not create output files
1799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1800
1801Installation directories:
1802 --prefix=PREFIX install architecture-independent files in PREFIX
1803 [$ac_default_prefix]
1804 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1805 [PREFIX]
1806
1807By default, \`make install' will install all the files in
1808\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1809an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1810for instance \`--prefix=\$HOME'.
1811
1812For better control, use the options below.
1813
1814Fine tuning of the installation directories:
1815 --bindir=DIR user executables [EPREFIX/bin]
1816 --sbindir=DIR system admin executables [EPREFIX/sbin]
1817 --libexecdir=DIR program executables [EPREFIX/libexec]
1818 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1819 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1820 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1821 --libdir=DIR object code libraries [EPREFIX/lib]
1822 --includedir=DIR C header files [PREFIX/include]
1823 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1824 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1825 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1826 --infodir=DIR info documentation [DATAROOTDIR/info]
1827 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1828 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001829 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001830 --htmldir=DIR html documentation [DOCDIR]
1831 --dvidir=DIR dvi documentation [DOCDIR]
1832 --pdfdir=DIR pdf documentation [DOCDIR]
1833 --psdir=DIR ps documentation [DOCDIR]
1834_ACEOF
1835
1836 cat <<\_ACEOF
1837
cristy73bd4a52010-10-05 11:24:23 +00001838Program names:
1839 --program-prefix=PREFIX prepend PREFIX to installed program names
1840 --program-suffix=SUFFIX append SUFFIX to installed program names
1841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1842
cristy3ed852e2009-09-05 21:47:34 +00001843X features:
1844 --x-includes=DIR X include files are in DIR
1845 --x-libraries=DIR X library files are in DIR
1846
1847System types:
1848 --build=BUILD configure for building on BUILD [guessed]
1849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1850 --target=TARGET configure for building compilers for TARGET [HOST]
1851_ACEOF
1852fi
1853
1854if test -n "$ac_init_help"; then
1855 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001856 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001857 esac
1858 cat <<\_ACEOF
1859
1860Optional Features:
1861 --disable-option-checking ignore unrecognized --enable/--with options
1862 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1863 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001864 --enable-silent-rules less verbose build output (undo: "make V=1")
1865 --disable-silent-rules verbose build output (undo: "make V=0")
1866 --enable-dependency-tracking
1867 do not reject slow dependency extractors
1868 --disable-dependency-tracking
1869 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001870 --enable-ld-version-script
1871 enable linker version script (default is enabled
1872 when possible)
cristya3824692012-03-30 17:22:07 +00001873 --enable-bounds-checking
1874 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001875 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001876 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001877 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001878 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001879 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001880 --enable-shared[=PKGS] build shared libraries [default=yes]
1881 --enable-static[=PKGS] build static libraries [default=yes]
1882 --enable-fast-install[=PKGS]
1883 optimize for fast installation [default=yes]
1884 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001885 --enable-delegate-build look for delegate libraries in build directory
1886 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001887 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001888 --disable-installed Formally install ImageMagick under PREFIX
1889 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001890 --enable-zero-configuration
1891 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001892 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001893 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001894 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001895 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001896 --enable-maintainer-mode
1897 enable make rules and dependencies not useful (and
1898 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001899 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001900 --enable-ccmalloc enable 'ccmalloc' memory debug support
1901 --enable-efence enable 'efence' memory debug support
1902 --enable-prof enable 'prof' profiling support
1903 --enable-gprof enable 'gprof' profiling support
1904 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001905 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001906 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001907 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001908
1909Optional Packages:
1910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001912 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001913 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001914 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1915 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001916 --includearch-dir=DIR ARCH specific include directory
1917 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001918 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001919 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001920 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001921 both]
cristyda16f162011-02-19 23:52:17 +00001922 --with-sysroot=DIR Search for dependent libraries within DIR
1923 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001924 --with-modules enable building dynamically loadable modules
1925 --with-method-prefix=PREFIX
1926 prefix MagickCore API methods
1927 --with-quantum-depth=DEPTH
1928 number of bits in a pixel quantum (default 16)
1929 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1930 memory)
1931 --with-frozenpaths freeze delegate paths
1932 --without-magick-plus-plus
1933 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001934 --with-package-release-name=NAME
1935 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001936 --with-perl enable build/install of PerlMagick
1937 --with-perl-options=OPTIONS
1938 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001939 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001940 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001941 --with-umem enable umem memory allocation library support
1942 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1943 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001944 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001945 --without-zlib disable ZLIB support
1946 --with-autotrace enable autotrace support
1947 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001948 --with-dejavu-font-dir=DIR
1949 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001950 --without-fftw disable FFTW support
1951 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001952 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001953 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001954 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001955 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001956 --with-fontpath=DIR prepend to default font search path
1957 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001958 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001959 --without-jbig disable JBIG support
1960 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001961 --without-lcms disable lcms (v1.1X) support
1962 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001963 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001964 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001965 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001966 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001967 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001968 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001969 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001970 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001971 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001972 --with-windows-font-dir=DIR
1973 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001974 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001975 --without-xml disable XML support
1976
1977Some influential environment variables:
1978 CC C compiler command
1979 CFLAGS C compiler flags
1980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1981 nonstandard directory <lib dir>
1982 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001983 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001984 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001985 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001986 CXX C++ compiler command
1987 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001988 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001989 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001990 XMKMF Path to xmkmf, Makefile generator for X Window System
1991 AUTOTRACE_CFLAGS
1992 C compiler flags for AUTOTRACE, overriding pkg-config
1993 AUTOTRACE_LIBS
1994 linker flags for AUTOTRACE, overriding pkg-config
1995 FONTCONFIG_CFLAGS
1996 C compiler flags for FONTCONFIG, overriding pkg-config
1997 FONTCONFIG_LIBS
1998 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001999 FREETYPE_CFLAGS
2000 C compiler flags for FREETYPE, overriding pkg-config
2001 FREETYPE_LIBS
2002 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002003 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2004 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002005 LIBOPENJP2_CFLAGS
2006 C compiler flags for LIBOPENJP2, overriding pkg-config
2007 LIBOPENJP2_LIBS
2008 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002009 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2010 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002011 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2012 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002013 OPENEXR_CFLAGS
2014 C compiler flags for OPENEXR, overriding pkg-config
2015 OPENEXR_LIBS
2016 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002017 PANGO_CFLAGS
2018 C compiler flags for PANGO, overriding pkg-config
2019 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002020 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2021 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2022 CAIRO_SVG_CFLAGS
2023 C compiler flags for CAIRO_SVG, overriding pkg-config
2024 CAIRO_SVG_LIBS
2025 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002026
2027Use these variables to override the choices made by `configure' or to help
2028it to find libraries and programs with nonstandard names/locations.
2029
2030Report bugs to <http://www.imagemagick.org>.
2031_ACEOF
2032ac_status=$?
2033fi
2034
2035if test "$ac_init_help" = "recursive"; then
2036 # If there are subdirs, report their specific --help.
2037 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2038 test -d "$ac_dir" ||
2039 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2040 continue
2041 ac_builddir=.
2042
2043case "$ac_dir" in
2044.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2045*)
2046 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2047 # A ".." for each directory in $ac_dir_suffix.
2048 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2049 case $ac_top_builddir_sub in
2050 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2051 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2052 esac ;;
2053esac
2054ac_abs_top_builddir=$ac_pwd
2055ac_abs_builddir=$ac_pwd$ac_dir_suffix
2056# for backward compatibility:
2057ac_top_builddir=$ac_top_build_prefix
2058
2059case $srcdir in
2060 .) # We are building in place.
2061 ac_srcdir=.
2062 ac_top_srcdir=$ac_top_builddir_sub
2063 ac_abs_top_srcdir=$ac_pwd ;;
2064 [\\/]* | ?:[\\/]* ) # Absolute name.
2065 ac_srcdir=$srcdir$ac_dir_suffix;
2066 ac_top_srcdir=$srcdir
2067 ac_abs_top_srcdir=$srcdir ;;
2068 *) # Relative name.
2069 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2070 ac_top_srcdir=$ac_top_build_prefix$srcdir
2071 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2072esac
2073ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2074
2075 cd "$ac_dir" || { ac_status=$?; continue; }
2076 # Check for guested configure.
2077 if test -f "$ac_srcdir/configure.gnu"; then
2078 echo &&
2079 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2080 elif test -f "$ac_srcdir/configure"; then
2081 echo &&
2082 $SHELL "$ac_srcdir/configure" --help=recursive
2083 else
2084 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2085 fi || ac_status=$?
2086 cd "$ac_pwd" || { ac_status=$?; break; }
2087 done
2088fi
2089
2090test -n "$ac_init_help" && exit $ac_status
2091if $ac_init_version; then
2092 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002093ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002094generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002095
cristy14fefe52012-05-21 00:59:18 +00002096Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002097This configure script is free software; the Free Software Foundation
2098gives unlimited permission to copy, distribute and modify it.
2099_ACEOF
2100 exit
2101fi
cristy8b350f62009-11-15 23:12:43 +00002102
2103## ------------------------ ##
2104## Autoconf initialization. ##
2105## ------------------------ ##
2106
2107# ac_fn_c_try_compile LINENO
2108# --------------------------
2109# Try to compile conftest.$ac_ext, and return whether this succeeded.
2110ac_fn_c_try_compile ()
2111{
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 rm -f conftest.$ac_objext
2114 if { { ac_try="$ac_compile"
2115case "(($ac_try" in
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2118esac
2119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120$as_echo "$ac_try_echo"; } >&5
2121 (eval "$ac_compile") 2>conftest.err
2122 ac_status=$?
2123 if test -s conftest.err; then
2124 grep -v '^ *+' conftest.err >conftest.er1
2125 cat conftest.er1 >&5
2126 mv -f conftest.er1 conftest.err
2127 fi
2128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129 test $ac_status = 0; } && {
2130 test -z "$ac_c_werror_flag" ||
2131 test ! -s conftest.err
2132 } && test -s conftest.$ac_objext; then :
2133 ac_retval=0
2134else
2135 $as_echo "$as_me: failed program was:" >&5
2136sed 's/^/| /' conftest.$ac_ext >&5
2137
2138 ac_retval=1
2139fi
cristyda16f162011-02-19 23:52:17 +00002140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002141 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002142
2143} # ac_fn_c_try_compile
2144
cristy95646052009-11-28 23:05:30 +00002145# ac_fn_c_try_cpp LINENO
2146# ----------------------
2147# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2148ac_fn_c_try_cpp ()
2149{
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 if { { ac_try="$ac_cpp conftest.$ac_ext"
2152case "(($ac_try" in
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2155esac
2156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2157$as_echo "$ac_try_echo"; } >&5
2158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2159 ac_status=$?
2160 if test -s conftest.err; then
2161 grep -v '^ *+' conftest.err >conftest.er1
2162 cat conftest.er1 >&5
2163 mv -f conftest.er1 conftest.err
2164 fi
2165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002166 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2168 test ! -s conftest.err
2169 }; then :
2170 ac_retval=0
2171else
2172 $as_echo "$as_me: failed program was:" >&5
2173sed 's/^/| /' conftest.$ac_ext >&5
2174
2175 ac_retval=1
2176fi
cristyda16f162011-02-19 23:52:17 +00002177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002178 as_fn_set_status $ac_retval
2179
2180} # ac_fn_c_try_cpp
2181
cristy8b350f62009-11-15 23:12:43 +00002182# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2183# -------------------------------------------------------
2184# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2185# the include files in INCLUDES and setting the cache variable VAR
2186# accordingly.
2187ac_fn_c_check_header_mongrel ()
2188{
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002190 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002193if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002194 $as_echo_n "(cached) " >&6
2195fi
2196eval ac_res=\$$3
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198$as_echo "$ac_res" >&6; }
2199else
2200 # Is the header compilable?
2201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2202$as_echo_n "checking $2 usability... " >&6; }
2203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204/* end confdefs.h. */
2205$4
2206#include <$2>
2207_ACEOF
2208if ac_fn_c_try_compile "$LINENO"; then :
2209 ac_header_compiler=yes
2210else
2211 ac_header_compiler=no
2212fi
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2215$as_echo "$ac_header_compiler" >&6; }
2216
2217# Is the header present?
2218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2219$as_echo_n "checking $2 presence... " >&6; }
2220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221/* end confdefs.h. */
2222#include <$2>
2223_ACEOF
2224if ac_fn_c_try_cpp "$LINENO"; then :
2225 ac_header_preproc=yes
2226else
2227 ac_header_preproc=no
2228fi
cristyda16f162011-02-19 23:52:17 +00002229rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2231$as_echo "$ac_header_preproc" >&6; }
2232
2233# So? What about this header?
2234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2235 yes:no: )
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2237$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2239$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2240 ;;
2241 no:yes:* )
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2243$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2245$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2247$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2249$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2251$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002252( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002253## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002254## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002255 ) | sed "s/^/$as_me: WARNING: /" >&2
2256 ;;
2257esac
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002260if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002261 $as_echo_n "(cached) " >&6
2262else
2263 eval "$3=\$ac_header_compiler"
2264fi
2265eval ac_res=\$$3
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267$as_echo "$ac_res" >&6; }
2268fi
cristyda16f162011-02-19 23:52:17 +00002269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002270
2271} # ac_fn_c_check_header_mongrel
2272
2273# ac_fn_c_try_run LINENO
2274# ----------------------
2275# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2276# that executables *can* be run.
2277ac_fn_c_try_run ()
2278{
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 if { { ac_try="$ac_link"
2281case "(($ac_try" in
2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2284esac
2285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286$as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_link") 2>&5
2288 ac_status=$?
2289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2290 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2291 { { case "(($ac_try" in
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2294esac
2295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296$as_echo "$ac_try_echo"; } >&5
2297 (eval "$ac_try") 2>&5
2298 ac_status=$?
2299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2300 test $ac_status = 0; }; }; then :
2301 ac_retval=0
2302else
2303 $as_echo "$as_me: program exited with status $ac_status" >&5
2304 $as_echo "$as_me: failed program was:" >&5
2305sed 's/^/| /' conftest.$ac_ext >&5
2306
2307 ac_retval=$ac_status
2308fi
2309 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002311 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002312
2313} # ac_fn_c_try_run
2314
2315# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2316# -------------------------------------------------------
2317# Tests whether HEADER exists and can be compiled using the include files in
2318# INCLUDES, setting the cache variable VAR accordingly.
2319ac_fn_c_check_header_compile ()
2320{
2321 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2323$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002324if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002325 $as_echo_n "(cached) " >&6
2326else
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328/* end confdefs.h. */
2329$4
2330#include <$2>
2331_ACEOF
2332if ac_fn_c_try_compile "$LINENO"; then :
2333 eval "$3=yes"
2334else
2335 eval "$3=no"
2336fi
2337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338fi
2339eval ac_res=\$$3
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2341$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002342 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002343
2344} # ac_fn_c_check_header_compile
2345
cristya0b81c32010-01-22 02:54:33 +00002346# ac_fn_cxx_try_compile LINENO
2347# ----------------------------
2348# Try to compile conftest.$ac_ext, and return whether this succeeded.
2349ac_fn_cxx_try_compile ()
2350{
2351 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352 rm -f conftest.$ac_objext
2353 if { { ac_try="$ac_compile"
2354case "(($ac_try" in
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2357esac
2358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2359$as_echo "$ac_try_echo"; } >&5
2360 (eval "$ac_compile") 2>conftest.err
2361 ac_status=$?
2362 if test -s conftest.err; then
2363 grep -v '^ *+' conftest.err >conftest.er1
2364 cat conftest.er1 >&5
2365 mv -f conftest.er1 conftest.err
2366 fi
2367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2368 test $ac_status = 0; } && {
2369 test -z "$ac_cxx_werror_flag" ||
2370 test ! -s conftest.err
2371 } && test -s conftest.$ac_objext; then :
2372 ac_retval=0
2373else
2374 $as_echo "$as_me: failed program was:" >&5
2375sed 's/^/| /' conftest.$ac_ext >&5
2376
2377 ac_retval=1
2378fi
cristyda16f162011-02-19 23:52:17 +00002379 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002380 as_fn_set_status $ac_retval
2381
2382} # ac_fn_cxx_try_compile
2383
cristyd95b7a52013-10-23 13:12:53 +00002384# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2385# --------------------------------------------
2386# Tries to find the compile-time value of EXPR in a program that includes
2387# INCLUDES, setting VAR accordingly. Returns whether the value could be
2388# computed
2389ac_fn_c_compute_int ()
2390{
2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392 if test "$cross_compiling" = yes; then
2393 # Depending upon the size, compute the lo and hi bounds.
2394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395/* end confdefs.h. */
2396$4
2397int
2398main ()
2399{
2400static int test_array [1 - 2 * !(($2) >= 0)];
2401test_array [0] = 0;
2402return test_array [0];
2403
2404 ;
2405 return 0;
2406}
2407_ACEOF
2408if ac_fn_c_try_compile "$LINENO"; then :
2409 ac_lo=0 ac_mid=0
2410 while :; do
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412/* end confdefs.h. */
2413$4
2414int
2415main ()
2416{
2417static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2418test_array [0] = 0;
2419return test_array [0];
2420
2421 ;
2422 return 0;
2423}
2424_ACEOF
2425if ac_fn_c_try_compile "$LINENO"; then :
2426 ac_hi=$ac_mid; break
2427else
2428 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2429 if test $ac_lo -le $ac_mid; then
2430 ac_lo= ac_hi=
2431 break
2432 fi
2433 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2434fi
2435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 done
2437else
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439/* end confdefs.h. */
2440$4
2441int
2442main ()
2443{
2444static int test_array [1 - 2 * !(($2) < 0)];
2445test_array [0] = 0;
2446return test_array [0];
2447
2448 ;
2449 return 0;
2450}
2451_ACEOF
2452if ac_fn_c_try_compile "$LINENO"; then :
2453 ac_hi=-1 ac_mid=-1
2454 while :; do
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456/* end confdefs.h. */
2457$4
2458int
2459main ()
2460{
2461static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2462test_array [0] = 0;
2463return test_array [0];
2464
2465 ;
2466 return 0;
2467}
2468_ACEOF
2469if ac_fn_c_try_compile "$LINENO"; then :
2470 ac_lo=$ac_mid; break
2471else
2472 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2473 if test $ac_mid -le $ac_hi; then
2474 ac_lo= ac_hi=
2475 break
2476 fi
2477 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2478fi
2479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 done
2481else
2482 ac_lo= ac_hi=
2483fi
2484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485fi
2486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487# Binary search between lo and hi bounds.
2488while test "x$ac_lo" != "x$ac_hi"; do
2489 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491/* end confdefs.h. */
2492$4
2493int
2494main ()
2495{
2496static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2497test_array [0] = 0;
2498return test_array [0];
2499
2500 ;
2501 return 0;
2502}
2503_ACEOF
2504if ac_fn_c_try_compile "$LINENO"; then :
2505 ac_hi=$ac_mid
2506else
2507 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2508fi
2509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510done
2511case $ac_lo in #((
2512?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2513'') ac_retval=1 ;;
2514esac
2515 else
2516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2517/* end confdefs.h. */
2518$4
2519static long int longval () { return $2; }
2520static unsigned long int ulongval () { return $2; }
2521#include <stdio.h>
2522#include <stdlib.h>
2523int
2524main ()
2525{
2526
2527 FILE *f = fopen ("conftest.val", "w");
2528 if (! f)
2529 return 1;
2530 if (($2) < 0)
2531 {
2532 long int i = longval ();
2533 if (i != ($2))
2534 return 1;
2535 fprintf (f, "%ld", i);
2536 }
2537 else
2538 {
2539 unsigned long int i = ulongval ();
2540 if (i != ($2))
2541 return 1;
2542 fprintf (f, "%lu", i);
2543 }
2544 /* Do not output a trailing newline, as this causes \r\n confusion
2545 on some platforms. */
2546 return ferror (f) || fclose (f) != 0;
2547
2548 ;
2549 return 0;
2550}
2551_ACEOF
2552if ac_fn_c_try_run "$LINENO"; then :
2553 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2554else
2555 ac_retval=1
2556fi
2557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2558 conftest.$ac_objext conftest.beam conftest.$ac_ext
2559rm -f conftest.val
2560
2561 fi
2562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2563 as_fn_set_status $ac_retval
2564
2565} # ac_fn_c_compute_int
2566
cristy8b350f62009-11-15 23:12:43 +00002567# ac_fn_c_try_link LINENO
2568# -----------------------
2569# Try to link conftest.$ac_ext, and return whether this succeeded.
2570ac_fn_c_try_link ()
2571{
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 rm -f conftest.$ac_objext conftest$ac_exeext
2574 if { { ac_try="$ac_link"
2575case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578esac
2579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580$as_echo "$ac_try_echo"; } >&5
2581 (eval "$ac_link") 2>conftest.err
2582 ac_status=$?
2583 if test -s conftest.err; then
2584 grep -v '^ *+' conftest.err >conftest.er1
2585 cat conftest.er1 >&5
2586 mv -f conftest.er1 conftest.err
2587 fi
2588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2589 test $ac_status = 0; } && {
2590 test -z "$ac_c_werror_flag" ||
2591 test ! -s conftest.err
2592 } && test -s conftest$ac_exeext && {
2593 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002594 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002595 }; then :
2596 ac_retval=0
2597else
2598 $as_echo "$as_me: failed program was:" >&5
2599sed 's/^/| /' conftest.$ac_ext >&5
2600
2601 ac_retval=1
2602fi
2603 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2604 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2605 # interfere with the next link command; also delete a directory that is
2606 # left behind by Apple's compiler. We do this before executing the actions.
2607 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002609 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002610
2611} # ac_fn_c_try_link
2612
cristy73bd4a52010-10-05 11:24:23 +00002613# ac_fn_c_check_func LINENO FUNC VAR
2614# ----------------------------------
2615# Tests whether FUNC exists, setting the cache variable VAR accordingly
2616ac_fn_c_check_func ()
2617{
2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2620$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002621if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002622 $as_echo_n "(cached) " >&6
2623else
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625/* end confdefs.h. */
2626/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2628#define $2 innocuous_$2
2629
2630/* System header to define __stub macros and hopefully few prototypes,
2631 which can conflict with char $2 (); below.
2632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2633 <limits.h> exists even on freestanding compilers. */
2634
2635#ifdef __STDC__
2636# include <limits.h>
2637#else
2638# include <assert.h>
2639#endif
2640
2641#undef $2
2642
2643/* Override any GCC internal prototype to avoid an error.
2644 Use char because int might match the return type of a GCC
2645 builtin and then its argument prototype would still apply. */
2646#ifdef __cplusplus
2647extern "C"
2648#endif
2649char $2 ();
2650/* The GNU C library defines this for functions which it implements
2651 to always fail with ENOSYS. Some functions are actually named
2652 something starting with __ and the normal name is an alias. */
2653#if defined __stub_$2 || defined __stub___$2
2654choke me
2655#endif
2656
2657int
2658main ()
2659{
2660return $2 ();
2661 ;
2662 return 0;
2663}
2664_ACEOF
2665if ac_fn_c_try_link "$LINENO"; then :
2666 eval "$3=yes"
2667else
2668 eval "$3=no"
2669fi
2670rm -f core conftest.err conftest.$ac_objext \
2671 conftest$ac_exeext conftest.$ac_ext
2672fi
2673eval ac_res=\$$3
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002677
2678} # ac_fn_c_check_func
2679
2680# ac_fn_cxx_try_cpp LINENO
2681# ------------------------
2682# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2683ac_fn_cxx_try_cpp ()
2684{
2685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2686 if { { ac_try="$ac_cpp conftest.$ac_ext"
2687case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
2691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692$as_echo "$ac_try_echo"; } >&5
2693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2694 ac_status=$?
2695 if test -s conftest.err; then
2696 grep -v '^ *+' conftest.err >conftest.er1
2697 cat conftest.er1 >&5
2698 mv -f conftest.er1 conftest.err
2699 fi
2700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002701 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002702 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2703 test ! -s conftest.err
2704 }; then :
2705 ac_retval=0
2706else
2707 $as_echo "$as_me: failed program was:" >&5
2708sed 's/^/| /' conftest.$ac_ext >&5
2709
2710 ac_retval=1
2711fi
cristyda16f162011-02-19 23:52:17 +00002712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002713 as_fn_set_status $ac_retval
2714
2715} # ac_fn_cxx_try_cpp
2716
2717# ac_fn_cxx_try_link LINENO
2718# -------------------------
2719# Try to link conftest.$ac_ext, and return whether this succeeded.
2720ac_fn_cxx_try_link ()
2721{
2722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2723 rm -f conftest.$ac_objext conftest$ac_exeext
2724 if { { ac_try="$ac_link"
2725case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728esac
2729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2730$as_echo "$ac_try_echo"; } >&5
2731 (eval "$ac_link") 2>conftest.err
2732 ac_status=$?
2733 if test -s conftest.err; then
2734 grep -v '^ *+' conftest.err >conftest.er1
2735 cat conftest.er1 >&5
2736 mv -f conftest.er1 conftest.err
2737 fi
2738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2739 test $ac_status = 0; } && {
2740 test -z "$ac_cxx_werror_flag" ||
2741 test ! -s conftest.err
2742 } && test -s conftest$ac_exeext && {
2743 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002744 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002745 }; then :
2746 ac_retval=0
2747else
2748 $as_echo "$as_me: failed program was:" >&5
2749sed 's/^/| /' conftest.$ac_ext >&5
2750
2751 ac_retval=1
2752fi
2753 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2754 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2755 # interfere with the next link command; also delete a directory that is
2756 # left behind by Apple's compiler. We do this before executing the actions.
2757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002759 as_fn_set_status $ac_retval
2760
2761} # ac_fn_cxx_try_link
2762
cristy8b350f62009-11-15 23:12:43 +00002763# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2764# -------------------------------------------
2765# Tests whether TYPE exists after having included INCLUDES, setting cache
2766# variable VAR accordingly.
2767ac_fn_c_check_type ()
2768{
2769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2771$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002772if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002773 $as_echo_n "(cached) " >&6
2774else
2775 eval "$3=no"
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777/* end confdefs.h. */
2778$4
2779int
2780main ()
2781{
2782if (sizeof ($2))
2783 return 0;
2784 ;
2785 return 0;
2786}
2787_ACEOF
2788if ac_fn_c_try_compile "$LINENO"; then :
2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790/* end confdefs.h. */
2791$4
2792int
2793main ()
2794{
2795if (sizeof (($2)))
2796 return 0;
2797 ;
2798 return 0;
2799}
2800_ACEOF
2801if ac_fn_c_try_compile "$LINENO"; then :
2802
2803else
2804 eval "$3=yes"
2805fi
2806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807fi
2808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809fi
2810eval ac_res=\$$3
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2812$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002814
2815} # ac_fn_c_check_type
2816
cristy92703d82010-04-26 00:18:18 +00002817# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2818# ----------------------------------------------------
2819# Tries to find if the field MEMBER exists in type AGGR, after including
2820# INCLUDES, setting cache variable VAR accordingly.
2821ac_fn_c_check_member ()
2822{
2823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2825$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002826if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002827 $as_echo_n "(cached) " >&6
2828else
2829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830/* end confdefs.h. */
2831$5
2832int
2833main ()
2834{
2835static $2 ac_aggr;
2836if (ac_aggr.$3)
2837return 0;
2838 ;
2839 return 0;
2840}
2841_ACEOF
2842if ac_fn_c_try_compile "$LINENO"; then :
2843 eval "$4=yes"
2844else
2845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2846/* end confdefs.h. */
2847$5
2848int
2849main ()
2850{
2851static $2 ac_aggr;
2852if (sizeof ac_aggr.$3)
2853return 0;
2854 ;
2855 return 0;
2856}
2857_ACEOF
2858if ac_fn_c_try_compile "$LINENO"; then :
2859 eval "$4=yes"
2860else
2861 eval "$4=no"
2862fi
2863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864fi
2865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866fi
2867eval ac_res=\$$4
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2869$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002871
2872} # ac_fn_c_check_member
2873
cristy5eef09f2012-10-16 12:08:28 +00002874# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2875# ---------------------------------------------
2876# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2877# accordingly.
2878ac_fn_c_check_decl ()
2879{
2880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2881 as_decl_name=`echo $2|sed 's/ *(.*//'`
2882 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2884$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2885if eval \${$3+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887else
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889/* end confdefs.h. */
2890$4
2891int
2892main ()
2893{
2894#ifndef $as_decl_name
2895#ifdef __cplusplus
2896 (void) $as_decl_use;
2897#else
2898 (void) $as_decl_name;
2899#endif
2900#endif
2901
2902 ;
2903 return 0;
2904}
2905_ACEOF
2906if ac_fn_c_try_compile "$LINENO"; then :
2907 eval "$3=yes"
2908else
2909 eval "$3=no"
2910fi
2911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912fi
2913eval ac_res=\$$3
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2915$as_echo "$ac_res" >&6; }
2916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2917
2918} # ac_fn_c_check_decl
2919
cristy501c8042011-05-26 17:46:28 +00002920# ac_fn_c_find_intX_t LINENO BITS VAR
2921# -----------------------------------
2922# Finds a signed integer type with width BITS, setting cache variable VAR
2923# accordingly.
2924ac_fn_c_find_intX_t ()
2925{
2926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2928$as_echo_n "checking for int$2_t... " >&6; }
2929if eval \${$3+:} false; then :
2930 $as_echo_n "(cached) " >&6
2931else
2932 eval "$3=no"
2933 # Order is important - never check a type that is potentially smaller
2934 # than half of the expected target width.
2935 for ac_type in int$2_t 'int' 'long int' \
2936 'long long int' 'short int' 'signed char'; do
2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938/* end confdefs.h. */
2939$ac_includes_default
2940 enum { N = $2 / 2 - 1 };
2941int
2942main ()
2943{
2944static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002945test_array [0] = 0;
2946return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952if ac_fn_c_try_compile "$LINENO"; then :
2953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954/* end confdefs.h. */
2955$ac_includes_default
2956 enum { N = $2 / 2 - 1 };
2957int
2958main ()
2959{
2960static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2961 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002962test_array [0] = 0;
2963return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002964
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969if ac_fn_c_try_compile "$LINENO"; then :
2970
2971else
2972 case $ac_type in #(
2973 int$2_t) :
2974 eval "$3=yes" ;; #(
2975 *) :
2976 eval "$3=\$ac_type" ;;
2977esac
2978fi
2979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980fi
2981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982 if eval test \"x\$"$3"\" = x"no"; then :
2983
2984else
2985 break
2986fi
2987 done
2988fi
2989eval ac_res=\$$3
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2991$as_echo "$ac_res" >&6; }
2992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2993
2994} # ac_fn_c_find_intX_t
2995
2996# ac_fn_c_find_uintX_t LINENO BITS VAR
2997# ------------------------------------
2998# Finds an unsigned integer type with width BITS, setting cache variable VAR
2999# accordingly.
3000ac_fn_c_find_uintX_t ()
3001{
3002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3004$as_echo_n "checking for uint$2_t... " >&6; }
3005if eval \${$3+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007else
3008 eval "$3=no"
3009 # Order is important - never check a type that is potentially smaller
3010 # than half of the expected target width.
3011 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3012 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014/* end confdefs.h. */
3015$ac_includes_default
3016int
3017main ()
3018{
3019static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003020test_array [0] = 0;
3021return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003022
3023 ;
3024 return 0;
3025}
3026_ACEOF
3027if ac_fn_c_try_compile "$LINENO"; then :
3028 case $ac_type in #(
3029 uint$2_t) :
3030 eval "$3=yes" ;; #(
3031 *) :
3032 eval "$3=\$ac_type" ;;
3033esac
3034fi
3035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 if eval test \"x\$"$3"\" = x"no"; then :
3037
3038else
3039 break
3040fi
3041 done
3042fi
3043eval ac_res=\$$3
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3045$as_echo "$ac_res" >&6; }
3046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3047
3048} # ac_fn_c_find_uintX_t
3049
cristy8b350f62009-11-15 23:12:43 +00003050# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3051# ---------------------------------------------------------
3052# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3053# the include files in INCLUDES and setting the cache variable VAR
3054# accordingly.
3055ac_fn_cxx_check_header_mongrel ()
3056{
3057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003058 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3060$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003061if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003062 $as_echo_n "(cached) " >&6
3063fi
3064eval ac_res=\$$3
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3066$as_echo "$ac_res" >&6; }
3067else
3068 # Is the header compilable?
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3070$as_echo_n "checking $2 usability... " >&6; }
3071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072/* end confdefs.h. */
3073$4
3074#include <$2>
3075_ACEOF
3076if ac_fn_cxx_try_compile "$LINENO"; then :
3077 ac_header_compiler=yes
3078else
3079 ac_header_compiler=no
3080fi
3081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3083$as_echo "$ac_header_compiler" >&6; }
3084
3085# Is the header present?
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3087$as_echo_n "checking $2 presence... " >&6; }
3088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089/* end confdefs.h. */
3090#include <$2>
3091_ACEOF
3092if ac_fn_cxx_try_cpp "$LINENO"; then :
3093 ac_header_preproc=yes
3094else
3095 ac_header_preproc=no
3096fi
cristyda16f162011-02-19 23:52:17 +00003097rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3099$as_echo "$ac_header_preproc" >&6; }
3100
3101# So? What about this header?
3102case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3103 yes:no: )
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3105$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3107$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3108 ;;
3109 no:yes:* )
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3111$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3113$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3115$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3117$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3119$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003120( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003121## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003122## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003123 ) | sed "s/^/$as_me: WARNING: /" >&2
3124 ;;
3125esac
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3127$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003128if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003129 $as_echo_n "(cached) " >&6
3130else
3131 eval "$3=\$ac_header_compiler"
3132fi
3133eval ac_res=\$$3
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3135$as_echo "$ac_res" >&6; }
3136fi
cristyda16f162011-02-19 23:52:17 +00003137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003138
3139} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003140cat >config.log <<_ACEOF
3141This file contains any messages produced by compilers while
3142running configure, to aid debugging if configure makes a mistake.
3143
cristy29eb34e2011-10-16 00:46:08 +00003144It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003145generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003146
3147 $ $0 $@
3148
3149_ACEOF
3150exec 5>>config.log
3151{
3152cat <<_ASUNAME
3153## --------- ##
3154## Platform. ##
3155## --------- ##
3156
3157hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3158uname -m = `(uname -m) 2>/dev/null || echo unknown`
3159uname -r = `(uname -r) 2>/dev/null || echo unknown`
3160uname -s = `(uname -s) 2>/dev/null || echo unknown`
3161uname -v = `(uname -v) 2>/dev/null || echo unknown`
3162
3163/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3164/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3165
3166/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3167/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3168/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3169/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3170/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3171/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3172/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3173
3174_ASUNAME
3175
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003181 $as_echo "PATH: $as_dir"
3182 done
cristy3ed852e2009-09-05 21:47:34 +00003183IFS=$as_save_IFS
3184
3185} >&5
3186
3187cat >&5 <<_ACEOF
3188
3189
3190## ----------- ##
3191## Core tests. ##
3192## ----------- ##
3193
3194_ACEOF
3195
3196
3197# Keep a trace of the command line.
3198# Strip out --no-create and --no-recursion so they do not pile up.
3199# Strip out --silent because we don't want to record it for future runs.
3200# Also quote any args containing shell meta-characters.
3201# Make two passes to allow for proper duplicate-argument suppression.
3202ac_configure_args=
3203ac_configure_args0=
3204ac_configure_args1=
3205ac_must_keep_next=false
3206for ac_pass in 1 2
3207do
3208 for ac_arg
3209 do
3210 case $ac_arg in
3211 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3213 | -silent | --silent | --silen | --sile | --sil)
3214 continue ;;
3215 *\'*)
3216 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3217 esac
3218 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003219 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003220 2)
cristy8b350f62009-11-15 23:12:43 +00003221 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003222 if test $ac_must_keep_next = true; then
3223 ac_must_keep_next=false # Got value, back to normal.
3224 else
3225 case $ac_arg in
3226 *=* | --config-cache | -C | -disable-* | --disable-* \
3227 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3228 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3229 | -with-* | --with-* | -without-* | --without-* | --x)
3230 case "$ac_configure_args0 " in
3231 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3232 esac
3233 ;;
3234 -* ) ac_must_keep_next=true ;;
3235 esac
3236 fi
cristy8b350f62009-11-15 23:12:43 +00003237 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003238 ;;
3239 esac
3240 done
3241done
cristy8b350f62009-11-15 23:12:43 +00003242{ ac_configure_args0=; unset ac_configure_args0;}
3243{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003244
3245# When interrupted or exit'd, cleanup temporary files, and complete
3246# config.log. We remove comments because anyway the quotes in there
3247# would cause problems or look ugly.
3248# WARNING: Use '\'' to represent an apostrophe within the trap.
3249# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3250trap 'exit_status=$?
3251 # Save into config.log some information that might help in debugging.
3252 {
3253 echo
3254
cristy98dddb52010-11-04 00:30:15 +00003255 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003256## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003257## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003258 echo
3259 # The following way of writing the cache mishandles newlines in values,
3260(
3261 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3262 eval ac_val=\$$ac_var
3263 case $ac_val in #(
3264 *${as_nl}*)
3265 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003266 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003267$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3268 esac
3269 case $ac_var in #(
3270 _ | IFS | as_nl) ;; #(
3271 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003272 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003273 esac ;;
3274 esac
3275 done
3276 (set) 2>&1 |
3277 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3278 *${as_nl}ac_space=\ *)
3279 sed -n \
3280 "s/'\''/'\''\\\\'\'''\''/g;
3281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3282 ;; #(
3283 *)
3284 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3285 ;;
3286 esac |
3287 sort
3288)
3289 echo
3290
cristy98dddb52010-11-04 00:30:15 +00003291 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003292## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003293## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003294 echo
3295 for ac_var in $ac_subst_vars
3296 do
3297 eval ac_val=\$$ac_var
3298 case $ac_val in
3299 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3300 esac
3301 $as_echo "$ac_var='\''$ac_val'\''"
3302 done | sort
3303 echo
3304
3305 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003306 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003307## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003308## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003309 echo
3310 for ac_var in $ac_subst_files
3311 do
3312 eval ac_val=\$$ac_var
3313 case $ac_val in
3314 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3315 esac
3316 $as_echo "$ac_var='\''$ac_val'\''"
3317 done | sort
3318 echo
3319 fi
3320
3321 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003322 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003323## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003324## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003325 echo
3326 cat confdefs.h
3327 echo
3328 fi
3329 test "$ac_signal" != 0 &&
3330 $as_echo "$as_me: caught signal $ac_signal"
3331 $as_echo "$as_me: exit $exit_status"
3332 } >&5
3333 rm -f core *.core core.conftest.* &&
3334 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3335 exit $exit_status
3336' 0
3337for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003338 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003339done
3340ac_signal=0
3341
3342# confdefs.h avoids OS command line length limits that DEFS can exceed.
3343rm -f -r conftest* confdefs.h
3344
cristy8b350f62009-11-15 23:12:43 +00003345$as_echo "/* confdefs.h */" > confdefs.h
3346
cristy3ed852e2009-09-05 21:47:34 +00003347# Predefined preprocessor variables.
3348
3349cat >>confdefs.h <<_ACEOF
3350#define PACKAGE_NAME "$PACKAGE_NAME"
3351_ACEOF
3352
cristy3ed852e2009-09-05 21:47:34 +00003353cat >>confdefs.h <<_ACEOF
3354#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3355_ACEOF
3356
cristy3ed852e2009-09-05 21:47:34 +00003357cat >>confdefs.h <<_ACEOF
3358#define PACKAGE_VERSION "$PACKAGE_VERSION"
3359_ACEOF
3360
cristy3ed852e2009-09-05 21:47:34 +00003361cat >>confdefs.h <<_ACEOF
3362#define PACKAGE_STRING "$PACKAGE_STRING"
3363_ACEOF
3364
cristy3ed852e2009-09-05 21:47:34 +00003365cat >>confdefs.h <<_ACEOF
3366#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3367_ACEOF
3368
cristy8b350f62009-11-15 23:12:43 +00003369cat >>confdefs.h <<_ACEOF
3370#define PACKAGE_URL "$PACKAGE_URL"
3371_ACEOF
3372
cristy3ed852e2009-09-05 21:47:34 +00003373
3374# Let the site file select an alternate cache file if it wants to.
3375# Prefer an explicitly selected file to automatically selected ones.
3376ac_site_file1=NONE
3377ac_site_file2=NONE
3378if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003379 # We do not want a PATH search for config.site.
3380 case $CONFIG_SITE in #((
3381 -*) ac_site_file1=./$CONFIG_SITE;;
3382 */*) ac_site_file1=$CONFIG_SITE;;
3383 *) ac_site_file1=./$CONFIG_SITE;;
3384 esac
cristy3ed852e2009-09-05 21:47:34 +00003385elif test "x$prefix" != xNONE; then
3386 ac_site_file1=$prefix/share/config.site
3387 ac_site_file2=$prefix/etc/config.site
3388else
3389 ac_site_file1=$ac_default_prefix/share/config.site
3390 ac_site_file2=$ac_default_prefix/etc/config.site
3391fi
3392for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3393do
3394 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003395 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003396 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003397$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3398 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003399 . "$ac_site_file" \
3400 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402as_fn_error $? "failed to load site script $ac_site_file
3403See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003404 fi
3405done
3406
3407if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003408 # Some versions of bash will fail to source /dev/null (special files
3409 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3410 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003411 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003412$as_echo "$as_me: loading cache $cache_file" >&6;}
3413 case $cache_file in
3414 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3415 *) . "./$cache_file";;
3416 esac
3417 fi
3418else
cristy8b350f62009-11-15 23:12:43 +00003419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003420$as_echo "$as_me: creating cache $cache_file" >&6;}
3421 >$cache_file
3422fi
3423
cristycd4c5312009-11-22 01:19:08 +00003424as_fn_append ac_header_list " stdlib.h"
3425as_fn_append ac_header_list " unistd.h"
3426as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003427# Check that the precious variables saved in the cache have kept the same
3428# value.
3429ac_cache_corrupted=false
3430for ac_var in $ac_precious_vars; do
3431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3432 eval ac_new_set=\$ac_env_${ac_var}_set
3433 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3434 eval ac_new_val=\$ac_env_${ac_var}_value
3435 case $ac_old_set,$ac_new_set in
3436 set,)
cristy8b350f62009-11-15 23:12:43 +00003437 { $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 +00003438$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3439 ac_cache_corrupted=: ;;
3440 ,set)
cristy8b350f62009-11-15 23:12:43 +00003441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003442$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3443 ac_cache_corrupted=: ;;
3444 ,);;
3445 *)
3446 if test "x$ac_old_val" != "x$ac_new_val"; then
3447 # differences in whitespace do not lead to failure.
3448 ac_old_val_w=`echo x $ac_old_val`
3449 ac_new_val_w=`echo x $ac_new_val`
3450 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003452$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3453 ac_cache_corrupted=:
3454 else
cristy8b350f62009-11-15 23:12:43 +00003455 { $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 +00003456$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3457 eval $ac_var=\$ac_old_val
3458 fi
cristy8b350f62009-11-15 23:12:43 +00003459 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003460$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003461 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003462$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3463 fi;;
3464 esac
3465 # Pass precious variables to config.status.
3466 if test "$ac_new_set" = set; then
3467 case $ac_new_val in
3468 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3469 *) ac_arg=$ac_var=$ac_new_val ;;
3470 esac
3471 case " $ac_configure_args " in
3472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003473 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003474 esac
3475 fi
3476done
3477if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003481$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003482 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003483fi
cristy8b350f62009-11-15 23:12:43 +00003484## -------------------- ##
3485## Main body of script. ##
3486## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003487
3488ac_ext=c
3489ac_cpp='$CPP $CPPFLAGS'
3490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493
3494
3495
3496ac_aux_dir=
3497for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003498 if test -f "$ac_dir/install-sh"; then
3499 ac_aux_dir=$ac_dir
3500 ac_install_sh="$ac_aux_dir/install-sh -c"
3501 break
3502 elif test -f "$ac_dir/install.sh"; then
3503 ac_aux_dir=$ac_dir
3504 ac_install_sh="$ac_aux_dir/install.sh -c"
3505 break
3506 elif test -f "$ac_dir/shtool"; then
3507 ac_aux_dir=$ac_dir
3508 ac_install_sh="$ac_aux_dir/shtool install -c"
3509 break
3510 fi
cristy3ed852e2009-09-05 21:47:34 +00003511done
3512if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003513 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003514fi
3515
3516# These three variables are undocumented and unsupported,
3517# and are intended to be withdrawn in a future Autoconf release.
3518# They can cause serious problems if a builder's source tree is in a directory
3519# whose full name contains unusual characters.
3520ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3521ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3522ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3523
3524
3525
3526
3527ac_config_headers="$ac_config_headers config/config.h"
3528
cristy24fc1fe2010-10-23 21:13:01 +00003529
cristy01ff9f32012-12-01 18:15:29 +00003530ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003531
cristy8d0ff762013-03-10 20:33:28 +00003532ac_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-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"
cristy3ed852e2009-09-05 21:47:34 +00003533
3534
3535#
3536# Save initial user-tunable values
3537#
3538USER_LIBS=$LIBS
3539for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3540 eval isset=\${$var+set}
3541 if test "$isset" = 'set'; then
3542 eval val=$`echo $var`
3543 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3544 fi
3545done
3546
3547
3548CONFIGURE_ARGS="$0 ${ac_configure_args}"
3549
3550
3551# Source file containing package/library versioning information.
3552. ${srcdir}/version.sh
3553
cristy15a88782010-01-31 23:24:49 +00003554echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003555# Make sure we can run config.sub.
3556$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003557 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003558
cristy8b350f62009-11-15 23:12:43 +00003559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003560$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003561if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003562 $as_echo_n "(cached) " >&6
3563else
3564 ac_build_alias=$build_alias
3565test "x$ac_build_alias" = x &&
3566 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3567test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003568 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003569ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003570 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003571
3572fi
cristy8b350f62009-11-15 23:12:43 +00003573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003574$as_echo "$ac_cv_build" >&6; }
3575case $ac_cv_build in
3576*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003577*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003578esac
3579build=$ac_cv_build
3580ac_save_IFS=$IFS; IFS='-'
3581set x $ac_cv_build
3582shift
3583build_cpu=$1
3584build_vendor=$2
3585shift; shift
3586# Remember, the first character of IFS is used to create $*,
3587# except with old shells:
3588build_os=$*
3589IFS=$ac_save_IFS
3590case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3591
3592
cristy8b350f62009-11-15 23:12:43 +00003593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003594$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003595if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003596 $as_echo_n "(cached) " >&6
3597else
3598 if test "x$host_alias" = x; then
3599 ac_cv_host=$ac_cv_build
3600else
3601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003602 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003603fi
3604
3605fi
cristy8b350f62009-11-15 23:12:43 +00003606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003607$as_echo "$ac_cv_host" >&6; }
3608case $ac_cv_host in
3609*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003610*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003611esac
3612host=$ac_cv_host
3613ac_save_IFS=$IFS; IFS='-'
3614set x $ac_cv_host
3615shift
3616host_cpu=$1
3617host_vendor=$2
3618shift; shift
3619# Remember, the first character of IFS is used to create $*,
3620# except with old shells:
3621host_os=$*
3622IFS=$ac_save_IFS
3623case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3624
3625
cristy8b350f62009-11-15 23:12:43 +00003626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003627$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003628if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003629 $as_echo_n "(cached) " >&6
3630else
3631 if test "x$target_alias" = x; then
3632 ac_cv_target=$ac_cv_host
3633else
3634 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003635 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003636fi
3637
3638fi
cristy8b350f62009-11-15 23:12:43 +00003639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003640$as_echo "$ac_cv_target" >&6; }
3641case $ac_cv_target in
3642*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003643*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003644esac
3645target=$ac_cv_target
3646ac_save_IFS=$IFS; IFS='-'
3647set x $ac_cv_target
3648shift
3649target_cpu=$1
3650target_vendor=$2
3651shift; shift
3652# Remember, the first character of IFS is used to create $*,
3653# except with old shells:
3654target_os=$*
3655IFS=$ac_save_IFS
3656case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3657
3658
3659# The aliases save the names the user supplied, while $host etc.
3660# will get canonicalized.
3661test -n "$target_alias" &&
3662 test "$program_prefix$program_suffix$program_transform_name" = \
3663 NONENONEs,x,x, &&
3664 program_prefix=${target_alias}-
3665
cristy837d6dc2010-02-27 01:16:57 +00003666
3667
3668
cristy8be34142012-06-17 14:07:18 +00003669
cristy19615b82011-04-13 20:02:01 +00003670MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003671
3672
cristy27d53d62012-07-29 23:30:07 +00003673cat >>confdefs.h <<_ACEOF
3674#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3675_ACEOF
3676
3677
cristy19615b82011-04-13 20:02:01 +00003678MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003679
3680
cristy27d53d62012-07-29 23:30:07 +00003681cat >>confdefs.h <<_ACEOF
3682#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3683_ACEOF
3684
3685
cristy19615b82011-04-13 20:02:01 +00003686MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003687
3688
cristy27d53d62012-07-29 23:30:07 +00003689cat >>confdefs.h <<_ACEOF
3690#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3691_ACEOF
3692
3693
cristy37442762013-02-10 21:07:23 +00003694
3695# Substitute versioning
3696MAGICK_MAJOR_VERSION=7
3697
3698MAGICK_MINOR_VERSION=0
3699
3700MAGICK_MICRO_VERSION=0
3701
3702MAGICK_PATCHLEVEL_VERSION=0
3703
3704MAGICK_VERSION=7.0.0-0
3705
cristy22007ae2014-11-04 15:59:22 +00003706MAGICK_SVN_REVISION=16921:16940M
cristy37442762013-02-10 21:07:23 +00003707
3708
cristy3ed852e2009-09-05 21:47:34 +00003709# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003710MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3711
3712MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3713
cristy37442762013-02-10 21:07:23 +00003714
cristy5ed9c6e2013-07-14 21:20:31 +00003715MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3716
3717MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3718
3719
cristyd694ca32011-03-27 21:42:54 +00003720
cristy3ed852e2009-09-05 21:47:34 +00003721# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3723$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003724# Reject unsafe characters in $srcdir or the absolute working directory
3725# name. Accept space and tab only in the latter.
3726am_lf='
3727'
3728case `pwd` in
3729 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003730 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003731esac
3732case $srcdir in
3733 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003734 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003735esac
cristy3ed852e2009-09-05 21:47:34 +00003736
cristyc0890a62012-07-19 00:18:20 +00003737# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003738# arguments. Must try -L first in case configure is actually a
3739# symlink; some systems play weird games with the mod time of symlinks
3740# (eg FreeBSD returns the mod time of the symlink's containing
3741# directory).
3742if (
cristyc0890a62012-07-19 00:18:20 +00003743 am_has_slept=no
3744 for am_try in 1 2; do
3745 echo "timestamp, slept: $am_has_slept" > conftest.file
3746 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3747 if test "$*" = "X"; then
3748 # -L didn't work.
3749 set X `ls -t "$srcdir/configure" conftest.file`
3750 fi
3751 if test "$*" != "X $srcdir/configure conftest.file" \
3752 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003753
cristyc0890a62012-07-19 00:18:20 +00003754 # If neither matched, then we have a broken ls. This can happen
3755 # if, for instance, CONFIG_SHELL is bash and it inherits a
3756 # broken ls alias from the environment. This has actually
3757 # happened. Such a system could not be considered "sane".
3758 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3759 alias in your environment" "$LINENO" 5
3760 fi
3761 if test "$2" = conftest.file || test $am_try -eq 2; then
3762 break
3763 fi
3764 # Just in case.
3765 sleep 1
3766 am_has_slept=yes
3767 done
cristy73bd4a52010-10-05 11:24:23 +00003768 test "$2" = conftest.file
3769 )
3770then
3771 # Ok.
3772 :
3773else
cristy98dddb52010-11-04 00:30:15 +00003774 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003775Check your system clock" "$LINENO" 5
3776fi
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3778$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003779# If we didn't sleep, we still need to ensure time stamps of config.status and
3780# generated files are strictly newer.
3781am_sleep_pid=
3782if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3783 ( sleep 1 ) &
3784 am_sleep_pid=$!
3785fi
cristy73bd4a52010-10-05 11:24:23 +00003786
cristyc0890a62012-07-19 00:18:20 +00003787rm -f conftest.file
3788
3789
cristya5bda012013-11-03 18:05:38 +00003790am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003791
3792# Find a good install program. We prefer a C program (faster),
3793# so one script is as good as another. But avoid the broken or
3794# incompatible versions:
3795# SysV /etc/install, /usr/sbin/install
3796# SunOS /usr/etc/install
3797# IRIX /sbin/install
3798# AIX /bin/install
3799# AmigaOS /C/install, which installs bootblocks on floppy discs
3800# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3801# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3802# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3803# OS/2's system install, which has a completely different semantic
3804# ./install, which can be erroneously created by make from ./install.sh.
3805# Reject install programs that cannot install multiple files.
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3807$as_echo_n "checking for a BSD-compatible install... " >&6; }
3808if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003809if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003810 $as_echo_n "(cached) " >&6
3811else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 # Account for people who put trailing slashes in PATH elements.
3818case $as_dir/ in #((
3819 ./ | .// | /[cC]/* | \
3820 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3821 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3822 /usr/ucb/* ) ;;
3823 *)
3824 # OSF1 and SCO ODT 3.0 have their own names for install.
3825 # Don't use installbsd from OSF since it installs stuff as root
3826 # by default.
3827 for ac_prog in ginstall scoinst install; do
3828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003829 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003830 if test $ac_prog = install &&
3831 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3832 # AIX install. It has an incompatible calling convention.
3833 :
3834 elif test $ac_prog = install &&
3835 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3836 # program-specific install script used by HP pwplus--don't use.
3837 :
3838 else
3839 rm -rf conftest.one conftest.two conftest.dir
3840 echo one > conftest.one
3841 echo two > conftest.two
3842 mkdir conftest.dir
3843 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3844 test -s conftest.one && test -s conftest.two &&
3845 test -s conftest.dir/conftest.one &&
3846 test -s conftest.dir/conftest.two
3847 then
3848 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3849 break 3
3850 fi
3851 fi
3852 fi
3853 done
3854 done
3855 ;;
3856esac
3857
3858 done
3859IFS=$as_save_IFS
3860
3861rm -rf conftest.one conftest.two conftest.dir
3862
3863fi
3864 if test "${ac_cv_path_install+set}" = set; then
3865 INSTALL=$ac_cv_path_install
3866 else
3867 # As a last resort, use the slow shell script. Don't cache a
3868 # value for INSTALL within a source directory, because that will
3869 # break other packages using the cache if that directory is
3870 # removed, or if the value is a relative name.
3871 INSTALL=$ac_install_sh
3872 fi
3873fi
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3875$as_echo "$INSTALL" >&6; }
3876
3877# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3878# It thinks the first close brace ends the variable substitution.
3879test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3880
3881test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3882
3883test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3884
3885test "$program_prefix" != NONE &&
3886 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3887# Use a double $ so make ignores it.
3888test "$program_suffix" != NONE &&
3889 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3890# Double any \ or $.
3891# By default was `s,x,x', remove it if useless.
3892ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3893program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3894
3895# expand $ac_aux_dir to an absolute path
3896am_aux_dir=`cd $ac_aux_dir && pwd`
3897
3898if test x"${MISSING+set}" != xset; then
3899 case $am_aux_dir in
3900 *\ * | *\ *)
3901 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3902 *)
3903 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3904 esac
3905fi
3906# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003907if eval "$MISSING --is-lightweight"; then
3908 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003909else
3910 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3912$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003913fi
3914
3915if test x"${install_sh}" != xset; then
3916 case $am_aux_dir in
3917 *\ * | *\ *)
3918 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3919 *)
3920 install_sh="\${SHELL} $am_aux_dir/install-sh"
3921 esac
3922fi
3923
cristyc0890a62012-07-19 00:18:20 +00003924# Installed binaries are usually stripped using 'strip' when the user
3925# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003926# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003927# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003928if test "$cross_compiling" != no; then
3929 if test -n "$ac_tool_prefix"; then
3930 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3931set dummy ${ac_tool_prefix}strip; ac_word=$2
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003934if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003935 $as_echo_n "(cached) " >&6
3936else
3937 if test -n "$STRIP"; then
3938 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3939else
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH
3942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003947 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
3950 fi
3951done
3952 done
3953IFS=$as_save_IFS
3954
3955fi
3956fi
3957STRIP=$ac_cv_prog_STRIP
3958if test -n "$STRIP"; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3960$as_echo "$STRIP" >&6; }
3961else
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963$as_echo "no" >&6; }
3964fi
3965
3966
3967fi
3968if test -z "$ac_cv_prog_STRIP"; then
3969 ac_ct_STRIP=$STRIP
3970 # Extract the first word of "strip", so it can be a program name with args.
3971set dummy strip; ac_word=$2
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003974if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003975 $as_echo_n "(cached) " >&6
3976else
3977 if test -n "$ac_ct_STRIP"; then
3978 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3979else
3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003987 ac_cv_prog_ac_ct_STRIP="strip"
3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3990 fi
3991done
3992 done
3993IFS=$as_save_IFS
3994
3995fi
3996fi
3997ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3998if test -n "$ac_ct_STRIP"; then
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4000$as_echo "$ac_ct_STRIP" >&6; }
4001else
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003$as_echo "no" >&6; }
4004fi
4005
4006 if test "x$ac_ct_STRIP" = x; then
4007 STRIP=":"
4008 else
4009 case $cross_compiling:$ac_tool_warned in
4010yes:)
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4013ac_tool_warned=yes ;;
4014esac
4015 STRIP=$ac_ct_STRIP
4016 fi
4017else
4018 STRIP="$ac_cv_prog_STRIP"
4019fi
4020
4021fi
4022INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4023
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4025$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4026if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004027 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004028 $as_echo_n "(cached) " >&6
4029else
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4032do
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_prog in mkdir gmkdir; do
4036 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004037 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004038 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4039 'mkdir (GNU coreutils) '* | \
4040 'mkdir (coreutils) '* | \
4041 'mkdir (fileutils) '4.1*)
4042 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4043 break 3;;
4044 esac
4045 done
4046 done
4047 done
4048IFS=$as_save_IFS
4049
4050fi
4051
4052 test -d ./--version && rmdir ./--version
4053 if test "${ac_cv_path_mkdir+set}" = set; then
4054 MKDIR_P="$ac_cv_path_mkdir -p"
4055 else
4056 # As a last resort, use the slow shell script. Don't cache a
4057 # value for MKDIR_P within a source directory, because that will
4058 # break other packages using the cache if that directory is
4059 # removed, or if the value is a relative name.
4060 MKDIR_P="$ac_install_sh -d"
4061 fi
4062fi
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4064$as_echo "$MKDIR_P" >&6; }
4065
cristy73bd4a52010-10-05 11:24:23 +00004066for ac_prog in gawk mawk nawk awk
4067do
4068 # Extract the first word of "$ac_prog", so it can be a program name with args.
4069set dummy $ac_prog; ac_word=$2
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004072if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004073 $as_echo_n "(cached) " >&6
4074else
4075 if test -n "$AWK"; then
4076 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4077else
4078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079for as_dir in $PATH
4080do
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004085 ac_cv_prog_AWK="$ac_prog"
4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 break 2
4088 fi
4089done
4090 done
4091IFS=$as_save_IFS
4092
4093fi
4094fi
4095AWK=$ac_cv_prog_AWK
4096if test -n "$AWK"; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4098$as_echo "$AWK" >&6; }
4099else
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101$as_echo "no" >&6; }
4102fi
4103
4104
4105 test -n "$AWK" && break
4106done
4107
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4109$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4110set x ${MAKE-make}
4111ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004112if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004113 $as_echo_n "(cached) " >&6
4114else
4115 cat >conftest.make <<\_ACEOF
4116SHELL = /bin/sh
4117all:
4118 @echo '@@@%%%=$(MAKE)=@@@%%%'
4119_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004120# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004121case `${MAKE-make} -f conftest.make 2>/dev/null` in
4122 *@@@%%%=?*=@@@%%%*)
4123 eval ac_cv_prog_make_${ac_make}_set=yes;;
4124 *)
4125 eval ac_cv_prog_make_${ac_make}_set=no;;
4126esac
4127rm -f conftest.make
4128fi
4129if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4131$as_echo "yes" >&6; }
4132 SET_MAKE=
4133else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135$as_echo "no" >&6; }
4136 SET_MAKE="MAKE=${MAKE-make}"
4137fi
4138
4139rm -rf .tst 2>/dev/null
4140mkdir .tst 2>/dev/null
4141if test -d .tst; then
4142 am__leading_dot=.
4143else
4144 am__leading_dot=_
4145fi
4146rmdir .tst 2>/dev/null
4147
cristya448bd22011-10-14 12:38:13 +00004148# Check whether --enable-silent-rules was given.
4149if test "${enable_silent_rules+set}" = set; then :
4150 enableval=$enable_silent_rules;
4151fi
4152
cristyc0890a62012-07-19 00:18:20 +00004153case $enable_silent_rules in # (((
4154 yes) AM_DEFAULT_VERBOSITY=0;;
4155 no) AM_DEFAULT_VERBOSITY=1;;
4156 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004157esac
cristyc3fb77b2012-02-06 01:49:41 +00004158am_make=${MAKE-make}
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4160$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4161if ${am_cv_make_support_nested_variables+:} false; then :
4162 $as_echo_n "(cached) " >&6
4163else
4164 if $as_echo 'TRUE=$(BAR$(V))
4165BAR0=false
4166BAR1=true
4167V=1
4168am__doit:
4169 @$(TRUE)
4170.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4171 am_cv_make_support_nested_variables=yes
4172else
4173 am_cv_make_support_nested_variables=no
4174fi
4175fi
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4177$as_echo "$am_cv_make_support_nested_variables" >&6; }
4178if test $am_cv_make_support_nested_variables = yes; then
4179 AM_V='$(V)'
4180 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4181else
4182 AM_V=$AM_DEFAULT_VERBOSITY
4183 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4184fi
cristya448bd22011-10-14 12:38:13 +00004185AM_BACKSLASH='\'
4186
cristy73bd4a52010-10-05 11:24:23 +00004187if test "`cd $srcdir && pwd`" != "`pwd`"; then
4188 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4189 # is not polluted with repeated "-I."
4190 am__isrc=' -I$(srcdir)'
4191 # test to see if srcdir already configured
4192 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004193 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004194 fi
4195fi
4196
4197# test whether we have cygpath
4198if test -z "$CYGPATH_W"; then
4199 if (cygpath --version) >/dev/null 2>/dev/null; then
4200 CYGPATH_W='cygpath -w'
4201 else
4202 CYGPATH_W=echo
4203 fi
4204fi
4205
4206
4207# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004208 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004209 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004210
4211
cristya448bd22011-10-14 12:38:13 +00004212cat >>confdefs.h <<_ACEOF
4213#define PACKAGE "$PACKAGE"
4214_ACEOF
4215
4216
4217cat >>confdefs.h <<_ACEOF
4218#define VERSION "$VERSION"
4219_ACEOF
4220
cristy73bd4a52010-10-05 11:24:23 +00004221# Some tools Automake needs.
4222
4223ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4224
4225
4226AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4227
4228
4229AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4230
4231
4232AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4233
4234
4235MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4236
cristyc0890a62012-07-19 00:18:20 +00004237# For better backward compatibility. To be removed once Automake 1.9.x
4238# dies out for good. For more background, see:
4239# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4240# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4241mkdir_p='$(MKDIR_P)'
4242
cristy73bd4a52010-10-05 11:24:23 +00004243# We need awk for the "check" target. The system "awk" is bad on
4244# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004245# Always define AMTAR for backward compatibility. Yes, it's still used
4246# in the wild :-( We should find a proper way to deprecate it ...
4247AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004248
cristye69bdbe2013-05-03 21:40:44 +00004249
4250# We'll loop over all known methods to create a tar archive until one works.
4251_am_tools='gnutar pax cpio none'
4252
cristyc3fb77b2012-02-06 01:49:41 +00004253am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004254
4255
4256
4257
4258
cristy3ed852e2009-09-05 21:47:34 +00004259
cristya5bda012013-11-03 18:05:38 +00004260# POSIX will say in a future version that running "rm -f" with no argument
4261# is OK; and we want to be able to make that assumption in our Makefile
4262# recipes. So use an aggressive probe to check that the usage we want is
4263# actually supported "in the wild" to an acceptable degree.
4264# See automake bug#10828.
4265# To make any issue more visible, cause the running configure to be aborted
4266# by default if the 'rm' program in use doesn't match our expectations; the
4267# user can still override this though.
4268if rm -f && rm -fr && rm -rf; then : OK; else
4269 cat >&2 <<'END'
4270Oops!
4271
4272Your 'rm' program seems unable to run without file operands specified
4273on the command line, even when the '-f' option is present. This is contrary
4274to the behaviour of most rm programs out there, and not conforming with
4275the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4276
4277Please tell bug-automake@gnu.org about your system, including the value
4278of your $PATH and any error possibly output before this message. This
4279can help us improve future automake versions.
4280
4281END
4282 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4283 echo 'Configuration will proceed anyway, since you have set the' >&2
4284 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4285 echo >&2
4286 else
4287 cat >&2 <<'END'
4288Aborting the configuration process, to ensure you take notice of the issue.
4289
4290You can download and install GNU coreutils to get an 'rm' implementation
4291that behaves properly: <http://www.gnu.org/software/coreutils/>.
4292
4293If you want to complete the configuration process using your problematic
4294'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4295to "yes", and re-run configure.
4296
4297END
4298 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4299 fi
4300fi
cristye69bdbe2013-05-03 21:40:44 +00004301
cristy3ed852e2009-09-05 21:47:34 +00004302# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004303# Check whether --enable-silent-rules was given.
4304if test "${enable_silent_rules+set}" = set; then :
4305 enableval=$enable_silent_rules;
4306fi
4307
cristyc0890a62012-07-19 00:18:20 +00004308case $enable_silent_rules in # (((
4309 yes) AM_DEFAULT_VERBOSITY=0;;
4310 no) AM_DEFAULT_VERBOSITY=1;;
4311 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004312esac
cristyc3fb77b2012-02-06 01:49:41 +00004313am_make=${MAKE-make}
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4315$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4316if ${am_cv_make_support_nested_variables+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318else
4319 if $as_echo 'TRUE=$(BAR$(V))
4320BAR0=false
4321BAR1=true
4322V=1
4323am__doit:
4324 @$(TRUE)
4325.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4326 am_cv_make_support_nested_variables=yes
4327else
4328 am_cv_make_support_nested_variables=no
4329fi
4330fi
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4332$as_echo "$am_cv_make_support_nested_variables" >&6; }
4333if test $am_cv_make_support_nested_variables = yes; then
4334 AM_V='$(V)'
4335 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4336else
4337 AM_V=$AM_DEFAULT_VERBOSITY
4338 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4339fi
cristy73bd4a52010-10-05 11:24:23 +00004340AM_BACKSLASH='\'
4341
cristy3ed852e2009-09-05 21:47:34 +00004342
cristyf279b692014-08-13 12:01:27 +00004343# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004344MAGICK_LIB_VERSION="0x"
4345if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4346 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4347fi
4348MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4349if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4350 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4351fi
4352MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4353if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4354 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4355fi
4356MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4357
4358
4359# Definition used to define MagickLibVersionText in version.h
4360MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4361
4362
4363# Definition used to define MagickLibVersionNumber in version.h
4364MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4365
4366
cristy5ed9c6e2013-07-14 21:20:31 +00004367MAGICKPP_LIB_VERSION="0x"
4368if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4369 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4370fi
4371MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4372if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4373 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4374fi
4375MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4376if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4377 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4378fi
4379MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4380
4381
4382# Definition used to define MagickLibVersionText in version.h
4383MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4384
4385
4386# Definition used to define MagickLibVersionNumber in version.h
4387MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4388
4389
4390
4391
cristy3ed852e2009-09-05 21:47:34 +00004392# Regenerate config.status if ChangeLog or version.sh is updated.
4393CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4394
4395
4396PERLMAINCC=$CC
4397
4398MAGICK_CFLAGS=''
4399MAGICK_CPPFLAGS=$CPPFLAGS_USER
4400MAGICK_PCFLAGS=$CPPFLAGS_USER
4401MAGICK_LDFLAGS=''
4402MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004403MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004404
4405#
4406# Evaluate shell variable equivalents to Makefile directory variables
4407#
4408if test "x$prefix" = xNONE; then
4409 prefix=$ac_default_prefix
4410fi
4411# Let make expand exec_prefix.
4412if test "x$exec_prefix" = xNONE; then
4413 exec_prefix='${prefix}'
4414fi
4415
4416#
4417eval "eval PREFIX_DIR=${prefix}"
4418
4419eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4420
4421eval "eval BIN_DIR=$bindir"
4422
4423eval "eval SBIN_DIR=$sbindir"
4424
4425eval "eval LIBEXEC_DIR=$libexecdir"
4426
4427eval "eval DATA_DIR=$datadir"
4428
cristy4e65ec22012-04-08 01:33:27 +00004429eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004430
cristy3ed852e2009-09-05 21:47:34 +00004431eval "eval SYSCONF_DIR=$sysconfdir"
4432
4433eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4434
4435eval "eval LOCALSTATE_DIR=$localstatedir"
4436
4437eval "eval LIB_DIR=$libdir"
4438
4439eval "eval INCLUDE_DIR=$includedir"
4440
4441eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4442
4443eval "eval INFO_DIR=$infodir"
4444
4445eval "eval MAN_DIR=$mandir"
4446
4447
4448# Get full paths to source and build directories
4449srcdirfull="`cd $srcdir && pwd`"
4450builddir="`pwd`"
4451
4452#
4453# Compute variables useful for running uninstalled software.
4454#
4455MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4456MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4457MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4458MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4459DIRSEP=':'
4460case "${build_os}" in
4461 mingw* )
4462 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4463 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4464 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4465 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4466 DIRSEP=';'
4467 ;;
4468esac
4469case "${host_os}" in
4470 mingw* )
4471 DIRSEP=';'
4472 ;;
4473esac
4474
4475
4476
4477
4478
4479
cristya0b81c32010-01-22 02:54:33 +00004480
4481#
4482# Enable OS features.
4483#
cristy73bd4a52010-10-05 11:24:23 +00004484DEPDIR="${am__leading_dot}deps"
4485
4486ac_config_commands="$ac_config_commands depfiles"
4487
4488
4489am_make=${MAKE-make}
4490cat > confinc << 'END'
4491am__doit:
4492 @echo this is the am__doit target
4493.PHONY: am__doit
4494END
4495# If we don't find an include directive, just comment out the code.
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4497$as_echo_n "checking for style of include used by $am_make... " >&6; }
4498am__include="#"
4499am__quote=
4500_am_result=none
4501# First try GNU make style include.
4502echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004503# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004504case `$am_make -s -f confmf 2> /dev/null` in #(
4505*the\ am__doit\ target*)
4506 am__include=include
4507 am__quote=
4508 _am_result=GNU
4509 ;;
4510esac
4511# Now try BSD make style include.
4512if test "$am__include" = "#"; then
4513 echo '.include "confinc"' > confmf
4514 case `$am_make -s -f confmf 2> /dev/null` in #(
4515 *the\ am__doit\ target*)
4516 am__include=.include
4517 am__quote="\""
4518 _am_result=BSD
4519 ;;
4520 esac
4521fi
4522
4523
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4525$as_echo "$_am_result" >&6; }
4526rm -f confinc confmf
4527
4528# Check whether --enable-dependency-tracking was given.
4529if test "${enable_dependency_tracking+set}" = set; then :
4530 enableval=$enable_dependency_tracking;
4531fi
4532
4533if test "x$enable_dependency_tracking" != xno; then
4534 am_depcomp="$ac_aux_dir/depcomp"
4535 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004536 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004537fi
4538 if test "x$enable_dependency_tracking" != xno; then
4539 AMDEP_TRUE=
4540 AMDEP_FALSE='#'
4541else
4542 AMDEP_TRUE='#'
4543 AMDEP_FALSE=
4544fi
4545
4546
cristy3ed852e2009-09-05 21:47:34 +00004547ac_ext=c
4548ac_cpp='$CPP $CPPFLAGS'
4549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4554set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004557if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004558 $as_echo_n "(cached) " >&6
4559else
4560 if test -n "$CC"; then
4561 ac_cv_prog_CC="$CC" # Let the user override the test.
4562else
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004570 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004572 break 2
4573 fi
4574done
cristy8b350f62009-11-15 23:12:43 +00004575 done
cristy3ed852e2009-09-05 21:47:34 +00004576IFS=$as_save_IFS
4577
4578fi
4579fi
4580CC=$ac_cv_prog_CC
4581if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004583$as_echo "$CC" >&6; }
4584else
cristy8b350f62009-11-15 23:12:43 +00004585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004586$as_echo "no" >&6; }
4587fi
4588
4589
4590fi
4591if test -z "$ac_cv_prog_CC"; then
4592 ac_ct_CC=$CC
4593 # Extract the first word of "gcc", so it can be a program name with args.
4594set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004596$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004597if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004598 $as_echo_n "(cached) " >&6
4599else
4600 if test -n "$ac_ct_CC"; then
4601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4602else
4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004608 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004610 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004612 break 2
4613 fi
4614done
cristy8b350f62009-11-15 23:12:43 +00004615 done
cristy3ed852e2009-09-05 21:47:34 +00004616IFS=$as_save_IFS
4617
4618fi
4619fi
4620ac_ct_CC=$ac_cv_prog_ac_ct_CC
4621if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004623$as_echo "$ac_ct_CC" >&6; }
4624else
cristy8b350f62009-11-15 23:12:43 +00004625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004626$as_echo "no" >&6; }
4627fi
4628
4629 if test "x$ac_ct_CC" = x; then
4630 CC=""
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633yes:)
cristy8b350f62009-11-15 23:12:43 +00004634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636ac_tool_warned=yes ;;
4637esac
4638 CC=$ac_ct_CC
4639 fi
4640else
4641 CC="$ac_cv_prog_CC"
4642fi
4643
4644if test -z "$CC"; then
4645 if test -n "$ac_tool_prefix"; then
4646 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4647set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004649$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004650if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004651 $as_echo_n "(cached) " >&6
4652else
4653 if test -n "$CC"; then
4654 ac_cv_prog_CC="$CC" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004661 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004663 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004665 break 2
4666 fi
4667done
cristy8b350f62009-11-15 23:12:43 +00004668 done
cristy3ed852e2009-09-05 21:47:34 +00004669IFS=$as_save_IFS
4670
4671fi
4672fi
4673CC=$ac_cv_prog_CC
4674if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004676$as_echo "$CC" >&6; }
4677else
cristy8b350f62009-11-15 23:12:43 +00004678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004679$as_echo "no" >&6; }
4680fi
4681
4682
4683 fi
4684fi
4685if test -z "$CC"; then
4686 # Extract the first word of "cc", so it can be a program name with args.
4687set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004689$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004690if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004691 $as_echo_n "(cached) " >&6
4692else
4693 if test -n "$CC"; then
4694 ac_cv_prog_CC="$CC" # Let the user override the test.
4695else
4696 ac_prog_rejected=no
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004702 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4705 ac_prog_rejected=yes
4706 continue
4707 fi
4708 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004710 break 2
4711 fi
4712done
cristy8b350f62009-11-15 23:12:43 +00004713 done
cristy3ed852e2009-09-05 21:47:34 +00004714IFS=$as_save_IFS
4715
4716if test $ac_prog_rejected = yes; then
4717 # We found a bogon in the path, so make sure we never use it.
4718 set dummy $ac_cv_prog_CC
4719 shift
4720 if test $# != 0; then
4721 # We chose a different compiler from the bogus one.
4722 # However, it has the same basename, so the bogon will be chosen
4723 # first if we set CC to just the basename; use the full file name.
4724 shift
4725 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4726 fi
4727fi
4728fi
4729fi
4730CC=$ac_cv_prog_CC
4731if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004733$as_echo "$CC" >&6; }
4734else
cristy8b350f62009-11-15 23:12:43 +00004735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004736$as_echo "no" >&6; }
4737fi
4738
4739
4740fi
4741if test -z "$CC"; then
4742 if test -n "$ac_tool_prefix"; then
4743 for ac_prog in cl.exe
4744 do
4745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4746set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004748$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004749if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004750 $as_echo_n "(cached) " >&6
4751else
4752 if test -n "$CC"; then
4753 ac_cv_prog_CC="$CC" # Let the user override the test.
4754else
4755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
4757do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004760 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004762 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004764 break 2
4765 fi
4766done
cristy8b350f62009-11-15 23:12:43 +00004767 done
cristy3ed852e2009-09-05 21:47:34 +00004768IFS=$as_save_IFS
4769
4770fi
4771fi
4772CC=$ac_cv_prog_CC
4773if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004775$as_echo "$CC" >&6; }
4776else
cristy8b350f62009-11-15 23:12:43 +00004777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004778$as_echo "no" >&6; }
4779fi
4780
4781
4782 test -n "$CC" && break
4783 done
4784fi
4785if test -z "$CC"; then
4786 ac_ct_CC=$CC
4787 for ac_prog in cl.exe
4788do
4789 # Extract the first word of "$ac_prog", so it can be a program name with args.
4790set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004792$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004793if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004794 $as_echo_n "(cached) " >&6
4795else
4796 if test -n "$ac_ct_CC"; then
4797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4798else
4799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800for as_dir in $PATH
4801do
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004804 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004806 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004808 break 2
4809 fi
4810done
cristy8b350f62009-11-15 23:12:43 +00004811 done
cristy3ed852e2009-09-05 21:47:34 +00004812IFS=$as_save_IFS
4813
4814fi
4815fi
4816ac_ct_CC=$ac_cv_prog_ac_ct_CC
4817if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004819$as_echo "$ac_ct_CC" >&6; }
4820else
cristy8b350f62009-11-15 23:12:43 +00004821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004822$as_echo "no" >&6; }
4823fi
4824
4825
4826 test -n "$ac_ct_CC" && break
4827done
4828
4829 if test "x$ac_ct_CC" = x; then
4830 CC=""
4831 else
4832 case $cross_compiling:$ac_tool_warned in
4833yes:)
cristy8b350f62009-11-15 23:12:43 +00004834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4836ac_tool_warned=yes ;;
4837esac
4838 CC=$ac_ct_CC
4839 fi
4840fi
4841
4842fi
4843
4844
cristy8b350f62009-11-15 23:12:43 +00004845test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004847as_fn_error $? "no acceptable C compiler found in \$PATH
4848See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004849
4850# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004851$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004852set X $ac_compile
4853ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004854for ac_option in --version -v -V -qversion; do
4855 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004856case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859esac
cristy8b350f62009-11-15 23:12:43 +00004860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4861$as_echo "$ac_try_echo"; } >&5
4862 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004863 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004864 if test -s conftest.err; then
4865 sed '10a\
4866... rest of stderr output deleted ...
4867 10q' conftest.err >conftest.er1
4868 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004869 fi
cristycd4c5312009-11-22 01:19:08 +00004870 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4872 test $ac_status = 0; }
4873done
cristy3ed852e2009-09-05 21:47:34 +00004874
cristy8b350f62009-11-15 23:12:43 +00004875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004876/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004877
cristy3ed852e2009-09-05 21:47:34 +00004878int
4879main ()
4880{
4881
4882 ;
4883 return 0;
4884}
4885_ACEOF
4886ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004887ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004888# Try to create an executable without -o first, disregard a.out.
4889# It will help us diagnose broken compilers, and finding out an intuition
4890# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4892$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004893ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4894
4895# The possible output files:
4896ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4897
4898ac_rmfiles=
4899for ac_file in $ac_files
4900do
4901 case $ac_file in
4902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4903 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4904 esac
4905done
4906rm -f $ac_rmfiles
4907
cristy8b350f62009-11-15 23:12:43 +00004908if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004909case "(($ac_try" in
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4912esac
cristy8b350f62009-11-15 23:12:43 +00004913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4914$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004915 (eval "$ac_link_default") 2>&5
4916 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004919 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4920# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4921# in a Makefile. We should not override ac_cv_exeext if it was cached,
4922# so that the user can short-circuit this test for compilers unknown to
4923# Autoconf.
4924for ac_file in $ac_files ''
4925do
4926 test -f "$ac_file" || continue
4927 case $ac_file in
4928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4929 ;;
4930 [ab].out )
4931 # We found the default executable, but exeext='' is most
4932 # certainly right.
4933 break;;
4934 *.* )
cristy8b350f62009-11-15 23:12:43 +00004935 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004936 then :; else
4937 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4938 fi
4939 # We set ac_cv_exeext here because the later test for it is not
4940 # safe: cross compilers may not add the suffix if given an `-o'
4941 # argument, so we may need to know it at that point already.
4942 # Even if this section looks crufty: it has the advantage of
4943 # actually working.
4944 break;;
4945 * )
4946 break;;
4947 esac
4948done
4949test "$ac_cv_exeext" = no && ac_cv_exeext=
4950
4951else
4952 ac_file=''
4953fi
cristy8b350f62009-11-15 23:12:43 +00004954if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956$as_echo "no" >&6; }
4957$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004958sed 's/^/| /' conftest.$ac_ext >&5
4959
cristy8b350f62009-11-15 23:12:43 +00004960{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004962as_fn_error 77 "C compiler cannot create executables
4963See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004964else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4966$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004967fi
cristycd4c5312009-11-22 01:19:08 +00004968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4969$as_echo_n "checking for C compiler default output file name... " >&6; }
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4971$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004972ac_exeext=$ac_cv_exeext
4973
cristycd4c5312009-11-22 01:19:08 +00004974rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004975ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004977$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004978if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004979case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982esac
cristy8b350f62009-11-15 23:12:43 +00004983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4984$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004985 (eval "$ac_link") 2>&5
4986 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4988 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004989 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4990# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4991# work properly (i.e., refer to `conftest.exe'), while it won't with
4992# `rm'.
4993for ac_file in conftest.exe conftest conftest.*; do
4994 test -f "$ac_file" || continue
4995 case $ac_file in
4996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4998 break;;
4999 * ) break;;
5000 esac
5001done
5002else
cristy8b350f62009-11-15 23:12:43 +00005003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005005as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5006See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005007fi
cristycd4c5312009-11-22 01:19:08 +00005008rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005010$as_echo "$ac_cv_exeext" >&6; }
5011
5012rm -f conftest.$ac_ext
5013EXEEXT=$ac_cv_exeext
5014ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016/* end confdefs.h. */
5017#include <stdio.h>
5018int
5019main ()
5020{
5021FILE *f = fopen ("conftest.out", "w");
5022 return ferror (f) || fclose (f) != 0;
5023
5024 ;
5025 return 0;
5026}
5027_ACEOF
5028ac_clean_files="$ac_clean_files conftest.out"
5029# Check that the compiler produces executables we can run. If not, either
5030# the compiler is broken, or we cross compile.
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5032$as_echo_n "checking whether we are cross compiling... " >&6; }
5033if test "$cross_compiling" != yes; then
5034 { { ac_try="$ac_link"
5035case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038esac
5039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5040$as_echo "$ac_try_echo"; } >&5
5041 (eval "$ac_link") 2>&5
5042 ac_status=$?
5043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044 test $ac_status = 0; }
5045 if { ac_try='./conftest$ac_cv_exeext'
5046 { { case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049esac
5050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5051$as_echo "$ac_try_echo"; } >&5
5052 (eval "$ac_try") 2>&5
5053 ac_status=$?
5054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5055 test $ac_status = 0; }; }; then
5056 cross_compiling=no
5057 else
5058 if test "$cross_compiling" = maybe; then
5059 cross_compiling=yes
5060 else
5061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005063as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005064If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005065See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005066 fi
5067 fi
5068fi
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5070$as_echo "$cross_compiling" >&6; }
5071
5072rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5073ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005075$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005076if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005077 $as_echo_n "(cached) " >&6
5078else
cristy8b350f62009-11-15 23:12:43 +00005079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005080/* end confdefs.h. */
5081
5082int
5083main ()
5084{
5085
5086 ;
5087 return 0;
5088}
5089_ACEOF
5090rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005091if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005092case "(($ac_try" in
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5095esac
cristy8b350f62009-11-15 23:12:43 +00005096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5097$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005098 (eval "$ac_compile") 2>&5
5099 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5101 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005102 for ac_file in conftest.o conftest.obj conftest.*; do
5103 test -f "$ac_file" || continue;
5104 case $ac_file in
5105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5106 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5107 break;;
5108 esac
5109done
5110else
5111 $as_echo "$as_me: failed program was:" >&5
5112sed 's/^/| /' conftest.$ac_ext >&5
5113
cristy8b350f62009-11-15 23:12:43 +00005114{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005116as_fn_error $? "cannot compute suffix of object files: cannot compile
5117See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005118fi
cristy3ed852e2009-09-05 21:47:34 +00005119rm -f conftest.$ac_cv_objext conftest.$ac_ext
5120fi
cristy8b350f62009-11-15 23:12:43 +00005121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005122$as_echo "$ac_cv_objext" >&6; }
5123OBJEXT=$ac_cv_objext
5124ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005126$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005127if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005128 $as_echo_n "(cached) " >&6
5129else
cristy8b350f62009-11-15 23:12:43 +00005130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005131/* end confdefs.h. */
5132
5133int
5134main ()
5135{
5136#ifndef __GNUC__
5137 choke me
5138#endif
5139
5140 ;
5141 return 0;
5142}
5143_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005144if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005145 ac_compiler_gnu=yes
5146else
cristy8b350f62009-11-15 23:12:43 +00005147 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005148fi
cristy3ed852e2009-09-05 21:47:34 +00005149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150ac_cv_c_compiler_gnu=$ac_compiler_gnu
5151
5152fi
cristy8b350f62009-11-15 23:12:43 +00005153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005154$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5155if test $ac_compiler_gnu = yes; then
5156 GCC=yes
5157else
5158 GCC=
5159fi
5160ac_test_CFLAGS=${CFLAGS+set}
5161ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005163$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005164if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005165 $as_echo_n "(cached) " >&6
5166else
5167 ac_save_c_werror_flag=$ac_c_werror_flag
5168 ac_c_werror_flag=yes
5169 ac_cv_prog_cc_g=no
5170 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005172/* end confdefs.h. */
5173
5174int
5175main ()
5176{
5177
5178 ;
5179 return 0;
5180}
5181_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005182if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005183 ac_cv_prog_cc_g=yes
5184else
cristy8b350f62009-11-15 23:12:43 +00005185 CFLAGS=""
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005187/* end confdefs.h. */
5188
5189int
5190main ()
5191{
5192
5193 ;
5194 return 0;
5195}
5196_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005197if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005198
cristy8b350f62009-11-15 23:12:43 +00005199else
5200 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005201 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005203/* end confdefs.h. */
5204
5205int
5206main ()
5207{
5208
5209 ;
5210 return 0;
5211}
5212_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005213if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005214 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005215fi
cristy3ed852e2009-09-05 21:47:34 +00005216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217fi
cristy3ed852e2009-09-05 21:47:34 +00005218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219fi
cristy3ed852e2009-09-05 21:47:34 +00005220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 ac_c_werror_flag=$ac_save_c_werror_flag
5222fi
cristy8b350f62009-11-15 23:12:43 +00005223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005224$as_echo "$ac_cv_prog_cc_g" >&6; }
5225if test "$ac_test_CFLAGS" = set; then
5226 CFLAGS=$ac_save_CFLAGS
5227elif test $ac_cv_prog_cc_g = yes; then
5228 if test "$GCC" = yes; then
5229 CFLAGS="-g -O2"
5230 else
5231 CFLAGS="-g"
5232 fi
5233else
5234 if test "$GCC" = yes; then
5235 CFLAGS="-O2"
5236 else
5237 CFLAGS=
5238 fi
5239fi
cristy8b350f62009-11-15 23:12:43 +00005240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005241$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005242if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005243 $as_echo_n "(cached) " >&6
5244else
5245 ac_cv_prog_cc_c89=no
5246ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005248/* end confdefs.h. */
5249#include <stdarg.h>
5250#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005251struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005252/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5253struct buf { int x; };
5254FILE * (*rcsopen) (struct buf *, struct stat *, int);
5255static char *e (p, i)
5256 char **p;
5257 int i;
5258{
5259 return p[i];
5260}
5261static char *f (char * (*g) (char **, int), char **p, ...)
5262{
5263 char *s;
5264 va_list v;
5265 va_start (v,p);
5266 s = g (p, va_arg (v,int));
5267 va_end (v);
5268 return s;
5269}
5270
5271/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5272 function prototypes and stuff, but not '\xHH' hex character constants.
5273 These don't provoke an error unfortunately, instead are silently treated
5274 as 'x'. The following induces an error, until -std is added to get
5275 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5276 array size at least. It's necessary to write '\x00'==0 to get something
5277 that's true only with -std. */
5278int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5279
5280/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5281 inside strings and character constants. */
5282#define FOO(x) 'x'
5283int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5284
5285int test (int i, double x);
5286struct s1 {int (*f) (int a);};
5287struct s2 {int (*f) (double a);};
5288int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5289int argc;
5290char **argv;
5291int
5292main ()
5293{
5294return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5295 ;
5296 return 0;
5297}
5298_ACEOF
5299for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5300 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5301do
5302 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005303 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005304 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005305fi
cristy3ed852e2009-09-05 21:47:34 +00005306rm -f core conftest.err conftest.$ac_objext
5307 test "x$ac_cv_prog_cc_c89" != "xno" && break
5308done
5309rm -f conftest.$ac_ext
5310CC=$ac_save_CC
5311
5312fi
5313# AC_CACHE_VAL
5314case "x$ac_cv_prog_cc_c89" in
5315 x)
cristy8b350f62009-11-15 23:12:43 +00005316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005317$as_echo "none needed" >&6; } ;;
5318 xno)
cristy8b350f62009-11-15 23:12:43 +00005319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005320$as_echo "unsupported" >&6; } ;;
5321 *)
5322 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005324$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5325esac
cristy8b350f62009-11-15 23:12:43 +00005326if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005327
cristy8b350f62009-11-15 23:12:43 +00005328fi
cristy3ed852e2009-09-05 21:47:34 +00005329
5330ac_ext=c
5331ac_cpp='$CPP $CPPFLAGS'
5332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005335
cristya5bda012013-11-03 18:05:38 +00005336ac_ext=c
5337ac_cpp='$CPP $CPPFLAGS'
5338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340ac_compiler_gnu=$ac_cv_c_compiler_gnu
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5342$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5343if ${am_cv_prog_cc_c_o+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345else
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347/* end confdefs.h. */
5348
5349int
5350main ()
5351{
5352
5353 ;
5354 return 0;
5355}
5356_ACEOF
5357 # Make sure it works both with $CC and with simple cc.
5358 # Following AC_PROG_CC_C_O, we do the test twice because some
5359 # compilers refuse to overwrite an existing .o file with -o,
5360 # though they will create one.
5361 am_cv_prog_cc_c_o=yes
5362 for am_i in 1 2; do
5363 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5364 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5365 ac_status=$?
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } \
5368 && test -f conftest2.$ac_objext; then
5369 : OK
5370 else
5371 am_cv_prog_cc_c_o=no
5372 break
5373 fi
5374 done
5375 rm -f core conftest*
5376 unset am_i
5377fi
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5379$as_echo "$am_cv_prog_cc_c_o" >&6; }
5380if test "$am_cv_prog_cc_c_o" != yes; then
5381 # Losing compiler, so override with the script.
5382 # FIXME: It is wrong to rewrite CC.
5383 # But if we don't then we get into trouble of one sort or another.
5384 # A longer-term fix would be to have automake use am__CC in this case,
5385 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5386 CC="$am_aux_dir/compile $CC"
5387fi
5388ac_ext=c
5389ac_cpp='$CPP $CPPFLAGS'
5390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5392ac_compiler_gnu=$ac_cv_c_compiler_gnu
5393
5394
cristy73bd4a52010-10-05 11:24:23 +00005395depcc="$CC" am_compiler_list=
5396
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5398$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005399if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005400 $as_echo_n "(cached) " >&6
5401else
5402 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5403 # We make a subdir and do the tests there. Otherwise we can end up
5404 # making bogus files that we don't know about and never remove. For
5405 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005406 # making a dummy file named 'D' -- because '-MD' means "put the output
5407 # in D".
cristy7247bba2012-02-05 16:37:27 +00005408 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005409 mkdir conftest.dir
5410 # Copy depcomp to subdir because otherwise we won't find it if we're
5411 # using a relative directory.
5412 cp "$am_depcomp" conftest.dir
5413 cd conftest.dir
5414 # We will build objects and dependencies in a subdirectory because
5415 # it helps to detect inapplicable dependency modes. For instance
5416 # both Tru64's cc and ICC support -MD to output dependencies as a
5417 # side effect of compilation, but ICC will put the dependencies in
5418 # the current directory while Tru64 will put them in the object
5419 # directory.
5420 mkdir sub
5421
5422 am_cv_CC_dependencies_compiler_type=none
5423 if test "$am_compiler_list" = ""; then
5424 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5425 fi
5426 am__universal=false
5427 case " $depcc " in #(
5428 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5429 esac
5430
5431 for depmode in $am_compiler_list; do
5432 # Setup a source with many dependencies, because some compilers
5433 # like to wrap large dependency lists on column 80 (with \), and
5434 # we should not choose a depcomp mode which is confused by this.
5435 #
5436 # We need to recreate these files for each test, as the compiler may
5437 # overwrite some of them when testing with obscure command lines.
5438 # This happens at least with the AIX C compiler.
5439 : > sub/conftest.c
5440 for i in 1 2 3 4 5 6; do
5441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005442 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5443 # Solaris 10 /bin/sh.
5444 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005445 done
5446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5447
cristyc0890a62012-07-19 00:18:20 +00005448 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005449 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005450 # handle '-M -o', and we need to detect this. Also, some Intel
5451 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005452 am__obj=sub/conftest.${OBJEXT-o}
5453 am__minus_obj="-o $am__obj"
5454 case $depmode in
5455 gcc)
5456 # This depmode causes a compiler race in universal mode.
5457 test "$am__universal" = false || continue
5458 ;;
5459 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005460 # After this tag, mechanisms are not by side-effect, so they'll
5461 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005462 if test "x$enable_dependency_tracking" = xyes; then
5463 continue
5464 else
5465 break
5466 fi
5467 ;;
cristy7247bba2012-02-05 16:37:27 +00005468 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005469 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005470 # not run yet. These depmodes are late enough in the game, and
5471 # so weak that their functioning should not be impacted.
5472 am__obj=conftest.${OBJEXT-o}
5473 am__minus_obj=
5474 ;;
5475 none) break ;;
5476 esac
5477 if depmode=$depmode \
5478 source=sub/conftest.c object=$am__obj \
5479 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5480 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5481 >/dev/null 2>conftest.err &&
5482 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5483 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5484 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5485 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5486 # icc doesn't choke on unknown options, it will just issue warnings
5487 # or remarks (even with -Werror). So we grep stderr for any message
5488 # that says an option was ignored or not supported.
5489 # When given -MP, icc 7.0 and 7.1 complain thusly:
5490 # icc: Command line warning: ignoring option '-M'; no argument required
5491 # The diagnosis changed in icc 8.0:
5492 # icc: Command line remark: option '-MP' not supported
5493 if (grep 'ignoring option' conftest.err ||
5494 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5495 am_cv_CC_dependencies_compiler_type=$depmode
5496 break
5497 fi
5498 fi
5499 done
5500
5501 cd ..
5502 rm -rf conftest.dir
5503else
5504 am_cv_CC_dependencies_compiler_type=none
5505fi
5506
5507fi
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5509$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5510CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5511
5512 if
5513 test "x$enable_dependency_tracking" != xno \
5514 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5515 am__fastdepCC_TRUE=
5516 am__fastdepCC_FALSE='#'
5517else
5518 am__fastdepCC_TRUE='#'
5519 am__fastdepCC_FALSE=
5520fi
5521
5522
cristy3ed852e2009-09-05 21:47:34 +00005523
cristya0b81c32010-01-22 02:54:33 +00005524ac_ext=c
5525ac_cpp='$CPP $CPPFLAGS'
5526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5528ac_compiler_gnu=$ac_cv_c_compiler_gnu
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5530$as_echo_n "checking how to run the C preprocessor... " >&6; }
5531# On Suns, sometimes $CPP names a directory.
5532if test -n "$CPP" && test -d "$CPP"; then
5533 CPP=
5534fi
5535if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005536 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005537 $as_echo_n "(cached) " >&6
5538else
5539 # Double quotes because CPP needs to be expanded
5540 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5541 do
5542 ac_preproc_ok=false
5543for ac_c_preproc_warn_flag in '' yes
5544do
5545 # Use a header file that comes with gcc, so configuring glibc
5546 # with a fresh cross-compiler works.
5547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5548 # <limits.h> exists even on freestanding compilers.
5549 # On the NeXT, cc -E runs the code through the compiler's parser,
5550 # not just through cpp. "Syntax error" is here to catch this case.
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h. */
5553#ifdef __STDC__
5554# include <limits.h>
5555#else
5556# include <assert.h>
5557#endif
5558 Syntax error
5559_ACEOF
5560if ac_fn_c_try_cpp "$LINENO"; then :
5561
5562else
5563 # Broken: fails on valid input.
5564continue
5565fi
cristyda16f162011-02-19 23:52:17 +00005566rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005567
5568 # OK, works on sane cases. Now check whether nonexistent headers
5569 # can be detected and how.
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571/* end confdefs.h. */
5572#include <ac_nonexistent.h>
5573_ACEOF
5574if ac_fn_c_try_cpp "$LINENO"; then :
5575 # Broken: success on invalid input.
5576continue
5577else
5578 # Passes both tests.
5579ac_preproc_ok=:
5580break
5581fi
cristyda16f162011-02-19 23:52:17 +00005582rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005583
5584done
5585# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005586rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005587if $ac_preproc_ok; then :
5588 break
5589fi
5590
5591 done
5592 ac_cv_prog_CPP=$CPP
5593
5594fi
5595 CPP=$ac_cv_prog_CPP
5596else
5597 ac_cv_prog_CPP=$CPP
5598fi
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5600$as_echo "$CPP" >&6; }
5601ac_preproc_ok=false
5602for ac_c_preproc_warn_flag in '' yes
5603do
5604 # Use a header file that comes with gcc, so configuring glibc
5605 # with a fresh cross-compiler works.
5606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5607 # <limits.h> exists even on freestanding compilers.
5608 # On the NeXT, cc -E runs the code through the compiler's parser,
5609 # not just through cpp. "Syntax error" is here to catch this case.
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611/* end confdefs.h. */
5612#ifdef __STDC__
5613# include <limits.h>
5614#else
5615# include <assert.h>
5616#endif
5617 Syntax error
5618_ACEOF
5619if ac_fn_c_try_cpp "$LINENO"; then :
5620
5621else
5622 # Broken: fails on valid input.
5623continue
5624fi
cristyda16f162011-02-19 23:52:17 +00005625rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005626
5627 # OK, works on sane cases. Now check whether nonexistent headers
5628 # can be detected and how.
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630/* end confdefs.h. */
5631#include <ac_nonexistent.h>
5632_ACEOF
5633if ac_fn_c_try_cpp "$LINENO"; then :
5634 # Broken: success on invalid input.
5635continue
5636else
5637 # Passes both tests.
5638ac_preproc_ok=:
5639break
5640fi
cristyda16f162011-02-19 23:52:17 +00005641rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005642
5643done
5644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005645rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005646if $ac_preproc_ok; then :
5647
5648else
5649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005651as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5652See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005653fi
5654
5655ac_ext=c
5656ac_cpp='$CPP $CPPFLAGS'
5657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5659ac_compiler_gnu=$ac_cv_c_compiler_gnu
5660
5661
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5663$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005664if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005665 $as_echo_n "(cached) " >&6
5666else
5667 if test -z "$GREP"; then
5668 ac_path_GREP_found=false
5669 # Loop through the user's path and test for each of PROGNAME-LIST
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5672do
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_prog in grep ggrep; do
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005678 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005679# Check for GNU ac_path_GREP and select it if it is found.
5680 # Check for GNU $ac_path_GREP
5681case `"$ac_path_GREP" --version 2>&1` in
5682*GNU*)
5683 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5684*)
5685 ac_count=0
5686 $as_echo_n 0123456789 >"conftest.in"
5687 while :
5688 do
5689 cat "conftest.in" "conftest.in" >"conftest.tmp"
5690 mv "conftest.tmp" "conftest.in"
5691 cp "conftest.in" "conftest.nl"
5692 $as_echo 'GREP' >> "conftest.nl"
5693 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5695 as_fn_arith $ac_count + 1 && ac_count=$as_val
5696 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5697 # Best one so far, save it but keep looking for a better one
5698 ac_cv_path_GREP="$ac_path_GREP"
5699 ac_path_GREP_max=$ac_count
5700 fi
5701 # 10*(2^10) chars as input seems more than enough
5702 test $ac_count -gt 10 && break
5703 done
5704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5705esac
5706
5707 $ac_path_GREP_found && break 3
5708 done
5709 done
5710 done
5711IFS=$as_save_IFS
5712 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005713 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005714 fi
5715else
5716 ac_cv_path_GREP=$GREP
5717fi
5718
5719fi
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5721$as_echo "$ac_cv_path_GREP" >&6; }
5722 GREP="$ac_cv_path_GREP"
5723
5724
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5726$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005727if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005728 $as_echo_n "(cached) " >&6
5729else
5730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5731 then ac_cv_path_EGREP="$GREP -E"
5732 else
5733 if test -z "$EGREP"; then
5734 ac_path_EGREP_found=false
5735 # Loop through the user's path and test for each of PROGNAME-LIST
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_prog in egrep; do
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005744 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005745# Check for GNU ac_path_EGREP and select it if it is found.
5746 # Check for GNU $ac_path_EGREP
5747case `"$ac_path_EGREP" --version 2>&1` in
5748*GNU*)
5749 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5750*)
5751 ac_count=0
5752 $as_echo_n 0123456789 >"conftest.in"
5753 while :
5754 do
5755 cat "conftest.in" "conftest.in" >"conftest.tmp"
5756 mv "conftest.tmp" "conftest.in"
5757 cp "conftest.in" "conftest.nl"
5758 $as_echo 'EGREP' >> "conftest.nl"
5759 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5761 as_fn_arith $ac_count + 1 && ac_count=$as_val
5762 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5763 # Best one so far, save it but keep looking for a better one
5764 ac_cv_path_EGREP="$ac_path_EGREP"
5765 ac_path_EGREP_max=$ac_count
5766 fi
5767 # 10*(2^10) chars as input seems more than enough
5768 test $ac_count -gt 10 && break
5769 done
5770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5771esac
5772
5773 $ac_path_EGREP_found && break 3
5774 done
5775 done
5776 done
5777IFS=$as_save_IFS
5778 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005779 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005780 fi
5781else
5782 ac_cv_path_EGREP=$EGREP
5783fi
5784
5785 fi
5786fi
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5788$as_echo "$ac_cv_path_EGREP" >&6; }
5789 EGREP="$ac_cv_path_EGREP"
5790
5791
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5793$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005794if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005795 $as_echo_n "(cached) " >&6
5796else
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798/* end confdefs.h. */
5799#include <stdlib.h>
5800#include <stdarg.h>
5801#include <string.h>
5802#include <float.h>
5803
5804int
5805main ()
5806{
5807
5808 ;
5809 return 0;
5810}
5811_ACEOF
5812if ac_fn_c_try_compile "$LINENO"; then :
5813 ac_cv_header_stdc=yes
5814else
5815 ac_cv_header_stdc=no
5816fi
5817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818
5819if test $ac_cv_header_stdc = yes; then
5820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822/* end confdefs.h. */
5823#include <string.h>
5824
5825_ACEOF
5826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5827 $EGREP "memchr" >/dev/null 2>&1; then :
5828
5829else
5830 ac_cv_header_stdc=no
5831fi
5832rm -f conftest*
5833
5834fi
5835
5836if test $ac_cv_header_stdc = yes; then
5837 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839/* end confdefs.h. */
5840#include <stdlib.h>
5841
5842_ACEOF
5843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5844 $EGREP "free" >/dev/null 2>&1; then :
5845
5846else
5847 ac_cv_header_stdc=no
5848fi
5849rm -f conftest*
5850
5851fi
5852
5853if test $ac_cv_header_stdc = yes; then
5854 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5855 if test "$cross_compiling" = yes; then :
5856 :
5857else
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h. */
5860#include <ctype.h>
5861#include <stdlib.h>
5862#if ((' ' & 0x0FF) == 0x020)
5863# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5864# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5865#else
5866# define ISLOWER(c) \
5867 (('a' <= (c) && (c) <= 'i') \
5868 || ('j' <= (c) && (c) <= 'r') \
5869 || ('s' <= (c) && (c) <= 'z'))
5870# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5871#endif
5872
5873#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5874int
5875main ()
5876{
5877 int i;
5878 for (i = 0; i < 256; i++)
5879 if (XOR (islower (i), ISLOWER (i))
5880 || toupper (i) != TOUPPER (i))
5881 return 2;
5882 return 0;
5883}
5884_ACEOF
5885if ac_fn_c_try_run "$LINENO"; then :
5886
5887else
5888 ac_cv_header_stdc=no
5889fi
5890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5891 conftest.$ac_objext conftest.beam conftest.$ac_ext
5892fi
5893
5894fi
5895fi
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5897$as_echo "$ac_cv_header_stdc" >&6; }
5898if test $ac_cv_header_stdc = yes; then
5899
5900$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5901
5902fi
5903
5904# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5905for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5906 inttypes.h stdint.h unistd.h
5907do :
5908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5909ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5910"
cristy98dddb52010-11-04 00:30:15 +00005911if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005912 cat >>confdefs.h <<_ACEOF
5913#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5914_ACEOF
5915
5916fi
5917
5918done
5919
5920
5921
5922 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 +00005923if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005924 MINIX=yes
5925else
5926 MINIX=
5927fi
5928
5929
5930 if test "$MINIX" = yes; then
5931
5932$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5933
5934
5935$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5936
5937
5938$as_echo "#define _MINIX 1" >>confdefs.h
5939
5940 fi
5941
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5944$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005945if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005946 $as_echo_n "(cached) " >&6
5947else
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949/* end confdefs.h. */
5950
cristy14fefe52012-05-21 00:59:18 +00005951# define __EXTENSIONS__ 1
5952 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005953int
5954main ()
5955{
5956
5957 ;
5958 return 0;
5959}
5960_ACEOF
5961if ac_fn_c_try_compile "$LINENO"; then :
5962 ac_cv_safe_to_define___extensions__=yes
5963else
5964 ac_cv_safe_to_define___extensions__=no
5965fi
5966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967fi
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5969$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5970 test $ac_cv_safe_to_define___extensions__ = yes &&
5971 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5972
5973 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5974
5975 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5976
5977 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5978
5979 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5980
5981
5982
5983# Check for programs
5984ac_ext=c
5985ac_cpp='$CPP $CPPFLAGS'
5986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988ac_compiler_gnu=$ac_cv_c_compiler_gnu
5989if test -n "$ac_tool_prefix"; then
5990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5991set dummy ${ac_tool_prefix}gcc; ac_word=$2
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005994if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005995 $as_echo_n "(cached) " >&6
5996else
5997 if test -n "$CC"; then
5998 ac_cv_prog_CC="$CC" # Let the user override the test.
5999else
6000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001for as_dir in $PATH
6002do
6003 IFS=$as_save_IFS
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 break 2
6010 fi
6011done
6012 done
6013IFS=$as_save_IFS
6014
6015fi
6016fi
6017CC=$ac_cv_prog_CC
6018if test -n "$CC"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6020$as_echo "$CC" >&6; }
6021else
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023$as_echo "no" >&6; }
6024fi
6025
6026
6027fi
6028if test -z "$ac_cv_prog_CC"; then
6029 ac_ct_CC=$CC
6030 # Extract the first word of "gcc", so it can be a program name with args.
6031set dummy gcc; ac_word=$2
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006034if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006035 $as_echo_n "(cached) " >&6
6036else
6037 if test -n "$ac_ct_CC"; then
6038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6039else
6040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041for as_dir in $PATH
6042do
6043 IFS=$as_save_IFS
6044 test -z "$as_dir" && as_dir=.
6045 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006047 ac_cv_prog_ac_ct_CC="gcc"
6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 break 2
6050 fi
6051done
6052 done
6053IFS=$as_save_IFS
6054
6055fi
6056fi
6057ac_ct_CC=$ac_cv_prog_ac_ct_CC
6058if test -n "$ac_ct_CC"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6060$as_echo "$ac_ct_CC" >&6; }
6061else
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063$as_echo "no" >&6; }
6064fi
6065
6066 if test "x$ac_ct_CC" = x; then
6067 CC=""
6068 else
6069 case $cross_compiling:$ac_tool_warned in
6070yes:)
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073ac_tool_warned=yes ;;
6074esac
6075 CC=$ac_ct_CC
6076 fi
6077else
6078 CC="$ac_cv_prog_CC"
6079fi
6080
6081if test -z "$CC"; then
6082 if test -n "$ac_tool_prefix"; then
6083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6084set dummy ${ac_tool_prefix}cc; ac_word=$2
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006087if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006088 $as_echo_n "(cached) " >&6
6089else
6090 if test -n "$CC"; then
6091 ac_cv_prog_CC="$CC" # Let the user override the test.
6092else
6093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094for as_dir in $PATH
6095do
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006100 ac_cv_prog_CC="${ac_tool_prefix}cc"
6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 break 2
6103 fi
6104done
6105 done
6106IFS=$as_save_IFS
6107
6108fi
6109fi
6110CC=$ac_cv_prog_CC
6111if test -n "$CC"; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6113$as_echo "$CC" >&6; }
6114else
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116$as_echo "no" >&6; }
6117fi
6118
6119
6120 fi
6121fi
6122if test -z "$CC"; then
6123 # Extract the first word of "cc", so it can be a program name with args.
6124set dummy cc; ac_word=$2
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006127if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006128 $as_echo_n "(cached) " >&6
6129else
6130 if test -n "$CC"; then
6131 ac_cv_prog_CC="$CC" # Let the user override the test.
6132else
6133 ac_prog_rejected=no
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6142 ac_prog_rejected=yes
6143 continue
6144 fi
6145 ac_cv_prog_CC="cc"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149done
6150 done
6151IFS=$as_save_IFS
6152
6153if test $ac_prog_rejected = yes; then
6154 # We found a bogon in the path, so make sure we never use it.
6155 set dummy $ac_cv_prog_CC
6156 shift
6157 if test $# != 0; then
6158 # We chose a different compiler from the bogus one.
6159 # However, it has the same basename, so the bogon will be chosen
6160 # first if we set CC to just the basename; use the full file name.
6161 shift
6162 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6163 fi
6164fi
6165fi
6166fi
6167CC=$ac_cv_prog_CC
6168if test -n "$CC"; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6170$as_echo "$CC" >&6; }
6171else
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173$as_echo "no" >&6; }
6174fi
6175
6176
6177fi
6178if test -z "$CC"; then
6179 if test -n "$ac_tool_prefix"; then
6180 for ac_prog in cl.exe
6181 do
6182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006186if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006187 $as_echo_n "(cached) " >&6
6188else
6189 if test -n "$CC"; then
6190 ac_cv_prog_CC="$CC" # Let the user override the test.
6191else
6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in $PATH
6194do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203done
6204 done
6205IFS=$as_save_IFS
6206
6207fi
6208fi
6209CC=$ac_cv_prog_CC
6210if test -n "$CC"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6212$as_echo "$CC" >&6; }
6213else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215$as_echo "no" >&6; }
6216fi
6217
6218
6219 test -n "$CC" && break
6220 done
6221fi
6222if test -z "$CC"; then
6223 ac_ct_CC=$CC
6224 for ac_prog in cl.exe
6225do
6226 # Extract the first word of "$ac_prog", so it can be a program name with args.
6227set dummy $ac_prog; ac_word=$2
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006230if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006231 $as_echo_n "(cached) " >&6
6232else
6233 if test -n "$ac_ct_CC"; then
6234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6235else
6236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237for as_dir in $PATH
6238do
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006243 ac_cv_prog_ac_ct_CC="$ac_prog"
6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 break 2
6246 fi
6247done
6248 done
6249IFS=$as_save_IFS
6250
6251fi
6252fi
6253ac_ct_CC=$ac_cv_prog_ac_ct_CC
6254if test -n "$ac_ct_CC"; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6256$as_echo "$ac_ct_CC" >&6; }
6257else
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259$as_echo "no" >&6; }
6260fi
6261
6262
6263 test -n "$ac_ct_CC" && break
6264done
6265
6266 if test "x$ac_ct_CC" = x; then
6267 CC=""
6268 else
6269 case $cross_compiling:$ac_tool_warned in
6270yes:)
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273ac_tool_warned=yes ;;
6274esac
6275 CC=$ac_ct_CC
6276 fi
6277fi
6278
6279fi
6280
6281
6282test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006284as_fn_error $? "no acceptable C compiler found in \$PATH
6285See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006286
6287# Provide some information about the compiler.
6288$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6289set X $ac_compile
6290ac_compiler=$2
6291for ac_option in --version -v -V -qversion; do
6292 { { ac_try="$ac_compiler $ac_option >&5"
6293case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296esac
6297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6298$as_echo "$ac_try_echo"; } >&5
6299 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6300 ac_status=$?
6301 if test -s conftest.err; then
6302 sed '10a\
6303... rest of stderr output deleted ...
6304 10q' conftest.err >conftest.er1
6305 cat conftest.er1 >&5
6306 fi
6307 rm -f conftest.er1 conftest.err
6308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309 test $ac_status = 0; }
6310done
6311
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6313$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006314if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006315 $as_echo_n "(cached) " >&6
6316else
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318/* end confdefs.h. */
6319
6320int
6321main ()
6322{
6323#ifndef __GNUC__
6324 choke me
6325#endif
6326
6327 ;
6328 return 0;
6329}
6330_ACEOF
6331if ac_fn_c_try_compile "$LINENO"; then :
6332 ac_compiler_gnu=yes
6333else
6334 ac_compiler_gnu=no
6335fi
6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337ac_cv_c_compiler_gnu=$ac_compiler_gnu
6338
6339fi
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6341$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6342if test $ac_compiler_gnu = yes; then
6343 GCC=yes
6344else
6345 GCC=
6346fi
6347ac_test_CFLAGS=${CFLAGS+set}
6348ac_save_CFLAGS=$CFLAGS
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6350$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006351if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006352 $as_echo_n "(cached) " >&6
6353else
6354 ac_save_c_werror_flag=$ac_c_werror_flag
6355 ac_c_werror_flag=yes
6356 ac_cv_prog_cc_g=no
6357 CFLAGS="-g"
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359/* end confdefs.h. */
6360
6361int
6362main ()
6363{
6364
6365 ;
6366 return 0;
6367}
6368_ACEOF
6369if ac_fn_c_try_compile "$LINENO"; then :
6370 ac_cv_prog_cc_g=yes
6371else
6372 CFLAGS=""
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374/* end confdefs.h. */
6375
6376int
6377main ()
6378{
6379
6380 ;
6381 return 0;
6382}
6383_ACEOF
6384if ac_fn_c_try_compile "$LINENO"; then :
6385
6386else
6387 ac_c_werror_flag=$ac_save_c_werror_flag
6388 CFLAGS="-g"
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390/* end confdefs.h. */
6391
6392int
6393main ()
6394{
6395
6396 ;
6397 return 0;
6398}
6399_ACEOF
6400if ac_fn_c_try_compile "$LINENO"; then :
6401 ac_cv_prog_cc_g=yes
6402fi
6403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404fi
6405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406fi
6407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408 ac_c_werror_flag=$ac_save_c_werror_flag
6409fi
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6411$as_echo "$ac_cv_prog_cc_g" >&6; }
6412if test "$ac_test_CFLAGS" = set; then
6413 CFLAGS=$ac_save_CFLAGS
6414elif test $ac_cv_prog_cc_g = yes; then
6415 if test "$GCC" = yes; then
6416 CFLAGS="-g -O2"
6417 else
6418 CFLAGS="-g"
6419 fi
6420else
6421 if test "$GCC" = yes; then
6422 CFLAGS="-O2"
6423 else
6424 CFLAGS=
6425 fi
6426fi
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6428$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006429if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006430 $as_echo_n "(cached) " >&6
6431else
6432 ac_cv_prog_cc_c89=no
6433ac_save_CC=$CC
6434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435/* end confdefs.h. */
6436#include <stdarg.h>
6437#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006438struct stat;
cristya0b81c32010-01-22 02:54:33 +00006439/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6440struct buf { int x; };
6441FILE * (*rcsopen) (struct buf *, struct stat *, int);
6442static char *e (p, i)
6443 char **p;
6444 int i;
6445{
6446 return p[i];
6447}
6448static char *f (char * (*g) (char **, int), char **p, ...)
6449{
6450 char *s;
6451 va_list v;
6452 va_start (v,p);
6453 s = g (p, va_arg (v,int));
6454 va_end (v);
6455 return s;
6456}
6457
6458/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6459 function prototypes and stuff, but not '\xHH' hex character constants.
6460 These don't provoke an error unfortunately, instead are silently treated
6461 as 'x'. The following induces an error, until -std is added to get
6462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6463 array size at least. It's necessary to write '\x00'==0 to get something
6464 that's true only with -std. */
6465int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6466
6467/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6468 inside strings and character constants. */
6469#define FOO(x) 'x'
6470int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6471
6472int test (int i, double x);
6473struct s1 {int (*f) (int a);};
6474struct s2 {int (*f) (double a);};
6475int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6476int argc;
6477char **argv;
6478int
6479main ()
6480{
6481return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6482 ;
6483 return 0;
6484}
6485_ACEOF
6486for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6487 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6488do
6489 CC="$ac_save_CC $ac_arg"
6490 if ac_fn_c_try_compile "$LINENO"; then :
6491 ac_cv_prog_cc_c89=$ac_arg
6492fi
6493rm -f core conftest.err conftest.$ac_objext
6494 test "x$ac_cv_prog_cc_c89" != "xno" && break
6495done
6496rm -f conftest.$ac_ext
6497CC=$ac_save_CC
6498
6499fi
6500# AC_CACHE_VAL
6501case "x$ac_cv_prog_cc_c89" in
6502 x)
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6504$as_echo "none needed" >&6; } ;;
6505 xno)
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6507$as_echo "unsupported" >&6; } ;;
6508 *)
6509 CC="$CC $ac_cv_prog_cc_c89"
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6511$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6512esac
6513if test "x$ac_cv_prog_cc_c89" != xno; then :
6514
6515fi
6516
6517ac_ext=c
6518ac_cpp='$CPP $CPPFLAGS'
6519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6521ac_compiler_gnu=$ac_cv_c_compiler_gnu
6522
cristya5bda012013-11-03 18:05:38 +00006523ac_ext=c
6524ac_cpp='$CPP $CPPFLAGS'
6525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6527ac_compiler_gnu=$ac_cv_c_compiler_gnu
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6529$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6530if ${am_cv_prog_cc_c_o+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532else
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534/* end confdefs.h. */
6535
6536int
6537main ()
6538{
6539
6540 ;
6541 return 0;
6542}
6543_ACEOF
6544 # Make sure it works both with $CC and with simple cc.
6545 # Following AC_PROG_CC_C_O, we do the test twice because some
6546 # compilers refuse to overwrite an existing .o file with -o,
6547 # though they will create one.
6548 am_cv_prog_cc_c_o=yes
6549 for am_i in 1 2; do
6550 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6551 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } \
6555 && test -f conftest2.$ac_objext; then
6556 : OK
6557 else
6558 am_cv_prog_cc_c_o=no
6559 break
6560 fi
6561 done
6562 rm -f core conftest*
6563 unset am_i
6564fi
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6566$as_echo "$am_cv_prog_cc_c_o" >&6; }
6567if test "$am_cv_prog_cc_c_o" != yes; then
6568 # Losing compiler, so override with the script.
6569 # FIXME: It is wrong to rewrite CC.
6570 # But if we don't then we get into trouble of one sort or another.
6571 # A longer-term fix would be to have automake use am__CC in this case,
6572 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6573 CC="$am_aux_dir/compile $CC"
6574fi
6575ac_ext=c
6576ac_cpp='$CPP $CPPFLAGS'
6577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6579ac_compiler_gnu=$ac_cv_c_compiler_gnu
6580
6581
cristy73bd4a52010-10-05 11:24:23 +00006582depcc="$CC" am_compiler_list=
6583
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6585$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006586if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006587 $as_echo_n "(cached) " >&6
6588else
6589 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6590 # We make a subdir and do the tests there. Otherwise we can end up
6591 # making bogus files that we don't know about and never remove. For
6592 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006593 # making a dummy file named 'D' -- because '-MD' means "put the output
6594 # in D".
cristy7247bba2012-02-05 16:37:27 +00006595 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006596 mkdir conftest.dir
6597 # Copy depcomp to subdir because otherwise we won't find it if we're
6598 # using a relative directory.
6599 cp "$am_depcomp" conftest.dir
6600 cd conftest.dir
6601 # We will build objects and dependencies in a subdirectory because
6602 # it helps to detect inapplicable dependency modes. For instance
6603 # both Tru64's cc and ICC support -MD to output dependencies as a
6604 # side effect of compilation, but ICC will put the dependencies in
6605 # the current directory while Tru64 will put them in the object
6606 # directory.
6607 mkdir sub
6608
6609 am_cv_CC_dependencies_compiler_type=none
6610 if test "$am_compiler_list" = ""; then
6611 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6612 fi
6613 am__universal=false
6614 case " $depcc " in #(
6615 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6616 esac
6617
6618 for depmode in $am_compiler_list; do
6619 # Setup a source with many dependencies, because some compilers
6620 # like to wrap large dependency lists on column 80 (with \), and
6621 # we should not choose a depcomp mode which is confused by this.
6622 #
6623 # We need to recreate these files for each test, as the compiler may
6624 # overwrite some of them when testing with obscure command lines.
6625 # This happens at least with the AIX C compiler.
6626 : > sub/conftest.c
6627 for i in 1 2 3 4 5 6; do
6628 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006629 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6630 # Solaris 10 /bin/sh.
6631 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006632 done
6633 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6634
cristyc0890a62012-07-19 00:18:20 +00006635 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006636 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006637 # handle '-M -o', and we need to detect this. Also, some Intel
6638 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006639 am__obj=sub/conftest.${OBJEXT-o}
6640 am__minus_obj="-o $am__obj"
6641 case $depmode in
6642 gcc)
6643 # This depmode causes a compiler race in universal mode.
6644 test "$am__universal" = false || continue
6645 ;;
6646 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006647 # After this tag, mechanisms are not by side-effect, so they'll
6648 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006649 if test "x$enable_dependency_tracking" = xyes; then
6650 continue
6651 else
6652 break
6653 fi
6654 ;;
cristy7247bba2012-02-05 16:37:27 +00006655 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006656 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006657 # not run yet. These depmodes are late enough in the game, and
6658 # so weak that their functioning should not be impacted.
6659 am__obj=conftest.${OBJEXT-o}
6660 am__minus_obj=
6661 ;;
6662 none) break ;;
6663 esac
6664 if depmode=$depmode \
6665 source=sub/conftest.c object=$am__obj \
6666 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6667 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6668 >/dev/null 2>conftest.err &&
6669 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6670 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6671 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6672 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6673 # icc doesn't choke on unknown options, it will just issue warnings
6674 # or remarks (even with -Werror). So we grep stderr for any message
6675 # that says an option was ignored or not supported.
6676 # When given -MP, icc 7.0 and 7.1 complain thusly:
6677 # icc: Command line warning: ignoring option '-M'; no argument required
6678 # The diagnosis changed in icc 8.0:
6679 # icc: Command line remark: option '-MP' not supported
6680 if (grep 'ignoring option' conftest.err ||
6681 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6682 am_cv_CC_dependencies_compiler_type=$depmode
6683 break
6684 fi
6685 fi
6686 done
6687
6688 cd ..
6689 rm -rf conftest.dir
6690else
6691 am_cv_CC_dependencies_compiler_type=none
6692fi
6693
6694fi
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6696$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6697CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6698
6699 if
6700 test "x$enable_dependency_tracking" != xno \
6701 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6702 am__fastdepCC_TRUE=
6703 am__fastdepCC_FALSE='#'
6704else
6705 am__fastdepCC_TRUE='#'
6706 am__fastdepCC_FALSE=
6707fi
6708
6709
cristy95646052009-11-28 23:05:30 +00006710ac_ext=cpp
6711ac_cpp='$CXXCPP $CPPFLAGS'
6712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6715if test -z "$CXX"; then
6716 if test -n "$CCC"; then
6717 CXX=$CCC
6718 else
6719 if test -n "$ac_tool_prefix"; then
6720 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6721 do
6722 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6723set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006726if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006727 $as_echo_n "(cached) " >&6
6728else
6729 if test -n "$CXX"; then
6730 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006739 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743done
6744 done
6745IFS=$as_save_IFS
6746
6747fi
6748fi
6749CXX=$ac_cv_prog_CXX
6750if test -n "$CXX"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6752$as_echo "$CXX" >&6; }
6753else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755$as_echo "no" >&6; }
6756fi
6757
6758
6759 test -n "$CXX" && break
6760 done
6761fi
6762if test -z "$CXX"; then
6763 ac_ct_CXX=$CXX
6764 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6765do
6766 # Extract the first word of "$ac_prog", so it can be a program name with args.
6767set dummy $ac_prog; ac_word=$2
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006770if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006771 $as_echo_n "(cached) " >&6
6772else
6773 if test -n "$ac_ct_CXX"; then
6774 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6775else
6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006783 ac_cv_prog_ac_ct_CXX="$ac_prog"
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787done
6788 done
6789IFS=$as_save_IFS
6790
6791fi
6792fi
6793ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6794if test -n "$ac_ct_CXX"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6796$as_echo "$ac_ct_CXX" >&6; }
6797else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799$as_echo "no" >&6; }
6800fi
6801
6802
6803 test -n "$ac_ct_CXX" && break
6804done
6805
6806 if test "x$ac_ct_CXX" = x; then
6807 CXX="g++"
6808 else
6809 case $cross_compiling:$ac_tool_warned in
6810yes:)
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813ac_tool_warned=yes ;;
6814esac
6815 CXX=$ac_ct_CXX
6816 fi
6817fi
6818
6819 fi
6820fi
6821# Provide some information about the compiler.
6822$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6823set X $ac_compile
6824ac_compiler=$2
6825for ac_option in --version -v -V -qversion; do
6826 { { ac_try="$ac_compiler $ac_option >&5"
6827case "(($ac_try" in
6828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829 *) ac_try_echo=$ac_try;;
6830esac
6831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6832$as_echo "$ac_try_echo"; } >&5
6833 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6834 ac_status=$?
6835 if test -s conftest.err; then
6836 sed '10a\
6837... rest of stderr output deleted ...
6838 10q' conftest.err >conftest.er1
6839 cat conftest.er1 >&5
6840 fi
6841 rm -f conftest.er1 conftest.err
6842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843 test $ac_status = 0; }
6844done
6845
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6847$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006848if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006849 $as_echo_n "(cached) " >&6
6850else
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852/* end confdefs.h. */
6853
6854int
6855main ()
6856{
6857#ifndef __GNUC__
6858 choke me
6859#endif
6860
6861 ;
6862 return 0;
6863}
6864_ACEOF
6865if ac_fn_cxx_try_compile "$LINENO"; then :
6866 ac_compiler_gnu=yes
6867else
6868 ac_compiler_gnu=no
6869fi
6870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6872
6873fi
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6875$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6876if test $ac_compiler_gnu = yes; then
6877 GXX=yes
6878else
6879 GXX=
6880fi
6881ac_test_CXXFLAGS=${CXXFLAGS+set}
6882ac_save_CXXFLAGS=$CXXFLAGS
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6884$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006885if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006886 $as_echo_n "(cached) " >&6
6887else
6888 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6889 ac_cxx_werror_flag=yes
6890 ac_cv_prog_cxx_g=no
6891 CXXFLAGS="-g"
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893/* end confdefs.h. */
6894
6895int
6896main ()
6897{
6898
6899 ;
6900 return 0;
6901}
6902_ACEOF
6903if ac_fn_cxx_try_compile "$LINENO"; then :
6904 ac_cv_prog_cxx_g=yes
6905else
6906 CXXFLAGS=""
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908/* end confdefs.h. */
6909
6910int
6911main ()
6912{
6913
6914 ;
6915 return 0;
6916}
6917_ACEOF
6918if ac_fn_cxx_try_compile "$LINENO"; then :
6919
6920else
6921 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6922 CXXFLAGS="-g"
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924/* end confdefs.h. */
6925
6926int
6927main ()
6928{
6929
6930 ;
6931 return 0;
6932}
6933_ACEOF
6934if ac_fn_cxx_try_compile "$LINENO"; then :
6935 ac_cv_prog_cxx_g=yes
6936fi
6937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938fi
6939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940fi
6941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6943fi
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6945$as_echo "$ac_cv_prog_cxx_g" >&6; }
6946if test "$ac_test_CXXFLAGS" = set; then
6947 CXXFLAGS=$ac_save_CXXFLAGS
6948elif test $ac_cv_prog_cxx_g = yes; then
6949 if test "$GXX" = yes; then
6950 CXXFLAGS="-g -O2"
6951 else
6952 CXXFLAGS="-g"
6953 fi
6954else
6955 if test "$GXX" = yes; then
6956 CXXFLAGS="-O2"
6957 else
6958 CXXFLAGS=
6959 fi
6960fi
6961ac_ext=c
6962ac_cpp='$CPP $CPPFLAGS'
6963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965ac_compiler_gnu=$ac_cv_c_compiler_gnu
6966
cristy73bd4a52010-10-05 11:24:23 +00006967depcc="$CXX" am_compiler_list=
6968
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6970$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006971if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006972 $as_echo_n "(cached) " >&6
6973else
6974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6975 # We make a subdir and do the tests there. Otherwise we can end up
6976 # making bogus files that we don't know about and never remove. For
6977 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006978 # making a dummy file named 'D' -- because '-MD' means "put the output
6979 # in D".
cristy7247bba2012-02-05 16:37:27 +00006980 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006981 mkdir conftest.dir
6982 # Copy depcomp to subdir because otherwise we won't find it if we're
6983 # using a relative directory.
6984 cp "$am_depcomp" conftest.dir
6985 cd conftest.dir
6986 # We will build objects and dependencies in a subdirectory because
6987 # it helps to detect inapplicable dependency modes. For instance
6988 # both Tru64's cc and ICC support -MD to output dependencies as a
6989 # side effect of compilation, but ICC will put the dependencies in
6990 # the current directory while Tru64 will put them in the object
6991 # directory.
6992 mkdir sub
6993
6994 am_cv_CXX_dependencies_compiler_type=none
6995 if test "$am_compiler_list" = ""; then
6996 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6997 fi
6998 am__universal=false
6999 case " $depcc " in #(
7000 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7001 esac
7002
7003 for depmode in $am_compiler_list; do
7004 # Setup a source with many dependencies, because some compilers
7005 # like to wrap large dependency lists on column 80 (with \), and
7006 # we should not choose a depcomp mode which is confused by this.
7007 #
7008 # We need to recreate these files for each test, as the compiler may
7009 # overwrite some of them when testing with obscure command lines.
7010 # This happens at least with the AIX C compiler.
7011 : > sub/conftest.c
7012 for i in 1 2 3 4 5 6; do
7013 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007014 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7015 # Solaris 10 /bin/sh.
7016 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007017 done
7018 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7019
cristyc0890a62012-07-19 00:18:20 +00007020 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007021 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007022 # handle '-M -o', and we need to detect this. Also, some Intel
7023 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007024 am__obj=sub/conftest.${OBJEXT-o}
7025 am__minus_obj="-o $am__obj"
7026 case $depmode in
7027 gcc)
7028 # This depmode causes a compiler race in universal mode.
7029 test "$am__universal" = false || continue
7030 ;;
7031 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007032 # After this tag, mechanisms are not by side-effect, so they'll
7033 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007034 if test "x$enable_dependency_tracking" = xyes; then
7035 continue
7036 else
7037 break
7038 fi
7039 ;;
cristy7247bba2012-02-05 16:37:27 +00007040 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007041 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007042 # not run yet. These depmodes are late enough in the game, and
7043 # so weak that their functioning should not be impacted.
7044 am__obj=conftest.${OBJEXT-o}
7045 am__minus_obj=
7046 ;;
7047 none) break ;;
7048 esac
7049 if depmode=$depmode \
7050 source=sub/conftest.c object=$am__obj \
7051 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7052 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7053 >/dev/null 2>conftest.err &&
7054 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7055 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7056 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7057 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7058 # icc doesn't choke on unknown options, it will just issue warnings
7059 # or remarks (even with -Werror). So we grep stderr for any message
7060 # that says an option was ignored or not supported.
7061 # When given -MP, icc 7.0 and 7.1 complain thusly:
7062 # icc: Command line warning: ignoring option '-M'; no argument required
7063 # The diagnosis changed in icc 8.0:
7064 # icc: Command line remark: option '-MP' not supported
7065 if (grep 'ignoring option' conftest.err ||
7066 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7067 am_cv_CXX_dependencies_compiler_type=$depmode
7068 break
7069 fi
7070 fi
7071 done
7072
7073 cd ..
7074 rm -rf conftest.dir
7075else
7076 am_cv_CXX_dependencies_compiler_type=none
7077fi
7078
7079fi
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7081$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7082CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7083
7084 if
7085 test "x$enable_dependency_tracking" != xno \
7086 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7087 am__fastdepCXX_TRUE=
7088 am__fastdepCXX_FALSE='#'
7089else
7090 am__fastdepCXX_TRUE='#'
7091 am__fastdepCXX_FALSE=
7092fi
7093
7094
cristy8b350f62009-11-15 23:12:43 +00007095 case $ac_cv_prog_cc_stdc in #(
7096 no) :
7097 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7098 *) :
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007100$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007101if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007102 $as_echo_n "(cached) " >&6
7103else
7104 ac_cv_prog_cc_c99=no
7105ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007107/* end confdefs.h. */
7108#include <stdarg.h>
7109#include <stdbool.h>
7110#include <stdlib.h>
7111#include <wchar.h>
7112#include <stdio.h>
7113
7114// Check varargs macros. These examples are taken from C99 6.10.3.5.
7115#define debug(...) fprintf (stderr, __VA_ARGS__)
7116#define showlist(...) puts (#__VA_ARGS__)
7117#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7118static void
7119test_varargs_macros (void)
7120{
7121 int x = 1234;
7122 int y = 5678;
7123 debug ("Flag");
7124 debug ("X = %d\n", x);
7125 showlist (The first, second, and third items.);
7126 report (x>y, "x is %d but y is %d", x, y);
7127}
7128
7129// Check long long types.
7130#define BIG64 18446744073709551615ull
7131#define BIG32 4294967295ul
7132#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7133#if !BIG_OK
7134 your preprocessor is broken;
7135#endif
7136#if BIG_OK
7137#else
7138 your preprocessor is broken;
7139#endif
7140static long long int bignum = -9223372036854775807LL;
7141static unsigned long long int ubignum = BIG64;
7142
7143struct incomplete_array
7144{
7145 int datasize;
7146 double data[];
7147};
7148
7149struct named_init {
7150 int number;
7151 const wchar_t *name;
7152 double average;
7153};
7154
7155typedef const char *ccp;
7156
7157static inline int
7158test_restrict (ccp restrict text)
7159{
7160 // See if C++-style comments work.
7161 // Iterate through items via the restricted pointer.
7162 // Also check for declarations in for loops.
7163 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7164 continue;
7165 return 0;
7166}
7167
7168// Check varargs and va_copy.
7169static void
7170test_varargs (const char *format, ...)
7171{
7172 va_list args;
7173 va_start (args, format);
7174 va_list args_copy;
7175 va_copy (args_copy, args);
7176
7177 const char *str;
7178 int number;
7179 float fnumber;
7180
7181 while (*format)
7182 {
7183 switch (*format++)
7184 {
7185 case 's': // string
7186 str = va_arg (args_copy, const char *);
7187 break;
7188 case 'd': // int
7189 number = va_arg (args_copy, int);
7190 break;
7191 case 'f': // float
7192 fnumber = va_arg (args_copy, double);
7193 break;
7194 default:
7195 break;
7196 }
7197 }
7198 va_end (args_copy);
7199 va_end (args);
7200}
7201
7202int
7203main ()
7204{
7205
7206 // Check bool.
7207 _Bool success = false;
7208
7209 // Check restrict.
7210 if (test_restrict ("String literal") == 0)
7211 success = true;
7212 char *restrict newvar = "Another string";
7213
7214 // Check varargs.
7215 test_varargs ("s, d' f .", "string", 65, 34.234);
7216 test_varargs_macros ();
7217
7218 // Check flexible array members.
7219 struct incomplete_array *ia =
7220 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7221 ia->datasize = 10;
7222 for (int i = 0; i < ia->datasize; ++i)
7223 ia->data[i] = i * 1.234;
7224
7225 // Check named initializers.
7226 struct named_init ni = {
7227 .number = 34,
7228 .name = L"Test wide string",
7229 .average = 543.34343,
7230 };
7231
7232 ni.number = 58;
7233
7234 int dynamic_array[ni.number];
7235 dynamic_array[ni.number - 1] = 543;
7236
7237 // work around unused variable warnings
7238 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7239 || dynamic_array[ni.number - 1] != 543);
7240
7241 ;
7242 return 0;
7243}
7244_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007245for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007246do
7247 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007248 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007249 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007250fi
cristy3ed852e2009-09-05 21:47:34 +00007251rm -f core conftest.err conftest.$ac_objext
7252 test "x$ac_cv_prog_cc_c99" != "xno" && break
7253done
7254rm -f conftest.$ac_ext
7255CC=$ac_save_CC
7256
7257fi
7258# AC_CACHE_VAL
7259case "x$ac_cv_prog_cc_c99" in
7260 x)
cristy8b350f62009-11-15 23:12:43 +00007261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007262$as_echo "none needed" >&6; } ;;
7263 xno)
cristy8b350f62009-11-15 23:12:43 +00007264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007265$as_echo "unsupported" >&6; } ;;
7266 *)
7267 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007269$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7270esac
cristy8b350f62009-11-15 23:12:43 +00007271if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007272 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7273else
cristy8b350f62009-11-15 23:12:43 +00007274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007275$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007276if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007277 $as_echo_n "(cached) " >&6
7278else
7279 ac_cv_prog_cc_c89=no
7280ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007282/* end confdefs.h. */
7283#include <stdarg.h>
7284#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007285struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007286/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7287struct buf { int x; };
7288FILE * (*rcsopen) (struct buf *, struct stat *, int);
7289static char *e (p, i)
7290 char **p;
7291 int i;
7292{
7293 return p[i];
7294}
7295static char *f (char * (*g) (char **, int), char **p, ...)
7296{
7297 char *s;
7298 va_list v;
7299 va_start (v,p);
7300 s = g (p, va_arg (v,int));
7301 va_end (v);
7302 return s;
7303}
7304
7305/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7306 function prototypes and stuff, but not '\xHH' hex character constants.
7307 These don't provoke an error unfortunately, instead are silently treated
7308 as 'x'. The following induces an error, until -std is added to get
7309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7310 array size at least. It's necessary to write '\x00'==0 to get something
7311 that's true only with -std. */
7312int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7313
7314/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7315 inside strings and character constants. */
7316#define FOO(x) 'x'
7317int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7318
7319int test (int i, double x);
7320struct s1 {int (*f) (int a);};
7321struct s2 {int (*f) (double a);};
7322int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7323int argc;
7324char **argv;
7325int
7326main ()
7327{
7328return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7329 ;
7330 return 0;
7331}
7332_ACEOF
7333for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7334 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7335do
7336 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007337 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007338 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007339fi
cristy3ed852e2009-09-05 21:47:34 +00007340rm -f core conftest.err conftest.$ac_objext
7341 test "x$ac_cv_prog_cc_c89" != "xno" && break
7342done
7343rm -f conftest.$ac_ext
7344CC=$ac_save_CC
7345
7346fi
7347# AC_CACHE_VAL
7348case "x$ac_cv_prog_cc_c89" in
7349 x)
cristy8b350f62009-11-15 23:12:43 +00007350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007351$as_echo "none needed" >&6; } ;;
7352 xno)
cristy8b350f62009-11-15 23:12:43 +00007353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007354$as_echo "unsupported" >&6; } ;;
7355 *)
7356 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007358$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7359esac
cristy8b350f62009-11-15 23:12:43 +00007360if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007361 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7362else
7363 ac_cv_prog_cc_stdc=no
7364fi
7365
cristy3ed852e2009-09-05 21:47:34 +00007366fi
cristy3ed852e2009-09-05 21:47:34 +00007367 ;;
7368esac
cristy8b350f62009-11-15 23:12:43 +00007369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007370$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007371 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007372 $as_echo_n "(cached) " >&6
7373fi
7374
cristy8b350f62009-11-15 23:12:43 +00007375 case $ac_cv_prog_cc_stdc in #(
7376 no) :
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7378$as_echo "unsupported" >&6; } ;; #(
7379 '') :
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7381$as_echo "none needed" >&6; } ;; #(
7382 *) :
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007384$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7385esac
7386
cristy3ed852e2009-09-05 21:47:34 +00007387ac_ext=c
7388ac_cpp='$CPP $CPPFLAGS'
7389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007393$as_echo_n "checking how to run the C preprocessor... " >&6; }
7394# On Suns, sometimes $CPP names a directory.
7395if test -n "$CPP" && test -d "$CPP"; then
7396 CPP=
7397fi
7398if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007399 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007400 $as_echo_n "(cached) " >&6
7401else
7402 # Double quotes because CPP needs to be expanded
7403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7404 do
7405 ac_preproc_ok=false
7406for ac_c_preproc_warn_flag in '' yes
7407do
7408 # Use a header file that comes with gcc, so configuring glibc
7409 # with a fresh cross-compiler works.
7410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7411 # <limits.h> exists even on freestanding compilers.
7412 # On the NeXT, cc -E runs the code through the compiler's parser,
7413 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007415/* end confdefs.h. */
7416#ifdef __STDC__
7417# include <limits.h>
7418#else
7419# include <assert.h>
7420#endif
7421 Syntax error
7422_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007423if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007424
cristy8b350f62009-11-15 23:12:43 +00007425else
cristy3ed852e2009-09-05 21:47:34 +00007426 # Broken: fails on valid input.
7427continue
7428fi
cristyda16f162011-02-19 23:52:17 +00007429rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007430
7431 # OK, works on sane cases. Now check whether nonexistent headers
7432 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007434/* end confdefs.h. */
7435#include <ac_nonexistent.h>
7436_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007437if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007438 # Broken: success on invalid input.
7439continue
7440else
cristy3ed852e2009-09-05 21:47:34 +00007441 # Passes both tests.
7442ac_preproc_ok=:
7443break
7444fi
cristyda16f162011-02-19 23:52:17 +00007445rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007446
7447done
7448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007449rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007450if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007451 break
7452fi
7453
7454 done
7455 ac_cv_prog_CPP=$CPP
7456
7457fi
7458 CPP=$ac_cv_prog_CPP
7459else
7460 ac_cv_prog_CPP=$CPP
7461fi
cristy8b350f62009-11-15 23:12:43 +00007462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007463$as_echo "$CPP" >&6; }
7464ac_preproc_ok=false
7465for ac_c_preproc_warn_flag in '' yes
7466do
7467 # Use a header file that comes with gcc, so configuring glibc
7468 # with a fresh cross-compiler works.
7469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7470 # <limits.h> exists even on freestanding compilers.
7471 # On the NeXT, cc -E runs the code through the compiler's parser,
7472 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007474/* end confdefs.h. */
7475#ifdef __STDC__
7476# include <limits.h>
7477#else
7478# include <assert.h>
7479#endif
7480 Syntax error
7481_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007482if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007483
cristy8b350f62009-11-15 23:12:43 +00007484else
cristy3ed852e2009-09-05 21:47:34 +00007485 # Broken: fails on valid input.
7486continue
7487fi
cristyda16f162011-02-19 23:52:17 +00007488rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007489
7490 # OK, works on sane cases. Now check whether nonexistent headers
7491 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007493/* end confdefs.h. */
7494#include <ac_nonexistent.h>
7495_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007496if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007497 # Broken: success on invalid input.
7498continue
7499else
cristy3ed852e2009-09-05 21:47:34 +00007500 # Passes both tests.
7501ac_preproc_ok=:
7502break
7503fi
cristyda16f162011-02-19 23:52:17 +00007504rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007505
7506done
7507# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007508rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007509if $ac_preproc_ok; then :
7510
cristy3ed852e2009-09-05 21:47:34 +00007511else
cristy8b350f62009-11-15 23:12:43 +00007512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007514as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7515See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007516fi
7517
7518ac_ext=c
7519ac_cpp='$CPP $CPPFLAGS'
7520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7522ac_compiler_gnu=$ac_cv_c_compiler_gnu
7523
cristy73bd4a52010-10-05 11:24:23 +00007524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7525$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007526if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007527 $as_echo_n "(cached) " >&6
7528else
7529 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7530 for ac_i in 1 2 3 4 5 6 7; do
7531 ac_script="$ac_script$as_nl$ac_script"
7532 done
7533 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7534 { ac_script=; unset ac_script;}
7535 if test -z "$SED"; then
7536 ac_path_SED_found=false
7537 # Loop through the user's path and test for each of PROGNAME-LIST
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_prog in sed gsed; do
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007546 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007547# Check for GNU ac_path_SED and select it if it is found.
7548 # Check for GNU $ac_path_SED
7549case `"$ac_path_SED" --version 2>&1` in
7550*GNU*)
7551 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7552*)
7553 ac_count=0
7554 $as_echo_n 0123456789 >"conftest.in"
7555 while :
7556 do
7557 cat "conftest.in" "conftest.in" >"conftest.tmp"
7558 mv "conftest.tmp" "conftest.in"
7559 cp "conftest.in" "conftest.nl"
7560 $as_echo '' >> "conftest.nl"
7561 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7563 as_fn_arith $ac_count + 1 && ac_count=$as_val
7564 if test $ac_count -gt ${ac_path_SED_max-0}; then
7565 # Best one so far, save it but keep looking for a better one
7566 ac_cv_path_SED="$ac_path_SED"
7567 ac_path_SED_max=$ac_count
7568 fi
7569 # 10*(2^10) chars as input seems more than enough
7570 test $ac_count -gt 10 && break
7571 done
7572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7573esac
7574
7575 $ac_path_SED_found && break 3
7576 done
7577 done
7578 done
7579IFS=$as_save_IFS
7580 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007581 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007582 fi
7583else
7584 ac_cv_path_SED=$SED
7585fi
7586
7587fi
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7589$as_echo "$ac_cv_path_SED" >&6; }
7590 SED="$ac_cv_path_SED"
7591 rm -f conftest.sed
7592
7593test -z "$SED" && SED=sed
7594Xsed="$SED -e 1s/^X//"
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7607$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007608if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007609 $as_echo_n "(cached) " >&6
7610else
7611 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7612 then ac_cv_path_FGREP="$GREP -F"
7613 else
7614 if test -z "$FGREP"; then
7615 ac_path_FGREP_found=false
7616 # Loop through the user's path and test for each of PROGNAME-LIST
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7619do
7620 IFS=$as_save_IFS
7621 test -z "$as_dir" && as_dir=.
7622 for ac_prog in fgrep; do
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007625 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007626# Check for GNU ac_path_FGREP and select it if it is found.
7627 # Check for GNU $ac_path_FGREP
7628case `"$ac_path_FGREP" --version 2>&1` in
7629*GNU*)
7630 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7631*)
7632 ac_count=0
7633 $as_echo_n 0123456789 >"conftest.in"
7634 while :
7635 do
7636 cat "conftest.in" "conftest.in" >"conftest.tmp"
7637 mv "conftest.tmp" "conftest.in"
7638 cp "conftest.in" "conftest.nl"
7639 $as_echo 'FGREP' >> "conftest.nl"
7640 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7642 as_fn_arith $ac_count + 1 && ac_count=$as_val
7643 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7644 # Best one so far, save it but keep looking for a better one
7645 ac_cv_path_FGREP="$ac_path_FGREP"
7646 ac_path_FGREP_max=$ac_count
7647 fi
7648 # 10*(2^10) chars as input seems more than enough
7649 test $ac_count -gt 10 && break
7650 done
7651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7652esac
7653
7654 $ac_path_FGREP_found && break 3
7655 done
7656 done
7657 done
7658IFS=$as_save_IFS
7659 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007660 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007661 fi
7662else
7663 ac_cv_path_FGREP=$FGREP
7664fi
7665
7666 fi
7667fi
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7669$as_echo "$ac_cv_path_FGREP" >&6; }
7670 FGREP="$ac_cv_path_FGREP"
7671
7672
7673test -z "$GREP" && GREP=grep
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
cristy0c60a692010-11-04 01:09:47 +00007691ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7692ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7693ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7694
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7696$as_echo_n "checking how to print strings... " >&6; }
7697# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007698if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007699 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7700 ECHO='print -r --'
7701elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7702 ECHO='printf %s\n'
7703else
7704 # Use this function as a fallback that always works.
7705 func_fallback_echo ()
7706 {
7707 eval 'cat <<_LTECHO_EOF
7708$1
7709_LTECHO_EOF'
7710 }
7711 ECHO='func_fallback_echo'
7712fi
7713
7714# func_echo_all arg...
7715# Invoke $ECHO with all args, space-separated.
7716func_echo_all ()
7717{
7718 $ECHO ""
7719}
7720
7721case "$ECHO" in
7722 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7723$as_echo "printf" >&6; } ;;
7724 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7725$as_echo "print -r" >&6; } ;;
7726 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7727$as_echo "cat" >&6; } ;;
7728esac
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
cristy73bd4a52010-10-05 11:24:23 +00007743
7744
7745# Check whether --with-gnu-ld was given.
7746if test "${with_gnu_ld+set}" = set; then :
7747 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7748else
7749 with_gnu_ld=no
7750fi
7751
7752ac_prog=ld
7753if test "$GCC" = yes; then
7754 # Check if gcc -print-prog-name=ld gives a path.
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7756$as_echo_n "checking for ld used by $CC... " >&6; }
7757 case $host in
7758 *-*-mingw*)
7759 # gcc leaves a trailing carriage return which upsets mingw
7760 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7761 *)
7762 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7763 esac
7764 case $ac_prog in
7765 # Accept absolute paths.
7766 [\\/]* | ?:[\\/]*)
7767 re_direlt='/[^/][^/]*/\.\./'
7768 # Canonicalize the pathname of ld
7769 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7770 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7771 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7772 done
7773 test -z "$LD" && LD="$ac_prog"
7774 ;;
7775 "")
7776 # If it fails, then pretend we aren't using GCC.
7777 ac_prog=ld
7778 ;;
7779 *)
7780 # If it is relative, then search for the first ld in PATH.
7781 with_gnu_ld=unknown
7782 ;;
7783 esac
7784elif test "$with_gnu_ld" = yes; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7786$as_echo_n "checking for GNU ld... " >&6; }
7787else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7789$as_echo_n "checking for non-GNU ld... " >&6; }
7790fi
cristyda16f162011-02-19 23:52:17 +00007791if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007792 $as_echo_n "(cached) " >&6
7793else
7794 if test -z "$LD"; then
7795 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7796 for ac_dir in $PATH; do
7797 IFS="$lt_save_ifs"
7798 test -z "$ac_dir" && ac_dir=.
7799 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7800 lt_cv_path_LD="$ac_dir/$ac_prog"
7801 # Check to see if the program is GNU ld. I'd rather use --version,
7802 # but apparently some variants of GNU ld only accept -v.
7803 # Break only if it was the GNU/non-GNU ld that we prefer.
7804 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7805 *GNU* | *'with BFD'*)
7806 test "$with_gnu_ld" != no && break
7807 ;;
7808 *)
7809 test "$with_gnu_ld" != yes && break
7810 ;;
7811 esac
7812 fi
7813 done
7814 IFS="$lt_save_ifs"
7815else
7816 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7817fi
7818fi
7819
7820LD="$lt_cv_path_LD"
7821if test -n "$LD"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7823$as_echo "$LD" >&6; }
7824else
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826$as_echo "no" >&6; }
7827fi
cristy98dddb52010-11-04 00:30:15 +00007828test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7830$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007831if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007832 $as_echo_n "(cached) " >&6
7833else
7834 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7835case `$LD -v 2>&1 </dev/null` in
7836*GNU* | *'with BFD'*)
7837 lt_cv_prog_gnu_ld=yes
7838 ;;
7839*)
7840 lt_cv_prog_gnu_ld=no
7841 ;;
7842esac
7843fi
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7845$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7846with_gnu_ld=$lt_cv_prog_gnu_ld
7847
7848
7849
7850
7851
7852
7853
7854
7855
cristy3ed852e2009-09-05 21:47:34 +00007856
cristy837d6dc2010-02-27 01:16:57 +00007857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7858$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007859if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007860 $as_echo_n "(cached) " >&6
7861else
7862 ac_cv_prog_cc_c99=no
7863ac_save_CC=$CC
7864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865/* end confdefs.h. */
7866#include <stdarg.h>
7867#include <stdbool.h>
7868#include <stdlib.h>
7869#include <wchar.h>
7870#include <stdio.h>
7871
7872// Check varargs macros. These examples are taken from C99 6.10.3.5.
7873#define debug(...) fprintf (stderr, __VA_ARGS__)
7874#define showlist(...) puts (#__VA_ARGS__)
7875#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7876static void
7877test_varargs_macros (void)
7878{
7879 int x = 1234;
7880 int y = 5678;
7881 debug ("Flag");
7882 debug ("X = %d\n", x);
7883 showlist (The first, second, and third items.);
7884 report (x>y, "x is %d but y is %d", x, y);
7885}
7886
7887// Check long long types.
7888#define BIG64 18446744073709551615ull
7889#define BIG32 4294967295ul
7890#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7891#if !BIG_OK
7892 your preprocessor is broken;
7893#endif
7894#if BIG_OK
7895#else
7896 your preprocessor is broken;
7897#endif
7898static long long int bignum = -9223372036854775807LL;
7899static unsigned long long int ubignum = BIG64;
7900
7901struct incomplete_array
7902{
7903 int datasize;
7904 double data[];
7905};
7906
7907struct named_init {
7908 int number;
7909 const wchar_t *name;
7910 double average;
7911};
7912
7913typedef const char *ccp;
7914
7915static inline int
7916test_restrict (ccp restrict text)
7917{
7918 // See if C++-style comments work.
7919 // Iterate through items via the restricted pointer.
7920 // Also check for declarations in for loops.
7921 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7922 continue;
7923 return 0;
7924}
7925
7926// Check varargs and va_copy.
7927static void
7928test_varargs (const char *format, ...)
7929{
7930 va_list args;
7931 va_start (args, format);
7932 va_list args_copy;
7933 va_copy (args_copy, args);
7934
7935 const char *str;
7936 int number;
7937 float fnumber;
7938
7939 while (*format)
7940 {
7941 switch (*format++)
7942 {
7943 case 's': // string
7944 str = va_arg (args_copy, const char *);
7945 break;
7946 case 'd': // int
7947 number = va_arg (args_copy, int);
7948 break;
7949 case 'f': // float
7950 fnumber = va_arg (args_copy, double);
7951 break;
7952 default:
7953 break;
7954 }
7955 }
7956 va_end (args_copy);
7957 va_end (args);
7958}
7959
7960int
7961main ()
7962{
7963
7964 // Check bool.
7965 _Bool success = false;
7966
7967 // Check restrict.
7968 if (test_restrict ("String literal") == 0)
7969 success = true;
7970 char *restrict newvar = "Another string";
7971
7972 // Check varargs.
7973 test_varargs ("s, d' f .", "string", 65, 34.234);
7974 test_varargs_macros ();
7975
7976 // Check flexible array members.
7977 struct incomplete_array *ia =
7978 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7979 ia->datasize = 10;
7980 for (int i = 0; i < ia->datasize; ++i)
7981 ia->data[i] = i * 1.234;
7982
7983 // Check named initializers.
7984 struct named_init ni = {
7985 .number = 34,
7986 .name = L"Test wide string",
7987 .average = 543.34343,
7988 };
7989
7990 ni.number = 58;
7991
7992 int dynamic_array[ni.number];
7993 dynamic_array[ni.number - 1] = 543;
7994
7995 // work around unused variable warnings
7996 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7997 || dynamic_array[ni.number - 1] != 543);
7998
7999 ;
8000 return 0;
8001}
8002_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008003for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008004do
8005 CC="$ac_save_CC $ac_arg"
8006 if ac_fn_c_try_compile "$LINENO"; then :
8007 ac_cv_prog_cc_c99=$ac_arg
8008fi
8009rm -f core conftest.err conftest.$ac_objext
8010 test "x$ac_cv_prog_cc_c99" != "xno" && break
8011done
8012rm -f conftest.$ac_ext
8013CC=$ac_save_CC
8014
8015fi
8016# AC_CACHE_VAL
8017case "x$ac_cv_prog_cc_c99" in
8018 x)
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8020$as_echo "none needed" >&6; } ;;
8021 xno)
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8023$as_echo "unsupported" >&6; } ;;
8024 *)
8025 CC="$CC $ac_cv_prog_cc_c99"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8027$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8028esac
8029if test "x$ac_cv_prog_cc_c99" != xno; then :
8030
8031fi
8032
8033
cristy73bd4a52010-10-05 11:24:23 +00008034
cristy17491be2014-06-24 01:10:53 +00008035ac_ext=c
8036ac_cpp='$CPP $CPPFLAGS'
8037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039ac_compiler_gnu=$ac_cv_c_compiler_gnu
8040
cristy73bd4a52010-10-05 11:24:23 +00008041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8042$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008043if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008044 $as_echo_n "(cached) " >&6
8045else
8046 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008047ac_save_CFLAGS="$CFLAGS"
8048for 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 +00008049do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051/* end confdefs.h. */
8052
8053int
8054main ()
8055{
cristy24fc1fe2010-10-23 21:13:01 +00008056
cristy73bd4a52010-10-05 11:24:23 +00008057 ;
8058 return 0;
8059}
8060_ACEOF
8061if ac_fn_c_try_compile "$LINENO"; then :
8062 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8063fi
8064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065done
cristy17491be2014-06-24 01:10:53 +00008066CFLAGS="$ac_save_CFLAGS"
8067
8068fi
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8070$as_echo "$ac_cv_cflags_warn_all" >&6; }
8071
8072
8073case ".$ac_cv_cflags_warn_all" in
8074 .ok|.ok,*) ;;
8075 .|.no|.no,*) ;;
8076 *) if ${CFLAGS+:} false; then :
8077 case " $CFLAGS " in
8078 *" $ac_cv_cflags_warn_all "*)
8079 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8080 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8081 ac_status=$?
8082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8083 test $ac_status = 0; }
8084 ;;
8085 *)
8086 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8087 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8088 ac_status=$?
8089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8090 test $ac_status = 0; }
8091 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8092 ;;
8093 esac
8094else
8095 CFLAGS="$ac_cv_cflags_warn_all"
8096fi
8097 ;;
8098esac
8099
8100ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008101ac_cpp='$CPP $CPPFLAGS'
8102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8104ac_compiler_gnu=$ac_cv_c_compiler_gnu
8105
8106
cristya0b81c32010-01-22 02:54:33 +00008107
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8109$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8110set x ${MAKE-make}
8111ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008112if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008113 $as_echo_n "(cached) " >&6
8114else
8115 cat >conftest.make <<\_ACEOF
8116SHELL = /bin/sh
8117all:
8118 @echo '@@@%%%=$(MAKE)=@@@%%%'
8119_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008120# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008121case `${MAKE-make} -f conftest.make 2>/dev/null` in
8122 *@@@%%%=?*=@@@%%%*)
8123 eval ac_cv_prog_make_${ac_make}_set=yes;;
8124 *)
8125 eval ac_cv_prog_make_${ac_make}_set=no;;
8126esac
8127rm -f conftest.make
8128fi
8129if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131$as_echo "yes" >&6; }
8132 SET_MAKE=
8133else
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135$as_echo "no" >&6; }
8136 SET_MAKE="MAKE=${MAKE-make}"
8137fi
8138
cristy8b350f62009-11-15 23:12:43 +00008139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008140$as_echo_n "checking whether ln -s works... " >&6; }
8141LN_S=$as_ln_s
8142if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008144$as_echo "yes" >&6; }
8145else
cristy8b350f62009-11-15 23:12:43 +00008146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008147$as_echo "no, using $LN_S" >&6; }
8148fi
8149
cristy8d0ff762013-03-10 20:33:28 +00008150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8151$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8152if ${ac_cv_path_SED+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154else
8155 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8156 for ac_i in 1 2 3 4 5 6 7; do
8157 ac_script="$ac_script$as_nl$ac_script"
8158 done
8159 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8160 { ac_script=; unset ac_script;}
8161 if test -z "$SED"; then
8162 ac_path_SED_found=false
8163 # Loop through the user's path and test for each of PROGNAME-LIST
8164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165for as_dir in $PATH
8166do
8167 IFS=$as_save_IFS
8168 test -z "$as_dir" && as_dir=.
8169 for ac_prog in sed gsed; do
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8172 as_fn_executable_p "$ac_path_SED" || continue
8173# Check for GNU ac_path_SED and select it if it is found.
8174 # Check for GNU $ac_path_SED
8175case `"$ac_path_SED" --version 2>&1` in
8176*GNU*)
8177 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8178*)
8179 ac_count=0
8180 $as_echo_n 0123456789 >"conftest.in"
8181 while :
8182 do
8183 cat "conftest.in" "conftest.in" >"conftest.tmp"
8184 mv "conftest.tmp" "conftest.in"
8185 cp "conftest.in" "conftest.nl"
8186 $as_echo '' >> "conftest.nl"
8187 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8189 as_fn_arith $ac_count + 1 && ac_count=$as_val
8190 if test $ac_count -gt ${ac_path_SED_max-0}; then
8191 # Best one so far, save it but keep looking for a better one
8192 ac_cv_path_SED="$ac_path_SED"
8193 ac_path_SED_max=$ac_count
8194 fi
8195 # 10*(2^10) chars as input seems more than enough
8196 test $ac_count -gt 10 && break
8197 done
8198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8199esac
8200
8201 $ac_path_SED_found && break 3
8202 done
8203 done
8204 done
8205IFS=$as_save_IFS
8206 if test -z "$ac_cv_path_SED"; then
8207 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8208 fi
8209else
8210 ac_cv_path_SED=$SED
8211fi
8212
8213fi
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8215$as_echo "$ac_cv_path_SED" >&6; }
8216 SED="$ac_cv_path_SED"
8217 rm -f conftest.sed
8218
cristybc556452012-08-17 19:44:03 +00008219for ac_prog in gawk mawk nawk awk
8220do
8221 # Extract the first word of "$ac_prog", so it can be a program name with args.
8222set dummy $ac_prog; ac_word=$2
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8224$as_echo_n "checking for $ac_word... " >&6; }
8225if ${ac_cv_prog_AWK+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227else
8228 if test -n "$AWK"; then
8229 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8230else
8231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232for as_dir in $PATH
8233do
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8238 ac_cv_prog_AWK="$ac_prog"
8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 break 2
8241 fi
8242done
8243 done
8244IFS=$as_save_IFS
8245
8246fi
8247fi
8248AWK=$ac_cv_prog_AWK
8249if test -n "$AWK"; then
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8251$as_echo "$AWK" >&6; }
8252else
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254$as_echo "no" >&6; }
8255fi
8256
8257
8258 test -n "$AWK" && break
8259done
8260
cristy73bd4a52010-10-05 11:24:23 +00008261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8262$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8263
8264# Check whether --with-dmalloc was given.
8265if test "${with_dmalloc+set}" = set; then :
8266 withval=$with_dmalloc; if test "$withval" = yes; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8268$as_echo "yes" >&6; }
8269
8270$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8271
8272 LIBS="$LIBS -ldmalloc"
8273 LDFLAGS="$LDFLAGS -g"
8274else
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276$as_echo "no" >&6; }
8277fi
8278else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280$as_echo "no" >&6; }
8281fi
8282
8283
8284
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8286$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008287if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008288 $as_echo_n "(cached) " >&6
8289else
8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291/* end confdefs.h. */
8292#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008293 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008294 static void
8295 foo(void) {
8296 exit(1);
8297 }
8298
8299int
8300main ()
8301{
8302
8303 ;
8304 return 0;
8305}
8306_ACEOF
8307if ac_fn_c_try_compile "$LINENO"; then :
8308 ax_cv___attribute__=yes
8309else
8310 ax_cv___attribute__=no
8311
8312fi
8313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314
8315fi
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8317$as_echo "$ax_cv___attribute__" >&6; }
8318 if test "$ax_cv___attribute__" = "yes"; then
8319
8320$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8321
8322 fi
8323
8324
8325
cristya0459972013-11-03 18:09:35 +00008326
8327
cristy17491be2014-06-24 01:10:53 +00008328
cristya0459972013-11-03 18:09:35 +00008329# Check whether --with-gcc-arch was given.
8330if test "${with_gcc_arch+set}" = set; then :
8331 withval=$with_gcc_arch; ax_gcc_arch=$withval
8332else
cristy17491be2014-06-24 01:10:53 +00008333 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008334fi
8335
8336
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8338$as_echo_n "checking for gcc architecture flag... " >&6; }
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8340$as_echo "" >&6; }
8341if ${ax_cv_gcc_archflag+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343else
8344
8345ax_cv_gcc_archflag="unknown"
8346
8347if test "$GCC" = yes; then
8348
8349if test "x$ax_gcc_arch" = xyes; then
8350ax_gcc_arch=""
8351if test "$cross_compiling" = no; then
8352case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008353 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008354
8355ac_ext=c
8356ac_cpp='$CPP $CPPFLAGS'
8357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8359ac_compiler_gnu=$ac_cv_c_compiler_gnu
8360
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8362$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8363if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8364 $as_echo_n "(cached) " >&6
8365else
8366 if test "$cross_compiling" = yes; then :
8367 ax_cv_gcc_x86_cpuid_0=unknown
8368else
8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370/* end confdefs.h. */
8371#include <stdio.h>
8372int
8373main ()
8374{
8375
8376 int op = 0, eax, ebx, ecx, edx;
8377 FILE *f;
8378 __asm__("cpuid"
8379 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8380 : "a" (op));
8381 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8382 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8383 fclose(f);
8384 return 0;
8385
8386 ;
8387 return 0;
8388}
8389_ACEOF
8390if ac_fn_c_try_run "$LINENO"; then :
8391 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8392else
8393 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8394fi
8395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8396 conftest.$ac_objext conftest.beam conftest.$ac_ext
8397fi
8398
8399fi
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8401$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8402ac_ext=c
8403ac_cpp='$CPP $CPPFLAGS'
8404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8406ac_compiler_gnu=$ac_cv_c_compiler_gnu
8407
8408
8409
8410ac_ext=c
8411ac_cpp='$CPP $CPPFLAGS'
8412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8414ac_compiler_gnu=$ac_cv_c_compiler_gnu
8415
8416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8417$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8418if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420else
8421 if test "$cross_compiling" = yes; then :
8422 ax_cv_gcc_x86_cpuid_1=unknown
8423else
8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425/* end confdefs.h. */
8426#include <stdio.h>
8427int
8428main ()
8429{
8430
8431 int op = 1, eax, ebx, ecx, edx;
8432 FILE *f;
8433 __asm__("cpuid"
8434 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8435 : "a" (op));
8436 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8437 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8438 fclose(f);
8439 return 0;
8440
8441 ;
8442 return 0;
8443}
8444_ACEOF
8445if ac_fn_c_try_run "$LINENO"; then :
8446 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8447else
8448 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8449fi
8450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8451 conftest.$ac_objext conftest.beam conftest.$ac_ext
8452fi
8453
8454fi
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8456$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8457ac_ext=c
8458ac_cpp='$CPP $CPPFLAGS'
8459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8461ac_compiler_gnu=$ac_cv_c_compiler_gnu
8462
8463
8464 case $ax_cv_gcc_x86_cpuid_0 in
8465 *:756e6547:*:*) # Intel
8466 case $ax_cv_gcc_x86_cpuid_1 in
8467 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8468 *5??:*:*:*) ax_gcc_arch=pentium ;;
cristya0459972013-11-03 18:09:35 +00008469 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8470 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8471 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8472 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008473 *[1-9a-f]?6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8474 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8475 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8476 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8477 *6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8478 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8479 *6f?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8480 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8481 *f3[347]:*:*:*|*f41347:*:*:*|*f6?:*:*:*)
cristya0459972013-11-03 18:09:35 +00008482 case $host_cpu in
8483 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8484 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8485 esac ;;
cristy17491be2014-06-24 01:10:53 +00008486 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
cristya0459972013-11-03 18:09:35 +00008487 esac ;;
8488 *:68747541:*:*) # AMD
8489 case $ax_cv_gcc_x86_cpuid_1 in
8490 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8491 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8492 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8493 *60?:*:*:*) ax_gcc_arch=k7 ;;
8494 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8495 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8496 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8497 *6[68a]?:*:*:*)
8498
8499ac_ext=c
8500ac_cpp='$CPP $CPPFLAGS'
8501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8503ac_compiler_gnu=$ac_cv_c_compiler_gnu
8504
8505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8506$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8507if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8508 $as_echo_n "(cached) " >&6
8509else
8510 if test "$cross_compiling" = yes; then :
8511 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8512else
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514/* end confdefs.h. */
8515#include <stdio.h>
8516int
8517main ()
8518{
8519
8520 int op = 0x80000006, eax, ebx, ecx, edx;
8521 FILE *f;
8522 __asm__("cpuid"
8523 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8524 : "a" (op));
8525 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8526 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8527 fclose(f);
8528 return 0;
8529
8530 ;
8531 return 0;
8532}
8533_ACEOF
8534if ac_fn_c_try_run "$LINENO"; then :
8535 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8536else
8537 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8538fi
8539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8540 conftest.$ac_objext conftest.beam conftest.$ac_ext
8541fi
8542
8543fi
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8545$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8546ac_ext=c
8547ac_cpp='$CPP $CPPFLAGS'
8548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8550ac_compiler_gnu=$ac_cv_c_compiler_gnu
8551
8552 # L2 cache size
8553 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8554 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8555 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8556 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8557 esac ;;
cristy17491be2014-06-24 01:10:53 +00008558 *5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8559 *6??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8560 *[1-9a-f]??f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8561 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8562 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8563 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8564 *f??:*:*:*) ax_gcc_arch="k8" ;;
cristya0459972013-11-03 18:09:35 +00008565 esac ;;
8566 *:746e6543:*:*) # IDT
8567 case $ax_cv_gcc_x86_cpuid_1 in
8568 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8569 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8570 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8571 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8572 esac ;;
8573 esac
8574 if test x"$ax_gcc_arch" = x; then # fallback
8575 case $host_cpu in
8576 i586*) ax_gcc_arch=pentium ;;
8577 i686*) ax_gcc_arch=pentiumpro ;;
8578 esac
8579 fi
8580 ;;
8581
8582 sparc*)
8583 # Extract the first word of "prtdiag", so it can be a program name with args.
8584set dummy prtdiag; ac_word=$2
8585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586$as_echo_n "checking for $ac_word... " >&6; }
8587if ${ac_cv_path_PRTDIAG+:} false; then :
8588 $as_echo_n "(cached) " >&6
8589else
8590 case $PRTDIAG in
8591 [\\/]* | ?:[\\/]*)
8592 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8593 ;;
8594 *)
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8597for as_dir in $as_dummy
8598do
8599 IFS=$as_save_IFS
8600 test -z "$as_dir" && as_dir=.
8601 for ac_exec_ext in '' $ac_executable_extensions; do
8602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8603 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8605 break 2
8606 fi
8607done
8608 done
8609IFS=$as_save_IFS
8610
8611 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8612 ;;
8613esac
8614fi
8615PRTDIAG=$ac_cv_path_PRTDIAG
8616if test -n "$PRTDIAG"; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8618$as_echo "$PRTDIAG" >&6; }
8619else
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621$as_echo "no" >&6; }
8622fi
8623
8624
8625 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 +00008626 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008627 case $cputype in
8628 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8629 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8630 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8631 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8632 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8633 *cypress*) ax_gcc_arch=cypress ;;
8634 esac ;;
8635
8636 alphaev5) ax_gcc_arch=ev5 ;;
8637 alphaev56) ax_gcc_arch=ev56 ;;
8638 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8639 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8640 alphaev6) ax_gcc_arch=ev6 ;;
8641 alphaev67) ax_gcc_arch=ev67 ;;
8642 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8643 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8644 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8645 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8646
8647 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008648 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`
8649 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008650 case $cputype in
8651 *750*) ax_gcc_arch="750 G3" ;;
8652 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8653 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8654 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8655 *970*) ax_gcc_arch="970 G5 power4";;
8656 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8657 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8658 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8659 *) ax_gcc_arch=$cputype ;;
8660 esac
8661 ax_gcc_arch="$ax_gcc_arch powerpc"
8662 ;;
8663esac
8664fi # not cross-compiling
8665fi # guess arch
8666
8667if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8668for arch in $ax_gcc_arch; do
8669 if test "xno" = xyes; then # if we require portable code
8670 flags="-mtune=$arch"
8671 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8672 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8673 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8674 else
8675 flags="-march=$arch -mcpu=$arch -m$arch"
8676 fi
8677 for flag in $flags; do
8678 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8680$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8681if eval \${$as_CACHEVAR+:} false; then :
8682 $as_echo_n "(cached) " >&6
8683else
8684
8685 ax_check_save_flags=$CFLAGS
8686 CFLAGS="$CFLAGS $flag"
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688/* end confdefs.h. */
8689
8690int
8691main ()
8692{
8693
8694 ;
8695 return 0;
8696}
8697_ACEOF
8698if ac_fn_c_try_compile "$LINENO"; then :
8699 eval "$as_CACHEVAR=yes"
8700else
8701 eval "$as_CACHEVAR=no"
8702fi
8703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704 CFLAGS=$ax_check_save_flags
8705fi
8706eval ac_res=\$$as_CACHEVAR
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8708$as_echo "$ac_res" >&6; }
8709if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8710 ax_cv_gcc_archflag=$flag; break
8711else
8712 :
8713fi
8714
8715 done
8716 test "x$ax_cv_gcc_archflag" = xunknown || break
8717done
8718fi
8719
8720fi # $GCC=yes
8721
8722fi
8723
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8725$as_echo_n "checking for gcc architecture flag... " >&6; }
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8727$as_echo "$ax_cv_gcc_archflag" >&6; }
8728if test "x$ax_cv_gcc_archflag" = xunknown; then
8729 :
8730else
8731 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8732fi
8733
8734
8735
cristy73bd4a52010-10-05 11:24:23 +00008736if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8737 if test -n "$ac_tool_prefix"; then
8738 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8739set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008742if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008743 $as_echo_n "(cached) " >&6
8744else
8745 case $PKG_CONFIG in
8746 [\\/]* | ?:[\\/]*)
8747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8748 ;;
8749 *)
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751for as_dir in $PATH
8752do
8753 IFS=$as_save_IFS
8754 test -z "$as_dir" && as_dir=.
8755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008757 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8759 break 2
8760 fi
8761done
8762 done
8763IFS=$as_save_IFS
8764
8765 ;;
8766esac
8767fi
8768PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8769if test -n "$PKG_CONFIG"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8771$as_echo "$PKG_CONFIG" >&6; }
8772else
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774$as_echo "no" >&6; }
8775fi
8776
8777
8778fi
8779if test -z "$ac_cv_path_PKG_CONFIG"; then
8780 ac_pt_PKG_CONFIG=$PKG_CONFIG
8781 # Extract the first word of "pkg-config", so it can be a program name with args.
8782set dummy pkg-config; ac_word=$2
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008785if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008786 $as_echo_n "(cached) " >&6
8787else
8788 case $ac_pt_PKG_CONFIG in
8789 [\\/]* | ?:[\\/]*)
8790 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8791 ;;
8792 *)
8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794for as_dir in $PATH
8795do
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
8798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008800 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8802 break 2
8803 fi
8804done
8805 done
8806IFS=$as_save_IFS
8807
8808 ;;
8809esac
8810fi
8811ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8812if test -n "$ac_pt_PKG_CONFIG"; then
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8814$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8815else
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817$as_echo "no" >&6; }
8818fi
8819
8820 if test "x$ac_pt_PKG_CONFIG" = x; then
8821 PKG_CONFIG=""
8822 else
8823 case $cross_compiling:$ac_tool_warned in
8824yes:)
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8827ac_tool_warned=yes ;;
8828esac
8829 PKG_CONFIG=$ac_pt_PKG_CONFIG
8830 fi
8831else
8832 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8833fi
8834
8835fi
8836if test -n "$PKG_CONFIG"; then
8837 _pkg_min_version=0.9.0
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8839$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8840 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8842$as_echo "yes" >&6; }
8843 else
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845$as_echo "no" >&6; }
8846 PKG_CONFIG=""
8847 fi
8848
8849fi
cristy3ed852e2009-09-05 21:47:34 +00008850
cristyd95b7a52013-10-23 13:12:53 +00008851# Test for 64-bit build.
8852# The cast to long int works around a bug in the HP C Compiler
8853# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8854# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8855# This bug is HP SR number 8606223364.
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8857$as_echo_n "checking size of size_t... " >&6; }
8858if ${ac_cv_sizeof_size_t+:} false; then :
8859 $as_echo_n "(cached) " >&6
8860else
8861 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8862
8863else
8864 if test "$ac_cv_type_size_t" = yes; then
8865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8867as_fn_error 77 "cannot compute sizeof (size_t)
8868See \`config.log' for more details" "$LINENO" 5; }
8869 else
8870 ac_cv_sizeof_size_t=0
8871 fi
8872fi
8873
8874fi
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8876$as_echo "$ac_cv_sizeof_size_t" >&6; }
8877
8878
8879
8880cat >>confdefs.h <<_ACEOF
8881#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8882_ACEOF
8883
8884
8885
8886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8887$as_echo_n "checking for C compiler vendor... " >&6; }
8888if ${ax_cv_c_compiler_vendor+:} false; then :
8889 $as_echo_n "(cached) " >&6
8890else
8891 # note: don't check for gcc first since some other compilers define __GNUC__
8892 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8893 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8894 pathscale: __PATHCC__,__PATHSCALE__
8895 clang: __clang__
cristy17491be2014-06-24 01:10:53 +00008896 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00008897 gnu: __GNUC__
8898 sun: __SUNPRO_C,__SUNPRO_CC
8899 hp: __HP_cc,__HP_aCC
8900 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8901 borland: __BORLANDC__,__TURBOC__
8902 comeau: __COMO__
8903 cray: _CRAYC
8904 kai: __KCC
8905 lcc: __LCC__
8906 sgi: __sgi,sgi
8907 microsoft: _MSC_VER
8908 metrowerks: __MWERKS__
8909 watcom: __WATCOMC__
8910 portland: __PGI
8911 unknown: UNKNOWN"
8912 for ventest in $vendors; do
8913 case $ventest in
8914 *:) vendor=$ventest; continue ;;
8915 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8916 esac
8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918/* end confdefs.h. */
8919
8920int
8921main ()
8922{
8923
8924 #if !($vencpp)
8925 thisisanerror;
8926 #endif
8927
8928 ;
8929 return 0;
8930}
8931_ACEOF
8932if ac_fn_c_try_compile "$LINENO"; then :
8933 break
8934fi
8935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 done
8937 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8938
8939fi
8940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8941$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8942
cristyd95b7a52013-10-23 13:12:53 +00008943# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8944# compiler.
8945if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00008946 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00008947ac_cpp='$CPP $CPPFLAGS'
8948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8950ac_compiler_gnu=$ac_cv_c_compiler_gnu
8951
cristy17491be2014-06-24 01:10:53 +00008952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8953$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8954if ${ac_cv_cflags_warn_all+:} false; then :
8955 $as_echo_n "(cached) " >&6
8956else
8957 ac_cv_cflags_warn_all="no, unknown"
8958ac_save_CFLAGS="$CFLAGS"
8959for 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 +00008960do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962/* end confdefs.h. */
8963
8964int
8965main ()
8966{
8967
8968 ;
8969 return 0;
8970}
8971_ACEOF
8972if ac_fn_c_try_compile "$LINENO"; then :
8973 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8974fi
8975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8976done
cristy17491be2014-06-24 01:10:53 +00008977CFLAGS="$ac_save_CFLAGS"
8978
8979fi
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8981$as_echo "$ac_cv_cflags_warn_all" >&6; }
8982
8983
8984case ".$ac_cv_cflags_warn_all" in
8985 .ok|.ok,*) ;;
8986 .|.no|.no,*) ;;
8987 *) if ${CFLAGS+:} false; then :
8988 case " $CFLAGS " in
8989 *" $ac_cv_cflags_warn_all "*)
8990 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8991 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8992 ac_status=$?
8993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8994 test $ac_status = 0; }
8995 ;;
8996 *)
8997 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8998 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8999 ac_status=$?
9000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9001 test $ac_status = 0; }
9002 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
9003 ;;
9004 esac
9005else
9006 CFLAGS="$ac_cv_cflags_warn_all"
9007fi
9008 ;;
9009esac
9010
9011ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009012ac_cpp='$CPP $CPPFLAGS'
9013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9015ac_compiler_gnu=$ac_cv_c_compiler_gnu
9016
9017
9018fi
cristyd95b7a52013-10-23 13:12:53 +00009019
9020if test "x$GCC" = "xyes"; then
9021 CFLAGS="$CFLAGS -fexceptions"
9022 touch local.exp
9023else
9024 cat > local.exp <<EOF
9025set CC_FOR_TARGET "$CC"
9026EOF
9027fi
9028
cristy9b86f202012-11-28 21:55:35 +00009029# Check for linker script support
9030
9031 # Check whether --enable-ld-version-script was given.
9032if test "${enable_ld_version_script+set}" = set; then :
9033 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9034fi
9035
9036 if test -z "$have_ld_version_script"; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9038$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9039 save_LDFLAGS="$LDFLAGS"
9040 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9041 cat > conftest.map <<EOF
9042foo
9043EOF
9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045/* end confdefs.h. */
9046
9047int
9048main ()
9049{
9050
9051 ;
9052 return 0;
9053}
9054_ACEOF
9055if ac_fn_c_try_link "$LINENO"; then :
9056 accepts_syntax_errors=yes
9057else
9058 accepts_syntax_errors=no
9059fi
9060rm -f core conftest.err conftest.$ac_objext \
9061 conftest$ac_exeext conftest.$ac_ext
9062 if test "$accepts_syntax_errors" = no; then
9063 cat > conftest.map <<EOF
9064VERS_1 {
9065 global: sym;
9066};
9067
9068VERS_2 {
9069 global: sym;
9070} VERS_1;
9071EOF
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073/* end confdefs.h. */
9074
9075int
9076main ()
9077{
9078
9079 ;
9080 return 0;
9081}
9082_ACEOF
9083if ac_fn_c_try_link "$LINENO"; then :
9084 have_ld_version_script=yes
9085else
9086 have_ld_version_script=no
9087fi
9088rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090 else
9091 have_ld_version_script=no
9092 fi
9093 rm -f conftest.map
9094 LDFLAGS="$save_LDFLAGS"
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9096$as_echo "$have_ld_version_script" >&6; }
9097 fi
9098 if test "$have_ld_version_script" = "yes"; then
9099 HAVE_LD_VERSION_SCRIPT_TRUE=
9100 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9101else
9102 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9103 HAVE_LD_VERSION_SCRIPT_FALSE=
9104fi
9105
9106
9107
cristy3ed852e2009-09-05 21:47:34 +00009108#
cristy3ed852e2009-09-05 21:47:34 +00009109# Enable run-time checking.
9110#
9111# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009112if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009113 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9114else
9115 enable_bounds_checking='no'
9116fi
9117
9118
9119if test "$enable_bounds_checking" = yes; then
9120
cristy8b350f62009-11-15 23:12:43 +00009121$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009122
9123fi
9124
9125#
9126# Tests for Windows
9127#
9128
9129
9130
9131GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009132native_win32_build='no'
9133cygwin_build='no'
9134case "${host_os}" in
9135 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009136 cygwin_build='yes'
9137 GDI32_LIBS='-lgdi32'
9138 ;;
9139 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009140 native_win32_build='yes'
9141 GDI32_LIBS='-lgdi32'
9142 ;;
9143esac
9144if test "${GDI32_LIBS}x" != 'x'; then
9145
cristy8b350f62009-11-15 23:12:43 +00009146$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009147
9148fi
9149
cristy73bd4a52010-10-05 11:24:23 +00009150 if test "${GDI32_LIBS}x" != 'x' ; then
9151 WINGDI32_DELEGATE_TRUE=
9152 WINGDI32_DELEGATE_FALSE='#'
9153else
9154 WINGDI32_DELEGATE_TRUE='#'
9155 WINGDI32_DELEGATE_FALSE=
9156fi
9157
9158 if test "${native_win32_build}" = 'yes' ; then
9159 WIN32_NATIVE_BUILD_TRUE=
9160 WIN32_NATIVE_BUILD_FALSE='#'
9161else
9162 WIN32_NATIVE_BUILD_TRUE='#'
9163 WIN32_NATIVE_BUILD_FALSE=
9164fi
9165
9166 if test "${cygwin_build}" = 'yes' ; then
9167 CYGWIN_BUILD_TRUE=
9168 CYGWIN_BUILD_FALSE='#'
9169else
9170 CYGWIN_BUILD_TRUE='#'
9171 CYGWIN_BUILD_FALSE=
9172fi
9173
9174 if test "x${CC}" = 'xcl.exe' ; then
9175 USING_CL_TRUE=
9176 USING_CL_FALSE='#'
9177else
9178 USING_CL_TRUE='#'
9179 USING_CL_FALSE=
9180fi
9181
cristy3ed852e2009-09-05 21:47:34 +00009182
9183WinPathScript="${srcdirfull}/winpath.sh"
9184
9185
9186#
9187# Compiler flags tweaks
9188#
9189if test "${GCC}" != "yes"; then
9190 case "${host}" in
9191 *-*-hpux* )
9192 # aCC: HP ANSI C++ B3910B A.03.34
9193 CFLAGS="${CFLAGS} -Wp,-H30000"
9194 if test -n "${CXXFLAGS}"; then
9195 CXXFLAGS='-AA'
9196 else
9197 CXXFLAGS="${CXXFLAGS} -AA"
9198 fi
9199 ;;
9200 *-dec-osf5.* )
9201 # Compaq alphaev68-dec-osf5.1 compiler
9202 if test -n "${CXXFLAGS}"; then
9203 CXXFLAGS='-std strict_ansi -noimplicit_include'
9204 else
9205 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9206 fi
9207 esac
9208fi
9209
9210# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009212$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009213if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009214 $as_echo_n "(cached) " >&6
9215else
9216
9217im_cv_ld_lazyload='none'
9218case "${host}" in
9219 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9220 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9221 im_cv_ld_lazyload='-Wl,-zlazyload'
9222 fi
9223 ;;
9224esac
9225
9226fi
cristy8b350f62009-11-15 23:12:43 +00009227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009228$as_echo "$im_cv_ld_lazyload" >&6; }
9229if test "${im_cv_ld_lazyload}" != 'none' ; then
9230 if test -z "${LDFLAGS}" ; then
9231 LDFLAGS="${im_cv_ld_lazyload}"
9232 else
9233 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9234 fi
9235fi
9236
9237case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009238 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009239 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009240 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009241if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009242 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9243else
9244 build_osxuniversal=no
9245fi
9246
9247
cristyc37574e2013-02-16 01:04:55 +00009248 if test "${build_osxuniversal}" != no ; then
9249 if test "$enable_dependency_tracking" != no ; then
9250 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009251Please re-run configure with these options:
9252 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009253 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009254 fi
9255 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9256 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9257 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009258 fi
9259 ;;
9260esac
9261
cristy0151ae12011-10-28 16:32:29 +00009262#
9263# ARCH specific include directory
9264#
9265
cristy670aa3c2011-11-03 00:54:00 +00009266# Check whether --with-includearch-dir was given.
9267if test "${with_includearch_dir+set}" = set; then :
9268 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009269else
cristy670aa3c2011-11-03 00:54:00 +00009270 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009271fi
9272
9273
cristyd286fd72013-02-24 19:25:33 +00009274eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009275
cristy0151ae12011-10-28 16:32:29 +00009276
9277#
9278# ARCH specific configuration directory
9279#
9280
cristy670aa3c2011-11-03 00:54:00 +00009281# Check whether --with-sharearch-dir was given.
9282if test "${with_sharearch_dir+set}" = set; then :
9283 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009284else
cristy408ebcd2011-11-14 01:36:57 +00009285 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009286fi
9287
9288
cristy670aa3c2011-11-03 00:54:00 +00009289eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009290
cristy0151ae12011-10-28 16:32:29 +00009291
cristy2ec87cc2013-02-18 17:46:50 +00009292# Path to the pkgconfig folder
9293
9294# Check whether --with-pkgconfigdir was given.
9295if test "${with_pkgconfigdir+set}" = set; then :
9296 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9297else
9298 pkgconfigdir='${libdir}/pkgconfig'
9299fi
9300
9301
9302
cristy0151ae12011-10-28 16:32:29 +00009303#
cristy3ed852e2009-09-05 21:47:34 +00009304# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009305#
9306# Find Posix threads library
9307#
cristy3ed852e2009-09-05 21:47:34 +00009308
9309# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009310if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009311 withval=$with_threads; with_threads=$withval
9312else
9313 with_threads='yes'
9314fi
9315
9316
cristy1ae5c992013-07-30 14:55:07 +00009317THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009318have_threads=no
9319if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009320
9321
cristy73bd4a52010-10-05 11:24:23 +00009322ac_ext=c
9323ac_cpp='$CPP $CPPFLAGS'
9324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9326ac_compiler_gnu=$ac_cv_c_compiler_gnu
9327
9328ax_pthread_ok=no
9329
9330# We used to check for pthread.h first, but this fails if pthread.h
9331# requires special compiler flags (e.g. on True64 or Sequent).
9332# It gets checked for in the link test anyway.
9333
9334# First of all, check if the user has set any of the PTHREAD_LIBS,
9335# etcetera environment variables, and if threads linking works using
9336# them:
9337if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9338 save_CFLAGS="$CFLAGS"
9339 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9340 save_LIBS="$LIBS"
9341 LIBS="$PTHREAD_LIBS $LIBS"
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9343$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345/* end confdefs.h. */
9346
9347/* Override any GCC internal prototype to avoid an error.
9348 Use char because int might match the return type of a GCC
9349 builtin and then its argument prototype would still apply. */
9350#ifdef __cplusplus
9351extern "C"
9352#endif
9353char pthread_join ();
9354int
9355main ()
9356{
9357return pthread_join ();
9358 ;
9359 return 0;
9360}
9361_ACEOF
9362if ac_fn_c_try_link "$LINENO"; then :
9363 ax_pthread_ok=yes
9364fi
9365rm -f core conftest.err conftest.$ac_objext \
9366 conftest$ac_exeext conftest.$ac_ext
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9368$as_echo "$ax_pthread_ok" >&6; }
9369 if test x"$ax_pthread_ok" = xno; then
9370 PTHREAD_LIBS=""
9371 PTHREAD_CFLAGS=""
9372 fi
9373 LIBS="$save_LIBS"
9374 CFLAGS="$save_CFLAGS"
9375fi
9376
9377# We must check for the threads library under a number of different
9378# names; the ordering is very important because some systems
9379# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9380# libraries is broken (non-POSIX).
9381
9382# Create a list of thread flags to try. Items starting with a "-" are
9383# C compiler flags, and other items are library names, except for "none"
9384# which indicates that we try without any flags at all, and "pthread-config"
9385# which is a program returning the flags for the Pth emulation library.
9386
cristy2ec87cc2013-02-18 17:46:50 +00009387ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009388
9389# The ordering *is* (sometimes) important. Some notes on the
9390# individual items follow:
9391
9392# pthreads: AIX (must check this before -lpthread)
9393# none: in case threads are in libc; should be tried before -Kthread and
9394# other compiler flags to prevent continual compiler warnings
9395# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9396# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9397# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9398# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9399# -pthreads: Solaris/gcc
9400# -mthreads: Mingw32/gcc, Lynx/gcc
9401# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9402# doesn't hurt to check since this sometimes defines pthreads too;
9403# also defines -D_REENTRANT)
9404# ... -mt is also the pthreads flag for HP/aCC
9405# pthread: Linux, etcetera
9406# --thread-safe: KAI C++
9407# pthread-config: use pthread-config program (for GNU Pth library)
9408
cristy2ec87cc2013-02-18 17:46:50 +00009409case ${host_os} in
9410 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009411
9412 # On Solaris (at least, for some versions), libc contains stubbed
9413 # (non-functional) versions of the pthreads routines, so link-based
9414 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9415 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9416 # a function called by this macro, so we could check for that, but
9417 # who knows whether they'll stub that too in a future libc.) So,
9418 # we'll just look for -pthreads and -lpthread first:
9419
9420 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9421 ;;
9422
cristy2ec87cc2013-02-18 17:46:50 +00009423 darwin*)
cristya316db12011-10-24 00:49:45 +00009424 ax_pthread_flags="-pthread $ax_pthread_flags"
9425 ;;
cristy73bd4a52010-10-05 11:24:23 +00009426esac
9427
cristy17491be2014-06-24 01:10:53 +00009428# Clang doesn't consider unrecognized options an error unless we specify
9429# -Werror. We throw in some extra Clang-specific options to ensure that
9430# this doesn't happen for GCC, which also accepts -Werror.
9431
9432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9433$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9434save_CFLAGS="$CFLAGS"
9435ax_pthread_extra_flags="-Werror"
9436CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438/* end confdefs.h. */
9439int foo(void);
9440int
9441main ()
9442{
9443foo()
9444 ;
9445 return 0;
9446}
9447_ACEOF
9448if ac_fn_c_try_compile "$LINENO"; then :
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9450$as_echo "yes" >&6; }
9451else
9452 ax_pthread_extra_flags=
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454$as_echo "no" >&6; }
9455fi
9456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9457CFLAGS="$save_CFLAGS"
9458
cristy73bd4a52010-10-05 11:24:23 +00009459if test x"$ax_pthread_ok" = xno; then
9460for flag in $ax_pthread_flags; do
9461
9462 case $flag in
9463 none)
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9465$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9466 ;;
9467
9468 -*)
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9470$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9471 PTHREAD_CFLAGS="$flag"
9472 ;;
9473
cristya316db12011-10-24 00:49:45 +00009474 pthread-config)
9475 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009476set dummy pthread-config; ac_word=$2
9477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009479if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009480 $as_echo_n "(cached) " >&6
9481else
9482 if test -n "$ax_pthread_config"; then
9483 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9484else
9485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486for as_dir in $PATH
9487do
9488 IFS=$as_save_IFS
9489 test -z "$as_dir" && as_dir=.
9490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009492 ac_cv_prog_ax_pthread_config="yes"
9493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9494 break 2
9495 fi
9496done
9497 done
9498IFS=$as_save_IFS
9499
9500 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9501fi
9502fi
9503ax_pthread_config=$ac_cv_prog_ax_pthread_config
9504if test -n "$ax_pthread_config"; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9506$as_echo "$ax_pthread_config" >&6; }
9507else
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509$as_echo "no" >&6; }
9510fi
9511
9512
cristya316db12011-10-24 00:49:45 +00009513 if test x"$ax_pthread_config" = xno; then continue; fi
9514 PTHREAD_CFLAGS="`pthread-config --cflags`"
9515 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9516 ;;
cristy73bd4a52010-10-05 11:24:23 +00009517
9518 *)
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9520$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9521 PTHREAD_LIBS="-l$flag"
9522 ;;
9523 esac
9524
9525 save_LIBS="$LIBS"
9526 save_CFLAGS="$CFLAGS"
9527 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009528 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009529
9530 # Check for various functions. We must include pthread.h,
9531 # since some functions may be macros. (On the Sequent, we
9532 # need a special flag -Kthread to make this header compile.)
9533 # We check for pthread_join because it is in -lpthread on IRIX
9534 # while pthread_create is in libc. We check for pthread_attr_init
9535 # due to DEC craziness with -lpthreads. We check for
9536 # pthread_cleanup_push because it is one of the few pthread
9537 # functions on Solaris that doesn't have a non-functional libc stub.
9538 # We try pthread_create on general principles.
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540/* end confdefs.h. */
9541#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009542 static void routine(void *a) { a = 0; }
9543 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009544int
9545main ()
9546{
9547pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009548 pthread_create(&th, 0, start_routine, 0);
9549 pthread_join(th, 0);
9550 pthread_attr_init(&attr);
9551 pthread_cleanup_push(routine, 0);
9552 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009553 ;
9554 return 0;
9555}
9556_ACEOF
9557if ac_fn_c_try_link "$LINENO"; then :
9558 ax_pthread_ok=yes
9559fi
9560rm -f core conftest.err conftest.$ac_objext \
9561 conftest$ac_exeext conftest.$ac_ext
9562
9563 LIBS="$save_LIBS"
9564 CFLAGS="$save_CFLAGS"
9565
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9567$as_echo "$ax_pthread_ok" >&6; }
9568 if test "x$ax_pthread_ok" = xyes; then
9569 break;
9570 fi
9571
9572 PTHREAD_LIBS=""
9573 PTHREAD_CFLAGS=""
9574done
9575fi
9576
9577# Various other checks:
9578if test "x$ax_pthread_ok" = xyes; then
9579 save_LIBS="$LIBS"
9580 LIBS="$PTHREAD_LIBS $LIBS"
9581 save_CFLAGS="$CFLAGS"
9582 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9583
9584 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009586$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009587 attr_name=unknown
9588 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009590/* end confdefs.h. */
9591#include <pthread.h>
9592int
9593main ()
9594{
cristya316db12011-10-24 00:49:45 +00009595int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009596 ;
9597 return 0;
9598}
9599_ACEOF
9600if ac_fn_c_try_link "$LINENO"; then :
9601 attr_name=$attr; break
9602fi
9603rm -f core conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009605 done
cristy73bd4a52010-10-05 11:24:23 +00009606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9607$as_echo "$attr_name" >&6; }
9608 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9609
9610cat >>confdefs.h <<_ACEOF
9611#define PTHREAD_CREATE_JOINABLE $attr_name
9612_ACEOF
9613
9614 fi
9615
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9617$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9618 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009619 case ${host_os} in
9620 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9621 osf* | hpux*) flag="-D_REENTRANT";;
9622 solaris*)
9623 if test "$GCC" = "yes"; then
9624 flag="-D_REENTRANT"
9625 else
cristy17491be2014-06-24 01:10:53 +00009626 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009627 flag="-mt -D_REENTRANT"
9628 fi
9629 ;;
cristy73bd4a52010-10-05 11:24:23 +00009630 esac
cristy17491be2014-06-24 01:10:53 +00009631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9632$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009633 if test "x$flag" != xno; then
9634 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9635 fi
9636
cristya316db12011-10-24 00:49:45 +00009637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9638$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9639if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9640 $as_echo_n "(cached) " >&6
9641else
9642
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009645#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009646int
9647main ()
9648{
9649int i = PTHREAD_PRIO_INHERIT;
9650 ;
9651 return 0;
9652}
9653_ACEOF
9654if ac_fn_c_try_link "$LINENO"; then :
9655 ax_cv_PTHREAD_PRIO_INHERIT=yes
9656else
9657 ax_cv_PTHREAD_PRIO_INHERIT=no
9658fi
9659rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661
9662fi
9663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9664$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9665 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9666
9667$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9668
9669fi
9670
cristy73bd4a52010-10-05 11:24:23 +00009671 LIBS="$save_LIBS"
9672 CFLAGS="$save_CFLAGS"
9673
cristy23493c42013-04-11 16:04:59 +00009674 # More AIX lossage: compile with *_r variant
9675 if test "x$GCC" != xyes; then
9676 case $host_os in
9677 aix*)
9678 case "x/$CC" in #(
9679 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9680 #handle absolute path differently from PATH based program lookup
9681 case "x$CC" in #(
9682 x/*) :
9683 if as_fn_executable_p ${CC}_r; then :
9684 PTHREAD_CC="${CC}_r"
9685fi ;; #(
9686 *) :
9687 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009688do
9689 # Extract the first word of "$ac_prog", so it can be a program name with args.
9690set dummy $ac_prog; ac_word=$2
9691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009693if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009694 $as_echo_n "(cached) " >&6
9695else
9696 if test -n "$PTHREAD_CC"; then
9697 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9698else
9699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700for as_dir in $PATH
9701do
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009706 ac_cv_prog_PTHREAD_CC="$ac_prog"
9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 break 2
9709 fi
9710done
9711 done
9712IFS=$as_save_IFS
9713
9714fi
9715fi
9716PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9717if test -n "$PTHREAD_CC"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9719$as_echo "$PTHREAD_CC" >&6; }
9720else
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722$as_echo "no" >&6; }
9723fi
9724
9725
9726 test -n "$PTHREAD_CC" && break
9727done
cristy23493c42013-04-11 16:04:59 +00009728test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9729 ;;
9730esac ;; #(
9731 *) :
9732 ;;
9733esac
9734 ;;
9735 esac
cristya316db12011-10-24 00:49:45 +00009736 fi
cristy73bd4a52010-10-05 11:24:23 +00009737fi
9738
cristy23493c42013-04-11 16:04:59 +00009739test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9740
cristy73bd4a52010-10-05 11:24:23 +00009741
9742
9743
9744
9745# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9746if test x"$ax_pthread_ok" = xyes; then
9747
9748$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9749
9750 :
9751else
9752 ax_pthread_ok=no
9753
9754fi
9755ac_ext=c
9756ac_cpp='$CPP $CPPFLAGS'
9757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9759ac_compiler_gnu=$ac_cv_c_compiler_gnu
9760
9761
cristy7acf8fb2010-09-23 19:58:53 +00009762 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009763 have_threads=yes
9764 DEF_THREAD="$PTHREAD_CFLAGS"
9765 CFLAGS="$CFLAGS $DEF_THREAD"
9766 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009767 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009768 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009769 { $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 +00009770$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9771 CC="$PTHREAD_CC"
9772 fi
cristy55bf91c2010-09-24 00:29:41 +00009773
9774$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9775
cristy3ed852e2009-09-05 21:47:34 +00009776 fi
9777fi
cristy1ae5c992013-07-30 14:55:07 +00009778LIBS="$LIBS $THREAD_LIBS"
9779
cristy3ed852e2009-09-05 21:47:34 +00009780
9781# Enable support for OpenMP
9782if test "$have_threads" != 'yes'; then
9783 ac_cv_prog_c_openmp=unsupported
9784fi
9785
9786 OPENMP_CFLAGS=
9787 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009788if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009789 enableval=$enable_openmp;
9790fi
9791
9792 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009794$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009795if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009796 $as_echo_n "(cached) " >&6
9797else
cristy8b350f62009-11-15 23:12:43 +00009798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009800
9801#ifndef _OPENMP
9802 choke me
9803#endif
9804#include <omp.h>
9805int main () { return omp_get_num_threads (); }
9806
9807_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009808if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009809 ac_cv_prog_c_openmp='none needed'
9810else
cristy8b350f62009-11-15 23:12:43 +00009811 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009812 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9813 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009814 ac_save_CFLAGS=$CFLAGS
9815 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009818
9819#ifndef _OPENMP
9820 choke me
9821#endif
9822#include <omp.h>
9823int main () { return omp_get_num_threads (); }
9824
9825_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009826if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009827 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009828fi
cristy8b350f62009-11-15 23:12:43 +00009829rm -f core conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009831 CFLAGS=$ac_save_CFLAGS
9832 if test "$ac_cv_prog_c_openmp" != unsupported; then
9833 break
9834 fi
9835 done
9836fi
cristy8b350f62009-11-15 23:12:43 +00009837rm -f core conftest.err conftest.$ac_objext \
9838 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009839fi
cristy8b350f62009-11-15 23:12:43 +00009840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009841$as_echo "$ac_cv_prog_c_openmp" >&6; }
9842 case $ac_cv_prog_c_openmp in #(
9843 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009844 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009845 *)
cristy8b350f62009-11-15 23:12:43 +00009846 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009847 esac
9848 fi
9849
9850
9851CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9852MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9853
cristy391f1ce2010-09-09 17:23:28 +00009854if test "$enable_openmp" != no; then
9855 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9856 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9857 fi
9858fi
cristy3ed852e2009-09-05 21:47:34 +00009859
cristy736173a2009-09-20 21:18:22 +00009860# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009861
9862
cristy73bd4a52010-10-05 11:24:23 +00009863ac_ext=c
9864ac_cpp='$CPP $CPPFLAGS'
9865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9867ac_compiler_gnu=$ac_cv_c_compiler_gnu
9868
9869ax_pthread_ok=no
9870
9871# We used to check for pthread.h first, but this fails if pthread.h
9872# requires special compiler flags (e.g. on True64 or Sequent).
9873# It gets checked for in the link test anyway.
9874
9875# First of all, check if the user has set any of the PTHREAD_LIBS,
9876# etcetera environment variables, and if threads linking works using
9877# them:
9878if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9879 save_CFLAGS="$CFLAGS"
9880 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9881 save_LIBS="$LIBS"
9882 LIBS="$PTHREAD_LIBS $LIBS"
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9884$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886/* end confdefs.h. */
9887
9888/* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
9890 builtin and then its argument prototype would still apply. */
9891#ifdef __cplusplus
9892extern "C"
9893#endif
9894char pthread_join ();
9895int
9896main ()
9897{
9898return pthread_join ();
9899 ;
9900 return 0;
9901}
9902_ACEOF
9903if ac_fn_c_try_link "$LINENO"; then :
9904 ax_pthread_ok=yes
9905fi
9906rm -f core conftest.err conftest.$ac_objext \
9907 conftest$ac_exeext conftest.$ac_ext
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9909$as_echo "$ax_pthread_ok" >&6; }
9910 if test x"$ax_pthread_ok" = xno; then
9911 PTHREAD_LIBS=""
9912 PTHREAD_CFLAGS=""
9913 fi
9914 LIBS="$save_LIBS"
9915 CFLAGS="$save_CFLAGS"
9916fi
9917
9918# We must check for the threads library under a number of different
9919# names; the ordering is very important because some systems
9920# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9921# libraries is broken (non-POSIX).
9922
9923# Create a list of thread flags to try. Items starting with a "-" are
9924# C compiler flags, and other items are library names, except for "none"
9925# which indicates that we try without any flags at all, and "pthread-config"
9926# which is a program returning the flags for the Pth emulation library.
9927
cristy2ec87cc2013-02-18 17:46:50 +00009928ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009929
9930# The ordering *is* (sometimes) important. Some notes on the
9931# individual items follow:
9932
9933# pthreads: AIX (must check this before -lpthread)
9934# none: in case threads are in libc; should be tried before -Kthread and
9935# other compiler flags to prevent continual compiler warnings
9936# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9937# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9938# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9939# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9940# -pthreads: Solaris/gcc
9941# -mthreads: Mingw32/gcc, Lynx/gcc
9942# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9943# doesn't hurt to check since this sometimes defines pthreads too;
9944# also defines -D_REENTRANT)
9945# ... -mt is also the pthreads flag for HP/aCC
9946# pthread: Linux, etcetera
9947# --thread-safe: KAI C++
9948# pthread-config: use pthread-config program (for GNU Pth library)
9949
cristy2ec87cc2013-02-18 17:46:50 +00009950case ${host_os} in
9951 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009952
9953 # On Solaris (at least, for some versions), libc contains stubbed
9954 # (non-functional) versions of the pthreads routines, so link-based
9955 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9956 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9957 # a function called by this macro, so we could check for that, but
9958 # who knows whether they'll stub that too in a future libc.) So,
9959 # we'll just look for -pthreads and -lpthread first:
9960
9961 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9962 ;;
9963
cristy2ec87cc2013-02-18 17:46:50 +00009964 darwin*)
cristya316db12011-10-24 00:49:45 +00009965 ax_pthread_flags="-pthread $ax_pthread_flags"
9966 ;;
cristy73bd4a52010-10-05 11:24:23 +00009967esac
9968
cristy17491be2014-06-24 01:10:53 +00009969# Clang doesn't consider unrecognized options an error unless we specify
9970# -Werror. We throw in some extra Clang-specific options to ensure that
9971# this doesn't happen for GCC, which also accepts -Werror.
9972
9973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9974$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9975save_CFLAGS="$CFLAGS"
9976ax_pthread_extra_flags="-Werror"
9977CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979/* end confdefs.h. */
9980int foo(void);
9981int
9982main ()
9983{
9984foo()
9985 ;
9986 return 0;
9987}
9988_ACEOF
9989if ac_fn_c_try_compile "$LINENO"; then :
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9991$as_echo "yes" >&6; }
9992else
9993 ax_pthread_extra_flags=
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995$as_echo "no" >&6; }
9996fi
9997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9998CFLAGS="$save_CFLAGS"
9999
cristy73bd4a52010-10-05 11:24:23 +000010000if test x"$ax_pthread_ok" = xno; then
10001for flag in $ax_pthread_flags; do
10002
10003 case $flag in
10004 none)
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10006$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10007 ;;
10008
10009 -*)
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10011$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10012 PTHREAD_CFLAGS="$flag"
10013 ;;
10014
cristya316db12011-10-24 00:49:45 +000010015 pthread-config)
10016 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010017set dummy pthread-config; ac_word=$2
10018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10019$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010020if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010021 $as_echo_n "(cached) " >&6
10022else
10023 if test -n "$ax_pthread_config"; then
10024 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10025else
10026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10027for as_dir in $PATH
10028do
10029 IFS=$as_save_IFS
10030 test -z "$as_dir" && as_dir=.
10031 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010033 ac_cv_prog_ax_pthread_config="yes"
10034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10035 break 2
10036 fi
10037done
10038 done
10039IFS=$as_save_IFS
10040
10041 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10042fi
10043fi
10044ax_pthread_config=$ac_cv_prog_ax_pthread_config
10045if test -n "$ax_pthread_config"; then
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10047$as_echo "$ax_pthread_config" >&6; }
10048else
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050$as_echo "no" >&6; }
10051fi
10052
10053
cristya316db12011-10-24 00:49:45 +000010054 if test x"$ax_pthread_config" = xno; then continue; fi
10055 PTHREAD_CFLAGS="`pthread-config --cflags`"
10056 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10057 ;;
cristy73bd4a52010-10-05 11:24:23 +000010058
10059 *)
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10061$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10062 PTHREAD_LIBS="-l$flag"
10063 ;;
10064 esac
10065
10066 save_LIBS="$LIBS"
10067 save_CFLAGS="$CFLAGS"
10068 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010069 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010070
10071 # Check for various functions. We must include pthread.h,
10072 # since some functions may be macros. (On the Sequent, we
10073 # need a special flag -Kthread to make this header compile.)
10074 # We check for pthread_join because it is in -lpthread on IRIX
10075 # while pthread_create is in libc. We check for pthread_attr_init
10076 # due to DEC craziness with -lpthreads. We check for
10077 # pthread_cleanup_push because it is one of the few pthread
10078 # functions on Solaris that doesn't have a non-functional libc stub.
10079 # We try pthread_create on general principles.
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081/* end confdefs.h. */
10082#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010083 static void routine(void *a) { a = 0; }
10084 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010085int
10086main ()
10087{
10088pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010089 pthread_create(&th, 0, start_routine, 0);
10090 pthread_join(th, 0);
10091 pthread_attr_init(&attr);
10092 pthread_cleanup_push(routine, 0);
10093 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010094 ;
10095 return 0;
10096}
10097_ACEOF
10098if ac_fn_c_try_link "$LINENO"; then :
10099 ax_pthread_ok=yes
10100fi
10101rm -f core conftest.err conftest.$ac_objext \
10102 conftest$ac_exeext conftest.$ac_ext
10103
10104 LIBS="$save_LIBS"
10105 CFLAGS="$save_CFLAGS"
10106
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10108$as_echo "$ax_pthread_ok" >&6; }
10109 if test "x$ax_pthread_ok" = xyes; then
10110 break;
10111 fi
10112
10113 PTHREAD_LIBS=""
10114 PTHREAD_CFLAGS=""
10115done
10116fi
10117
10118# Various other checks:
10119if test "x$ax_pthread_ok" = xyes; then
10120 save_LIBS="$LIBS"
10121 LIBS="$PTHREAD_LIBS $LIBS"
10122 save_CFLAGS="$CFLAGS"
10123 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10124
10125 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010127$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010128 attr_name=unknown
10129 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010131/* end confdefs.h. */
10132#include <pthread.h>
10133int
10134main ()
10135{
cristya316db12011-10-24 00:49:45 +000010136int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010137 ;
10138 return 0;
10139}
10140_ACEOF
10141if ac_fn_c_try_link "$LINENO"; then :
10142 attr_name=$attr; break
10143fi
10144rm -f core conftest.err conftest.$ac_objext \
10145 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010146 done
cristy73bd4a52010-10-05 11:24:23 +000010147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10148$as_echo "$attr_name" >&6; }
10149 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10150
10151cat >>confdefs.h <<_ACEOF
10152#define PTHREAD_CREATE_JOINABLE $attr_name
10153_ACEOF
10154
10155 fi
10156
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10158$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10159 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010160 case ${host_os} in
10161 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10162 osf* | hpux*) flag="-D_REENTRANT";;
10163 solaris*)
10164 if test "$GCC" = "yes"; then
10165 flag="-D_REENTRANT"
10166 else
cristy17491be2014-06-24 01:10:53 +000010167 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010168 flag="-mt -D_REENTRANT"
10169 fi
10170 ;;
cristy73bd4a52010-10-05 11:24:23 +000010171 esac
cristy17491be2014-06-24 01:10:53 +000010172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10173$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010174 if test "x$flag" != xno; then
10175 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10176 fi
10177
cristya316db12011-10-24 00:49:45 +000010178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10179$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10180if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182else
10183
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010186#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010187int
10188main ()
10189{
10190int i = PTHREAD_PRIO_INHERIT;
10191 ;
10192 return 0;
10193}
10194_ACEOF
10195if ac_fn_c_try_link "$LINENO"; then :
10196 ax_cv_PTHREAD_PRIO_INHERIT=yes
10197else
10198 ax_cv_PTHREAD_PRIO_INHERIT=no
10199fi
10200rm -f core conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10202
10203fi
10204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10205$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10206 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10207
10208$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10209
10210fi
10211
cristy73bd4a52010-10-05 11:24:23 +000010212 LIBS="$save_LIBS"
10213 CFLAGS="$save_CFLAGS"
10214
cristy23493c42013-04-11 16:04:59 +000010215 # More AIX lossage: compile with *_r variant
10216 if test "x$GCC" != xyes; then
10217 case $host_os in
10218 aix*)
10219 case "x/$CC" in #(
10220 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10221 #handle absolute path differently from PATH based program lookup
10222 case "x$CC" in #(
10223 x/*) :
10224 if as_fn_executable_p ${CC}_r; then :
10225 PTHREAD_CC="${CC}_r"
10226fi ;; #(
10227 *) :
10228 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010229do
10230 # Extract the first word of "$ac_prog", so it can be a program name with args.
10231set dummy $ac_prog; ac_word=$2
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010234if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010235 $as_echo_n "(cached) " >&6
10236else
10237 if test -n "$PTHREAD_CC"; then
10238 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10239else
10240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241for as_dir in $PATH
10242do
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
10245 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010247 ac_cv_prog_PTHREAD_CC="$ac_prog"
10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10249 break 2
10250 fi
10251done
10252 done
10253IFS=$as_save_IFS
10254
10255fi
10256fi
10257PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10258if test -n "$PTHREAD_CC"; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10260$as_echo "$PTHREAD_CC" >&6; }
10261else
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263$as_echo "no" >&6; }
10264fi
10265
10266
10267 test -n "$PTHREAD_CC" && break
10268done
cristy23493c42013-04-11 16:04:59 +000010269test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10270 ;;
10271esac ;; #(
10272 *) :
10273 ;;
10274esac
10275 ;;
10276 esac
cristya316db12011-10-24 00:49:45 +000010277 fi
cristy73bd4a52010-10-05 11:24:23 +000010278fi
10279
cristy23493c42013-04-11 16:04:59 +000010280test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10281
cristy73bd4a52010-10-05 11:24:23 +000010282
10283
10284
10285
10286# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10287if test x"$ax_pthread_ok" = xyes; then
10288
10289$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10290
10291 :
10292else
10293 ax_pthread_ok=no
10294
10295fi
10296ac_ext=c
10297ac_cpp='$CPP $CPPFLAGS'
10298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10300ac_compiler_gnu=$ac_cv_c_compiler_gnu
10301
10302
10303
10304# Check whether --enable-opencl was given.
10305if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010306 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010307else
cristy48794642012-09-02 15:19:08 +000010308 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010309fi
10310
10311
cristy48794642012-09-02 15:19:08 +000010312if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010313 ac_ext=c
10314ac_cpp='$CPP $CPPFLAGS'
10315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10317ac_compiler_gnu=$ac_cv_c_compiler_gnu
10318
cristy75314cc2012-09-15 23:08:29 +000010319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10320$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10321if ${ax_cv_c_compiler_ms+:} false; then :
10322 $as_echo_n "(cached) " >&6
10323else
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325/* end confdefs.h. */
10326
10327int
10328main ()
10329{
10330#ifndef _MSC_VER
10331 choke me
10332#endif
10333
10334 ;
10335 return 0;
10336}
10337_ACEOF
10338if ac_fn_c_try_compile "$LINENO"; then :
10339 ax_compiler_ms=yes
10340else
10341 ax_compiler_ms=no
10342fi
10343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10344ax_cv_c_compiler_ms=$ax_compiler_ms
10345
10346fi
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10348$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010349 if test X$ax_compiler_ms = Xno; then :
10350 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10351fi
10352
10353 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010354 ax_save_CL_CFLAGS=$CL_CFLAGS
10355
10356 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010357 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10358 for ac_header in CL/cl.h OpenCL/cl.h
10359do :
10360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10361ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010362if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010363 cat >>confdefs.h <<_ACEOF
10364#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10365_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010366 found_opencl_header='yes'
10367 break;
10368else
10369 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010370fi
10371
10372done
10373
cristyfdc7d122013-08-17 20:46:45 +000010374
10375 if test X$found_opencl_header = Xno; then :
10376 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10377 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10378 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10379 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10380 for ac_header in CL/cl.h OpenCL/cl.h
10381do :
10382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10383ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10384if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10385 cat >>confdefs.h <<_ACEOF
10386#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10387_ACEOF
10388 found_opencl_header='yes'
10389 break;
10390else
10391 found_opencl_header='no'
10392fi
10393
10394done
10395
10396
10397fi
10398
10399 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010400
10401 for ac_header in windows.h
10402do :
10403 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010404if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010405 cat >>confdefs.h <<_ACEOF
10406#define HAVE_WINDOWS_H 1
10407_ACEOF
10408
10409fi
10410
10411done
10412
10413
10414
10415
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10417$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010418if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010419 $as_echo_n "(cached) " >&6
10420else
10421 ax_cv_check_cl_libcl=no
10422 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010423 x86_64) ax_check_cl_libdir=lib64
10424 ax_check_cl_amd_libdir=x86_64
10425 ;;
10426 *) ax_check_cl_libdir=lib
10427 ax_check_cl_amd_libdir=x86
10428 ;;
cristy73bd4a52010-10-05 11:24:23 +000010429 esac
10430 ax_save_CPPFLAGS=$CPPFLAGS
10431 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10432 ax_save_LIBS=$LIBS
10433 LIBS=""
10434 ax_check_libs="-lOpenCL -lCL -lclparser"
10435 for ax_lib in $ax_check_libs; do
10436 if test X$ax_compiler_ms = Xyes; then :
10437 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10438else
10439 ax_try_lib=$ax_lib
10440fi
10441 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443/* end confdefs.h. */
10444
10445 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10446 # include <windows.h>
10447 # endif
10448 # ifdef HAVE_CL_CL_H
10449 # include <CL/cl.h>
10450 # elif defined(HAVE_OPENCL_CL_H)
10451 # include <OpenCL/cl.h>
10452 # else
10453 # error no CL.h
10454 # endif
10455int
10456main ()
10457{
10458clCreateContextFromType(0,0,0,0,0)
10459 ;
10460 return 0;
10461}
10462_ACEOF
10463if ac_fn_c_try_link "$LINENO"; then :
10464 ax_cv_check_cl_libcl=$ax_try_lib; break
10465else
10466 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"
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468/* end confdefs.h. */
10469
10470 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10471 # include <windows.h>
10472 # endif
10473 # ifdef HAVE_CL_CL_H
10474 # include <CL/cl.h>
10475 # elif defined(HAVE_OPENCL_CL_H)
10476 # include <OpenCL/cl.h>
10477 # else
10478 # error no CL.h
10479 # endif
10480int
10481main ()
10482{
10483clCreateContextFromType(0,0,0,0,0)
10484 ;
10485 return 0;
10486}
10487_ACEOF
10488if ac_fn_c_try_link "$LINENO"; then :
10489 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10490else
cristy78c5a0c2010-12-04 20:00:59 +000010491 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 +000010492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493/* end confdefs.h. */
10494
10495 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10496 # include <windows.h>
10497 # endif
10498 # ifdef HAVE_CL_CL_H
10499 # include <CL/cl.h>
10500 # elif defined(HAVE_OPENCL_CL_H)
10501 # include <OpenCL/cl.h>
10502 # else
10503 # error no CL.h
10504 # endif
10505int
10506main ()
10507{
10508clCreateContextFromType(0,0,0,0,0)
10509 ;
10510 return 0;
10511}
10512_ACEOF
10513if ac_fn_c_try_link "$LINENO"; then :
10514 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010515else
10516 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"
10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518/* end confdefs.h. */
10519
10520 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10521 # include <windows.h>
10522 # endif
10523 # ifdef HAVE_CL_CL_H
10524 # include <CL/cl.h>
10525 # elif defined(HAVE_OPENCL_CL_H)
10526 # include <OpenCL/cl.h>
10527 # else
10528 # error no CL.h
10529 # endif
10530int
10531main ()
10532{
10533clCreateContextFromType(0,0,0,0,0)
10534 ;
10535 return 0;
10536}
10537_ACEOF
10538if ac_fn_c_try_link "$LINENO"; then :
10539 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10540
10541fi
10542rm -f core conftest.err conftest.$ac_objext \
10543 conftest$ac_exeext conftest.$ac_ext
10544
10545
cristy73bd4a52010-10-05 11:24:23 +000010546fi
10547rm -f core conftest.err conftest.$ac_objext \
10548 conftest$ac_exeext conftest.$ac_ext
10549fi
10550rm -f core conftest.err conftest.$ac_objext \
10551 conftest$ac_exeext conftest.$ac_ext
10552fi
10553rm -f core conftest.err conftest.$ac_objext \
10554 conftest$ac_exeext conftest.$ac_ext
10555 done
10556
cristyc3f8b8e2011-12-22 14:55:16 +000010557 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010558 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560/* end confdefs.h. */
10561
10562 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10563 # include <windows.h>
10564 # endif
10565 # ifdef HAVE_CL_CL_H
10566 # include <CL/cl.h>
10567 # elif defined(HAVE_OPENCL_CL_H)
10568 # include <OpenCL/cl.h>
10569 # else
10570 # error no CL.h
10571 # endif
10572int
10573main ()
10574{
10575clCreateContextFromType(0,0,0,0,0)
10576 ;
10577 return 0;
10578}
10579_ACEOF
10580if ac_fn_c_try_link "$LINENO"; then :
10581 ax_cv_check_cl_libcl=$LIBS
10582fi
10583rm -f core conftest.err conftest.$ac_objext \
10584 conftest$ac_exeext conftest.$ac_ext
10585fi
10586
10587 LIBS=$ax_save_LIBS
10588 CPPFLAGS=$ax_save_CPPFLAGS
10589fi
10590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10591$as_echo "$ax_cv_check_cl_libcl" >&6; }
10592
10593 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10594 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10595else
10596 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10597$as_echo "#define _OPENCL 1" >>confdefs.h
10598
10599fi
10600 ac_ext=c
10601ac_cpp='$CPP $CPPFLAGS'
10602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10604ac_compiler_gnu=$ac_cv_c_compiler_gnu
10605
10606fi
10607
10608
10609
cristy0c832c62014-03-07 22:21:04 +000010610#remove static link on Linux
10611CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10612
cristy73bd4a52010-10-05 11:24:23 +000010613
cristyc7083c12009-10-14 03:16:55 +000010614CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010615CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010616LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010617
cristy391f1ce2010-09-09 17:23:28 +000010618if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010619 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010620 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10621 fi
cristyfd9dcd42010-08-08 18:07:02 +000010622fi
cristy2e8b51d2009-10-17 18:26:15 +000010623
cristy3ed852e2009-09-05 21:47:34 +000010624########
10625#
10626# Check for large file support
10627#
10628########
10629# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010630if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010631 enableval=$enable_largefile;
10632fi
10633
10634if test "$enable_largefile" != no; then
10635
cristy8b350f62009-11-15 23:12:43 +000010636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010637$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010638if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010639 $as_echo_n "(cached) " >&6
10640else
10641 ac_cv_sys_largefile_CC=no
10642 if test "$GCC" != yes; then
10643 ac_save_CC=$CC
10644 while :; do
10645 # IRIX 6.2 and later do not support large files by default,
10646 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010648/* end confdefs.h. */
10649#include <sys/types.h>
10650 /* Check that off_t can represent 2**63 - 1 correctly.
10651 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10652 since some C++ compilers masquerading as C compilers
10653 incorrectly reject 9223372036854775807. */
10654#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10655 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10656 && LARGE_OFF_T % 2147483647 == 1)
10657 ? 1 : -1];
10658int
10659main ()
10660{
10661
10662 ;
10663 return 0;
10664}
10665_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010666 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010667 break
cristy3ed852e2009-09-05 21:47:34 +000010668fi
cristy3ed852e2009-09-05 21:47:34 +000010669rm -f core conftest.err conftest.$ac_objext
10670 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010671 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010672 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010673fi
cristy3ed852e2009-09-05 21:47:34 +000010674rm -f core conftest.err conftest.$ac_objext
10675 break
10676 done
10677 CC=$ac_save_CC
10678 rm -f conftest.$ac_ext
10679 fi
10680fi
cristy8b350f62009-11-15 23:12:43 +000010681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010682$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10683 if test "$ac_cv_sys_largefile_CC" != no; then
10684 CC=$CC$ac_cv_sys_largefile_CC
10685 fi
10686
cristy8b350f62009-11-15 23:12:43 +000010687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010688$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010689if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010690 $as_echo_n "(cached) " >&6
10691else
10692 while :; do
cristy8b350f62009-11-15 23:12:43 +000010693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010694/* end confdefs.h. */
10695#include <sys/types.h>
10696 /* Check that off_t can represent 2**63 - 1 correctly.
10697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10698 since some C++ compilers masquerading as C compilers
10699 incorrectly reject 9223372036854775807. */
10700#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10702 && LARGE_OFF_T % 2147483647 == 1)
10703 ? 1 : -1];
10704int
10705main ()
10706{
10707
10708 ;
10709 return 0;
10710}
10711_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010712if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010713 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010714fi
cristy3ed852e2009-09-05 21:47:34 +000010715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010717/* end confdefs.h. */
10718#define _FILE_OFFSET_BITS 64
10719#include <sys/types.h>
10720 /* Check that off_t can represent 2**63 - 1 correctly.
10721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10722 since some C++ compilers masquerading as C compilers
10723 incorrectly reject 9223372036854775807. */
10724#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10726 && LARGE_OFF_T % 2147483647 == 1)
10727 ? 1 : -1];
10728int
10729main ()
10730{
10731
10732 ;
10733 return 0;
10734}
10735_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010736if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010737 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010738fi
cristy3ed852e2009-09-05 21:47:34 +000010739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740 ac_cv_sys_file_offset_bits=unknown
10741 break
10742done
10743fi
cristy8b350f62009-11-15 23:12:43 +000010744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010745$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10746case $ac_cv_sys_file_offset_bits in #(
10747 no | unknown) ;;
10748 *)
10749cat >>confdefs.h <<_ACEOF
10750#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10751_ACEOF
10752;;
10753esac
10754rm -rf conftest*
10755 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010757$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010758if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010759 $as_echo_n "(cached) " >&6
10760else
10761 while :; do
cristy8b350f62009-11-15 23:12:43 +000010762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010763/* end confdefs.h. */
10764#include <sys/types.h>
10765 /* Check that off_t can represent 2**63 - 1 correctly.
10766 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10767 since some C++ compilers masquerading as C compilers
10768 incorrectly reject 9223372036854775807. */
10769#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10771 && LARGE_OFF_T % 2147483647 == 1)
10772 ? 1 : -1];
10773int
10774main ()
10775{
10776
10777 ;
10778 return 0;
10779}
10780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010781if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010782 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010783fi
cristy3ed852e2009-09-05 21:47:34 +000010784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010786/* end confdefs.h. */
10787#define _LARGE_FILES 1
10788#include <sys/types.h>
10789 /* Check that off_t can represent 2**63 - 1 correctly.
10790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10791 since some C++ compilers masquerading as C compilers
10792 incorrectly reject 9223372036854775807. */
10793#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10795 && LARGE_OFF_T % 2147483647 == 1)
10796 ? 1 : -1];
10797int
10798main ()
10799{
10800
10801 ;
10802 return 0;
10803}
10804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010805if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010806 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010807fi
cristy3ed852e2009-09-05 21:47:34 +000010808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10809 ac_cv_sys_large_files=unknown
10810 break
10811done
10812fi
cristy8b350f62009-11-15 23:12:43 +000010813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010814$as_echo "$ac_cv_sys_large_files" >&6; }
10815case $ac_cv_sys_large_files in #(
10816 no | unknown) ;;
10817 *)
10818cat >>confdefs.h <<_ACEOF
10819#define _LARGE_FILES $ac_cv_sys_large_files
10820_ACEOF
10821;;
10822esac
10823rm -rf conftest*
10824 fi
cristy14fefe52012-05-21 00:59:18 +000010825
10826
cristy3ed852e2009-09-05 21:47:34 +000010827fi
10828
cristy8b350f62009-11-15 23:12:43 +000010829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010830$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010831if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010832 $as_echo_n "(cached) " >&6
10833else
10834 while :; do
cristy8b350f62009-11-15 23:12:43 +000010835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010836/* end confdefs.h. */
10837#include <sys/types.h> /* for off_t */
10838 #include <stdio.h>
10839int
10840main ()
10841{
10842int (*fp) (FILE *, off_t, int) = fseeko;
10843 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10844 ;
10845 return 0;
10846}
10847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010848if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010849 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010850fi
cristy8b350f62009-11-15 23:12:43 +000010851rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010854/* end confdefs.h. */
10855#define _LARGEFILE_SOURCE 1
10856#include <sys/types.h> /* for off_t */
10857 #include <stdio.h>
10858int
10859main ()
10860{
10861int (*fp) (FILE *, off_t, int) = fseeko;
10862 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10863 ;
10864 return 0;
10865}
10866_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010867if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010868 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010869fi
cristy8b350f62009-11-15 23:12:43 +000010870rm -f core conftest.err conftest.$ac_objext \
10871 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010872 ac_cv_sys_largefile_source=unknown
10873 break
10874done
10875fi
cristy8b350f62009-11-15 23:12:43 +000010876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010877$as_echo "$ac_cv_sys_largefile_source" >&6; }
10878case $ac_cv_sys_largefile_source in #(
10879 no | unknown) ;;
10880 *)
10881cat >>confdefs.h <<_ACEOF
10882#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10883_ACEOF
10884;;
10885esac
10886rm -rf conftest*
10887
10888# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10889# in glibc 2.1.3, but that breaks too many other things.
10890# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10891if test $ac_cv_sys_largefile_source != unknown; then
10892
cristy8b350f62009-11-15 23:12:43 +000010893$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010894
10895fi
10896
10897LFS_CPPFLAGS=''
10898if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010899 case $ac_cv_sys_file_offset_bits in
10900 no)
10901 # nothing to do here as the host supports LFS fine
10902 ;;
10903 unknown)
cristy8b350f62009-11-15 23:12:43 +000010904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010905$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010906 if test "$cross_compiling" = yes; then :
10907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010909as_fn_error $? "cannot run test program while cross compiling
10910See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010911else
cristy8b350f62009-11-15 23:12:43 +000010912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010914#include <unistd.h>
10915 main () {
10916 exit(!(sizeof(off_t) == 8));
10917 }
cristyda16f162011-02-19 23:52:17 +000010918int
10919main ()
10920{
10921
10922 ;
10923 return 0;
10924}
cristy3ed852e2009-09-05 21:47:34 +000010925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010926if ac_fn_c_try_run "$LINENO"; then :
10927 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010928
cristyad38abe2012-12-23 23:03:21 +000010929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10930$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010931else
cristyad38abe2012-12-23 23:03:21 +000010932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010934fi
cristy8b350f62009-11-15 23:12:43 +000010935rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10936 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010937fi
10938
cristyc1e0cc12011-09-21 16:41:16 +000010939 ;;
10940 *)
10941 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10942 ;;
10943 esac
cristy3ed852e2009-09-05 21:47:34 +000010944 if test "$ac_cv_sys_large_files" != 'no'; then
10945 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10946 fi
10947 if test "$ac_cv_sys_largefile_source" != 'no'; then
10948 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10949 fi
10950fi
10951
10952
cristy3ed852e2009-09-05 21:47:34 +000010953# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010954enable_dlopen=yes
10955
10956
10957
10958case `pwd` in
10959 *\ * | *\ *)
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10961$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10962esac
10963
10964
10965
cristy99bd5232011-12-07 14:38:20 +000010966macro_version='2.4.2'
10967macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981ltmain="$ac_aux_dir/ltmain.sh"
10982
cristy0c60a692010-11-04 01:09:47 +000010983# Backslashify metacharacters that are still active within
10984# double-quoted strings.
10985sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10986
10987# Same as above, but do not quote variable references.
10988double_quote_subst='s/\(["`\\]\)/\\\1/g'
10989
10990# Sed substitution to delay expansion of an escaped shell variable in a
10991# double_quote_subst'ed string.
10992delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10993
10994# Sed substitution to delay expansion of an escaped single quote.
10995delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10996
10997# Sed substitution to avoid accidental globbing in evaled expressions
10998no_glob_subst='s/\*/\\\*/g'
10999
cristy73bd4a52010-10-05 11:24:23 +000011000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11001$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011002if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011003 $as_echo_n "(cached) " >&6
11004else
11005 if test -n "$NM"; then
11006 # Let the user override the test.
11007 lt_cv_path_NM="$NM"
11008else
11009 lt_nm_to_check="${ac_tool_prefix}nm"
11010 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11011 lt_nm_to_check="$lt_nm_to_check nm"
11012 fi
11013 for lt_tmp_nm in $lt_nm_to_check; do
11014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11015 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11016 IFS="$lt_save_ifs"
11017 test -z "$ac_dir" && ac_dir=.
11018 tmp_nm="$ac_dir/$lt_tmp_nm"
11019 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11020 # Check to see if the nm accepts a BSD-compat flag.
11021 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11022 # nm: unknown option "B" ignored
11023 # Tru64's nm complains that /dev/null is an invalid object file
11024 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11025 */dev/null* | *'Invalid file or object type'*)
11026 lt_cv_path_NM="$tmp_nm -B"
11027 break
11028 ;;
11029 *)
11030 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11031 */dev/null*)
11032 lt_cv_path_NM="$tmp_nm -p"
11033 break
11034 ;;
11035 *)
11036 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11037 continue # so that we can try to find one that supports BSD flags
11038 ;;
11039 esac
11040 ;;
11041 esac
11042 fi
11043 done
11044 IFS="$lt_save_ifs"
11045 done
11046 : ${lt_cv_path_NM=no}
11047fi
11048fi
11049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11050$as_echo "$lt_cv_path_NM" >&6; }
11051if test "$lt_cv_path_NM" != "no"; then
11052 NM="$lt_cv_path_NM"
11053else
11054 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011055 if test -n "$DUMPBIN"; then :
11056 # Let the user override the test.
11057 else
11058 if test -n "$ac_tool_prefix"; then
11059 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011060 do
11061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011065if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011066 $as_echo_n "(cached) " >&6
11067else
11068 if test -n "$DUMPBIN"; then
11069 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11070else
11071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072for as_dir in $PATH
11073do
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011078 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11080 break 2
11081 fi
11082done
11083 done
11084IFS=$as_save_IFS
11085
11086fi
11087fi
11088DUMPBIN=$ac_cv_prog_DUMPBIN
11089if test -n "$DUMPBIN"; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11091$as_echo "$DUMPBIN" >&6; }
11092else
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094$as_echo "no" >&6; }
11095fi
11096
11097
11098 test -n "$DUMPBIN" && break
11099 done
11100fi
11101if test -z "$DUMPBIN"; then
11102 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011103 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011104do
11105 # Extract the first word of "$ac_prog", so it can be a program name with args.
11106set dummy $ac_prog; ac_word=$2
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011109if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011110 $as_echo_n "(cached) " >&6
11111else
11112 if test -n "$ac_ct_DUMPBIN"; then
11113 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11114else
11115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116for as_dir in $PATH
11117do
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011122 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 break 2
11125 fi
11126done
11127 done
11128IFS=$as_save_IFS
11129
11130fi
11131fi
11132ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11133if test -n "$ac_ct_DUMPBIN"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11135$as_echo "$ac_ct_DUMPBIN" >&6; }
11136else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138$as_echo "no" >&6; }
11139fi
11140
11141
11142 test -n "$ac_ct_DUMPBIN" && break
11143done
11144
11145 if test "x$ac_ct_DUMPBIN" = x; then
11146 DUMPBIN=":"
11147 else
11148 case $cross_compiling:$ac_tool_warned in
11149yes:)
11150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11152ac_tool_warned=yes ;;
11153esac
11154 DUMPBIN=$ac_ct_DUMPBIN
11155 fi
11156fi
11157
cristy0c60a692010-11-04 01:09:47 +000011158 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11159 *COFF*)
11160 DUMPBIN="$DUMPBIN -symbols"
11161 ;;
11162 *)
11163 DUMPBIN=:
11164 ;;
11165 esac
11166 fi
cristy73bd4a52010-10-05 11:24:23 +000011167
11168 if test "$DUMPBIN" != ":"; then
11169 NM="$DUMPBIN"
11170 fi
11171fi
11172test -z "$NM" && NM=nm
11173
11174
11175
11176
11177
11178
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11180$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011181if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011182 $as_echo_n "(cached) " >&6
11183else
11184 lt_cv_nm_interface="BSD nm"
11185 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011186 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011187 (eval "$ac_compile" 2>conftest.err)
11188 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011189 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011190 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11191 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011192 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011193 cat conftest.out >&5
11194 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11195 lt_cv_nm_interface="MS dumpbin"
11196 fi
11197 rm -f conftest*
11198fi
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11200$as_echo "$lt_cv_nm_interface" >&6; }
11201
11202# find the maximum length of command line arguments
11203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11204$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011205if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011206 $as_echo_n "(cached) " >&6
11207else
11208 i=0
11209 teststring="ABCD"
11210
11211 case $build_os in
11212 msdosdjgpp*)
11213 # On DJGPP, this test can blow up pretty badly due to problems in libc
11214 # (any single argument exceeding 2000 bytes causes a buffer overrun
11215 # during glob expansion). Even if it were fixed, the result of this
11216 # check would be larger than it should be.
11217 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11218 ;;
11219
11220 gnu*)
11221 # Under GNU Hurd, this test is not required because there is
11222 # no limit to the length of command line arguments.
11223 # Libtool will interpret -1 as no limit whatsoever
11224 lt_cv_sys_max_cmd_len=-1;
11225 ;;
11226
11227 cygwin* | mingw* | cegcc*)
11228 # On Win9x/ME, this test blows up -- it succeeds, but takes
11229 # about 5 minutes as the teststring grows exponentially.
11230 # Worse, since 9x/ME are not pre-emptively multitasking,
11231 # you end up with a "frozen" computer, even though with patience
11232 # the test eventually succeeds (with a max line length of 256k).
11233 # Instead, let's just punt: use the minimum linelength reported by
11234 # all of the supported platforms: 8192 (on NT/2K/XP).
11235 lt_cv_sys_max_cmd_len=8192;
11236 ;;
11237
cristy0c60a692010-11-04 01:09:47 +000011238 mint*)
11239 # On MiNT this can take a long time and run out of memory.
11240 lt_cv_sys_max_cmd_len=8192;
11241 ;;
11242
cristy73bd4a52010-10-05 11:24:23 +000011243 amigaos*)
11244 # On AmigaOS with pdksh, this test takes hours, literally.
11245 # So we just punt and use a minimum line length of 8192.
11246 lt_cv_sys_max_cmd_len=8192;
11247 ;;
11248
11249 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11250 # This has been around since 386BSD, at least. Likely further.
11251 if test -x /sbin/sysctl; then
11252 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11253 elif test -x /usr/sbin/sysctl; then
11254 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11255 else
11256 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11257 fi
11258 # And add a safety zone
11259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11261 ;;
11262
11263 interix*)
11264 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11265 lt_cv_sys_max_cmd_len=196608
11266 ;;
11267
cristy99bd5232011-12-07 14:38:20 +000011268 os2*)
11269 # The test takes a long time on OS/2.
11270 lt_cv_sys_max_cmd_len=8192
11271 ;;
11272
cristy73bd4a52010-10-05 11:24:23 +000011273 osf*)
11274 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11275 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11276 # nice to cause kernel panics so lets avoid the loop below.
11277 # First set a reasonable default.
11278 lt_cv_sys_max_cmd_len=16384
11279 #
11280 if test -x /sbin/sysconfig; then
11281 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11282 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11283 esac
11284 fi
11285 ;;
11286 sco3.2v5*)
11287 lt_cv_sys_max_cmd_len=102400
11288 ;;
11289 sysv5* | sco5v6* | sysv4.2uw2*)
11290 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11291 if test -n "$kargmax"; then
11292 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11293 else
11294 lt_cv_sys_max_cmd_len=32768
11295 fi
11296 ;;
11297 *)
11298 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11299 if test -n "$lt_cv_sys_max_cmd_len"; then
11300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11302 else
11303 # Make teststring a little bigger before we do anything with it.
11304 # a 1K string should be a reasonable start.
11305 for i in 1 2 3 4 5 6 7 8 ; do
11306 teststring=$teststring$teststring
11307 done
11308 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11309 # If test is not a shell built-in, we'll probably end up computing a
11310 # maximum length that is only half of the actual maximum length, but
11311 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011312 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011313 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011314 test $i != 17 # 1/2 MB should be enough
11315 do
11316 i=`expr $i + 1`
11317 teststring=$teststring$teststring
11318 done
11319 # Only check the string length outside the loop.
11320 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11321 teststring=
11322 # Add a significant safety factor because C++ compilers can tack on
11323 # massive amounts of additional arguments before passing them to the
11324 # linker. It appears as though 1/2 is a usable value.
11325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11326 fi
11327 ;;
11328 esac
11329
11330fi
11331
11332if test -n $lt_cv_sys_max_cmd_len ; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11334$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11335else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11337$as_echo "none" >&6; }
11338fi
11339max_cmd_len=$lt_cv_sys_max_cmd_len
11340
11341
11342
11343
11344
11345
11346: ${CP="cp -f"}
11347: ${MV="mv -f"}
11348: ${RM="rm -f"}
11349
11350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11351$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11352# Try some XSI features
11353xsi_shell=no
11354( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011355 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11356 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011357 && eval 'test $(( 1 + 1 )) -eq 2 \
11358 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11359 && xsi_shell=yes
11360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11361$as_echo "$xsi_shell" >&6; }
11362
11363
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11365$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11366lt_shell_append=no
11367( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11368 >/dev/null 2>&1 \
11369 && lt_shell_append=yes
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11371$as_echo "$lt_shell_append" >&6; }
11372
11373
11374if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11375 lt_unset=unset
11376else
11377 lt_unset=false
11378fi
11379
11380
11381
11382
11383
11384# test EBCDIC or ASCII
11385case `echo X|tr X '\101'` in
11386 A) # ASCII based system
11387 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11388 lt_SP2NL='tr \040 \012'
11389 lt_NL2SP='tr \015\012 \040\040'
11390 ;;
11391 *) # EBCDIC based system
11392 lt_SP2NL='tr \100 \n'
11393 lt_NL2SP='tr \r\n \100\100'
11394 ;;
11395esac
11396
11397
11398
11399
11400
11401
11402
11403
11404
cristyda16f162011-02-19 23:52:17 +000011405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11406$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11407if ${lt_cv_to_host_file_cmd+:} false; then :
11408 $as_echo_n "(cached) " >&6
11409else
11410 case $host in
11411 *-*-mingw* )
11412 case $build in
11413 *-*-mingw* ) # actually msys
11414 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11415 ;;
11416 *-*-cygwin* )
11417 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11418 ;;
11419 * ) # otherwise, assume *nix
11420 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11421 ;;
11422 esac
11423 ;;
11424 *-*-cygwin* )
11425 case $build in
11426 *-*-mingw* ) # actually msys
11427 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11428 ;;
11429 *-*-cygwin* )
11430 lt_cv_to_host_file_cmd=func_convert_file_noop
11431 ;;
11432 * ) # otherwise, assume *nix
11433 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11434 ;;
11435 esac
11436 ;;
11437 * ) # unhandled hosts (and "normal" native builds)
11438 lt_cv_to_host_file_cmd=func_convert_file_noop
11439 ;;
11440esac
11441
11442fi
11443
11444to_host_file_cmd=$lt_cv_to_host_file_cmd
11445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11446$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11447
11448
11449
11450
11451
11452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11453$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11454if ${lt_cv_to_tool_file_cmd+:} false; then :
11455 $as_echo_n "(cached) " >&6
11456else
11457 #assume ordinary cross tools, or native build.
11458lt_cv_to_tool_file_cmd=func_convert_file_noop
11459case $host in
11460 *-*-mingw* )
11461 case $build in
11462 *-*-mingw* ) # actually msys
11463 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11464 ;;
11465 esac
11466 ;;
11467esac
11468
11469fi
11470
11471to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11473$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11474
11475
11476
11477
11478
cristy73bd4a52010-10-05 11:24:23 +000011479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11480$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011481if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011482 $as_echo_n "(cached) " >&6
11483else
11484 lt_cv_ld_reload_flag='-r'
11485fi
11486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11487$as_echo "$lt_cv_ld_reload_flag" >&6; }
11488reload_flag=$lt_cv_ld_reload_flag
11489case $reload_flag in
11490"" | " "*) ;;
11491*) reload_flag=" $reload_flag" ;;
11492esac
11493reload_cmds='$LD$reload_flag -o $output$reload_objs'
11494case $host_os in
cristyda16f162011-02-19 23:52:17 +000011495 cygwin* | mingw* | pw32* | cegcc*)
11496 if test "$GCC" != yes; then
11497 reload_cmds=false
11498 fi
11499 ;;
cristy73bd4a52010-10-05 11:24:23 +000011500 darwin*)
11501 if test "$GCC" = yes; then
11502 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11503 else
11504 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11505 fi
11506 ;;
11507esac
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517if test -n "$ac_tool_prefix"; then
11518 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11519set dummy ${ac_tool_prefix}objdump; ac_word=$2
11520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11521$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011522if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011523 $as_echo_n "(cached) " >&6
11524else
11525 if test -n "$OBJDUMP"; then
11526 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11527else
11528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11529for as_dir in $PATH
11530do
11531 IFS=$as_save_IFS
11532 test -z "$as_dir" && as_dir=.
11533 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011535 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11537 break 2
11538 fi
11539done
11540 done
11541IFS=$as_save_IFS
11542
11543fi
11544fi
11545OBJDUMP=$ac_cv_prog_OBJDUMP
11546if test -n "$OBJDUMP"; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11548$as_echo "$OBJDUMP" >&6; }
11549else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551$as_echo "no" >&6; }
11552fi
11553
11554
11555fi
11556if test -z "$ac_cv_prog_OBJDUMP"; then
11557 ac_ct_OBJDUMP=$OBJDUMP
11558 # Extract the first word of "objdump", so it can be a program name with args.
11559set dummy objdump; ac_word=$2
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11561$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011562if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011563 $as_echo_n "(cached) " >&6
11564else
11565 if test -n "$ac_ct_OBJDUMP"; then
11566 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11567else
11568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569for as_dir in $PATH
11570do
11571 IFS=$as_save_IFS
11572 test -z "$as_dir" && as_dir=.
11573 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011575 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11577 break 2
11578 fi
11579done
11580 done
11581IFS=$as_save_IFS
11582
11583fi
11584fi
11585ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11586if test -n "$ac_ct_OBJDUMP"; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11588$as_echo "$ac_ct_OBJDUMP" >&6; }
11589else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591$as_echo "no" >&6; }
11592fi
11593
11594 if test "x$ac_ct_OBJDUMP" = x; then
11595 OBJDUMP="false"
11596 else
11597 case $cross_compiling:$ac_tool_warned in
11598yes:)
11599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11601ac_tool_warned=yes ;;
11602esac
11603 OBJDUMP=$ac_ct_OBJDUMP
11604 fi
11605else
11606 OBJDUMP="$ac_cv_prog_OBJDUMP"
11607fi
11608
11609test -z "$OBJDUMP" && OBJDUMP=objdump
11610
11611
11612
11613
11614
11615
11616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11617$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011618if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011619 $as_echo_n "(cached) " >&6
11620else
11621 lt_cv_file_magic_cmd='$MAGIC_CMD'
11622lt_cv_file_magic_test_file=
11623lt_cv_deplibs_check_method='unknown'
11624# Need to set the preceding variable on all platforms that support
11625# interlibrary dependencies.
11626# 'none' -- dependencies not supported.
11627# `unknown' -- same as none, but documents that we really don't know.
11628# 'pass_all' -- all dependencies passed with no checks.
11629# 'test_compile' -- check by making test program.
11630# 'file_magic [[regex]]' -- check by looking for files in library path
11631# which responds to the $file_magic_cmd with a given extended regex.
11632# If you have `file' or equivalent on your system and you're not sure
11633# whether `pass_all' will *always* work, you probably want this one.
11634
11635case $host_os in
11636aix[4-9]*)
11637 lt_cv_deplibs_check_method=pass_all
11638 ;;
11639
11640beos*)
11641 lt_cv_deplibs_check_method=pass_all
11642 ;;
11643
11644bsdi[45]*)
11645 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11646 lt_cv_file_magic_cmd='/usr/bin/file -L'
11647 lt_cv_file_magic_test_file=/shlib/libc.so
11648 ;;
11649
11650cygwin*)
11651 # func_win32_libid is a shell function defined in ltmain.sh
11652 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11653 lt_cv_file_magic_cmd='func_win32_libid'
11654 ;;
11655
11656mingw* | pw32*)
11657 # Base MSYS/MinGW do not provide the 'file' command needed by
11658 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11659 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011660 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11661 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011662 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11663 lt_cv_file_magic_cmd='func_win32_libid'
11664 else
cristy0c60a692010-11-04 01:09:47 +000011665 # Keep this pattern in sync with the one in func_win32_libid.
11666 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 +000011667 lt_cv_file_magic_cmd='$OBJDUMP -f'
11668 fi
11669 ;;
11670
cristy0c60a692010-11-04 01:09:47 +000011671cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011672 # use the weaker test based on 'objdump'. See mingw*.
11673 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11674 lt_cv_file_magic_cmd='$OBJDUMP -f'
11675 ;;
11676
11677darwin* | rhapsody*)
11678 lt_cv_deplibs_check_method=pass_all
11679 ;;
11680
11681freebsd* | dragonfly*)
11682 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11683 case $host_cpu in
11684 i*86 )
11685 # Not sure whether the presence of OpenBSD here was a mistake.
11686 # Let's accept both of them until this is cleared up.
11687 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11688 lt_cv_file_magic_cmd=/usr/bin/file
11689 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11690 ;;
11691 esac
11692 else
11693 lt_cv_deplibs_check_method=pass_all
11694 fi
11695 ;;
11696
11697gnu*)
11698 lt_cv_deplibs_check_method=pass_all
11699 ;;
11700
cristy0c60a692010-11-04 01:09:47 +000011701haiku*)
11702 lt_cv_deplibs_check_method=pass_all
11703 ;;
11704
cristy73bd4a52010-10-05 11:24:23 +000011705hpux10.20* | hpux11*)
11706 lt_cv_file_magic_cmd=/usr/bin/file
11707 case $host_cpu in
11708 ia64*)
11709 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11710 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11711 ;;
11712 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011713 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 +000011714 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11715 ;;
11716 *)
cristy0c60a692010-11-04 01:09:47 +000011717 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 +000011718 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11719 ;;
11720 esac
11721 ;;
11722
11723interix[3-9]*)
11724 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11726 ;;
11727
11728irix5* | irix6* | nonstopux*)
11729 case $LD in
11730 *-32|*"-32 ") libmagic=32-bit;;
11731 *-n32|*"-n32 ") libmagic=N32;;
11732 *-64|*"-64 ") libmagic=64-bit;;
11733 *) libmagic=never-match;;
11734 esac
11735 lt_cv_deplibs_check_method=pass_all
11736 ;;
11737
cristy99bd5232011-12-07 14:38:20 +000011738# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011739linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011740 lt_cv_deplibs_check_method=pass_all
11741 ;;
11742
11743netbsd*)
11744 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11746 else
11747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11748 fi
11749 ;;
11750
11751newos6*)
11752 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11753 lt_cv_file_magic_cmd=/usr/bin/file
11754 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11755 ;;
11756
11757*nto* | *qnx*)
11758 lt_cv_deplibs_check_method=pass_all
11759 ;;
11760
11761openbsd*)
11762 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11764 else
11765 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11766 fi
11767 ;;
11768
11769osf3* | osf4* | osf5*)
11770 lt_cv_deplibs_check_method=pass_all
11771 ;;
11772
11773rdos*)
11774 lt_cv_deplibs_check_method=pass_all
11775 ;;
11776
11777solaris*)
11778 lt_cv_deplibs_check_method=pass_all
11779 ;;
11780
11781sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11782 lt_cv_deplibs_check_method=pass_all
11783 ;;
11784
11785sysv4 | sysv4.3*)
11786 case $host_vendor in
11787 motorola)
11788 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]'
11789 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11790 ;;
11791 ncr)
11792 lt_cv_deplibs_check_method=pass_all
11793 ;;
11794 sequent)
11795 lt_cv_file_magic_cmd='/bin/file'
11796 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11797 ;;
11798 sni)
11799 lt_cv_file_magic_cmd='/bin/file'
11800 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11801 lt_cv_file_magic_test_file=/lib/libc.so
11802 ;;
11803 siemens)
11804 lt_cv_deplibs_check_method=pass_all
11805 ;;
11806 pc)
11807 lt_cv_deplibs_check_method=pass_all
11808 ;;
11809 esac
11810 ;;
11811
11812tpf*)
11813 lt_cv_deplibs_check_method=pass_all
11814 ;;
11815esac
11816
11817fi
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11819$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011820
11821file_magic_glob=
11822want_nocaseglob=no
11823if test "$build" = "$host"; then
11824 case $host_os in
11825 mingw* | pw32*)
11826 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11827 want_nocaseglob=yes
11828 else
11829 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11830 fi
11831 ;;
11832 esac
11833fi
11834
cristy73bd4a52010-10-05 11:24:23 +000011835file_magic_cmd=$lt_cv_file_magic_cmd
11836deplibs_check_method=$lt_cv_deplibs_check_method
11837test -z "$deplibs_check_method" && deplibs_check_method=unknown
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
cristyda16f162011-02-19 23:52:17 +000011850
11851
11852
11853
11854
11855
11856
11857
11858
11859
cristy73bd4a52010-10-05 11:24:23 +000011860if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011861 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11862set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11864$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011865if ${ac_cv_prog_DLLTOOL+:} false; then :
11866 $as_echo_n "(cached) " >&6
11867else
11868 if test -n "$DLLTOOL"; then
11869 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11870else
11871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872for as_dir in $PATH
11873do
11874 IFS=$as_save_IFS
11875 test -z "$as_dir" && as_dir=.
11876 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011878 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880 break 2
11881 fi
11882done
11883 done
11884IFS=$as_save_IFS
11885
11886fi
11887fi
11888DLLTOOL=$ac_cv_prog_DLLTOOL
11889if test -n "$DLLTOOL"; then
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11891$as_echo "$DLLTOOL" >&6; }
11892else
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894$as_echo "no" >&6; }
11895fi
11896
11897
11898fi
11899if test -z "$ac_cv_prog_DLLTOOL"; then
11900 ac_ct_DLLTOOL=$DLLTOOL
11901 # Extract the first word of "dlltool", so it can be a program name with args.
11902set dummy dlltool; ac_word=$2
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11904$as_echo_n "checking for $ac_word... " >&6; }
11905if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11906 $as_echo_n "(cached) " >&6
11907else
11908 if test -n "$ac_ct_DLLTOOL"; then
11909 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11910else
11911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912for as_dir in $PATH
11913do
11914 IFS=$as_save_IFS
11915 test -z "$as_dir" && as_dir=.
11916 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011918 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11920 break 2
11921 fi
11922done
11923 done
11924IFS=$as_save_IFS
11925
11926fi
11927fi
11928ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11929if test -n "$ac_ct_DLLTOOL"; then
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11931$as_echo "$ac_ct_DLLTOOL" >&6; }
11932else
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934$as_echo "no" >&6; }
11935fi
11936
11937 if test "x$ac_ct_DLLTOOL" = x; then
11938 DLLTOOL="false"
11939 else
11940 case $cross_compiling:$ac_tool_warned in
11941yes:)
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11944ac_tool_warned=yes ;;
11945esac
11946 DLLTOOL=$ac_ct_DLLTOOL
11947 fi
11948else
11949 DLLTOOL="$ac_cv_prog_DLLTOOL"
11950fi
11951
11952test -z "$DLLTOOL" && DLLTOOL=dlltool
11953
11954
11955
11956
11957
11958
11959
11960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11961$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11962if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11963 $as_echo_n "(cached) " >&6
11964else
11965 lt_cv_sharedlib_from_linklib_cmd='unknown'
11966
11967case $host_os in
11968cygwin* | mingw* | pw32* | cegcc*)
11969 # two different shell functions defined in ltmain.sh
11970 # decide which to use based on capabilities of $DLLTOOL
11971 case `$DLLTOOL --help 2>&1` in
11972 *--identify-strict*)
11973 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11974 ;;
11975 *)
11976 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11977 ;;
11978 esac
11979 ;;
11980*)
11981 # fallback: assume linklib IS sharedlib
11982 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11983 ;;
11984esac
11985
11986fi
11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11988$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11989sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11990test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11991
11992
11993
11994
11995
11996
11997
11998if test -n "$ac_tool_prefix"; then
11999 for ac_prog in ar
12000 do
12001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12002set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12004$as_echo_n "checking for $ac_word... " >&6; }
12005if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012006 $as_echo_n "(cached) " >&6
12007else
12008 if test -n "$AR"; then
12009 ac_cv_prog_AR="$AR" # Let the user override the test.
12010else
12011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012for as_dir in $PATH
12013do
12014 IFS=$as_save_IFS
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012018 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020 break 2
12021 fi
12022done
12023 done
12024IFS=$as_save_IFS
12025
12026fi
12027fi
12028AR=$ac_cv_prog_AR
12029if test -n "$AR"; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12031$as_echo "$AR" >&6; }
12032else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034$as_echo "no" >&6; }
12035fi
12036
12037
cristyda16f162011-02-19 23:52:17 +000012038 test -n "$AR" && break
12039 done
cristy73bd4a52010-10-05 11:24:23 +000012040fi
cristyda16f162011-02-19 23:52:17 +000012041if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012042 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012043 for ac_prog in ar
12044do
12045 # Extract the first word of "$ac_prog", so it can be a program name with args.
12046set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12048$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012049if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012050 $as_echo_n "(cached) " >&6
12051else
12052 if test -n "$ac_ct_AR"; then
12053 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12054else
12055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056for as_dir in $PATH
12057do
12058 IFS=$as_save_IFS
12059 test -z "$as_dir" && as_dir=.
12060 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012062 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12064 break 2
12065 fi
12066done
12067 done
12068IFS=$as_save_IFS
12069
12070fi
12071fi
12072ac_ct_AR=$ac_cv_prog_ac_ct_AR
12073if test -n "$ac_ct_AR"; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12075$as_echo "$ac_ct_AR" >&6; }
12076else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078$as_echo "no" >&6; }
12079fi
12080
cristyda16f162011-02-19 23:52:17 +000012081
12082 test -n "$ac_ct_AR" && break
12083done
12084
cristy73bd4a52010-10-05 11:24:23 +000012085 if test "x$ac_ct_AR" = x; then
12086 AR="false"
12087 else
12088 case $cross_compiling:$ac_tool_warned in
12089yes:)
12090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12092ac_tool_warned=yes ;;
12093esac
12094 AR=$ac_ct_AR
12095 fi
cristy73bd4a52010-10-05 11:24:23 +000012096fi
12097
cristyda16f162011-02-19 23:52:17 +000012098: ${AR=ar}
12099: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
cristyda16f162011-02-19 23:52:17 +000012111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12112$as_echo_n "checking for archiver @FILE support... " >&6; }
12113if ${lt_cv_ar_at_file+:} false; then :
12114 $as_echo_n "(cached) " >&6
12115else
12116 lt_cv_ar_at_file=no
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118/* end confdefs.h. */
12119
12120int
12121main ()
12122{
12123
12124 ;
12125 return 0;
12126}
12127_ACEOF
12128if ac_fn_c_try_compile "$LINENO"; then :
12129 echo conftest.$ac_objext > conftest.lst
12130 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12132 (eval $lt_ar_try) 2>&5
12133 ac_status=$?
12134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12135 test $ac_status = 0; }
12136 if test "$ac_status" -eq 0; then
12137 # Ensure the archiver fails upon bogus file names.
12138 rm -f conftest.$ac_objext libconftest.a
12139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12140 (eval $lt_ar_try) 2>&5
12141 ac_status=$?
12142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12143 test $ac_status = 0; }
12144 if test "$ac_status" -ne 0; then
12145 lt_cv_ar_at_file=@
12146 fi
12147 fi
12148 rm -f conftest.* libconftest.a
12149
12150fi
12151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12152
12153fi
12154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12155$as_echo "$lt_cv_ar_at_file" >&6; }
12156
12157if test "x$lt_cv_ar_at_file" = xno; then
12158 archiver_list_spec=
12159else
12160 archiver_list_spec=$lt_cv_ar_at_file
12161fi
12162
12163
12164
12165
12166
12167
12168
cristy73bd4a52010-10-05 11:24:23 +000012169if test -n "$ac_tool_prefix"; then
12170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12171set dummy ${ac_tool_prefix}strip; ac_word=$2
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012174if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012175 $as_echo_n "(cached) " >&6
12176else
12177 if test -n "$STRIP"; then
12178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12179else
12180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181for as_dir in $PATH
12182do
12183 IFS=$as_save_IFS
12184 test -z "$as_dir" && as_dir=.
12185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012187 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189 break 2
12190 fi
12191done
12192 done
12193IFS=$as_save_IFS
12194
12195fi
12196fi
12197STRIP=$ac_cv_prog_STRIP
12198if test -n "$STRIP"; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12200$as_echo "$STRIP" >&6; }
12201else
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203$as_echo "no" >&6; }
12204fi
12205
12206
12207fi
12208if test -z "$ac_cv_prog_STRIP"; then
12209 ac_ct_STRIP=$STRIP
12210 # Extract the first word of "strip", so it can be a program name with args.
12211set dummy strip; ac_word=$2
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012214if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012215 $as_echo_n "(cached) " >&6
12216else
12217 if test -n "$ac_ct_STRIP"; then
12218 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12219else
12220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221for as_dir in $PATH
12222do
12223 IFS=$as_save_IFS
12224 test -z "$as_dir" && as_dir=.
12225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012227 ac_cv_prog_ac_ct_STRIP="strip"
12228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12229 break 2
12230 fi
12231done
12232 done
12233IFS=$as_save_IFS
12234
12235fi
12236fi
12237ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12238if test -n "$ac_ct_STRIP"; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12240$as_echo "$ac_ct_STRIP" >&6; }
12241else
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243$as_echo "no" >&6; }
12244fi
12245
12246 if test "x$ac_ct_STRIP" = x; then
12247 STRIP=":"
12248 else
12249 case $cross_compiling:$ac_tool_warned in
12250yes:)
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12253ac_tool_warned=yes ;;
12254esac
12255 STRIP=$ac_ct_STRIP
12256 fi
12257else
12258 STRIP="$ac_cv_prog_STRIP"
12259fi
12260
12261test -z "$STRIP" && STRIP=:
12262
12263
12264
12265
12266
12267
12268if test -n "$ac_tool_prefix"; then
12269 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12270set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012273if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012274 $as_echo_n "(cached) " >&6
12275else
12276 if test -n "$RANLIB"; then
12277 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12278else
12279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280for as_dir in $PATH
12281do
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012286 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288 break 2
12289 fi
12290done
12291 done
12292IFS=$as_save_IFS
12293
12294fi
12295fi
12296RANLIB=$ac_cv_prog_RANLIB
12297if test -n "$RANLIB"; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12299$as_echo "$RANLIB" >&6; }
12300else
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302$as_echo "no" >&6; }
12303fi
12304
12305
12306fi
12307if test -z "$ac_cv_prog_RANLIB"; then
12308 ac_ct_RANLIB=$RANLIB
12309 # Extract the first word of "ranlib", so it can be a program name with args.
12310set dummy ranlib; ac_word=$2
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12312$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012313if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012314 $as_echo_n "(cached) " >&6
12315else
12316 if test -n "$ac_ct_RANLIB"; then
12317 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12318else
12319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320for as_dir in $PATH
12321do
12322 IFS=$as_save_IFS
12323 test -z "$as_dir" && as_dir=.
12324 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012326 ac_cv_prog_ac_ct_RANLIB="ranlib"
12327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12328 break 2
12329 fi
12330done
12331 done
12332IFS=$as_save_IFS
12333
12334fi
12335fi
12336ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12337if test -n "$ac_ct_RANLIB"; then
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12339$as_echo "$ac_ct_RANLIB" >&6; }
12340else
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342$as_echo "no" >&6; }
12343fi
12344
12345 if test "x$ac_ct_RANLIB" = x; then
12346 RANLIB=":"
12347 else
12348 case $cross_compiling:$ac_tool_warned in
12349yes:)
12350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12352ac_tool_warned=yes ;;
12353esac
12354 RANLIB=$ac_ct_RANLIB
12355 fi
12356else
12357 RANLIB="$ac_cv_prog_RANLIB"
12358fi
12359
12360test -z "$RANLIB" && RANLIB=:
12361
12362
12363
12364
12365
12366
12367# Determine commands to create old-style static archives.
12368old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12369old_postinstall_cmds='chmod 644 $oldlib'
12370old_postuninstall_cmds=
12371
12372if test -n "$RANLIB"; then
12373 case $host_os in
12374 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012375 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012376 ;;
12377 *)
cristy99bd5232011-12-07 14:38:20 +000012378 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012379 ;;
12380 esac
cristy99bd5232011-12-07 14:38:20 +000012381 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012382fi
12383
cristy0c60a692010-11-04 01:09:47 +000012384case $host_os in
12385 darwin*)
12386 lock_old_archive_extraction=yes ;;
12387 *)
12388 lock_old_archive_extraction=no ;;
12389esac
12390
12391
12392
12393
12394
12395
cristy73bd4a52010-10-05 11:24:23 +000012396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429# If no C compiler was specified, use CC.
12430LTCC=${LTCC-"$CC"}
12431
12432# If no C compiler flags were specified, use CFLAGS.
12433LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12434
12435# Allow CC to be a program name with arguments.
12436compiler=$CC
12437
12438
12439# Check for command to grab the raw symbol name followed by C symbol from nm.
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12441$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012442if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012443 $as_echo_n "(cached) " >&6
12444else
12445
12446# These are sane defaults that work on at least a few old systems.
12447# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12448
12449# Character class describing NM global symbol codes.
12450symcode='[BCDEGRST]'
12451
12452# Regexp to match symbols that can be accessed directly from C.
12453sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12454
12455# Define system-specific variables.
12456case $host_os in
12457aix*)
12458 symcode='[BCDT]'
12459 ;;
12460cygwin* | mingw* | pw32* | cegcc*)
12461 symcode='[ABCDGISTW]'
12462 ;;
12463hpux*)
12464 if test "$host_cpu" = ia64; then
12465 symcode='[ABCDEGRST]'
12466 fi
12467 ;;
12468irix* | nonstopux*)
12469 symcode='[BCDEGRST]'
12470 ;;
12471osf*)
12472 symcode='[BCDEGQRST]'
12473 ;;
12474solaris*)
12475 symcode='[BDRT]'
12476 ;;
12477sco3.2v5*)
12478 symcode='[DT]'
12479 ;;
12480sysv4.2uw2*)
12481 symcode='[DT]'
12482 ;;
12483sysv5* | sco5v6* | unixware* | OpenUNIX*)
12484 symcode='[ABDT]'
12485 ;;
12486sysv4)
12487 symcode='[DFNSTU]'
12488 ;;
12489esac
12490
12491# If we're using GNU nm, then use its standard symbol codes.
12492case `$NM -V 2>&1` in
12493*GNU* | *'with BFD'*)
12494 symcode='[ABCDGIRSTW]' ;;
12495esac
12496
12497# Transform an extracted symbol line into a proper C declaration.
12498# Some systems (esp. on ia64) link data and code symbols differently,
12499# so use this general approach.
12500lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12501
12502# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012503lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12504lt_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 +000012505
12506# Handle CRLF in mingw tool chain
12507opt_cr=
12508case $build_os in
12509mingw*)
12510 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12511 ;;
12512esac
12513
12514# Try without a prefix underscore, then with it.
12515for ac_symprfx in "" "_"; do
12516
12517 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12518 symxfrm="\\1 $ac_symprfx\\2 \\2"
12519
12520 # Write the raw and C identifiers.
12521 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12522 # Fake it for dumpbin and say T for any non-static function
12523 # and D for any global variable.
12524 # Also find C++ and __fastcall symbols from MSVC++,
12525 # which start with @ or ?.
12526 lt_cv_sys_global_symbol_pipe="$AWK '"\
12527" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012528" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012529" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12530" \$ 0!~/External *\|/{next};"\
12531" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12532" {if(hide[section]) next};"\
12533" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12534" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12535" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12536" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12537" ' prfx=^$ac_symprfx"
12538 else
12539 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12540 fi
cristyda16f162011-02-19 23:52:17 +000012541 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012542
12543 # Check to see that the pipe works correctly.
12544 pipe_works=no
12545
12546 rm -f conftest*
12547 cat > conftest.$ac_ext <<_LT_EOF
12548#ifdef __cplusplus
12549extern "C" {
12550#endif
12551char nm_test_var;
12552void nm_test_func(void);
12553void nm_test_func(void){}
12554#ifdef __cplusplus
12555}
12556#endif
12557int main(){nm_test_var='a';nm_test_func();return(0);}
12558_LT_EOF
12559
12560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12561 (eval $ac_compile) 2>&5
12562 ac_status=$?
12563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12564 test $ac_status = 0; }; then
12565 # Now try to grab the symbols.
12566 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12568 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012569 ac_status=$?
12570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12571 test $ac_status = 0; } && test -s "$nlist"; then
12572 # Try sorting and uniquifying the output.
12573 if sort "$nlist" | uniq > "$nlist"T; then
12574 mv -f "$nlist"T "$nlist"
12575 else
12576 rm -f "$nlist"T
12577 fi
12578
12579 # Make sure that we snagged all the symbols we need.
12580 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12581 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12582 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012583/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12584#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12585/* DATA imports from DLLs on WIN32 con't be const, because runtime
12586 relocations are performed -- see ld's documentation on pseudo-relocs. */
12587# define LT_DLSYM_CONST
12588#elif defined(__osf__)
12589/* This system does not cope well with relocations in const data. */
12590# define LT_DLSYM_CONST
12591#else
12592# define LT_DLSYM_CONST const
12593#endif
12594
cristy73bd4a52010-10-05 11:24:23 +000012595#ifdef __cplusplus
12596extern "C" {
12597#endif
12598
12599_LT_EOF
12600 # Now generate the symbol file.
12601 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12602
12603 cat <<_LT_EOF >> conftest.$ac_ext
12604
12605/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012606LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012607 const char *name;
12608 void *address;
12609}
12610lt__PROGRAM__LTX_preloaded_symbols[] =
12611{
12612 { "@PROGRAM@", (void *) 0 },
12613_LT_EOF
12614 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12615 cat <<\_LT_EOF >> conftest.$ac_ext
12616 {0, (void *) 0}
12617};
12618
12619/* This works around a problem in FreeBSD linker */
12620#ifdef FREEBSD_WORKAROUND
12621static const void *lt_preloaded_setup() {
12622 return lt__PROGRAM__LTX_preloaded_symbols;
12623}
12624#endif
12625
12626#ifdef __cplusplus
12627}
12628#endif
12629_LT_EOF
12630 # Now try linking the two files.
12631 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012632 lt_globsym_save_LIBS=$LIBS
12633 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012634 LIBS="conftstm.$ac_objext"
12635 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12637 (eval $ac_link) 2>&5
12638 ac_status=$?
12639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12640 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12641 pipe_works=yes
12642 fi
cristyda16f162011-02-19 23:52:17 +000012643 LIBS=$lt_globsym_save_LIBS
12644 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012645 else
12646 echo "cannot find nm_test_func in $nlist" >&5
12647 fi
12648 else
12649 echo "cannot find nm_test_var in $nlist" >&5
12650 fi
12651 else
12652 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12653 fi
12654 else
12655 echo "$progname: failed program was:" >&5
12656 cat conftest.$ac_ext >&5
12657 fi
12658 rm -rf conftest* conftst*
12659
12660 # Do not use the global_symbol_pipe unless it works.
12661 if test "$pipe_works" = yes; then
12662 break
12663 else
12664 lt_cv_sys_global_symbol_pipe=
12665 fi
12666done
12667
12668fi
12669
12670if test -z "$lt_cv_sys_global_symbol_pipe"; then
12671 lt_cv_sys_global_symbol_to_cdecl=
12672fi
12673if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12675$as_echo "failed" >&6; }
12676else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12678$as_echo "ok" >&6; }
12679fi
12680
cristyda16f162011-02-19 23:52:17 +000012681# Response file support.
12682if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12683 nm_file_list_spec='@'
12684elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12685 nm_file_list_spec='@'
12686fi
cristy73bd4a52010-10-05 11:24:23 +000012687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
cristyda16f162011-02-19 23:52:17 +000012708
12709
12710
12711
12712
12713
12714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12715$as_echo_n "checking for sysroot... " >&6; }
12716
12717# Check whether --with-sysroot was given.
12718if test "${with_sysroot+set}" = set; then :
12719 withval=$with_sysroot;
12720else
12721 with_sysroot=no
12722fi
12723
12724
12725lt_sysroot=
12726case ${with_sysroot} in #(
12727 yes)
12728 if test "$GCC" = yes; then
12729 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12730 fi
12731 ;; #(
12732 /*)
12733 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12734 ;; #(
12735 no|'')
12736 ;; #(
12737 *)
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12739$as_echo "${with_sysroot}" >&6; }
12740 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12741 ;;
12742esac
12743
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12745$as_echo "${lt_sysroot:-no}" >&6; }
12746
12747
12748
12749
12750
cristy73bd4a52010-10-05 11:24:23 +000012751# Check whether --enable-libtool-lock was given.
12752if test "${enable_libtool_lock+set}" = set; then :
12753 enableval=$enable_libtool_lock;
12754fi
12755
12756test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12757
12758# Some flags need to be propagated to the compiler or linker for good
12759# libtool support.
12760case $host in
12761ia64-*-hpux*)
12762 # Find out which ABI we are using.
12763 echo 'int i;' > conftest.$ac_ext
12764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12765 (eval $ac_compile) 2>&5
12766 ac_status=$?
12767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12768 test $ac_status = 0; }; then
12769 case `/usr/bin/file conftest.$ac_objext` in
12770 *ELF-32*)
12771 HPUX_IA64_MODE="32"
12772 ;;
12773 *ELF-64*)
12774 HPUX_IA64_MODE="64"
12775 ;;
12776 esac
12777 fi
12778 rm -rf conftest*
12779 ;;
12780*-*-irix6*)
12781 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012782 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12784 (eval $ac_compile) 2>&5
12785 ac_status=$?
12786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12787 test $ac_status = 0; }; then
12788 if test "$lt_cv_prog_gnu_ld" = yes; then
12789 case `/usr/bin/file conftest.$ac_objext` in
12790 *32-bit*)
12791 LD="${LD-ld} -melf32bsmip"
12792 ;;
12793 *N32*)
12794 LD="${LD-ld} -melf32bmipn32"
12795 ;;
12796 *64-bit*)
12797 LD="${LD-ld} -melf64bmip"
12798 ;;
12799 esac
12800 else
12801 case `/usr/bin/file conftest.$ac_objext` in
12802 *32-bit*)
12803 LD="${LD-ld} -32"
12804 ;;
12805 *N32*)
12806 LD="${LD-ld} -n32"
12807 ;;
12808 *64-bit*)
12809 LD="${LD-ld} -64"
12810 ;;
12811 esac
12812 fi
12813 fi
12814 rm -rf conftest*
12815 ;;
12816
cristyd95b7a52013-10-23 13:12:53 +000012817x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000012818s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12819 # Find out which ABI we are using.
12820 echo 'int i;' > conftest.$ac_ext
12821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12822 (eval $ac_compile) 2>&5
12823 ac_status=$?
12824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12825 test $ac_status = 0; }; then
12826 case `/usr/bin/file conftest.o` in
12827 *32-bit*)
12828 case $host in
12829 x86_64-*kfreebsd*-gnu)
12830 LD="${LD-ld} -m elf_i386_fbsd"
12831 ;;
12832 x86_64-*linux*)
12833 LD="${LD-ld} -m elf_i386"
12834 ;;
cristya5bda012013-11-03 18:05:38 +000012835 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000012836 LD="${LD-ld} -m elf32lppclinux"
12837 ;;
cristya5bda012013-11-03 18:05:38 +000012838 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012839 LD="${LD-ld} -m elf32ppclinux"
12840 ;;
12841 s390x-*linux*)
12842 LD="${LD-ld} -m elf_s390"
12843 ;;
12844 sparc64-*linux*)
12845 LD="${LD-ld} -m elf32_sparc"
12846 ;;
12847 esac
12848 ;;
12849 *64-bit*)
12850 case $host in
12851 x86_64-*kfreebsd*-gnu)
12852 LD="${LD-ld} -m elf_x86_64_fbsd"
12853 ;;
12854 x86_64-*linux*)
12855 LD="${LD-ld} -m elf_x86_64"
12856 ;;
cristyd95b7a52013-10-23 13:12:53 +000012857 powerpcle-*linux*)
12858 LD="${LD-ld} -m elf64lppc"
12859 ;;
12860 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012861 LD="${LD-ld} -m elf64ppc"
12862 ;;
12863 s390*-*linux*|s390*-*tpf*)
12864 LD="${LD-ld} -m elf64_s390"
12865 ;;
12866 sparc*-*linux*)
12867 LD="${LD-ld} -m elf64_sparc"
12868 ;;
12869 esac
12870 ;;
12871 esac
12872 fi
12873 rm -rf conftest*
12874 ;;
12875
12876*-*-sco3.2v5*)
12877 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12878 SAVE_CFLAGS="$CFLAGS"
12879 CFLAGS="$CFLAGS -belf"
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12881$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012882if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012883 $as_echo_n "(cached) " >&6
12884else
12885 ac_ext=c
12886ac_cpp='$CPP $CPPFLAGS'
12887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12889ac_compiler_gnu=$ac_cv_c_compiler_gnu
12890
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892/* end confdefs.h. */
12893
12894int
12895main ()
12896{
12897
12898 ;
12899 return 0;
12900}
12901_ACEOF
12902if ac_fn_c_try_link "$LINENO"; then :
12903 lt_cv_cc_needs_belf=yes
12904else
12905 lt_cv_cc_needs_belf=no
12906fi
12907rm -f core conftest.err conftest.$ac_objext \
12908 conftest$ac_exeext conftest.$ac_ext
12909 ac_ext=c
12910ac_cpp='$CPP $CPPFLAGS'
12911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12913ac_compiler_gnu=$ac_cv_c_compiler_gnu
12914
12915fi
12916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12917$as_echo "$lt_cv_cc_needs_belf" >&6; }
12918 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12919 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12920 CFLAGS="$SAVE_CFLAGS"
12921 fi
12922 ;;
cristy99bd5232011-12-07 14:38:20 +000012923*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012924 # Find out which ABI we are using.
12925 echo 'int i;' > conftest.$ac_ext
12926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12927 (eval $ac_compile) 2>&5
12928 ac_status=$?
12929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12930 test $ac_status = 0; }; then
12931 case `/usr/bin/file conftest.o` in
12932 *64-bit*)
12933 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012934 yes*)
12935 case $host in
12936 i?86-*-solaris*)
12937 LD="${LD-ld} -m elf_x86_64"
12938 ;;
12939 sparc*-*-solaris*)
12940 LD="${LD-ld} -m elf64_sparc"
12941 ;;
12942 esac
12943 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12944 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12945 LD="${LD-ld}_sol2"
12946 fi
12947 ;;
cristy73bd4a52010-10-05 11:24:23 +000012948 *)
12949 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12950 LD="${LD-ld} -64"
12951 fi
12952 ;;
12953 esac
12954 ;;
12955 esac
12956 fi
12957 rm -rf conftest*
12958 ;;
12959esac
12960
12961need_locks="$enable_libtool_lock"
12962
cristyda16f162011-02-19 23:52:17 +000012963if test -n "$ac_tool_prefix"; then
12964 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12965set dummy ${ac_tool_prefix}mt; ac_word=$2
12966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967$as_echo_n "checking for $ac_word... " >&6; }
12968if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12969 $as_echo_n "(cached) " >&6
12970else
12971 if test -n "$MANIFEST_TOOL"; then
12972 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12973else
12974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975for as_dir in $PATH
12976do
12977 IFS=$as_save_IFS
12978 test -z "$as_dir" && as_dir=.
12979 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012981 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12983 break 2
12984 fi
12985done
12986 done
12987IFS=$as_save_IFS
12988
12989fi
12990fi
12991MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12992if test -n "$MANIFEST_TOOL"; then
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12994$as_echo "$MANIFEST_TOOL" >&6; }
12995else
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997$as_echo "no" >&6; }
12998fi
12999
13000
13001fi
13002if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13003 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13004 # Extract the first word of "mt", so it can be a program name with args.
13005set dummy mt; ac_word=$2
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007$as_echo_n "checking for $ac_word... " >&6; }
13008if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13009 $as_echo_n "(cached) " >&6
13010else
13011 if test -n "$ac_ct_MANIFEST_TOOL"; then
13012 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13013else
13014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015for as_dir in $PATH
13016do
13017 IFS=$as_save_IFS
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013021 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13023 break 2
13024 fi
13025done
13026 done
13027IFS=$as_save_IFS
13028
13029fi
13030fi
13031ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13032if test -n "$ac_ct_MANIFEST_TOOL"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13034$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13035else
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037$as_echo "no" >&6; }
13038fi
13039
13040 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13041 MANIFEST_TOOL=":"
13042 else
13043 case $cross_compiling:$ac_tool_warned in
13044yes:)
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13047ac_tool_warned=yes ;;
13048esac
13049 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13050 fi
13051else
13052 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13053fi
13054
13055test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13057$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13058if ${lt_cv_path_mainfest_tool+:} false; then :
13059 $as_echo_n "(cached) " >&6
13060else
13061 lt_cv_path_mainfest_tool=no
13062 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13063 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13064 cat conftest.err >&5
13065 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13066 lt_cv_path_mainfest_tool=yes
13067 fi
13068 rm -f conftest*
13069fi
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13071$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13072if test "x$lt_cv_path_mainfest_tool" != xyes; then
13073 MANIFEST_TOOL=:
13074fi
13075
13076
13077
13078
13079
cristy73bd4a52010-10-05 11:24:23 +000013080
13081 case $host_os in
13082 rhapsody* | darwin*)
13083 if test -n "$ac_tool_prefix"; then
13084 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13085set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013088if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013089 $as_echo_n "(cached) " >&6
13090else
13091 if test -n "$DSYMUTIL"; then
13092 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13093else
13094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095for as_dir in $PATH
13096do
13097 IFS=$as_save_IFS
13098 test -z "$as_dir" && as_dir=.
13099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013101 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 break 2
13104 fi
13105done
13106 done
13107IFS=$as_save_IFS
13108
13109fi
13110fi
13111DSYMUTIL=$ac_cv_prog_DSYMUTIL
13112if test -n "$DSYMUTIL"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13114$as_echo "$DSYMUTIL" >&6; }
13115else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117$as_echo "no" >&6; }
13118fi
13119
13120
13121fi
13122if test -z "$ac_cv_prog_DSYMUTIL"; then
13123 ac_ct_DSYMUTIL=$DSYMUTIL
13124 # Extract the first word of "dsymutil", so it can be a program name with args.
13125set dummy dsymutil; ac_word=$2
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013128if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013129 $as_echo_n "(cached) " >&6
13130else
13131 if test -n "$ac_ct_DSYMUTIL"; then
13132 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13133else
13134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135for as_dir in $PATH
13136do
13137 IFS=$as_save_IFS
13138 test -z "$as_dir" && as_dir=.
13139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013141 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13143 break 2
13144 fi
13145done
13146 done
13147IFS=$as_save_IFS
13148
13149fi
13150fi
13151ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13152if test -n "$ac_ct_DSYMUTIL"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13154$as_echo "$ac_ct_DSYMUTIL" >&6; }
13155else
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157$as_echo "no" >&6; }
13158fi
13159
13160 if test "x$ac_ct_DSYMUTIL" = x; then
13161 DSYMUTIL=":"
13162 else
13163 case $cross_compiling:$ac_tool_warned in
13164yes:)
13165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13167ac_tool_warned=yes ;;
13168esac
13169 DSYMUTIL=$ac_ct_DSYMUTIL
13170 fi
13171else
13172 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13173fi
13174
13175 if test -n "$ac_tool_prefix"; then
13176 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13177set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013180if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013181 $as_echo_n "(cached) " >&6
13182else
13183 if test -n "$NMEDIT"; then
13184 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13185else
13186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187for as_dir in $PATH
13188do
13189 IFS=$as_save_IFS
13190 test -z "$as_dir" && as_dir=.
13191 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013193 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13195 break 2
13196 fi
13197done
13198 done
13199IFS=$as_save_IFS
13200
13201fi
13202fi
13203NMEDIT=$ac_cv_prog_NMEDIT
13204if test -n "$NMEDIT"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13206$as_echo "$NMEDIT" >&6; }
13207else
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209$as_echo "no" >&6; }
13210fi
13211
13212
13213fi
13214if test -z "$ac_cv_prog_NMEDIT"; then
13215 ac_ct_NMEDIT=$NMEDIT
13216 # Extract the first word of "nmedit", so it can be a program name with args.
13217set dummy nmedit; ac_word=$2
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013220if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013221 $as_echo_n "(cached) " >&6
13222else
13223 if test -n "$ac_ct_NMEDIT"; then
13224 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13225else
13226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227for as_dir in $PATH
13228do
13229 IFS=$as_save_IFS
13230 test -z "$as_dir" && as_dir=.
13231 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013233 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13235 break 2
13236 fi
13237done
13238 done
13239IFS=$as_save_IFS
13240
13241fi
13242fi
13243ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13244if test -n "$ac_ct_NMEDIT"; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13246$as_echo "$ac_ct_NMEDIT" >&6; }
13247else
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249$as_echo "no" >&6; }
13250fi
13251
13252 if test "x$ac_ct_NMEDIT" = x; then
13253 NMEDIT=":"
13254 else
13255 case $cross_compiling:$ac_tool_warned in
13256yes:)
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13259ac_tool_warned=yes ;;
13260esac
13261 NMEDIT=$ac_ct_NMEDIT
13262 fi
13263else
13264 NMEDIT="$ac_cv_prog_NMEDIT"
13265fi
13266
13267 if test -n "$ac_tool_prefix"; then
13268 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13269set dummy ${ac_tool_prefix}lipo; ac_word=$2
13270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013272if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013273 $as_echo_n "(cached) " >&6
13274else
13275 if test -n "$LIPO"; then
13276 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13277else
13278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279for as_dir in $PATH
13280do
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013285 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 break 2
13288 fi
13289done
13290 done
13291IFS=$as_save_IFS
13292
13293fi
13294fi
13295LIPO=$ac_cv_prog_LIPO
13296if test -n "$LIPO"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13298$as_echo "$LIPO" >&6; }
13299else
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301$as_echo "no" >&6; }
13302fi
13303
13304
13305fi
13306if test -z "$ac_cv_prog_LIPO"; then
13307 ac_ct_LIPO=$LIPO
13308 # Extract the first word of "lipo", so it can be a program name with args.
13309set dummy lipo; ac_word=$2
13310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013312if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013313 $as_echo_n "(cached) " >&6
13314else
13315 if test -n "$ac_ct_LIPO"; then
13316 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13317else
13318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319for as_dir in $PATH
13320do
13321 IFS=$as_save_IFS
13322 test -z "$as_dir" && as_dir=.
13323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013325 ac_cv_prog_ac_ct_LIPO="lipo"
13326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13327 break 2
13328 fi
13329done
13330 done
13331IFS=$as_save_IFS
13332
13333fi
13334fi
13335ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13336if test -n "$ac_ct_LIPO"; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13338$as_echo "$ac_ct_LIPO" >&6; }
13339else
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341$as_echo "no" >&6; }
13342fi
13343
13344 if test "x$ac_ct_LIPO" = x; then
13345 LIPO=":"
13346 else
13347 case $cross_compiling:$ac_tool_warned in
13348yes:)
13349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13351ac_tool_warned=yes ;;
13352esac
13353 LIPO=$ac_ct_LIPO
13354 fi
13355else
13356 LIPO="$ac_cv_prog_LIPO"
13357fi
13358
13359 if test -n "$ac_tool_prefix"; then
13360 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13361set dummy ${ac_tool_prefix}otool; ac_word=$2
13362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13363$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013364if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013365 $as_echo_n "(cached) " >&6
13366else
13367 if test -n "$OTOOL"; then
13368 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13369else
13370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371for as_dir in $PATH
13372do
13373 IFS=$as_save_IFS
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013377 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13379 break 2
13380 fi
13381done
13382 done
13383IFS=$as_save_IFS
13384
13385fi
13386fi
13387OTOOL=$ac_cv_prog_OTOOL
13388if test -n "$OTOOL"; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13390$as_echo "$OTOOL" >&6; }
13391else
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393$as_echo "no" >&6; }
13394fi
13395
13396
13397fi
13398if test -z "$ac_cv_prog_OTOOL"; then
13399 ac_ct_OTOOL=$OTOOL
13400 # Extract the first word of "otool", so it can be a program name with args.
13401set dummy otool; ac_word=$2
13402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13403$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013404if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013405 $as_echo_n "(cached) " >&6
13406else
13407 if test -n "$ac_ct_OTOOL"; then
13408 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13409else
13410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411for as_dir in $PATH
13412do
13413 IFS=$as_save_IFS
13414 test -z "$as_dir" && as_dir=.
13415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013417 ac_cv_prog_ac_ct_OTOOL="otool"
13418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13419 break 2
13420 fi
13421done
13422 done
13423IFS=$as_save_IFS
13424
13425fi
13426fi
13427ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13428if test -n "$ac_ct_OTOOL"; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13430$as_echo "$ac_ct_OTOOL" >&6; }
13431else
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433$as_echo "no" >&6; }
13434fi
13435
13436 if test "x$ac_ct_OTOOL" = x; then
13437 OTOOL=":"
13438 else
13439 case $cross_compiling:$ac_tool_warned in
13440yes:)
13441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13443ac_tool_warned=yes ;;
13444esac
13445 OTOOL=$ac_ct_OTOOL
13446 fi
13447else
13448 OTOOL="$ac_cv_prog_OTOOL"
13449fi
13450
13451 if test -n "$ac_tool_prefix"; then
13452 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13453set dummy ${ac_tool_prefix}otool64; ac_word=$2
13454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13455$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013456if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013457 $as_echo_n "(cached) " >&6
13458else
13459 if test -n "$OTOOL64"; then
13460 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13461else
13462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13463for as_dir in $PATH
13464do
13465 IFS=$as_save_IFS
13466 test -z "$as_dir" && as_dir=.
13467 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013469 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13471 break 2
13472 fi
13473done
13474 done
13475IFS=$as_save_IFS
13476
13477fi
13478fi
13479OTOOL64=$ac_cv_prog_OTOOL64
13480if test -n "$OTOOL64"; then
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13482$as_echo "$OTOOL64" >&6; }
13483else
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485$as_echo "no" >&6; }
13486fi
13487
13488
13489fi
13490if test -z "$ac_cv_prog_OTOOL64"; then
13491 ac_ct_OTOOL64=$OTOOL64
13492 # Extract the first word of "otool64", so it can be a program name with args.
13493set dummy otool64; ac_word=$2
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013496if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013497 $as_echo_n "(cached) " >&6
13498else
13499 if test -n "$ac_ct_OTOOL64"; then
13500 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13501else
13502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13503for as_dir in $PATH
13504do
13505 IFS=$as_save_IFS
13506 test -z "$as_dir" && as_dir=.
13507 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013509 ac_cv_prog_ac_ct_OTOOL64="otool64"
13510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13511 break 2
13512 fi
13513done
13514 done
13515IFS=$as_save_IFS
13516
13517fi
13518fi
13519ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13520if test -n "$ac_ct_OTOOL64"; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13522$as_echo "$ac_ct_OTOOL64" >&6; }
13523else
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525$as_echo "no" >&6; }
13526fi
13527
13528 if test "x$ac_ct_OTOOL64" = x; then
13529 OTOOL64=":"
13530 else
13531 case $cross_compiling:$ac_tool_warned in
13532yes:)
13533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13535ac_tool_warned=yes ;;
13536esac
13537 OTOOL64=$ac_ct_OTOOL64
13538 fi
13539else
13540 OTOOL64="$ac_cv_prog_OTOOL64"
13541fi
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13570$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013571if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013572 $as_echo_n "(cached) " >&6
13573else
13574 lt_cv_apple_cc_single_mod=no
13575 if test -z "${LT_MULTI_MODULE}"; then
13576 # By default we will add the -single_module flag. You can override
13577 # by either setting the environment variable LT_MULTI_MODULE
13578 # non-empty at configure time, or by adding -multi_module to the
13579 # link flags.
13580 rm -rf libconftest.dylib*
13581 echo "int foo(void){return 1;}" > conftest.c
13582 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13583-dynamiclib -Wl,-single_module conftest.c" >&5
13584 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13585 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13586 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013587 # If there is a non-empty error log, and "single_module"
13588 # appears in it, assume the flag caused a linker warning
13589 if test -s conftest.err && $GREP single_module conftest.err; then
13590 cat conftest.err >&5
13591 # Otherwise, if the output was created with a 0 exit code from
13592 # the compiler, it worked.
13593 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013594 lt_cv_apple_cc_single_mod=yes
13595 else
13596 cat conftest.err >&5
13597 fi
13598 rm -rf libconftest.dylib*
13599 rm -f conftest.*
13600 fi
13601fi
13602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13603$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013604
cristy73bd4a52010-10-05 11:24:23 +000013605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13606$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013607if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013608 $as_echo_n "(cached) " >&6
13609else
13610 lt_cv_ld_exported_symbols_list=no
13611 save_LDFLAGS=$LDFLAGS
13612 echo "_main" > conftest.sym
13613 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615/* end confdefs.h. */
13616
13617int
13618main ()
13619{
13620
13621 ;
13622 return 0;
13623}
13624_ACEOF
13625if ac_fn_c_try_link "$LINENO"; then :
13626 lt_cv_ld_exported_symbols_list=yes
13627else
13628 lt_cv_ld_exported_symbols_list=no
13629fi
13630rm -f core conftest.err conftest.$ac_objext \
13631 conftest$ac_exeext conftest.$ac_ext
13632 LDFLAGS="$save_LDFLAGS"
13633
13634fi
13635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13636$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013637
cristy0c60a692010-11-04 01:09:47 +000013638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13639$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013640if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013641 $as_echo_n "(cached) " >&6
13642else
13643 lt_cv_ld_force_load=no
13644 cat > conftest.c << _LT_EOF
13645int forced_loaded() { return 2;}
13646_LT_EOF
13647 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13648 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13649 echo "$AR cru libconftest.a conftest.o" >&5
13650 $AR cru libconftest.a conftest.o 2>&5
13651 echo "$RANLIB libconftest.a" >&5
13652 $RANLIB libconftest.a 2>&5
13653 cat > conftest.c << _LT_EOF
13654int main() { return 0;}
13655_LT_EOF
13656 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13657 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13658 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013659 if test -s conftest.err && $GREP force_load conftest.err; then
13660 cat conftest.err >&5
13661 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013662 lt_cv_ld_force_load=yes
13663 else
13664 cat conftest.err >&5
13665 fi
13666 rm -f conftest.err libconftest.a conftest conftest.c
13667 rm -rf conftest.dSYM
13668
13669fi
13670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13671$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013672 case $host_os in
13673 rhapsody* | darwin1.[012])
13674 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13675 darwin1.*)
13676 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13677 darwin*) # darwin 5.x on
13678 # if running on 10.5 or later, the deployment target defaults
13679 # to the OS version, if on x86, and 10.4, the deployment
13680 # target defaults to 10.4. Don't you love it?
13681 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13682 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13683 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13684 10.[012]*)
13685 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13686 10.*)
13687 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13688 esac
13689 ;;
13690 esac
13691 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13692 _lt_dar_single_mod='$single_module'
13693 fi
13694 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13695 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13696 else
13697 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13698 fi
cristy0c60a692010-11-04 01:09:47 +000013699 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013700 _lt_dsymutil='~$DSYMUTIL $lib || :'
13701 else
13702 _lt_dsymutil=
13703 fi
13704 ;;
13705 esac
13706
13707for ac_header in dlfcn.h
13708do :
13709 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13710"
cristyda16f162011-02-19 23:52:17 +000013711if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013712 cat >>confdefs.h <<_ACEOF
13713#define HAVE_DLFCN_H 1
13714_ACEOF
13715
13716fi
13717
13718done
13719
13720
13721
cristy73bd4a52010-10-05 11:24:23 +000013722
cristyda16f162011-02-19 23:52:17 +000013723func_stripname_cnf ()
13724{
13725 case ${2} in
13726 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13727 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13728 esac
13729} # func_stripname_cnf
13730
13731
13732
cristy73bd4a52010-10-05 11:24:23 +000013733
13734
13735# Set options
13736enable_win32_dll=yes
13737
13738case $host in
cristy0c60a692010-11-04 01:09:47 +000013739*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013740 if test -n "$ac_tool_prefix"; then
13741 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13742set dummy ${ac_tool_prefix}as; ac_word=$2
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13744$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013745if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013746 $as_echo_n "(cached) " >&6
13747else
13748 if test -n "$AS"; then
13749 ac_cv_prog_AS="$AS" # Let the user override the test.
13750else
13751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752for as_dir in $PATH
13753do
13754 IFS=$as_save_IFS
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013758 ac_cv_prog_AS="${ac_tool_prefix}as"
13759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13760 break 2
13761 fi
13762done
13763 done
13764IFS=$as_save_IFS
13765
13766fi
13767fi
13768AS=$ac_cv_prog_AS
13769if test -n "$AS"; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13771$as_echo "$AS" >&6; }
13772else
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774$as_echo "no" >&6; }
13775fi
13776
13777
13778fi
13779if test -z "$ac_cv_prog_AS"; then
13780 ac_ct_AS=$AS
13781 # Extract the first word of "as", so it can be a program name with args.
13782set dummy as; ac_word=$2
13783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013785if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013786 $as_echo_n "(cached) " >&6
13787else
13788 if test -n "$ac_ct_AS"; then
13789 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13790else
13791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13792for as_dir in $PATH
13793do
13794 IFS=$as_save_IFS
13795 test -z "$as_dir" && as_dir=.
13796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013798 ac_cv_prog_ac_ct_AS="as"
13799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13800 break 2
13801 fi
13802done
13803 done
13804IFS=$as_save_IFS
13805
13806fi
13807fi
13808ac_ct_AS=$ac_cv_prog_ac_ct_AS
13809if test -n "$ac_ct_AS"; then
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13811$as_echo "$ac_ct_AS" >&6; }
13812else
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13814$as_echo "no" >&6; }
13815fi
13816
13817 if test "x$ac_ct_AS" = x; then
13818 AS="false"
13819 else
13820 case $cross_compiling:$ac_tool_warned in
13821yes:)
13822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13824ac_tool_warned=yes ;;
13825esac
13826 AS=$ac_ct_AS
13827 fi
13828else
13829 AS="$ac_cv_prog_AS"
13830fi
13831
13832 if test -n "$ac_tool_prefix"; then
13833 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13834set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13836$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013837if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013838 $as_echo_n "(cached) " >&6
13839else
13840 if test -n "$DLLTOOL"; then
13841 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13842else
13843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844for as_dir in $PATH
13845do
13846 IFS=$as_save_IFS
13847 test -z "$as_dir" && as_dir=.
13848 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013850 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13852 break 2
13853 fi
13854done
13855 done
13856IFS=$as_save_IFS
13857
13858fi
13859fi
13860DLLTOOL=$ac_cv_prog_DLLTOOL
13861if test -n "$DLLTOOL"; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13863$as_echo "$DLLTOOL" >&6; }
13864else
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13866$as_echo "no" >&6; }
13867fi
13868
13869
13870fi
13871if test -z "$ac_cv_prog_DLLTOOL"; then
13872 ac_ct_DLLTOOL=$DLLTOOL
13873 # Extract the first word of "dlltool", so it can be a program name with args.
13874set dummy dlltool; ac_word=$2
13875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013877if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013878 $as_echo_n "(cached) " >&6
13879else
13880 if test -n "$ac_ct_DLLTOOL"; then
13881 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13882else
13883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13884for as_dir in $PATH
13885do
13886 IFS=$as_save_IFS
13887 test -z "$as_dir" && as_dir=.
13888 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013890 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13892 break 2
13893 fi
13894done
13895 done
13896IFS=$as_save_IFS
13897
13898fi
13899fi
13900ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13901if test -n "$ac_ct_DLLTOOL"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13903$as_echo "$ac_ct_DLLTOOL" >&6; }
13904else
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906$as_echo "no" >&6; }
13907fi
13908
13909 if test "x$ac_ct_DLLTOOL" = x; then
13910 DLLTOOL="false"
13911 else
13912 case $cross_compiling:$ac_tool_warned in
13913yes:)
13914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13916ac_tool_warned=yes ;;
13917esac
13918 DLLTOOL=$ac_ct_DLLTOOL
13919 fi
13920else
13921 DLLTOOL="$ac_cv_prog_DLLTOOL"
13922fi
13923
13924 if test -n "$ac_tool_prefix"; then
13925 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13926set dummy ${ac_tool_prefix}objdump; ac_word=$2
13927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13928$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013929if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013930 $as_echo_n "(cached) " >&6
13931else
13932 if test -n "$OBJDUMP"; then
13933 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13934else
13935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936for as_dir in $PATH
13937do
13938 IFS=$as_save_IFS
13939 test -z "$as_dir" && as_dir=.
13940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013942 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13944 break 2
13945 fi
13946done
13947 done
13948IFS=$as_save_IFS
13949
13950fi
13951fi
13952OBJDUMP=$ac_cv_prog_OBJDUMP
13953if test -n "$OBJDUMP"; then
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13955$as_echo "$OBJDUMP" >&6; }
13956else
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958$as_echo "no" >&6; }
13959fi
13960
13961
13962fi
13963if test -z "$ac_cv_prog_OBJDUMP"; then
13964 ac_ct_OBJDUMP=$OBJDUMP
13965 # Extract the first word of "objdump", so it can be a program name with args.
13966set dummy objdump; ac_word=$2
13967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13968$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013969if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013970 $as_echo_n "(cached) " >&6
13971else
13972 if test -n "$ac_ct_OBJDUMP"; then
13973 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13974else
13975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976for as_dir in $PATH
13977do
13978 IFS=$as_save_IFS
13979 test -z "$as_dir" && as_dir=.
13980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013982 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13984 break 2
13985 fi
13986done
13987 done
13988IFS=$as_save_IFS
13989
13990fi
13991fi
13992ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13993if test -n "$ac_ct_OBJDUMP"; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13995$as_echo "$ac_ct_OBJDUMP" >&6; }
13996else
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13998$as_echo "no" >&6; }
13999fi
14000
14001 if test "x$ac_ct_OBJDUMP" = x; then
14002 OBJDUMP="false"
14003 else
14004 case $cross_compiling:$ac_tool_warned in
14005yes:)
14006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14008ac_tool_warned=yes ;;
14009esac
14010 OBJDUMP=$ac_ct_OBJDUMP
14011 fi
14012else
14013 OBJDUMP="$ac_cv_prog_OBJDUMP"
14014fi
14015
14016 ;;
14017esac
14018
14019test -z "$AS" && AS=as
14020
14021
14022
14023
14024
14025test -z "$DLLTOOL" && DLLTOOL=dlltool
14026
14027
14028
14029
14030
14031test -z "$OBJDUMP" && OBJDUMP=objdump
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041 # Check whether --enable-shared was given.
14042if test "${enable_shared+set}" = set; then :
14043 enableval=$enable_shared; p=${PACKAGE-default}
14044 case $enableval in
14045 yes) enable_shared=yes ;;
14046 no) enable_shared=no ;;
14047 *)
14048 enable_shared=no
14049 # Look at the argument we got. We use all the common list separators.
14050 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14051 for pkg in $enableval; do
14052 IFS="$lt_save_ifs"
14053 if test "X$pkg" = "X$p"; then
14054 enable_shared=yes
14055 fi
14056 done
14057 IFS="$lt_save_ifs"
14058 ;;
14059 esac
14060else
14061 enable_shared=yes
14062fi
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072 # Check whether --enable-static was given.
14073if test "${enable_static+set}" = set; then :
14074 enableval=$enable_static; p=${PACKAGE-default}
14075 case $enableval in
14076 yes) enable_static=yes ;;
14077 no) enable_static=no ;;
14078 *)
14079 enable_static=no
14080 # Look at the argument we got. We use all the common list separators.
14081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14082 for pkg in $enableval; do
14083 IFS="$lt_save_ifs"
14084 if test "X$pkg" = "X$p"; then
14085 enable_static=yes
14086 fi
14087 done
14088 IFS="$lt_save_ifs"
14089 ;;
14090 esac
14091else
14092 enable_static=yes
14093fi
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104# Check whether --with-pic was given.
14105if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014106 withval=$with_pic; lt_p=${PACKAGE-default}
14107 case $withval in
14108 yes|no) pic_mode=$withval ;;
14109 *)
14110 pic_mode=default
14111 # Look at the argument we got. We use all the common list separators.
14112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14113 for lt_pkg in $withval; do
14114 IFS="$lt_save_ifs"
14115 if test "X$lt_pkg" = "X$lt_p"; then
14116 pic_mode=yes
14117 fi
14118 done
14119 IFS="$lt_save_ifs"
14120 ;;
14121 esac
cristy73bd4a52010-10-05 11:24:23 +000014122else
14123 pic_mode=default
14124fi
14125
14126
14127test -z "$pic_mode" && pic_mode=default
14128
14129
14130
14131
14132
14133
14134
14135 # Check whether --enable-fast-install was given.
14136if test "${enable_fast_install+set}" = set; then :
14137 enableval=$enable_fast_install; p=${PACKAGE-default}
14138 case $enableval in
14139 yes) enable_fast_install=yes ;;
14140 no) enable_fast_install=no ;;
14141 *)
14142 enable_fast_install=no
14143 # Look at the argument we got. We use all the common list separators.
14144 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14145 for pkg in $enableval; do
14146 IFS="$lt_save_ifs"
14147 if test "X$pkg" = "X$p"; then
14148 enable_fast_install=yes
14149 fi
14150 done
14151 IFS="$lt_save_ifs"
14152 ;;
14153 esac
14154else
14155 enable_fast_install=yes
14156fi
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168# This can be used to rebuild libtool when needed
14169LIBTOOL_DEPS="$ltmain"
14170
14171# Always use our own libtool.
14172LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
cristy0c60a692010-11-04 01:09:47 +000014198
cristy99bd5232011-12-07 14:38:20 +000014199
14200
14201
14202
cristy73bd4a52010-10-05 11:24:23 +000014203test -z "$LN_S" && LN_S="ln -s"
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218if test -n "${ZSH_VERSION+set}" ; then
14219 setopt NO_GLOB_SUBST
14220fi
14221
14222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14223$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014224if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014225 $as_echo_n "(cached) " >&6
14226else
14227 rm -f .libs 2>/dev/null
14228mkdir .libs 2>/dev/null
14229if test -d .libs; then
14230 lt_cv_objdir=.libs
14231else
14232 # MS-DOS does not allow filenames that begin with a dot.
14233 lt_cv_objdir=_libs
14234fi
14235rmdir .libs 2>/dev/null
14236fi
14237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14238$as_echo "$lt_cv_objdir" >&6; }
14239objdir=$lt_cv_objdir
14240
14241
14242
14243
14244
14245cat >>confdefs.h <<_ACEOF
14246#define LT_OBJDIR "$lt_cv_objdir/"
14247_ACEOF
14248
14249
14250
14251
cristy73bd4a52010-10-05 11:24:23 +000014252case $host_os in
14253aix3*)
14254 # AIX sometimes has problems with the GCC collect2 program. For some
14255 # reason, if we set the COLLECT_NAMES environment variable, the problems
14256 # vanish in a puff of smoke.
14257 if test "X${COLLECT_NAMES+set}" != Xset; then
14258 COLLECT_NAMES=
14259 export COLLECT_NAMES
14260 fi
14261 ;;
14262esac
14263
cristy73bd4a52010-10-05 11:24:23 +000014264# Global variables:
14265ofile=libtool
14266can_build_shared=yes
14267
14268# All known linkers require a `.a' archive for static linking (except MSVC,
14269# which needs '.lib').
14270libext=a
14271
14272with_gnu_ld="$lt_cv_prog_gnu_ld"
14273
14274old_CC="$CC"
14275old_CFLAGS="$CFLAGS"
14276
14277# Set sane defaults for various variables
14278test -z "$CC" && CC=cc
14279test -z "$LTCC" && LTCC=$CC
14280test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14281test -z "$LD" && LD=ld
14282test -z "$ac_objext" && ac_objext=o
14283
14284for cc_temp in $compiler""; do
14285 case $cc_temp in
14286 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14287 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14288 \-*) ;;
14289 *) break;;
14290 esac
14291done
cristy0c60a692010-11-04 01:09:47 +000014292cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014293
14294
14295# Only perform the check for file, if the check method requires it
14296test -z "$MAGIC_CMD" && MAGIC_CMD=file
14297case $deplibs_check_method in
14298file_magic*)
14299 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14301$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014302if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014303 $as_echo_n "(cached) " >&6
14304else
14305 case $MAGIC_CMD in
14306[\\/*] | ?:[\\/]*)
14307 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14308 ;;
14309*)
14310 lt_save_MAGIC_CMD="$MAGIC_CMD"
14311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14312 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14313 for ac_dir in $ac_dummy; do
14314 IFS="$lt_save_ifs"
14315 test -z "$ac_dir" && ac_dir=.
14316 if test -f $ac_dir/${ac_tool_prefix}file; then
14317 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14318 if test -n "$file_magic_test_file"; then
14319 case $deplibs_check_method in
14320 "file_magic "*)
14321 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14323 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14324 $EGREP "$file_magic_regex" > /dev/null; then
14325 :
14326 else
14327 cat <<_LT_EOF 1>&2
14328
14329*** Warning: the command libtool uses to detect shared libraries,
14330*** $file_magic_cmd, produces output that libtool cannot recognize.
14331*** The result is that libtool may fail to recognize shared libraries
14332*** as such. This will affect the creation of libtool libraries that
14333*** depend on shared libraries, but programs linked with such libtool
14334*** libraries will work regardless of this problem. Nevertheless, you
14335*** may want to report the problem to your system manager and/or to
14336*** bug-libtool@gnu.org
14337
14338_LT_EOF
14339 fi ;;
14340 esac
14341 fi
14342 break
14343 fi
14344 done
14345 IFS="$lt_save_ifs"
14346 MAGIC_CMD="$lt_save_MAGIC_CMD"
14347 ;;
14348esac
14349fi
14350
14351MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14352if test -n "$MAGIC_CMD"; then
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14354$as_echo "$MAGIC_CMD" >&6; }
14355else
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357$as_echo "no" >&6; }
14358fi
14359
14360
14361
14362
14363
14364if test -z "$lt_cv_path_MAGIC_CMD"; then
14365 if test -n "$ac_tool_prefix"; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14367$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014368if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014369 $as_echo_n "(cached) " >&6
14370else
14371 case $MAGIC_CMD in
14372[\\/*] | ?:[\\/]*)
14373 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14374 ;;
14375*)
14376 lt_save_MAGIC_CMD="$MAGIC_CMD"
14377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14378 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14379 for ac_dir in $ac_dummy; do
14380 IFS="$lt_save_ifs"
14381 test -z "$ac_dir" && ac_dir=.
14382 if test -f $ac_dir/file; then
14383 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14384 if test -n "$file_magic_test_file"; then
14385 case $deplibs_check_method in
14386 "file_magic "*)
14387 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14389 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14390 $EGREP "$file_magic_regex" > /dev/null; then
14391 :
14392 else
14393 cat <<_LT_EOF 1>&2
14394
14395*** Warning: the command libtool uses to detect shared libraries,
14396*** $file_magic_cmd, produces output that libtool cannot recognize.
14397*** The result is that libtool may fail to recognize shared libraries
14398*** as such. This will affect the creation of libtool libraries that
14399*** depend on shared libraries, but programs linked with such libtool
14400*** libraries will work regardless of this problem. Nevertheless, you
14401*** may want to report the problem to your system manager and/or to
14402*** bug-libtool@gnu.org
14403
14404_LT_EOF
14405 fi ;;
14406 esac
14407 fi
14408 break
14409 fi
14410 done
14411 IFS="$lt_save_ifs"
14412 MAGIC_CMD="$lt_save_MAGIC_CMD"
14413 ;;
14414esac
14415fi
14416
14417MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14418if test -n "$MAGIC_CMD"; then
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14420$as_echo "$MAGIC_CMD" >&6; }
14421else
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14423$as_echo "no" >&6; }
14424fi
14425
14426
14427 else
14428 MAGIC_CMD=:
14429 fi
14430fi
14431
14432 fi
14433 ;;
14434esac
14435
14436# Use C for the default configuration in the libtool script
14437
14438lt_save_CC="$CC"
14439ac_ext=c
14440ac_cpp='$CPP $CPPFLAGS'
14441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14443ac_compiler_gnu=$ac_cv_c_compiler_gnu
14444
14445
14446# Source file extension for C test sources.
14447ac_ext=c
14448
14449# Object file extension for compiled C test sources.
14450objext=o
14451objext=$objext
14452
14453# Code to be used in simple compile tests
14454lt_simple_compile_test_code="int some_variable = 0;"
14455
14456# Code to be used in simple link tests
14457lt_simple_link_test_code='int main(){return(0);}'
14458
14459
14460
14461
14462
14463
14464
14465# If no C compiler was specified, use CC.
14466LTCC=${LTCC-"$CC"}
14467
14468# If no C compiler flags were specified, use CFLAGS.
14469LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14470
14471# Allow CC to be a program name with arguments.
14472compiler=$CC
14473
14474# Save the default compiler, since it gets overwritten when the other
14475# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14476compiler_DEFAULT=$CC
14477
14478# save warnings/boilerplate of simple test code
14479ac_outfile=conftest.$ac_objext
14480echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14481eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14482_lt_compiler_boilerplate=`cat conftest.err`
14483$RM conftest*
14484
14485ac_outfile=conftest.$ac_objext
14486echo "$lt_simple_link_test_code" >conftest.$ac_ext
14487eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14488_lt_linker_boilerplate=`cat conftest.err`
14489$RM -r conftest*
14490
14491
14492## CAVEAT EMPTOR:
14493## There is no encapsulation within the following macros, do not change
14494## the running order or otherwise move them around unless you know exactly
14495## what you are doing...
14496if test -n "$compiler"; then
14497
14498lt_prog_compiler_no_builtin_flag=
14499
14500if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014501 case $cc_basename in
14502 nvcc*)
14503 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14504 *)
14505 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14506 esac
cristy73bd4a52010-10-05 11:24:23 +000014507
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14509$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014510if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014511 $as_echo_n "(cached) " >&6
14512else
14513 lt_cv_prog_compiler_rtti_exceptions=no
14514 ac_outfile=conftest.$ac_objext
14515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14516 lt_compiler_flag="-fno-rtti -fno-exceptions"
14517 # Insert the option either (1) after the last *FLAGS variable, or
14518 # (2) before a word containing "conftest.", or (3) at the end.
14519 # Note that $ac_compile itself does not contain backslashes and begins
14520 # with a dollar sign (not a hyphen), so the echo should work correctly.
14521 # The option is referenced via a variable to avoid confusing sed.
14522 lt_compile=`echo "$ac_compile" | $SED \
14523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14525 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014527 (eval "$lt_compile" 2>conftest.err)
14528 ac_status=$?
14529 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014531 if (exit $ac_status) && test -s "$ac_outfile"; then
14532 # The compiler can only warn and ignore the option if not recognized
14533 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14537 lt_cv_prog_compiler_rtti_exceptions=yes
14538 fi
14539 fi
14540 $RM conftest*
14541
14542fi
14543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14544$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14545
14546if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14547 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14548else
14549 :
14550fi
14551
14552fi
14553
14554
14555
14556
14557
14558
14559 lt_prog_compiler_wl=
14560lt_prog_compiler_pic=
14561lt_prog_compiler_static=
14562
cristy73bd4a52010-10-05 11:24:23 +000014563
14564 if test "$GCC" = yes; then
14565 lt_prog_compiler_wl='-Wl,'
14566 lt_prog_compiler_static='-static'
14567
14568 case $host_os in
14569 aix*)
14570 # All AIX code is PIC.
14571 if test "$host_cpu" = ia64; then
14572 # AIX 5 now supports IA64 processor
14573 lt_prog_compiler_static='-Bstatic'
14574 fi
14575 ;;
14576
14577 amigaos*)
14578 case $host_cpu in
14579 powerpc)
14580 # see comment about AmigaOS4 .so support
14581 lt_prog_compiler_pic='-fPIC'
14582 ;;
14583 m68k)
14584 # FIXME: we need at least 68020 code to build shared libraries, but
14585 # adding the `-m68020' flag to GCC prevents building anything better,
14586 # like `-m68040'.
14587 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14588 ;;
14589 esac
14590 ;;
14591
14592 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14593 # PIC is the default for these OSes.
14594 ;;
14595
14596 mingw* | cygwin* | pw32* | os2* | cegcc*)
14597 # This hack is so that the source file can tell whether it is being
14598 # built for inclusion in a dll (and should export symbols for example).
14599 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14600 # (--disable-auto-import) libraries
14601 lt_prog_compiler_pic='-DDLL_EXPORT'
14602 ;;
14603
14604 darwin* | rhapsody*)
14605 # PIC is the default on this platform
14606 # Common symbols not allowed in MH_DYLIB files
14607 lt_prog_compiler_pic='-fno-common'
14608 ;;
14609
cristy0c60a692010-11-04 01:09:47 +000014610 haiku*)
14611 # PIC is the default for Haiku.
14612 # The "-static" flag exists, but is broken.
14613 lt_prog_compiler_static=
14614 ;;
14615
cristy73bd4a52010-10-05 11:24:23 +000014616 hpux*)
14617 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14618 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14619 # sets the default TLS model and affects inlining.
14620 case $host_cpu in
14621 hppa*64*)
14622 # +Z the default
14623 ;;
14624 *)
14625 lt_prog_compiler_pic='-fPIC'
14626 ;;
14627 esac
14628 ;;
14629
14630 interix[3-9]*)
14631 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14632 # Instead, we relocate shared libraries at runtime.
14633 ;;
14634
14635 msdosdjgpp*)
14636 # Just because we use GCC doesn't mean we suddenly get shared libraries
14637 # on systems that don't support them.
14638 lt_prog_compiler_can_build_shared=no
14639 enable_shared=no
14640 ;;
14641
14642 *nto* | *qnx*)
14643 # QNX uses GNU C++, but need to define -shared option too, otherwise
14644 # it will coredump.
14645 lt_prog_compiler_pic='-fPIC -shared'
14646 ;;
14647
14648 sysv4*MP*)
14649 if test -d /usr/nec; then
14650 lt_prog_compiler_pic=-Kconform_pic
14651 fi
14652 ;;
14653
14654 *)
14655 lt_prog_compiler_pic='-fPIC'
14656 ;;
14657 esac
cristy0c60a692010-11-04 01:09:47 +000014658
14659 case $cc_basename in
14660 nvcc*) # Cuda Compiler Driver 2.2
14661 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014662 if test -n "$lt_prog_compiler_pic"; then
14663 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14664 fi
cristy0c60a692010-11-04 01:09:47 +000014665 ;;
14666 esac
cristy73bd4a52010-10-05 11:24:23 +000014667 else
14668 # PORTME Check for flag to pass linker flags through the system compiler.
14669 case $host_os in
14670 aix*)
14671 lt_prog_compiler_wl='-Wl,'
14672 if test "$host_cpu" = ia64; then
14673 # AIX 5 now supports IA64 processor
14674 lt_prog_compiler_static='-Bstatic'
14675 else
14676 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14677 fi
14678 ;;
14679
14680 mingw* | cygwin* | pw32* | os2* | cegcc*)
14681 # This hack is so that the source file can tell whether it is being
14682 # built for inclusion in a dll (and should export symbols for example).
14683 lt_prog_compiler_pic='-DDLL_EXPORT'
14684 ;;
14685
14686 hpux9* | hpux10* | hpux11*)
14687 lt_prog_compiler_wl='-Wl,'
14688 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14689 # not for PA HP-UX.
14690 case $host_cpu in
14691 hppa*64*|ia64*)
14692 # +Z the default
14693 ;;
14694 *)
14695 lt_prog_compiler_pic='+Z'
14696 ;;
14697 esac
14698 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14699 lt_prog_compiler_static='${wl}-a ${wl}archive'
14700 ;;
14701
14702 irix5* | irix6* | nonstopux*)
14703 lt_prog_compiler_wl='-Wl,'
14704 # PIC (with -KPIC) is the default.
14705 lt_prog_compiler_static='-non_shared'
14706 ;;
14707
cristy0c60a692010-11-04 01:09:47 +000014708 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014709 case $cc_basename in
14710 # old Intel for x86_64 which still supported -KPIC.
14711 ecc*)
14712 lt_prog_compiler_wl='-Wl,'
14713 lt_prog_compiler_pic='-KPIC'
14714 lt_prog_compiler_static='-static'
14715 ;;
14716 # icc used to be incompatible with GCC.
14717 # ICC 10 doesn't accept -KPIC any more.
14718 icc* | ifort*)
14719 lt_prog_compiler_wl='-Wl,'
14720 lt_prog_compiler_pic='-fPIC'
14721 lt_prog_compiler_static='-static'
14722 ;;
14723 # Lahey Fortran 8.1.
14724 lf95*)
14725 lt_prog_compiler_wl='-Wl,'
14726 lt_prog_compiler_pic='--shared'
14727 lt_prog_compiler_static='--static'
14728 ;;
cristyda16f162011-02-19 23:52:17 +000014729 nagfor*)
14730 # NAG Fortran compiler
14731 lt_prog_compiler_wl='-Wl,-Wl,,'
14732 lt_prog_compiler_pic='-PIC'
14733 lt_prog_compiler_static='-Bstatic'
14734 ;;
cristy0c60a692010-11-04 01:09:47 +000014735 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014736 # Portland Group compilers (*not* the Pentium gcc compiler,
14737 # which looks to be a dead project)
14738 lt_prog_compiler_wl='-Wl,'
14739 lt_prog_compiler_pic='-fpic'
14740 lt_prog_compiler_static='-Bstatic'
14741 ;;
14742 ccc*)
14743 lt_prog_compiler_wl='-Wl,'
14744 # All Alpha code is PIC.
14745 lt_prog_compiler_static='-non_shared'
14746 ;;
cristy0c60a692010-11-04 01:09:47 +000014747 xl* | bgxl* | bgf* | mpixl*)
14748 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014749 lt_prog_compiler_wl='-Wl,'
14750 lt_prog_compiler_pic='-qpic'
14751 lt_prog_compiler_static='-qstaticlink'
14752 ;;
14753 *)
14754 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014755 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014756 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14757 lt_prog_compiler_pic='-KPIC'
14758 lt_prog_compiler_static='-Bstatic'
14759 lt_prog_compiler_wl=''
14760 ;;
cristy99bd5232011-12-07 14:38:20 +000014761 *Sun\ F* | *Sun*Fortran*)
14762 lt_prog_compiler_pic='-KPIC'
14763 lt_prog_compiler_static='-Bstatic'
14764 lt_prog_compiler_wl='-Qoption ld '
14765 ;;
cristy73bd4a52010-10-05 11:24:23 +000014766 *Sun\ C*)
14767 # Sun C 5.9
14768 lt_prog_compiler_pic='-KPIC'
14769 lt_prog_compiler_static='-Bstatic'
14770 lt_prog_compiler_wl='-Wl,'
14771 ;;
cristy99bd5232011-12-07 14:38:20 +000014772 *Intel*\ [CF]*Compiler*)
14773 lt_prog_compiler_wl='-Wl,'
14774 lt_prog_compiler_pic='-fPIC'
14775 lt_prog_compiler_static='-static'
14776 ;;
14777 *Portland\ Group*)
14778 lt_prog_compiler_wl='-Wl,'
14779 lt_prog_compiler_pic='-fpic'
14780 lt_prog_compiler_static='-Bstatic'
14781 ;;
cristy73bd4a52010-10-05 11:24:23 +000014782 esac
14783 ;;
14784 esac
14785 ;;
14786
14787 newsos6)
14788 lt_prog_compiler_pic='-KPIC'
14789 lt_prog_compiler_static='-Bstatic'
14790 ;;
14791
14792 *nto* | *qnx*)
14793 # QNX uses GNU C++, but need to define -shared option too, otherwise
14794 # it will coredump.
14795 lt_prog_compiler_pic='-fPIC -shared'
14796 ;;
14797
14798 osf3* | osf4* | osf5*)
14799 lt_prog_compiler_wl='-Wl,'
14800 # All OSF/1 code is PIC.
14801 lt_prog_compiler_static='-non_shared'
14802 ;;
14803
14804 rdos*)
14805 lt_prog_compiler_static='-non_shared'
14806 ;;
14807
14808 solaris*)
14809 lt_prog_compiler_pic='-KPIC'
14810 lt_prog_compiler_static='-Bstatic'
14811 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014812 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014813 lt_prog_compiler_wl='-Qoption ld ';;
14814 *)
14815 lt_prog_compiler_wl='-Wl,';;
14816 esac
14817 ;;
14818
14819 sunos4*)
14820 lt_prog_compiler_wl='-Qoption ld '
14821 lt_prog_compiler_pic='-PIC'
14822 lt_prog_compiler_static='-Bstatic'
14823 ;;
14824
14825 sysv4 | sysv4.2uw2* | sysv4.3*)
14826 lt_prog_compiler_wl='-Wl,'
14827 lt_prog_compiler_pic='-KPIC'
14828 lt_prog_compiler_static='-Bstatic'
14829 ;;
14830
14831 sysv4*MP*)
14832 if test -d /usr/nec ;then
14833 lt_prog_compiler_pic='-Kconform_pic'
14834 lt_prog_compiler_static='-Bstatic'
14835 fi
14836 ;;
14837
14838 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14839 lt_prog_compiler_wl='-Wl,'
14840 lt_prog_compiler_pic='-KPIC'
14841 lt_prog_compiler_static='-Bstatic'
14842 ;;
14843
14844 unicos*)
14845 lt_prog_compiler_wl='-Wl,'
14846 lt_prog_compiler_can_build_shared=no
14847 ;;
14848
14849 uts4*)
14850 lt_prog_compiler_pic='-pic'
14851 lt_prog_compiler_static='-Bstatic'
14852 ;;
14853
14854 *)
14855 lt_prog_compiler_can_build_shared=no
14856 ;;
14857 esac
14858 fi
14859
14860case $host_os in
14861 # For platforms which do not support PIC, -DPIC is meaningless:
14862 *djgpp*)
14863 lt_prog_compiler_pic=
14864 ;;
14865 *)
14866 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14867 ;;
14868esac
cristy73bd4a52010-10-05 11:24:23 +000014869
cristyda16f162011-02-19 23:52:17 +000014870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14871$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14872if ${lt_cv_prog_compiler_pic+:} false; then :
14873 $as_echo_n "(cached) " >&6
14874else
14875 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14876fi
14877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14878$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14879lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014880
14881#
14882# Check to make sure the PIC flag actually works.
14883#
14884if test -n "$lt_prog_compiler_pic"; then
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14886$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014887if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014888 $as_echo_n "(cached) " >&6
14889else
14890 lt_cv_prog_compiler_pic_works=no
14891 ac_outfile=conftest.$ac_objext
14892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14893 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14894 # Insert the option either (1) after the last *FLAGS variable, or
14895 # (2) before a word containing "conftest.", or (3) at the end.
14896 # Note that $ac_compile itself does not contain backslashes and begins
14897 # with a dollar sign (not a hyphen), so the echo should work correctly.
14898 # The option is referenced via a variable to avoid confusing sed.
14899 lt_compile=`echo "$ac_compile" | $SED \
14900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14902 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014904 (eval "$lt_compile" 2>conftest.err)
14905 ac_status=$?
14906 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014908 if (exit $ac_status) && test -s "$ac_outfile"; then
14909 # The compiler can only warn and ignore the option if not recognized
14910 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014911 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14913 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14914 lt_cv_prog_compiler_pic_works=yes
14915 fi
14916 fi
14917 $RM conftest*
14918
14919fi
14920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14921$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14922
14923if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14924 case $lt_prog_compiler_pic in
14925 "" | " "*) ;;
14926 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14927 esac
14928else
14929 lt_prog_compiler_pic=
14930 lt_prog_compiler_can_build_shared=no
14931fi
14932
14933fi
14934
14935
14936
14937
14938
14939
cristyda16f162011-02-19 23:52:17 +000014940
14941
14942
14943
14944
cristy73bd4a52010-10-05 11:24:23 +000014945#
14946# Check to make sure the static flag actually works.
14947#
14948wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14950$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014951if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014952 $as_echo_n "(cached) " >&6
14953else
14954 lt_cv_prog_compiler_static_works=no
14955 save_LDFLAGS="$LDFLAGS"
14956 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14957 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14958 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14959 # The linker can only warn and ignore the option if not recognized
14960 # So say no if there are warnings
14961 if test -s conftest.err; then
14962 # Append any errors to the config.log.
14963 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014964 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14966 if diff conftest.exp conftest.er2 >/dev/null; then
14967 lt_cv_prog_compiler_static_works=yes
14968 fi
14969 else
14970 lt_cv_prog_compiler_static_works=yes
14971 fi
14972 fi
14973 $RM -r conftest*
14974 LDFLAGS="$save_LDFLAGS"
14975
14976fi
14977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14978$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14979
14980if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14981 :
14982else
14983 lt_prog_compiler_static=
14984fi
14985
14986
14987
14988
14989
14990
14991
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14993$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014994if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014995 $as_echo_n "(cached) " >&6
14996else
14997 lt_cv_prog_compiler_c_o=no
14998 $RM -r conftest 2>/dev/null
14999 mkdir conftest
15000 cd conftest
15001 mkdir out
15002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15003
15004 lt_compiler_flag="-o out/conftest2.$ac_objext"
15005 # Insert the option either (1) after the last *FLAGS variable, or
15006 # (2) before a word containing "conftest.", or (3) at the end.
15007 # Note that $ac_compile itself does not contain backslashes and begins
15008 # with a dollar sign (not a hyphen), so the echo should work correctly.
15009 lt_compile=`echo "$ac_compile" | $SED \
15010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15012 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015014 (eval "$lt_compile" 2>out/conftest.err)
15015 ac_status=$?
15016 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15019 then
15020 # The compiler can only warn and ignore the option if not recognized
15021 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015022 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015023 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15024 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15025 lt_cv_prog_compiler_c_o=yes
15026 fi
15027 fi
15028 chmod u+w . 2>&5
15029 $RM conftest*
15030 # SGI C++ compiler will create directory out/ii_files/ for
15031 # template instantiation
15032 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15033 $RM out/* && rmdir out
15034 cd ..
15035 $RM -r conftest
15036 $RM conftest*
15037
15038fi
15039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15040$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15041
15042
15043
15044
15045
15046
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15048$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015049if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015050 $as_echo_n "(cached) " >&6
15051else
15052 lt_cv_prog_compiler_c_o=no
15053 $RM -r conftest 2>/dev/null
15054 mkdir conftest
15055 cd conftest
15056 mkdir out
15057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15058
15059 lt_compiler_flag="-o out/conftest2.$ac_objext"
15060 # Insert the option either (1) after the last *FLAGS variable, or
15061 # (2) before a word containing "conftest.", or (3) at the end.
15062 # Note that $ac_compile itself does not contain backslashes and begins
15063 # with a dollar sign (not a hyphen), so the echo should work correctly.
15064 lt_compile=`echo "$ac_compile" | $SED \
15065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15067 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015068 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015069 (eval "$lt_compile" 2>out/conftest.err)
15070 ac_status=$?
15071 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015073 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15074 then
15075 # The compiler can only warn and ignore the option if not recognized
15076 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015077 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015078 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15079 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15080 lt_cv_prog_compiler_c_o=yes
15081 fi
15082 fi
15083 chmod u+w . 2>&5
15084 $RM conftest*
15085 # SGI C++ compiler will create directory out/ii_files/ for
15086 # template instantiation
15087 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15088 $RM out/* && rmdir out
15089 cd ..
15090 $RM -r conftest
15091 $RM conftest*
15092
15093fi
15094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15095$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15096
15097
15098
15099
15100hard_links="nottested"
15101if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15102 # do not overwrite the value of need_locks provided by the user
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15104$as_echo_n "checking if we can lock with hard links... " >&6; }
15105 hard_links=yes
15106 $RM conftest*
15107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15108 touch conftest.a
15109 ln conftest.a conftest.b 2>&5 || hard_links=no
15110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15112$as_echo "$hard_links" >&6; }
15113 if test "$hard_links" = no; then
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15115$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15116 need_locks=warn
15117 fi
15118else
15119 need_locks=no
15120fi
15121
15122
15123
15124
15125
15126
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15128$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15129
15130 runpath_var=
15131 allow_undefined_flag=
15132 always_export_symbols=no
15133 archive_cmds=
15134 archive_expsym_cmds=
15135 compiler_needs_object=no
15136 enable_shared_with_static_runtimes=no
15137 export_dynamic_flag_spec=
15138 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15139 hardcode_automatic=no
15140 hardcode_direct=no
15141 hardcode_direct_absolute=no
15142 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015143 hardcode_libdir_separator=
15144 hardcode_minus_L=no
15145 hardcode_shlibpath_var=unsupported
15146 inherit_rpath=no
15147 link_all_deplibs=unknown
15148 module_cmds=
15149 module_expsym_cmds=
15150 old_archive_from_new_cmds=
15151 old_archive_from_expsyms_cmds=
15152 thread_safe_flag_spec=
15153 whole_archive_flag_spec=
15154 # include_expsyms should be a list of space-separated symbols to be *always*
15155 # included in the symbol list
15156 include_expsyms=
15157 # exclude_expsyms can be an extended regexp of symbols to exclude
15158 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15159 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15160 # as well as any symbol that contains `d'.
15161 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15162 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15163 # platforms (ab)use it in PIC code, but their linkers get confused if
15164 # the symbol is explicitly referenced. Since portable code cannot
15165 # rely on this symbol name, it's probably fine to never include it in
15166 # preloaded symbol tables.
15167 # Exclude shared library initialization/finalization symbols.
15168 extract_expsyms_cmds=
15169
15170 case $host_os in
15171 cygwin* | mingw* | pw32* | cegcc*)
15172 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15173 # When not using gcc, we currently assume that we are using
15174 # Microsoft Visual C++.
15175 if test "$GCC" != yes; then
15176 with_gnu_ld=no
15177 fi
15178 ;;
15179 interix*)
15180 # we just hope/assume this is gcc and not c89 (= MSVC++)
15181 with_gnu_ld=yes
15182 ;;
15183 openbsd*)
15184 with_gnu_ld=no
15185 ;;
15186 esac
15187
15188 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015189
15190 # On some targets, GNU ld is compatible enough with the native linker
15191 # that we're better off using the native interface for both.
15192 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015193 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015194 case $host_os in
15195 aix*)
15196 # The AIX port of GNU ld has always aspired to compatibility
15197 # with the native linker. However, as the warning in the GNU ld
15198 # block says, versions before 2.19.5* couldn't really create working
15199 # shared libraries, regardless of the interface used.
15200 case `$LD -v 2>&1` in
15201 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15202 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15203 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15204 *)
15205 lt_use_gnu_ld_interface=yes
15206 ;;
15207 esac
15208 ;;
15209 *)
15210 lt_use_gnu_ld_interface=yes
15211 ;;
15212 esac
15213 fi
15214
15215 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015216 # If archive_cmds runs LD, not CC, wlarc should be empty
15217 wlarc='${wl}'
15218
15219 # Set some defaults for GNU ld with shared library support. These
15220 # are reset later if shared libraries are not supported. Putting them
15221 # here allows them to be overridden if necessary.
15222 runpath_var=LD_RUN_PATH
15223 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15224 export_dynamic_flag_spec='${wl}--export-dynamic'
15225 # ancient GNU ld didn't support --whole-archive et. al.
15226 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15227 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15228 else
15229 whole_archive_flag_spec=
15230 fi
15231 supports_anon_versioning=no
15232 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015233 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015234 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15235 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15236 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15237 *\ 2.11.*) ;; # other 2.11 versions
15238 *) supports_anon_versioning=yes ;;
15239 esac
15240
15241 # See if GNU ld supports shared libraries.
15242 case $host_os in
15243 aix[3-9]*)
15244 # On AIX/PPC, the GNU linker is very broken
15245 if test "$host_cpu" != ia64; then
15246 ld_shlibs=no
15247 cat <<_LT_EOF 1>&2
15248
cristy0c60a692010-11-04 01:09:47 +000015249*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015250*** to be unable to reliably create shared libraries on AIX.
15251*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015252*** really care for shared libraries, you may want to install binutils
15253*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15254*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015255
15256_LT_EOF
15257 fi
15258 ;;
15259
15260 amigaos*)
15261 case $host_cpu in
15262 powerpc)
15263 # see comment about AmigaOS4 .so support
15264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15265 archive_expsym_cmds=''
15266 ;;
15267 m68k)
15268 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)'
15269 hardcode_libdir_flag_spec='-L$libdir'
15270 hardcode_minus_L=yes
15271 ;;
15272 esac
15273 ;;
15274
15275 beos*)
15276 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15277 allow_undefined_flag=unsupported
15278 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15279 # support --undefined. This deserves some investigation. FIXME
15280 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15281 else
15282 ld_shlibs=no
15283 fi
15284 ;;
15285
15286 cygwin* | mingw* | pw32* | cegcc*)
15287 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15288 # as there is no search path for DLLs.
15289 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015290 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015291 allow_undefined_flag=unsupported
15292 always_export_symbols=no
15293 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015294 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'
15295 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 +000015296
15297 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15299 # If the export-symbols file already is a .def file (1st line
15300 # is EXPORTS), use it as is; otherwise, prepend...
15301 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15302 cp $export_symbols $output_objdir/$soname.def;
15303 else
15304 echo EXPORTS > $output_objdir/$soname.def;
15305 cat $export_symbols >> $output_objdir/$soname.def;
15306 fi~
15307 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15308 else
15309 ld_shlibs=no
15310 fi
15311 ;;
15312
cristy0c60a692010-11-04 01:09:47 +000015313 haiku*)
15314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15315 link_all_deplibs=yes
15316 ;;
15317
cristy73bd4a52010-10-05 11:24:23 +000015318 interix[3-9]*)
15319 hardcode_direct=no
15320 hardcode_shlibpath_var=no
15321 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15322 export_dynamic_flag_spec='${wl}-E'
15323 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15324 # Instead, shared libraries are loaded at an image base (0x10000000 by
15325 # default) and relocated if they conflict, which is a slow very memory
15326 # consuming and fragmenting process. To avoid this, we pick a random,
15327 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15328 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15329 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15330 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'
15331 ;;
15332
cristy0c60a692010-11-04 01:09:47 +000015333 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015334 tmp_diet=no
15335 if test "$host_os" = linux-dietlibc; then
15336 case $cc_basename in
15337 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15338 esac
15339 fi
15340 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15341 && test "$tmp_diet" = no
15342 then
cristyda16f162011-02-19 23:52:17 +000015343 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015344 tmp_sharedflag='-shared'
15345 case $cc_basename,$host_cpu in
15346 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015347 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 +000015348 tmp_addflag=' $pic_flag'
15349 ;;
cristy0c60a692010-11-04 01:09:47 +000015350 pgf77* | pgf90* | pgf95* | pgfortran*)
15351 # Portland Group f77 and f90 compilers
15352 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 +000015353 tmp_addflag=' $pic_flag -Mnomain' ;;
15354 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15355 tmp_addflag=' -i_dynamic' ;;
15356 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15357 tmp_addflag=' -i_dynamic -nofor_main' ;;
15358 ifc* | ifort*) # Intel Fortran compiler
15359 tmp_addflag=' -nofor_main' ;;
15360 lf95*) # Lahey Fortran 8.1
15361 whole_archive_flag_spec=
15362 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015363 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015364 tmp_sharedflag='-qmkshrobj'
15365 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015366 nvcc*) # Cuda Compiler Driver 2.2
15367 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'
15368 compiler_needs_object=yes
15369 ;;
cristy73bd4a52010-10-05 11:24:23 +000015370 esac
15371 case `$CC -V 2>&1 | sed 5q` in
15372 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015373 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 +000015374 compiler_needs_object=yes
15375 tmp_sharedflag='-G' ;;
15376 *Sun\ F*) # Sun Fortran 8.3
15377 tmp_sharedflag='-G' ;;
15378 esac
15379 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15380
15381 if test "x$supports_anon_versioning" = xyes; then
15382 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15384 echo "local: *; };" >> $output_objdir/$libname.ver~
15385 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15386 fi
15387
15388 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015389 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015390 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15391 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015392 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015393 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015394 if test "x$supports_anon_versioning" = xyes; then
15395 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15396 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15397 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015398 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015399 fi
15400 ;;
15401 esac
15402 else
15403 ld_shlibs=no
15404 fi
15405 ;;
15406
15407 netbsd*)
15408 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15409 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15410 wlarc=
15411 else
cristyda16f162011-02-19 23:52:17 +000015412 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15413 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 +000015414 fi
15415 ;;
15416
15417 solaris*)
15418 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15419 ld_shlibs=no
15420 cat <<_LT_EOF 1>&2
15421
15422*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15423*** create shared libraries on Solaris systems. Therefore, libtool
15424*** is disabling shared libraries support. We urge you to upgrade GNU
15425*** binutils to release 2.9.1 or newer. Another option is to modify
15426*** your PATH or compiler configuration so that the native linker is
15427*** used, and then restart.
15428
15429_LT_EOF
15430 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015431 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15432 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 +000015433 else
15434 ld_shlibs=no
15435 fi
15436 ;;
15437
15438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15439 case `$LD -v 2>&1` in
15440 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15441 ld_shlibs=no
15442 cat <<_LT_EOF 1>&2
15443
15444*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15445*** reliably create shared libraries on SCO systems. Therefore, libtool
15446*** is disabling shared libraries support. We urge you to upgrade GNU
15447*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15448*** your PATH or compiler configuration so that the native linker is
15449*** used, and then restart.
15450
15451_LT_EOF
15452 ;;
15453 *)
15454 # For security reasons, it is highly recommended that you always
15455 # use absolute paths for naming shared libraries, and exclude the
15456 # DT_RUNPATH tag from executables and libraries. But doing so
15457 # requires that you compile everything twice, which is a pain.
15458 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15461 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15462 else
15463 ld_shlibs=no
15464 fi
15465 ;;
15466 esac
15467 ;;
15468
15469 sunos4*)
15470 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15471 wlarc=
15472 hardcode_direct=yes
15473 hardcode_shlibpath_var=no
15474 ;;
15475
15476 *)
15477 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015478 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15479 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 +000015480 else
15481 ld_shlibs=no
15482 fi
15483 ;;
15484 esac
15485
15486 if test "$ld_shlibs" = no; then
15487 runpath_var=
15488 hardcode_libdir_flag_spec=
15489 export_dynamic_flag_spec=
15490 whole_archive_flag_spec=
15491 fi
15492 else
15493 # PORTME fill in a description of your system's linker (not GNU ld)
15494 case $host_os in
15495 aix3*)
15496 allow_undefined_flag=unsupported
15497 always_export_symbols=yes
15498 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'
15499 # Note: this linker hardcodes the directories in LIBPATH if there
15500 # are no directories specified by -L.
15501 hardcode_minus_L=yes
15502 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15503 # Neither direct hardcoding nor static linking is supported with a
15504 # broken collect2.
15505 hardcode_direct=unsupported
15506 fi
15507 ;;
15508
15509 aix[4-9]*)
15510 if test "$host_cpu" = ia64; then
15511 # On IA64, the linker does run time linking by default, so we don't
15512 # have to do anything special.
15513 aix_use_runtimelinking=no
15514 exp_sym_flag='-Bexport'
15515 no_entry_flag=""
15516 else
15517 # If we're using GNU nm, then we don't want the "-C" option.
15518 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015519 # Also, AIX nm treats weak defined symbols like other global
15520 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015521 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015522 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 +000015523 else
15524 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'
15525 fi
15526 aix_use_runtimelinking=no
15527
15528 # Test if we are trying to use run time linking or normal
15529 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15530 # need to do runtime linking.
15531 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15532 for ld_flag in $LDFLAGS; do
15533 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15534 aix_use_runtimelinking=yes
15535 break
15536 fi
15537 done
15538 ;;
15539 esac
15540
15541 exp_sym_flag='-bexport'
15542 no_entry_flag='-bnoentry'
15543 fi
15544
15545 # When large executables or shared objects are built, AIX ld can
15546 # have problems creating the table of contents. If linking a library
15547 # or program results in "error TOC overflow" add -mminimal-toc to
15548 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15549 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15550
15551 archive_cmds=''
15552 hardcode_direct=yes
15553 hardcode_direct_absolute=yes
15554 hardcode_libdir_separator=':'
15555 link_all_deplibs=yes
15556 file_list_spec='${wl}-f,'
15557
15558 if test "$GCC" = yes; then
15559 case $host_os in aix4.[012]|aix4.[012].*)
15560 # We only want to do this on AIX 4.2 and lower, the check
15561 # below for broken collect2 doesn't work under 4.3+
15562 collect2name=`${CC} -print-prog-name=collect2`
15563 if test -f "$collect2name" &&
15564 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15565 then
15566 # We have reworked collect2
15567 :
15568 else
15569 # We have old collect2
15570 hardcode_direct=unsupported
15571 # It fails to find uninstalled libraries when the uninstalled
15572 # path is not listed in the libpath. Setting hardcode_minus_L
15573 # to unsupported forces relinking
15574 hardcode_minus_L=yes
15575 hardcode_libdir_flag_spec='-L$libdir'
15576 hardcode_libdir_separator=
15577 fi
15578 ;;
15579 esac
15580 shared_flag='-shared'
15581 if test "$aix_use_runtimelinking" = yes; then
15582 shared_flag="$shared_flag "'${wl}-G'
15583 fi
15584 else
15585 # not using gcc
15586 if test "$host_cpu" = ia64; then
15587 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15588 # chokes on -Wl,-G. The following line is correct:
15589 shared_flag='-G'
15590 else
15591 if test "$aix_use_runtimelinking" = yes; then
15592 shared_flag='${wl}-G'
15593 else
15594 shared_flag='${wl}-bM:SRE'
15595 fi
15596 fi
15597 fi
15598
15599 export_dynamic_flag_spec='${wl}-bexpall'
15600 # It seems that -bexpall does not export symbols beginning with
15601 # underscore (_), so it is better to generate a list of symbols to export.
15602 always_export_symbols=yes
15603 if test "$aix_use_runtimelinking" = yes; then
15604 # Warning - without using the other runtime loading flags (-brtl),
15605 # -berok will link without error, but may produce a broken library.
15606 allow_undefined_flag='-berok'
15607 # Determine the default libpath from the value encoded in an
15608 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015609 if test "${lt_cv_aix_libpath+set}" = set; then
15610 aix_libpath=$lt_cv_aix_libpath
15611else
15612 if ${lt_cv_aix_libpath_+:} false; then :
15613 $as_echo_n "(cached) " >&6
15614else
15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015616/* end confdefs.h. */
15617
15618int
15619main ()
15620{
15621
15622 ;
15623 return 0;
15624}
15625_ACEOF
15626if ac_fn_c_try_link "$LINENO"; then :
15627
cristyda16f162011-02-19 23:52:17 +000015628 lt_aix_libpath_sed='
15629 /Import File Strings/,/^$/ {
15630 /^0/ {
15631 s/^0 *\([^ ]*\) *$/\1/
15632 p
15633 }
15634 }'
15635 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15636 # Check for a 64-bit object if we didn't find anything.
15637 if test -z "$lt_cv_aix_libpath_"; then
15638 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15639 fi
cristy73bd4a52010-10-05 11:24:23 +000015640fi
15641rm -f core conftest.err conftest.$ac_objext \
15642 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015643 if test -z "$lt_cv_aix_libpath_"; then
15644 lt_cv_aix_libpath_="/usr/lib:/lib"
15645 fi
15646
15647fi
15648
15649 aix_libpath=$lt_cv_aix_libpath_
15650fi
cristy73bd4a52010-10-05 11:24:23 +000015651
15652 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015653 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 +000015654 else
15655 if test "$host_cpu" = ia64; then
15656 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15657 allow_undefined_flag="-z nodefs"
15658 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"
15659 else
15660 # Determine the default libpath from the value encoded in an
15661 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015662 if test "${lt_cv_aix_libpath+set}" = set; then
15663 aix_libpath=$lt_cv_aix_libpath
15664else
15665 if ${lt_cv_aix_libpath_+:} false; then :
15666 $as_echo_n "(cached) " >&6
15667else
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015669/* end confdefs.h. */
15670
15671int
15672main ()
15673{
15674
15675 ;
15676 return 0;
15677}
15678_ACEOF
15679if ac_fn_c_try_link "$LINENO"; then :
15680
cristyda16f162011-02-19 23:52:17 +000015681 lt_aix_libpath_sed='
15682 /Import File Strings/,/^$/ {
15683 /^0/ {
15684 s/^0 *\([^ ]*\) *$/\1/
15685 p
15686 }
15687 }'
15688 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15689 # Check for a 64-bit object if we didn't find anything.
15690 if test -z "$lt_cv_aix_libpath_"; then
15691 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15692 fi
cristy73bd4a52010-10-05 11:24:23 +000015693fi
15694rm -f core conftest.err conftest.$ac_objext \
15695 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015696 if test -z "$lt_cv_aix_libpath_"; then
15697 lt_cv_aix_libpath_="/usr/lib:/lib"
15698 fi
15699
15700fi
15701
15702 aix_libpath=$lt_cv_aix_libpath_
15703fi
cristy73bd4a52010-10-05 11:24:23 +000015704
15705 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15706 # Warning - without using the other run time loading flags,
15707 # -berok will link without error, but may produce a broken library.
15708 no_undefined_flag=' ${wl}-bernotok'
15709 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015710 if test "$with_gnu_ld" = yes; then
15711 # We only use this code for GNU lds that support --whole-archive.
15712 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15713 else
15714 # Exported symbols can be pulled into shared objects from archives
15715 whole_archive_flag_spec='$convenience'
15716 fi
cristy73bd4a52010-10-05 11:24:23 +000015717 archive_cmds_need_lc=yes
15718 # This is similar to how AIX traditionally builds its shared libraries.
15719 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'
15720 fi
15721 fi
15722 ;;
15723
15724 amigaos*)
15725 case $host_cpu in
15726 powerpc)
15727 # see comment about AmigaOS4 .so support
15728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15729 archive_expsym_cmds=''
15730 ;;
15731 m68k)
15732 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)'
15733 hardcode_libdir_flag_spec='-L$libdir'
15734 hardcode_minus_L=yes
15735 ;;
15736 esac
15737 ;;
15738
15739 bsdi[45]*)
15740 export_dynamic_flag_spec=-rdynamic
15741 ;;
15742
15743 cygwin* | mingw* | pw32* | cegcc*)
15744 # When not using gcc, we currently assume that we are using
15745 # Microsoft Visual C++.
15746 # hardcode_libdir_flag_spec is actually meaningless, as there is
15747 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015748 case $cc_basename in
15749 cl*)
15750 # Native MSVC
15751 hardcode_libdir_flag_spec=' '
15752 allow_undefined_flag=unsupported
15753 always_export_symbols=yes
15754 file_list_spec='@'
15755 # Tell ltmain to make .lib files, not .a files.
15756 libext=lib
15757 # Tell ltmain to make .dll files, not .so files.
15758 shrext_cmds=".dll"
15759 # FIXME: Setting linknames here is a bad hack.
15760 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15761 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15762 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15763 else
15764 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15765 fi~
15766 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15767 linknames='
15768 # The linker will not automatically build a static lib if we build a DLL.
15769 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15770 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015771 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015772 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15773 # Don't use ranlib
15774 old_postinstall_cmds='chmod 644 $oldlib'
15775 postlink_cmds='lt_outputfile="@OUTPUT@"~
15776 lt_tool_outputfile="@TOOL_OUTPUT@"~
15777 case $lt_outputfile in
15778 *.exe|*.EXE) ;;
15779 *)
15780 lt_outputfile="$lt_outputfile.exe"
15781 lt_tool_outputfile="$lt_tool_outputfile.exe"
15782 ;;
15783 esac~
15784 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15785 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15786 $RM "$lt_outputfile.manifest";
15787 fi'
15788 ;;
15789 *)
15790 # Assume MSVC wrapper
15791 hardcode_libdir_flag_spec=' '
15792 allow_undefined_flag=unsupported
15793 # Tell ltmain to make .lib files, not .a files.
15794 libext=lib
15795 # Tell ltmain to make .dll files, not .so files.
15796 shrext_cmds=".dll"
15797 # FIXME: Setting linknames here is a bad hack.
15798 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15799 # The linker will automatically build a .lib file if we build a DLL.
15800 old_archive_from_new_cmds='true'
15801 # FIXME: Should let the user specify the lib program.
15802 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15803 enable_shared_with_static_runtimes=yes
15804 ;;
15805 esac
cristy73bd4a52010-10-05 11:24:23 +000015806 ;;
15807
15808 darwin* | rhapsody*)
15809
15810
15811 archive_cmds_need_lc=no
15812 hardcode_direct=no
15813 hardcode_automatic=yes
15814 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015815 if test "$lt_cv_ld_force_load" = "yes"; then
15816 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 +000015817
cristy0c60a692010-11-04 01:09:47 +000015818 else
15819 whole_archive_flag_spec=''
15820 fi
cristy73bd4a52010-10-05 11:24:23 +000015821 link_all_deplibs=yes
15822 allow_undefined_flag="$_lt_dar_allow_undefined"
15823 case $cc_basename in
15824 ifort*) _lt_dar_can_shared=yes ;;
15825 *) _lt_dar_can_shared=$GCC ;;
15826 esac
15827 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015828 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015829 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15830 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15831 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}"
15832 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}"
15833
15834 else
15835 ld_shlibs=no
15836 fi
15837
15838 ;;
15839
15840 dgux*)
15841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15842 hardcode_libdir_flag_spec='-L$libdir'
15843 hardcode_shlibpath_var=no
15844 ;;
15845
cristy73bd4a52010-10-05 11:24:23 +000015846 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15847 # support. Future versions do this automatically, but an explicit c++rt0.o
15848 # does not break anything, and helps significantly (at the cost of a little
15849 # extra space).
15850 freebsd2.2*)
15851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15852 hardcode_libdir_flag_spec='-R$libdir'
15853 hardcode_direct=yes
15854 hardcode_shlibpath_var=no
15855 ;;
15856
15857 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015858 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015859 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15860 hardcode_direct=yes
15861 hardcode_minus_L=yes
15862 hardcode_shlibpath_var=no
15863 ;;
15864
15865 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15866 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015867 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015868 hardcode_libdir_flag_spec='-R$libdir'
15869 hardcode_direct=yes
15870 hardcode_shlibpath_var=no
15871 ;;
15872
15873 hpux9*)
15874 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015875 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 +000015876 else
15877 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'
15878 fi
15879 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15880 hardcode_libdir_separator=:
15881 hardcode_direct=yes
15882
15883 # hardcode_minus_L: Not really in the search PATH,
15884 # but as the default location of the library.
15885 hardcode_minus_L=yes
15886 export_dynamic_flag_spec='${wl}-E'
15887 ;;
15888
15889 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015890 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015891 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 +000015892 else
15893 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15894 fi
15895 if test "$with_gnu_ld" = no; then
15896 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015897 hardcode_libdir_separator=:
15898 hardcode_direct=yes
15899 hardcode_direct_absolute=yes
15900 export_dynamic_flag_spec='${wl}-E'
15901 # hardcode_minus_L: Not really in the search PATH,
15902 # but as the default location of the library.
15903 hardcode_minus_L=yes
15904 fi
15905 ;;
15906
15907 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015908 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015909 case $host_cpu in
15910 hppa*64*)
15911 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15912 ;;
15913 ia64*)
cristyda16f162011-02-19 23:52:17 +000015914 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015915 ;;
15916 *)
cristyda16f162011-02-19 23:52:17 +000015917 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 +000015918 ;;
15919 esac
15920 else
15921 case $host_cpu in
15922 hppa*64*)
15923 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15924 ;;
15925 ia64*)
15926 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15927 ;;
15928 *)
cristy0c60a692010-11-04 01:09:47 +000015929
15930 # Older versions of the 11.00 compiler do not understand -b yet
15931 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15933$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015934if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015935 $as_echo_n "(cached) " >&6
15936else
15937 lt_cv_prog_compiler__b=no
15938 save_LDFLAGS="$LDFLAGS"
15939 LDFLAGS="$LDFLAGS -b"
15940 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15941 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15942 # The linker can only warn and ignore the option if not recognized
15943 # So say no if there are warnings
15944 if test -s conftest.err; then
15945 # Append any errors to the config.log.
15946 cat conftest.err 1>&5
15947 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15949 if diff conftest.exp conftest.er2 >/dev/null; then
15950 lt_cv_prog_compiler__b=yes
15951 fi
15952 else
15953 lt_cv_prog_compiler__b=yes
15954 fi
15955 fi
15956 $RM -r conftest*
15957 LDFLAGS="$save_LDFLAGS"
15958
15959fi
15960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15961$as_echo "$lt_cv_prog_compiler__b" >&6; }
15962
15963if test x"$lt_cv_prog_compiler__b" = xyes; then
15964 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15965else
15966 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15967fi
15968
cristy73bd4a52010-10-05 11:24:23 +000015969 ;;
15970 esac
15971 fi
15972 if test "$with_gnu_ld" = no; then
15973 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15974 hardcode_libdir_separator=:
15975
15976 case $host_cpu in
15977 hppa*64*|ia64*)
15978 hardcode_direct=no
15979 hardcode_shlibpath_var=no
15980 ;;
15981 *)
15982 hardcode_direct=yes
15983 hardcode_direct_absolute=yes
15984 export_dynamic_flag_spec='${wl}-E'
15985
15986 # hardcode_minus_L: Not really in the search PATH,
15987 # but as the default location of the library.
15988 hardcode_minus_L=yes
15989 ;;
15990 esac
15991 fi
15992 ;;
15993
15994 irix5* | irix6* | nonstopux*)
15995 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015996 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 +000015997 # Try to use the -exported_symbol ld option, if it does not
15998 # work, assume that -exports_file does not work either and
15999 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016000 # This should be the same for all languages, so no per-tag cache variable.
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16002$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16003if ${lt_cv_irix_exported_symbol+:} false; then :
16004 $as_echo_n "(cached) " >&6
16005else
16006 save_LDFLAGS="$LDFLAGS"
16007 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016009/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016010int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016011_ACEOF
16012if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016013 lt_cv_irix_exported_symbol=yes
16014else
16015 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016016fi
16017rm -f core conftest.err conftest.$ac_objext \
16018 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016019 LDFLAGS="$save_LDFLAGS"
16020fi
16021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16022$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16023 if test "$lt_cv_irix_exported_symbol" = yes; then
16024 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'
16025 fi
cristy73bd4a52010-10-05 11:24:23 +000016026 else
cristy0c60a692010-11-04 01:09:47 +000016027 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'
16028 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 +000016029 fi
16030 archive_cmds_need_lc='no'
16031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16032 hardcode_libdir_separator=:
16033 inherit_rpath=yes
16034 link_all_deplibs=yes
16035 ;;
16036
16037 netbsd*)
16038 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16039 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16040 else
16041 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16042 fi
16043 hardcode_libdir_flag_spec='-R$libdir'
16044 hardcode_direct=yes
16045 hardcode_shlibpath_var=no
16046 ;;
16047
16048 newsos6)
16049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16050 hardcode_direct=yes
16051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16052 hardcode_libdir_separator=:
16053 hardcode_shlibpath_var=no
16054 ;;
16055
16056 *nto* | *qnx*)
16057 ;;
16058
16059 openbsd*)
16060 if test -f /usr/libexec/ld.so; then
16061 hardcode_direct=yes
16062 hardcode_shlibpath_var=no
16063 hardcode_direct_absolute=yes
16064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16065 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16066 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16067 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16068 export_dynamic_flag_spec='${wl}-E'
16069 else
16070 case $host_os in
16071 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16072 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16073 hardcode_libdir_flag_spec='-R$libdir'
16074 ;;
16075 *)
16076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16077 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16078 ;;
16079 esac
16080 fi
16081 else
16082 ld_shlibs=no
16083 fi
16084 ;;
16085
16086 os2*)
16087 hardcode_libdir_flag_spec='-L$libdir'
16088 hardcode_minus_L=yes
16089 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016090 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 +000016091 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16092 ;;
16093
16094 osf3*)
16095 if test "$GCC" = yes; then
16096 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016097 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 +000016098 else
16099 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016100 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 +000016101 fi
16102 archive_cmds_need_lc='no'
16103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16104 hardcode_libdir_separator=:
16105 ;;
16106
16107 osf4* | osf5*) # as osf3* with the addition of -msym flag
16108 if test "$GCC" = yes; then
16109 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016110 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 +000016111 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16112 else
16113 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016114 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 +000016115 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 +000016116 $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 +000016117
16118 # Both c and cxx compiler support -rpath directly
16119 hardcode_libdir_flag_spec='-rpath $libdir'
16120 fi
16121 archive_cmds_need_lc='no'
16122 hardcode_libdir_separator=:
16123 ;;
16124
16125 solaris*)
16126 no_undefined_flag=' -z defs'
16127 if test "$GCC" = yes; then
16128 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016129 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 +000016130 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 +000016131 $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 +000016132 else
16133 case `$CC -V 2>&1` in
16134 *"Compilers 5.0"*)
16135 wlarc=''
16136 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16137 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16138 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16139 ;;
16140 *)
16141 wlarc='${wl}'
16142 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16143 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16144 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16145 ;;
16146 esac
16147 fi
16148 hardcode_libdir_flag_spec='-R$libdir'
16149 hardcode_shlibpath_var=no
16150 case $host_os in
16151 solaris2.[0-5] | solaris2.[0-5].*) ;;
16152 *)
16153 # The compiler driver will combine and reorder linker options,
16154 # but understands `-z linker_flag'. GCC discards it without `$wl',
16155 # but is careful enough not to reorder.
16156 # Supported since Solaris 2.6 (maybe 2.5.1?)
16157 if test "$GCC" = yes; then
16158 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16159 else
16160 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16161 fi
16162 ;;
16163 esac
16164 link_all_deplibs=yes
16165 ;;
16166
16167 sunos4*)
16168 if test "x$host_vendor" = xsequent; then
16169 # Use $CC to link under sequent, because it throws in some extra .o
16170 # files that make .init and .fini sections work.
16171 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16172 else
16173 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16174 fi
16175 hardcode_libdir_flag_spec='-L$libdir'
16176 hardcode_direct=yes
16177 hardcode_minus_L=yes
16178 hardcode_shlibpath_var=no
16179 ;;
16180
16181 sysv4)
16182 case $host_vendor in
16183 sni)
16184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16185 hardcode_direct=yes # is this really true???
16186 ;;
16187 siemens)
16188 ## LD is ld it makes a PLAMLIB
16189 ## CC just makes a GrossModule.
16190 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16191 reload_cmds='$CC -r -o $output$reload_objs'
16192 hardcode_direct=no
16193 ;;
16194 motorola)
16195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16196 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16197 ;;
16198 esac
16199 runpath_var='LD_RUN_PATH'
16200 hardcode_shlibpath_var=no
16201 ;;
16202
16203 sysv4.3*)
16204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16205 hardcode_shlibpath_var=no
16206 export_dynamic_flag_spec='-Bexport'
16207 ;;
16208
16209 sysv4*MP*)
16210 if test -d /usr/nec; then
16211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16212 hardcode_shlibpath_var=no
16213 runpath_var=LD_RUN_PATH
16214 hardcode_runpath_var=yes
16215 ld_shlibs=yes
16216 fi
16217 ;;
16218
16219 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16220 no_undefined_flag='${wl}-z,text'
16221 archive_cmds_need_lc=no
16222 hardcode_shlibpath_var=no
16223 runpath_var='LD_RUN_PATH'
16224
16225 if test "$GCC" = yes; then
16226 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16227 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16228 else
16229 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16230 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16231 fi
16232 ;;
16233
16234 sysv5* | sco3.2v5* | sco5v6*)
16235 # Note: We can NOT use -z defs as we might desire, because we do not
16236 # link with -lc, and that would cause any symbols used from libc to
16237 # always be unresolved, which means just about no library would
16238 # ever link correctly. If we're not using GNU ld we use -z text
16239 # though, which does catch some bad symbols but isn't as heavy-handed
16240 # as -z defs.
16241 no_undefined_flag='${wl}-z,text'
16242 allow_undefined_flag='${wl}-z,nodefs'
16243 archive_cmds_need_lc=no
16244 hardcode_shlibpath_var=no
16245 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16246 hardcode_libdir_separator=':'
16247 link_all_deplibs=yes
16248 export_dynamic_flag_spec='${wl}-Bexport'
16249 runpath_var='LD_RUN_PATH'
16250
16251 if test "$GCC" = yes; then
16252 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16253 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16254 else
16255 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16256 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16257 fi
16258 ;;
16259
16260 uts4*)
16261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16262 hardcode_libdir_flag_spec='-L$libdir'
16263 hardcode_shlibpath_var=no
16264 ;;
16265
16266 *)
16267 ld_shlibs=no
16268 ;;
16269 esac
16270
16271 if test x$host_vendor = xsni; then
16272 case $host in
16273 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16274 export_dynamic_flag_spec='${wl}-Blargedynsym'
16275 ;;
16276 esac
16277 fi
16278 fi
16279
16280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16281$as_echo "$ld_shlibs" >&6; }
16282test "$ld_shlibs" = no && can_build_shared=no
16283
16284with_gnu_ld=$with_gnu_ld
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300#
16301# Do we need to explicitly link libc?
16302#
16303case "x$archive_cmds_need_lc" in
16304x|xyes)
16305 # Assume -lc should be added
16306 archive_cmds_need_lc=yes
16307
16308 if test "$enable_shared" = yes && test "$GCC" = yes; then
16309 case $archive_cmds in
16310 *'~'*)
16311 # FIXME: we may have to deal with multi-command sequences.
16312 ;;
16313 '$CC '*)
16314 # Test whether the compiler implicitly links with -lc since on some
16315 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16316 # to ld, don't add -lc before -lgcc.
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16318$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016319if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016320 $as_echo_n "(cached) " >&6
16321else
16322 $RM conftest*
16323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016324
cristy0c60a692010-11-04 01:09:47 +000016325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016326 (eval $ac_compile) 2>&5
16327 ac_status=$?
16328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16329 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016330 soname=conftest
16331 lib=conftest
16332 libobjs=conftest.$ac_objext
16333 deplibs=
16334 wl=$lt_prog_compiler_wl
16335 pic_flag=$lt_prog_compiler_pic
16336 compiler_flags=-v
16337 linker_flags=-v
16338 verstring=
16339 output_objdir=.
16340 libname=conftest
16341 lt_save_allow_undefined_flag=$allow_undefined_flag
16342 allow_undefined_flag=
16343 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 +000016344 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16345 ac_status=$?
16346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16347 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016348 then
16349 lt_cv_archive_cmds_need_lc=no
16350 else
16351 lt_cv_archive_cmds_need_lc=yes
16352 fi
16353 allow_undefined_flag=$lt_save_allow_undefined_flag
16354 else
16355 cat conftest.err 1>&5
16356 fi
16357 $RM conftest*
16358
16359fi
16360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16361$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16362 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016363 ;;
16364 esac
16365 fi
16366 ;;
16367esac
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
cristy73bd4a52010-10-05 11:24:23 +000016520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16521$as_echo_n "checking dynamic linker characteristics... " >&6; }
16522
16523if test "$GCC" = yes; then
16524 case $host_os in
16525 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16526 *) lt_awk_arg="/^libraries:/" ;;
16527 esac
cristy0c60a692010-11-04 01:09:47 +000016528 case $host_os in
16529 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16530 *) lt_sed_strip_eq="s,=/,/,g" ;;
16531 esac
16532 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16533 case $lt_search_path_spec in
16534 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016535 # if the path contains ";" then we assume it to be the separator
16536 # otherwise default to the standard path separator (i.e. ":") - it is
16537 # assumed that no part of a normal pathname contains ";" but that should
16538 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016539 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16540 ;;
16541 *)
16542 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16543 ;;
16544 esac
cristy73bd4a52010-10-05 11:24:23 +000016545 # Ok, now we have the path, separated by spaces, we can step through it
16546 # and add multilib dir if necessary.
16547 lt_tmp_lt_search_path_spec=
16548 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16549 for lt_sys_path in $lt_search_path_spec; do
16550 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16551 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16552 else
16553 test -d "$lt_sys_path" && \
16554 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16555 fi
16556 done
cristy0c60a692010-11-04 01:09:47 +000016557 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016558BEGIN {RS=" "; FS="/|\n";} {
16559 lt_foo="";
16560 lt_count=0;
16561 for (lt_i = NF; lt_i > 0; lt_i--) {
16562 if ($lt_i != "" && $lt_i != ".") {
16563 if ($lt_i == "..") {
16564 lt_count++;
16565 } else {
16566 if (lt_count == 0) {
16567 lt_foo="/" $lt_i lt_foo;
16568 } else {
16569 lt_count--;
16570 }
16571 }
16572 }
16573 }
16574 if (lt_foo != "") { lt_freq[lt_foo]++; }
16575 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16576}'`
cristy0c60a692010-11-04 01:09:47 +000016577 # AWK program above erroneously prepends '/' to C:/dos/paths
16578 # for these hosts.
16579 case $host_os in
16580 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16581 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16582 esac
16583 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016584else
16585 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16586fi
16587library_names_spec=
16588libname_spec='lib$name'
16589soname_spec=
16590shrext_cmds=".so"
16591postinstall_cmds=
16592postuninstall_cmds=
16593finish_cmds=
16594finish_eval=
16595shlibpath_var=
16596shlibpath_overrides_runpath=unknown
16597version_type=none
16598dynamic_linker="$host_os ld.so"
16599sys_lib_dlsearch_path_spec="/lib /usr/lib"
16600need_lib_prefix=unknown
16601hardcode_into_libs=no
16602
16603# when you set need_version to no, make sure it does not cause -set_version
16604# flags to be left without arguments
16605need_version=unknown
16606
16607case $host_os in
16608aix3*)
cristy99bd5232011-12-07 14:38:20 +000016609 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016610 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16611 shlibpath_var=LIBPATH
16612
16613 # AIX 3 has no versioning support, so we append a major version to the name.
16614 soname_spec='${libname}${release}${shared_ext}$major'
16615 ;;
16616
16617aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016618 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016619 need_lib_prefix=no
16620 need_version=no
16621 hardcode_into_libs=yes
16622 if test "$host_cpu" = ia64; then
16623 # AIX 5 supports IA64
16624 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 else
16627 # With GCC up to 2.95.x, collect2 would create an import file
16628 # for dependence libraries. The import file would start with
16629 # the line `#! .'. This would cause the generated library to
16630 # depend on `.', always an invalid library. This was fixed in
16631 # development snapshots of GCC prior to 3.0.
16632 case $host_os in
16633 aix4 | aix4.[01] | aix4.[01].*)
16634 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16635 echo ' yes '
16636 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16637 :
16638 else
16639 can_build_shared=no
16640 fi
16641 ;;
16642 esac
16643 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16644 # soname into executable. Probably we can add versioning support to
16645 # collect2, so additional links can be useful in future.
16646 if test "$aix_use_runtimelinking" = yes; then
16647 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16648 # instead of lib<name>.a to let people know that these are not
16649 # typical AIX shared libraries.
16650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16651 else
16652 # We preserve .a as extension for shared libraries through AIX4.2
16653 # and later when we are not doing run time linking.
16654 library_names_spec='${libname}${release}.a $libname.a'
16655 soname_spec='${libname}${release}${shared_ext}$major'
16656 fi
16657 shlibpath_var=LIBPATH
16658 fi
16659 ;;
16660
16661amigaos*)
16662 case $host_cpu in
16663 powerpc)
16664 # Since July 2007 AmigaOS4 officially supports .so libraries.
16665 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16667 ;;
16668 m68k)
16669 library_names_spec='$libname.ixlibrary $libname.a'
16670 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016671 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 +000016672 ;;
16673 esac
16674 ;;
16675
16676beos*)
16677 library_names_spec='${libname}${shared_ext}'
16678 dynamic_linker="$host_os ld.so"
16679 shlibpath_var=LIBRARY_PATH
16680 ;;
16681
16682bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016683 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016684 need_version=no
16685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686 soname_spec='${libname}${release}${shared_ext}$major'
16687 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16688 shlibpath_var=LD_LIBRARY_PATH
16689 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16690 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16691 # the default ld.so.conf also contains /usr/contrib/lib and
16692 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16693 # libtool to hard-code these into programs
16694 ;;
16695
16696cygwin* | mingw* | pw32* | cegcc*)
16697 version_type=windows
16698 shrext_cmds=".dll"
16699 need_version=no
16700 need_lib_prefix=no
16701
cristyda16f162011-02-19 23:52:17 +000016702 case $GCC,$cc_basename in
16703 yes,*)
16704 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016705 library_names_spec='$libname.dll.a'
16706 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16707 postinstall_cmds='base_file=`basename \${file}`~
16708 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16709 dldir=$destdir/`dirname \$dlpath`~
16710 test -d \$dldir || mkdir -p \$dldir~
16711 $install_prog $dir/$dlname \$dldir/$dlname~
16712 chmod a+x \$dldir/$dlname~
16713 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16714 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16715 fi'
16716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16717 dlpath=$dir/\$dldll~
16718 $RM \$dlpath'
16719 shlibpath_overrides_runpath=yes
16720
16721 case $host_os in
16722 cygwin*)
16723 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016725
16726 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016727 ;;
16728 mingw* | cegcc*)
16729 # MinGW DLLs use traditional 'lib' prefix
16730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016731 ;;
16732 pw32*)
16733 # pw32 DLLs use 'pw' prefix rather than 'lib'
16734 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16735 ;;
16736 esac
cristyda16f162011-02-19 23:52:17 +000016737 dynamic_linker='Win32 ld.exe'
16738 ;;
16739
16740 *,cl*)
16741 # Native MSVC
16742 libname_spec='$name'
16743 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16744 library_names_spec='${libname}.dll.lib'
16745
16746 case $build_os in
16747 mingw*)
16748 sys_lib_search_path_spec=
16749 lt_save_ifs=$IFS
16750 IFS=';'
16751 for lt_path in $LIB
16752 do
16753 IFS=$lt_save_ifs
16754 # Let DOS variable expansion print the short 8.3 style file name.
16755 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16756 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16757 done
16758 IFS=$lt_save_ifs
16759 # Convert to MSYS style.
16760 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16761 ;;
16762 cygwin*)
16763 # Convert to unix form, then to dos form, then back to unix form
16764 # but this time dos style (no spaces!) so that the unix form looks
16765 # like /cygdrive/c/PROGRA~1:/cygdr...
16766 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16767 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16768 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16769 ;;
16770 *)
16771 sys_lib_search_path_spec="$LIB"
16772 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16773 # It is most probably a Windows format PATH.
16774 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16775 else
16776 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16777 fi
16778 # FIXME: find the short name or the path components, as spaces are
16779 # common. (e.g. "Program Files" -> "PROGRA~1")
16780 ;;
16781 esac
16782
16783 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16784 postinstall_cmds='base_file=`basename \${file}`~
16785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16786 dldir=$destdir/`dirname \$dlpath`~
16787 test -d \$dldir || mkdir -p \$dldir~
16788 $install_prog $dir/$dlname \$dldir/$dlname'
16789 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16790 dlpath=$dir/\$dldll~
16791 $RM \$dlpath'
16792 shlibpath_overrides_runpath=yes
16793 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016794 ;;
16795
16796 *)
cristyda16f162011-02-19 23:52:17 +000016797 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016798 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016799 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016800 ;;
16801 esac
cristy73bd4a52010-10-05 11:24:23 +000016802 # FIXME: first we should search . and the directory the executable is in
16803 shlibpath_var=PATH
16804 ;;
16805
16806darwin* | rhapsody*)
16807 dynamic_linker="$host_os dyld"
16808 version_type=darwin
16809 need_lib_prefix=no
16810 need_version=no
16811 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16812 soname_spec='${libname}${release}${major}$shared_ext'
16813 shlibpath_overrides_runpath=yes
16814 shlibpath_var=DYLD_LIBRARY_PATH
16815 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16816
16817 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16818 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16819 ;;
16820
16821dgux*)
cristy99bd5232011-12-07 14:38:20 +000016822 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016823 need_lib_prefix=no
16824 need_version=no
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16826 soname_spec='${libname}${release}${shared_ext}$major'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 ;;
16829
cristy73bd4a52010-10-05 11:24:23 +000016830freebsd* | dragonfly*)
16831 # DragonFly does not have aout. When/if they implement a new
16832 # versioning mechanism, adjust this.
16833 if test -x /usr/bin/objformat; then
16834 objformat=`/usr/bin/objformat`
16835 else
16836 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016837 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016838 *) objformat=elf ;;
16839 esac
16840 fi
16841 version_type=freebsd-$objformat
16842 case $version_type in
16843 freebsd-elf*)
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16845 need_version=no
16846 need_lib_prefix=no
16847 ;;
16848 freebsd-*)
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16850 need_version=yes
16851 ;;
16852 esac
16853 shlibpath_var=LD_LIBRARY_PATH
16854 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016855 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016856 shlibpath_overrides_runpath=yes
16857 ;;
16858 freebsd3.[01]* | freebsdelf3.[01]*)
16859 shlibpath_overrides_runpath=yes
16860 hardcode_into_libs=yes
16861 ;;
16862 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16863 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16864 shlibpath_overrides_runpath=no
16865 hardcode_into_libs=yes
16866 ;;
16867 *) # from 4.6 on, and DragonFly
16868 shlibpath_overrides_runpath=yes
16869 hardcode_into_libs=yes
16870 ;;
16871 esac
16872 ;;
16873
16874gnu*)
cristy99bd5232011-12-07 14:38:20 +000016875 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016876 need_lib_prefix=no
16877 need_version=no
16878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16879 soname_spec='${libname}${release}${shared_ext}$major'
16880 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016881 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016882 hardcode_into_libs=yes
16883 ;;
16884
cristy0c60a692010-11-04 01:09:47 +000016885haiku*)
cristy99bd5232011-12-07 14:38:20 +000016886 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016887 need_lib_prefix=no
16888 need_version=no
16889 dynamic_linker="$host_os runtime_loader"
16890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16891 soname_spec='${libname}${release}${shared_ext}$major'
16892 shlibpath_var=LIBRARY_PATH
16893 shlibpath_overrides_runpath=yes
16894 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16895 hardcode_into_libs=yes
16896 ;;
16897
cristy73bd4a52010-10-05 11:24:23 +000016898hpux9* | hpux10* | hpux11*)
16899 # Give a soname corresponding to the major version so that dld.sl refuses to
16900 # link against other versions.
16901 version_type=sunos
16902 need_lib_prefix=no
16903 need_version=no
16904 case $host_cpu in
16905 ia64*)
16906 shrext_cmds='.so'
16907 hardcode_into_libs=yes
16908 dynamic_linker="$host_os dld.so"
16909 shlibpath_var=LD_LIBRARY_PATH
16910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16912 soname_spec='${libname}${release}${shared_ext}$major'
16913 if test "X$HPUX_IA64_MODE" = X32; then
16914 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16915 else
16916 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16917 fi
16918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16919 ;;
16920 hppa*64*)
16921 shrext_cmds='.sl'
16922 hardcode_into_libs=yes
16923 dynamic_linker="$host_os dld.sl"
16924 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927 soname_spec='${libname}${release}${shared_ext}$major'
16928 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16930 ;;
16931 *)
16932 shrext_cmds='.sl'
16933 dynamic_linker="$host_os dld.sl"
16934 shlibpath_var=SHLIB_PATH
16935 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16937 soname_spec='${libname}${release}${shared_ext}$major'
16938 ;;
16939 esac
cristy0c60a692010-11-04 01:09:47 +000016940 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016941 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016942 # or fails outright, so override atomically:
16943 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016944 ;;
16945
16946interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016947 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016948 need_lib_prefix=no
16949 need_version=no
16950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16951 soname_spec='${libname}${release}${shared_ext}$major'
16952 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16953 shlibpath_var=LD_LIBRARY_PATH
16954 shlibpath_overrides_runpath=no
16955 hardcode_into_libs=yes
16956 ;;
16957
16958irix5* | irix6* | nonstopux*)
16959 case $host_os in
16960 nonstopux*) version_type=nonstopux ;;
16961 *)
16962 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016963 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016964 else
16965 version_type=irix
16966 fi ;;
16967 esac
16968 need_lib_prefix=no
16969 need_version=no
16970 soname_spec='${libname}${release}${shared_ext}$major'
16971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16972 case $host_os in
16973 irix5* | nonstopux*)
16974 libsuff= shlibsuff=
16975 ;;
16976 *)
16977 case $LD in # libtool.m4 will add one of these switches to LD
16978 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16979 libsuff= shlibsuff= libmagic=32-bit;;
16980 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16981 libsuff=32 shlibsuff=N32 libmagic=N32;;
16982 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16983 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16984 *) libsuff= shlibsuff= libmagic=never-match;;
16985 esac
16986 ;;
16987 esac
16988 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16989 shlibpath_overrides_runpath=no
16990 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16991 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16992 hardcode_into_libs=yes
16993 ;;
16994
16995# No shared lib support for Linux oldld, aout, or coff.
16996linux*oldld* | linux*aout* | linux*coff*)
16997 dynamic_linker=no
16998 ;;
16999
cristy99bd5232011-12-07 14:38:20 +000017000# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017001linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017002 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017003 need_lib_prefix=no
17004 need_version=no
17005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17006 soname_spec='${libname}${release}${shared_ext}$major'
17007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17008 shlibpath_var=LD_LIBRARY_PATH
17009 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017010
cristy73bd4a52010-10-05 11:24:23 +000017011 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017012 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017013 $as_echo_n "(cached) " >&6
17014else
17015 lt_cv_shlibpath_overrides_runpath=no
17016 save_LDFLAGS=$LDFLAGS
17017 save_libdir=$libdir
17018 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17019 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017021/* end confdefs.h. */
17022
17023int
17024main ()
17025{
17026
17027 ;
17028 return 0;
17029}
17030_ACEOF
17031if ac_fn_c_try_link "$LINENO"; then :
17032 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017033 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017034fi
17035fi
17036rm -f core conftest.err conftest.$ac_objext \
17037 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017038 LDFLAGS=$save_LDFLAGS
17039 libdir=$save_libdir
17040
17041fi
17042
17043 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017044
17045 # This implies no fast_install, which is unacceptable.
17046 # Some rework will be needed to allow for fast_install
17047 # before this can be enabled.
17048 hardcode_into_libs=yes
17049
17050 # Add ABI-specific directories to the system library path.
17051 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17052
17053 # Append ld.so.conf contents to the search path
17054 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017055 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 +000017056 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017057
cristy73bd4a52010-10-05 11:24:23 +000017058 fi
17059
17060 # We used to test for /lib/ld.so.1 and disable shared libraries on
17061 # powerpc, because MkLinux only supported shared libraries with the
17062 # GNU dynamic linker. Since this was broken with cross compilers,
17063 # most powerpc-linux boxes support dynamic linking these days and
17064 # people can always --disable-shared, the test was removed, and we
17065 # assume the GNU/Linux dynamic linker is in use.
17066 dynamic_linker='GNU/Linux ld.so'
17067 ;;
17068
17069netbsd*)
17070 version_type=sunos
17071 need_lib_prefix=no
17072 need_version=no
17073 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17076 dynamic_linker='NetBSD (a.out) ld.so'
17077 else
17078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17079 soname_spec='${libname}${release}${shared_ext}$major'
17080 dynamic_linker='NetBSD ld.elf_so'
17081 fi
17082 shlibpath_var=LD_LIBRARY_PATH
17083 shlibpath_overrides_runpath=yes
17084 hardcode_into_libs=yes
17085 ;;
17086
17087newsos6)
cristy99bd5232011-12-07 14:38:20 +000017088 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 shlibpath_var=LD_LIBRARY_PATH
17091 shlibpath_overrides_runpath=yes
17092 ;;
17093
17094*nto* | *qnx*)
17095 version_type=qnx
17096 need_lib_prefix=no
17097 need_version=no
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099 soname_spec='${libname}${release}${shared_ext}$major'
17100 shlibpath_var=LD_LIBRARY_PATH
17101 shlibpath_overrides_runpath=no
17102 hardcode_into_libs=yes
17103 dynamic_linker='ldqnx.so'
17104 ;;
17105
17106openbsd*)
17107 version_type=sunos
17108 sys_lib_dlsearch_path_spec="/usr/lib"
17109 need_lib_prefix=no
17110 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17111 case $host_os in
17112 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17113 *) need_version=no ;;
17114 esac
17115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17117 shlibpath_var=LD_LIBRARY_PATH
17118 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17119 case $host_os in
17120 openbsd2.[89] | openbsd2.[89].*)
17121 shlibpath_overrides_runpath=no
17122 ;;
17123 *)
17124 shlibpath_overrides_runpath=yes
17125 ;;
17126 esac
17127 else
17128 shlibpath_overrides_runpath=yes
17129 fi
17130 ;;
17131
17132os2*)
17133 libname_spec='$name'
17134 shrext_cmds=".dll"
17135 need_lib_prefix=no
17136 library_names_spec='$libname${shared_ext} $libname.a'
17137 dynamic_linker='OS/2 ld.exe'
17138 shlibpath_var=LIBPATH
17139 ;;
17140
17141osf3* | osf4* | osf5*)
17142 version_type=osf
17143 need_lib_prefix=no
17144 need_version=no
17145 soname_spec='${libname}${release}${shared_ext}$major'
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17147 shlibpath_var=LD_LIBRARY_PATH
17148 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17149 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17150 ;;
17151
17152rdos*)
17153 dynamic_linker=no
17154 ;;
17155
17156solaris*)
cristy99bd5232011-12-07 14:38:20 +000017157 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017158 need_lib_prefix=no
17159 need_version=no
17160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17161 soname_spec='${libname}${release}${shared_ext}$major'
17162 shlibpath_var=LD_LIBRARY_PATH
17163 shlibpath_overrides_runpath=yes
17164 hardcode_into_libs=yes
17165 # ldd complains unless libraries are executable
17166 postinstall_cmds='chmod +x $lib'
17167 ;;
17168
17169sunos4*)
17170 version_type=sunos
17171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17173 shlibpath_var=LD_LIBRARY_PATH
17174 shlibpath_overrides_runpath=yes
17175 if test "$with_gnu_ld" = yes; then
17176 need_lib_prefix=no
17177 fi
17178 need_version=yes
17179 ;;
17180
17181sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017182 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 shlibpath_var=LD_LIBRARY_PATH
17186 case $host_vendor in
17187 sni)
17188 shlibpath_overrides_runpath=no
17189 need_lib_prefix=no
17190 runpath_var=LD_RUN_PATH
17191 ;;
17192 siemens)
17193 need_lib_prefix=no
17194 ;;
17195 motorola)
17196 need_lib_prefix=no
17197 need_version=no
17198 shlibpath_overrides_runpath=no
17199 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17200 ;;
17201 esac
17202 ;;
17203
17204sysv4*MP*)
17205 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017206 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017207 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17208 soname_spec='$libname${shared_ext}.$major'
17209 shlibpath_var=LD_LIBRARY_PATH
17210 fi
17211 ;;
17212
17213sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17214 version_type=freebsd-elf
17215 need_lib_prefix=no
17216 need_version=no
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17218 soname_spec='${libname}${release}${shared_ext}$major'
17219 shlibpath_var=LD_LIBRARY_PATH
17220 shlibpath_overrides_runpath=yes
17221 hardcode_into_libs=yes
17222 if test "$with_gnu_ld" = yes; then
17223 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17224 else
17225 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17226 case $host_os in
17227 sco3.2v5*)
17228 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17229 ;;
17230 esac
17231 fi
17232 sys_lib_dlsearch_path_spec='/usr/lib'
17233 ;;
17234
17235tpf*)
17236 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017237 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017238 need_lib_prefix=no
17239 need_version=no
17240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17241 shlibpath_var=LD_LIBRARY_PATH
17242 shlibpath_overrides_runpath=no
17243 hardcode_into_libs=yes
17244 ;;
17245
17246uts4*)
cristy99bd5232011-12-07 14:38:20 +000017247 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17249 soname_spec='${libname}${release}${shared_ext}$major'
17250 shlibpath_var=LD_LIBRARY_PATH
17251 ;;
17252
17253*)
17254 dynamic_linker=no
17255 ;;
17256esac
17257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17258$as_echo "$dynamic_linker" >&6; }
17259test "$dynamic_linker" = no && can_build_shared=no
17260
17261variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17262if test "$GCC" = yes; then
17263 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17264fi
17265
17266if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17267 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17268fi
17269if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17270 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17271fi
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
cristy0c60a692010-11-04 01:09:47 +000017359
17360
17361
17362
17363
cristy73bd4a52010-10-05 11:24:23 +000017364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17365$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17366hardcode_action=
17367if test -n "$hardcode_libdir_flag_spec" ||
17368 test -n "$runpath_var" ||
17369 test "X$hardcode_automatic" = "Xyes" ; then
17370
17371 # We can hardcode non-existent directories.
17372 if test "$hardcode_direct" != no &&
17373 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17374 # have to relink, otherwise we might link with an installed library
17375 # when we should be linking with a yet-to-be-installed one
17376 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17377 test "$hardcode_minus_L" != no; then
17378 # Linking always hardcodes the temporary library directory.
17379 hardcode_action=relink
17380 else
17381 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17382 hardcode_action=immediate
17383 fi
17384else
17385 # We cannot hardcode anything, or else we can only hardcode existing
17386 # directories.
17387 hardcode_action=unsupported
17388fi
17389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17390$as_echo "$hardcode_action" >&6; }
17391
17392if test "$hardcode_action" = relink ||
17393 test "$inherit_rpath" = yes; then
17394 # Fast installation is not supported
17395 enable_fast_install=no
17396elif test "$shlibpath_overrides_runpath" = yes ||
17397 test "$enable_shared" = no; then
17398 # Fast installation is not necessary
17399 enable_fast_install=needless
17400fi
17401
17402
17403
17404
17405
17406
17407 if test "x$enable_dlopen" != xyes; then
17408 enable_dlopen=unknown
17409 enable_dlopen_self=unknown
17410 enable_dlopen_self_static=unknown
17411else
17412 lt_cv_dlopen=no
17413 lt_cv_dlopen_libs=
17414
17415 case $host_os in
17416 beos*)
17417 lt_cv_dlopen="load_add_on"
17418 lt_cv_dlopen_libs=
17419 lt_cv_dlopen_self=yes
17420 ;;
17421
17422 mingw* | pw32* | cegcc*)
17423 lt_cv_dlopen="LoadLibrary"
17424 lt_cv_dlopen_libs=
17425 ;;
17426
17427 cygwin*)
17428 lt_cv_dlopen="dlopen"
17429 lt_cv_dlopen_libs=
17430 ;;
17431
17432 darwin*)
17433 # if libdl is installed we need to link against it
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17435$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017436if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017437 $as_echo_n "(cached) " >&6
17438else
17439 ac_check_lib_save_LIBS=$LIBS
17440LIBS="-ldl $LIBS"
17441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17442/* end confdefs.h. */
17443
17444/* Override any GCC internal prototype to avoid an error.
17445 Use char because int might match the return type of a GCC
17446 builtin and then its argument prototype would still apply. */
17447#ifdef __cplusplus
17448extern "C"
17449#endif
17450char dlopen ();
17451int
17452main ()
17453{
17454return dlopen ();
17455 ;
17456 return 0;
17457}
17458_ACEOF
17459if ac_fn_c_try_link "$LINENO"; then :
17460 ac_cv_lib_dl_dlopen=yes
17461else
17462 ac_cv_lib_dl_dlopen=no
17463fi
17464rm -f core conftest.err conftest.$ac_objext \
17465 conftest$ac_exeext conftest.$ac_ext
17466LIBS=$ac_check_lib_save_LIBS
17467fi
17468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17469$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017470if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017471 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17472else
17473
17474 lt_cv_dlopen="dyld"
17475 lt_cv_dlopen_libs=
17476 lt_cv_dlopen_self=yes
17477
17478fi
17479
17480 ;;
17481
17482 *)
17483 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017484if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017485 lt_cv_dlopen="shl_load"
17486else
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17488$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017489if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017490 $as_echo_n "(cached) " >&6
17491else
17492 ac_check_lib_save_LIBS=$LIBS
17493LIBS="-ldld $LIBS"
17494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17495/* end confdefs.h. */
17496
17497/* Override any GCC internal prototype to avoid an error.
17498 Use char because int might match the return type of a GCC
17499 builtin and then its argument prototype would still apply. */
17500#ifdef __cplusplus
17501extern "C"
17502#endif
17503char shl_load ();
17504int
17505main ()
17506{
17507return shl_load ();
17508 ;
17509 return 0;
17510}
17511_ACEOF
17512if ac_fn_c_try_link "$LINENO"; then :
17513 ac_cv_lib_dld_shl_load=yes
17514else
17515 ac_cv_lib_dld_shl_load=no
17516fi
17517rm -f core conftest.err conftest.$ac_objext \
17518 conftest$ac_exeext conftest.$ac_ext
17519LIBS=$ac_check_lib_save_LIBS
17520fi
17521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17522$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017523if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017524 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17525else
17526 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017527if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017528 lt_cv_dlopen="dlopen"
17529else
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17531$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017532if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017533 $as_echo_n "(cached) " >&6
17534else
17535 ac_check_lib_save_LIBS=$LIBS
17536LIBS="-ldl $LIBS"
17537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538/* end confdefs.h. */
17539
17540/* Override any GCC internal prototype to avoid an error.
17541 Use char because int might match the return type of a GCC
17542 builtin and then its argument prototype would still apply. */
17543#ifdef __cplusplus
17544extern "C"
17545#endif
17546char dlopen ();
17547int
17548main ()
17549{
17550return dlopen ();
17551 ;
17552 return 0;
17553}
17554_ACEOF
17555if ac_fn_c_try_link "$LINENO"; then :
17556 ac_cv_lib_dl_dlopen=yes
17557else
17558 ac_cv_lib_dl_dlopen=no
17559fi
17560rm -f core conftest.err conftest.$ac_objext \
17561 conftest$ac_exeext conftest.$ac_ext
17562LIBS=$ac_check_lib_save_LIBS
17563fi
17564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17565$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017566if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17568else
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17570$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017571if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017572 $as_echo_n "(cached) " >&6
17573else
17574 ac_check_lib_save_LIBS=$LIBS
17575LIBS="-lsvld $LIBS"
17576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17577/* end confdefs.h. */
17578
17579/* Override any GCC internal prototype to avoid an error.
17580 Use char because int might match the return type of a GCC
17581 builtin and then its argument prototype would still apply. */
17582#ifdef __cplusplus
17583extern "C"
17584#endif
17585char dlopen ();
17586int
17587main ()
17588{
17589return dlopen ();
17590 ;
17591 return 0;
17592}
17593_ACEOF
17594if ac_fn_c_try_link "$LINENO"; then :
17595 ac_cv_lib_svld_dlopen=yes
17596else
17597 ac_cv_lib_svld_dlopen=no
17598fi
17599rm -f core conftest.err conftest.$ac_objext \
17600 conftest$ac_exeext conftest.$ac_ext
17601LIBS=$ac_check_lib_save_LIBS
17602fi
17603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17604$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017605if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017606 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17607else
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17609$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017610if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017611 $as_echo_n "(cached) " >&6
17612else
17613 ac_check_lib_save_LIBS=$LIBS
17614LIBS="-ldld $LIBS"
17615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616/* end confdefs.h. */
17617
17618/* Override any GCC internal prototype to avoid an error.
17619 Use char because int might match the return type of a GCC
17620 builtin and then its argument prototype would still apply. */
17621#ifdef __cplusplus
17622extern "C"
17623#endif
17624char dld_link ();
17625int
17626main ()
17627{
17628return dld_link ();
17629 ;
17630 return 0;
17631}
17632_ACEOF
17633if ac_fn_c_try_link "$LINENO"; then :
17634 ac_cv_lib_dld_dld_link=yes
17635else
17636 ac_cv_lib_dld_dld_link=no
17637fi
17638rm -f core conftest.err conftest.$ac_objext \
17639 conftest$ac_exeext conftest.$ac_ext
17640LIBS=$ac_check_lib_save_LIBS
17641fi
17642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17643$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017644if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017645 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17646fi
17647
17648
17649fi
17650
17651
17652fi
17653
17654
17655fi
17656
17657
17658fi
17659
17660
17661fi
17662
17663 ;;
17664 esac
17665
17666 if test "x$lt_cv_dlopen" != xno; then
17667 enable_dlopen=yes
17668 else
17669 enable_dlopen=no
17670 fi
17671
17672 case $lt_cv_dlopen in
17673 dlopen)
17674 save_CPPFLAGS="$CPPFLAGS"
17675 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17676
17677 save_LDFLAGS="$LDFLAGS"
17678 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17679
17680 save_LIBS="$LIBS"
17681 LIBS="$lt_cv_dlopen_libs $LIBS"
17682
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17684$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017685if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017686 $as_echo_n "(cached) " >&6
17687else
17688 if test "$cross_compiling" = yes; then :
17689 lt_cv_dlopen_self=cross
17690else
17691 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17692 lt_status=$lt_dlunknown
17693 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017694#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017695#include "confdefs.h"
17696
17697#if HAVE_DLFCN_H
17698#include <dlfcn.h>
17699#endif
17700
17701#include <stdio.h>
17702
17703#ifdef RTLD_GLOBAL
17704# define LT_DLGLOBAL RTLD_GLOBAL
17705#else
17706# ifdef DL_GLOBAL
17707# define LT_DLGLOBAL DL_GLOBAL
17708# else
17709# define LT_DLGLOBAL 0
17710# endif
17711#endif
17712
17713/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17714 find out it does not work in some platform. */
17715#ifndef LT_DLLAZY_OR_NOW
17716# ifdef RTLD_LAZY
17717# define LT_DLLAZY_OR_NOW RTLD_LAZY
17718# else
17719# ifdef DL_LAZY
17720# define LT_DLLAZY_OR_NOW DL_LAZY
17721# else
17722# ifdef RTLD_NOW
17723# define LT_DLLAZY_OR_NOW RTLD_NOW
17724# else
17725# ifdef DL_NOW
17726# define LT_DLLAZY_OR_NOW DL_NOW
17727# else
17728# define LT_DLLAZY_OR_NOW 0
17729# endif
17730# endif
17731# endif
17732# endif
17733#endif
17734
cristy0c60a692010-11-04 01:09:47 +000017735/* When -fvisbility=hidden is used, assume the code has been annotated
17736 correspondingly for the symbols needed. */
17737#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017738int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017739#endif
17740
cristyda16f162011-02-19 23:52:17 +000017741int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017742int main ()
17743{
17744 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17745 int status = $lt_dlunknown;
17746
17747 if (self)
17748 {
17749 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017750 else
17751 {
17752 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17753 else puts (dlerror ());
17754 }
cristy73bd4a52010-10-05 11:24:23 +000017755 /* dlclose (self); */
17756 }
17757 else
17758 puts (dlerror ());
17759
17760 return status;
17761}
17762_LT_EOF
17763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17764 (eval $ac_link) 2>&5
17765 ac_status=$?
17766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17767 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17768 (./conftest; exit; ) >&5 2>/dev/null
17769 lt_status=$?
17770 case x$lt_status in
17771 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17772 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17773 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17774 esac
17775 else :
17776 # compilation failed
17777 lt_cv_dlopen_self=no
17778 fi
17779fi
17780rm -fr conftest*
17781
17782
17783fi
17784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17785$as_echo "$lt_cv_dlopen_self" >&6; }
17786
17787 if test "x$lt_cv_dlopen_self" = xyes; then
17788 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17790$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017791if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017792 $as_echo_n "(cached) " >&6
17793else
17794 if test "$cross_compiling" = yes; then :
17795 lt_cv_dlopen_self_static=cross
17796else
17797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17798 lt_status=$lt_dlunknown
17799 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017800#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017801#include "confdefs.h"
17802
17803#if HAVE_DLFCN_H
17804#include <dlfcn.h>
17805#endif
17806
17807#include <stdio.h>
17808
17809#ifdef RTLD_GLOBAL
17810# define LT_DLGLOBAL RTLD_GLOBAL
17811#else
17812# ifdef DL_GLOBAL
17813# define LT_DLGLOBAL DL_GLOBAL
17814# else
17815# define LT_DLGLOBAL 0
17816# endif
17817#endif
17818
17819/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17820 find out it does not work in some platform. */
17821#ifndef LT_DLLAZY_OR_NOW
17822# ifdef RTLD_LAZY
17823# define LT_DLLAZY_OR_NOW RTLD_LAZY
17824# else
17825# ifdef DL_LAZY
17826# define LT_DLLAZY_OR_NOW DL_LAZY
17827# else
17828# ifdef RTLD_NOW
17829# define LT_DLLAZY_OR_NOW RTLD_NOW
17830# else
17831# ifdef DL_NOW
17832# define LT_DLLAZY_OR_NOW DL_NOW
17833# else
17834# define LT_DLLAZY_OR_NOW 0
17835# endif
17836# endif
17837# endif
17838# endif
17839#endif
17840
cristy0c60a692010-11-04 01:09:47 +000017841/* When -fvisbility=hidden is used, assume the code has been annotated
17842 correspondingly for the symbols needed. */
17843#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017844int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017845#endif
17846
cristyda16f162011-02-19 23:52:17 +000017847int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017848int main ()
17849{
17850 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17851 int status = $lt_dlunknown;
17852
17853 if (self)
17854 {
17855 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017856 else
17857 {
17858 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17859 else puts (dlerror ());
17860 }
cristy73bd4a52010-10-05 11:24:23 +000017861 /* dlclose (self); */
17862 }
17863 else
17864 puts (dlerror ());
17865
17866 return status;
17867}
17868_LT_EOF
17869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17870 (eval $ac_link) 2>&5
17871 ac_status=$?
17872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17873 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17874 (./conftest; exit; ) >&5 2>/dev/null
17875 lt_status=$?
17876 case x$lt_status in
17877 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17878 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17879 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17880 esac
17881 else :
17882 # compilation failed
17883 lt_cv_dlopen_self_static=no
17884 fi
17885fi
17886rm -fr conftest*
17887
17888
17889fi
17890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17891$as_echo "$lt_cv_dlopen_self_static" >&6; }
17892 fi
17893
17894 CPPFLAGS="$save_CPPFLAGS"
17895 LDFLAGS="$save_LDFLAGS"
17896 LIBS="$save_LIBS"
17897 ;;
17898 esac
17899
17900 case $lt_cv_dlopen_self in
17901 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17902 *) enable_dlopen_self=unknown ;;
17903 esac
17904
17905 case $lt_cv_dlopen_self_static in
17906 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17907 *) enable_dlopen_self_static=unknown ;;
17908 esac
17909fi
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927striplib=
17928old_striplib=
17929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17930$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17931if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17932 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17933 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17935$as_echo "yes" >&6; }
17936else
17937# FIXME - insert some real tests, host_os isn't really good enough
17938 case $host_os in
17939 darwin*)
17940 if test -n "$STRIP" ; then
17941 striplib="$STRIP -x"
17942 old_striplib="$STRIP -S"
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17944$as_echo "yes" >&6; }
17945 else
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17947$as_echo "no" >&6; }
17948 fi
17949 ;;
17950 *)
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17952$as_echo "no" >&6; }
17953 ;;
17954 esac
17955fi
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968 # Report which library types will actually be built
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17970$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17972$as_echo "$can_build_shared" >&6; }
17973
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17975$as_echo_n "checking whether to build shared libraries... " >&6; }
17976 test "$can_build_shared" = "no" && enable_shared=no
17977
17978 # On AIX, shared libraries and static libraries use the same namespace, and
17979 # are all built from PIC.
17980 case $host_os in
17981 aix3*)
17982 test "$enable_shared" = yes && enable_static=no
17983 if test -n "$RANLIB"; then
17984 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17985 postinstall_cmds='$RANLIB $lib'
17986 fi
17987 ;;
17988
17989 aix[4-9]*)
17990 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17991 test "$enable_shared" = yes && enable_static=no
17992 fi
17993 ;;
17994 esac
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17996$as_echo "$enable_shared" >&6; }
17997
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17999$as_echo_n "checking whether to build static libraries... " >&6; }
18000 # Make sure either enable_shared or enable_static is yes.
18001 test "$enable_shared" = yes || enable_static=yes
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18003$as_echo "$enable_static" >&6; }
18004
18005
18006
18007
18008fi
18009ac_ext=c
18010ac_cpp='$CPP $CPPFLAGS'
18011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18013ac_compiler_gnu=$ac_cv_c_compiler_gnu
18014
18015CC="$lt_save_CC"
18016
cristy0c60a692010-11-04 01:09:47 +000018017 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18018 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18019 (test "X$CXX" != "Xg++"))) ; then
18020 ac_ext=cpp
18021ac_cpp='$CXXCPP $CPPFLAGS'
18022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18026$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18027if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018028 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018029 $as_echo_n "(cached) " >&6
18030else
18031 # Double quotes because CXXCPP needs to be expanded
18032 for CXXCPP in "$CXX -E" "/lib/cpp"
18033 do
18034 ac_preproc_ok=false
18035for ac_cxx_preproc_warn_flag in '' yes
18036do
18037 # Use a header file that comes with gcc, so configuring glibc
18038 # with a fresh cross-compiler works.
18039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18040 # <limits.h> exists even on freestanding compilers.
18041 # On the NeXT, cc -E runs the code through the compiler's parser,
18042 # not just through cpp. "Syntax error" is here to catch this case.
18043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18044/* end confdefs.h. */
18045#ifdef __STDC__
18046# include <limits.h>
18047#else
18048# include <assert.h>
18049#endif
18050 Syntax error
18051_ACEOF
18052if ac_fn_cxx_try_cpp "$LINENO"; then :
18053
18054else
18055 # Broken: fails on valid input.
18056continue
18057fi
cristyda16f162011-02-19 23:52:17 +000018058rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018059
18060 # OK, works on sane cases. Now check whether nonexistent headers
18061 # can be detected and how.
18062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18063/* end confdefs.h. */
18064#include <ac_nonexistent.h>
18065_ACEOF
18066if ac_fn_cxx_try_cpp "$LINENO"; then :
18067 # Broken: success on invalid input.
18068continue
18069else
18070 # Passes both tests.
18071ac_preproc_ok=:
18072break
18073fi
cristyda16f162011-02-19 23:52:17 +000018074rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018075
18076done
18077# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018078rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018079if $ac_preproc_ok; then :
18080 break
18081fi
18082
18083 done
18084 ac_cv_prog_CXXCPP=$CXXCPP
18085
18086fi
18087 CXXCPP=$ac_cv_prog_CXXCPP
18088else
18089 ac_cv_prog_CXXCPP=$CXXCPP
18090fi
18091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18092$as_echo "$CXXCPP" >&6; }
18093ac_preproc_ok=false
18094for ac_cxx_preproc_warn_flag in '' yes
18095do
18096 # Use a header file that comes with gcc, so configuring glibc
18097 # with a fresh cross-compiler works.
18098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18099 # <limits.h> exists even on freestanding compilers.
18100 # On the NeXT, cc -E runs the code through the compiler's parser,
18101 # not just through cpp. "Syntax error" is here to catch this case.
18102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103/* end confdefs.h. */
18104#ifdef __STDC__
18105# include <limits.h>
18106#else
18107# include <assert.h>
18108#endif
18109 Syntax error
18110_ACEOF
18111if ac_fn_cxx_try_cpp "$LINENO"; then :
18112
18113else
18114 # Broken: fails on valid input.
18115continue
18116fi
cristyda16f162011-02-19 23:52:17 +000018117rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018118
18119 # OK, works on sane cases. Now check whether nonexistent headers
18120 # can be detected and how.
18121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122/* end confdefs.h. */
18123#include <ac_nonexistent.h>
18124_ACEOF
18125if ac_fn_cxx_try_cpp "$LINENO"; then :
18126 # Broken: success on invalid input.
18127continue
18128else
18129 # Passes both tests.
18130ac_preproc_ok=:
18131break
18132fi
cristyda16f162011-02-19 23:52:17 +000018133rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018134
18135done
18136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018137rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018138if $ac_preproc_ok; then :
18139
18140else
18141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18143as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18144See \`config.log' for more details" "$LINENO" 5; }
18145fi
18146
18147ac_ext=c
18148ac_cpp='$CPP $CPPFLAGS'
18149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18151ac_compiler_gnu=$ac_cv_c_compiler_gnu
18152
18153else
18154 _lt_caught_CXX_error=yes
18155fi
cristy73bd4a52010-10-05 11:24:23 +000018156
18157ac_ext=cpp
18158ac_cpp='$CXXCPP $CPPFLAGS'
18159ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18160ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18161ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18162
18163archive_cmds_need_lc_CXX=no
18164allow_undefined_flag_CXX=
18165always_export_symbols_CXX=no
18166archive_expsym_cmds_CXX=
18167compiler_needs_object_CXX=no
18168export_dynamic_flag_spec_CXX=
18169hardcode_direct_CXX=no
18170hardcode_direct_absolute_CXX=no
18171hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018172hardcode_libdir_separator_CXX=
18173hardcode_minus_L_CXX=no
18174hardcode_shlibpath_var_CXX=unsupported
18175hardcode_automatic_CXX=no
18176inherit_rpath_CXX=no
18177module_cmds_CXX=
18178module_expsym_cmds_CXX=
18179link_all_deplibs_CXX=unknown
18180old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018181reload_flag_CXX=$reload_flag
18182reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018183no_undefined_flag_CXX=
18184whole_archive_flag_spec_CXX=
18185enable_shared_with_static_runtimes_CXX=no
18186
18187# Source file extension for C++ test sources.
18188ac_ext=cpp
18189
18190# Object file extension for compiled C++ test sources.
18191objext=o
18192objext_CXX=$objext
18193
18194# No sense in running all these tests if we already determined that
18195# the CXX compiler isn't working. Some variables (like enable_shared)
18196# are currently assumed to apply to all compilers on this platform,
18197# and will be corrupted by setting them based on a non-working compiler.
18198if test "$_lt_caught_CXX_error" != yes; then
18199 # Code to be used in simple compile tests
18200 lt_simple_compile_test_code="int some_variable = 0;"
18201
18202 # Code to be used in simple link tests
18203 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18204
18205 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18206
18207
18208
18209
18210
18211
18212# If no C compiler was specified, use CC.
18213LTCC=${LTCC-"$CC"}
18214
18215# If no C compiler flags were specified, use CFLAGS.
18216LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18217
18218# Allow CC to be a program name with arguments.
18219compiler=$CC
18220
18221
18222 # save warnings/boilerplate of simple test code
18223 ac_outfile=conftest.$ac_objext
18224echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18225eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18226_lt_compiler_boilerplate=`cat conftest.err`
18227$RM conftest*
18228
18229 ac_outfile=conftest.$ac_objext
18230echo "$lt_simple_link_test_code" >conftest.$ac_ext
18231eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18232_lt_linker_boilerplate=`cat conftest.err`
18233$RM -r conftest*
18234
18235
18236 # Allow CC to be a program name with arguments.
18237 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018238 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018239 lt_save_LD=$LD
18240 lt_save_GCC=$GCC
18241 GCC=$GXX
18242 lt_save_with_gnu_ld=$with_gnu_ld
18243 lt_save_path_LD=$lt_cv_path_LD
18244 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18245 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18246 else
18247 $as_unset lt_cv_prog_gnu_ld
18248 fi
18249 if test -n "${lt_cv_path_LDCXX+set}"; then
18250 lt_cv_path_LD=$lt_cv_path_LDCXX
18251 else
18252 $as_unset lt_cv_path_LD
18253 fi
18254 test -z "${LDCXX+set}" || LD=$LDCXX
18255 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018256 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018257 compiler=$CC
18258 compiler_CXX=$CC
18259 for cc_temp in $compiler""; do
18260 case $cc_temp in
18261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18263 \-*) ;;
18264 *) break;;
18265 esac
18266done
cristy0c60a692010-11-04 01:09:47 +000018267cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018268
18269
18270 if test -n "$compiler"; then
18271 # We don't want -fno-exception when compiling C++ code, so set the
18272 # no_builtin_flag separately
18273 if test "$GXX" = yes; then
18274 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18275 else
18276 lt_prog_compiler_no_builtin_flag_CXX=
18277 fi
18278
18279 if test "$GXX" = yes; then
18280 # Set up default GNU C++ configuration
18281
18282
18283
18284# Check whether --with-gnu-ld was given.
18285if test "${with_gnu_ld+set}" = set; then :
18286 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18287else
18288 with_gnu_ld=no
18289fi
18290
18291ac_prog=ld
18292if test "$GCC" = yes; then
18293 # Check if gcc -print-prog-name=ld gives a path.
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18295$as_echo_n "checking for ld used by $CC... " >&6; }
18296 case $host in
18297 *-*-mingw*)
18298 # gcc leaves a trailing carriage return which upsets mingw
18299 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18300 *)
18301 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18302 esac
18303 case $ac_prog in
18304 # Accept absolute paths.
18305 [\\/]* | ?:[\\/]*)
18306 re_direlt='/[^/][^/]*/\.\./'
18307 # Canonicalize the pathname of ld
18308 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18309 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18310 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18311 done
18312 test -z "$LD" && LD="$ac_prog"
18313 ;;
18314 "")
18315 # If it fails, then pretend we aren't using GCC.
18316 ac_prog=ld
18317 ;;
18318 *)
18319 # If it is relative, then search for the first ld in PATH.
18320 with_gnu_ld=unknown
18321 ;;
18322 esac
18323elif test "$with_gnu_ld" = yes; then
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18325$as_echo_n "checking for GNU ld... " >&6; }
18326else
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18328$as_echo_n "checking for non-GNU ld... " >&6; }
18329fi
cristyda16f162011-02-19 23:52:17 +000018330if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018331 $as_echo_n "(cached) " >&6
18332else
18333 if test -z "$LD"; then
18334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18335 for ac_dir in $PATH; do
18336 IFS="$lt_save_ifs"
18337 test -z "$ac_dir" && ac_dir=.
18338 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18339 lt_cv_path_LD="$ac_dir/$ac_prog"
18340 # Check to see if the program is GNU ld. I'd rather use --version,
18341 # but apparently some variants of GNU ld only accept -v.
18342 # Break only if it was the GNU/non-GNU ld that we prefer.
18343 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18344 *GNU* | *'with BFD'*)
18345 test "$with_gnu_ld" != no && break
18346 ;;
18347 *)
18348 test "$with_gnu_ld" != yes && break
18349 ;;
18350 esac
18351 fi
18352 done
18353 IFS="$lt_save_ifs"
18354else
18355 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18356fi
18357fi
18358
18359LD="$lt_cv_path_LD"
18360if test -n "$LD"; then
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18362$as_echo "$LD" >&6; }
18363else
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18365$as_echo "no" >&6; }
18366fi
cristy98dddb52010-11-04 00:30:15 +000018367test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18369$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018370if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018371 $as_echo_n "(cached) " >&6
18372else
18373 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18374case `$LD -v 2>&1 </dev/null` in
18375*GNU* | *'with BFD'*)
18376 lt_cv_prog_gnu_ld=yes
18377 ;;
18378*)
18379 lt_cv_prog_gnu_ld=no
18380 ;;
18381esac
18382fi
18383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18384$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18385with_gnu_ld=$lt_cv_prog_gnu_ld
18386
18387
18388
18389
18390
18391
18392
18393 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18394 # archiving commands below assume that GNU ld is being used.
18395 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018396 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18397 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 +000018398
18399 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18400 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18401
18402 # If archive_cmds runs LD, not CC, wlarc should be empty
18403 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18404 # investigate it a little bit more. (MM)
18405 wlarc='${wl}'
18406
18407 # ancient GNU ld didn't support --whole-archive et. al.
18408 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18409 $GREP 'no-whole-archive' > /dev/null; then
18410 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18411 else
18412 whole_archive_flag_spec_CXX=
18413 fi
18414 else
18415 with_gnu_ld=no
18416 wlarc=
18417
18418 # A generic and very simple default shared library creation
18419 # command for GNU C++ for the case where it uses the native
18420 # linker, instead of GNU ld. If possible, this setting should
18421 # overridden to take advantage of the native linker features on
18422 # the platform it is being used on.
18423 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18424 fi
18425
18426 # Commands to make compiler produce verbose output that lists
18427 # what "hidden" libraries, object files and flags are used when
18428 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018429 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018430
18431 else
18432 GXX=no
18433 with_gnu_ld=no
18434 wlarc=
18435 fi
18436
18437 # PORTME: fill in a description of your system's C++ link characteristics
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18439$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18440 ld_shlibs_CXX=yes
18441 case $host_os in
18442 aix3*)
18443 # FIXME: insert proper C++ library support
18444 ld_shlibs_CXX=no
18445 ;;
18446 aix[4-9]*)
18447 if test "$host_cpu" = ia64; then
18448 # On IA64, the linker does run time linking by default, so we don't
18449 # have to do anything special.
18450 aix_use_runtimelinking=no
18451 exp_sym_flag='-Bexport'
18452 no_entry_flag=""
18453 else
18454 aix_use_runtimelinking=no
18455
18456 # Test if we are trying to use run time linking or normal
18457 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18458 # need to do runtime linking.
18459 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18460 for ld_flag in $LDFLAGS; do
18461 case $ld_flag in
18462 *-brtl*)
18463 aix_use_runtimelinking=yes
18464 break
18465 ;;
18466 esac
18467 done
18468 ;;
18469 esac
18470
18471 exp_sym_flag='-bexport'
18472 no_entry_flag='-bnoentry'
18473 fi
18474
18475 # When large executables or shared objects are built, AIX ld can
18476 # have problems creating the table of contents. If linking a library
18477 # or program results in "error TOC overflow" add -mminimal-toc to
18478 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18479 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18480
18481 archive_cmds_CXX=''
18482 hardcode_direct_CXX=yes
18483 hardcode_direct_absolute_CXX=yes
18484 hardcode_libdir_separator_CXX=':'
18485 link_all_deplibs_CXX=yes
18486 file_list_spec_CXX='${wl}-f,'
18487
18488 if test "$GXX" = yes; then
18489 case $host_os in aix4.[012]|aix4.[012].*)
18490 # We only want to do this on AIX 4.2 and lower, the check
18491 # below for broken collect2 doesn't work under 4.3+
18492 collect2name=`${CC} -print-prog-name=collect2`
18493 if test -f "$collect2name" &&
18494 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18495 then
18496 # We have reworked collect2
18497 :
18498 else
18499 # We have old collect2
18500 hardcode_direct_CXX=unsupported
18501 # It fails to find uninstalled libraries when the uninstalled
18502 # path is not listed in the libpath. Setting hardcode_minus_L
18503 # to unsupported forces relinking
18504 hardcode_minus_L_CXX=yes
18505 hardcode_libdir_flag_spec_CXX='-L$libdir'
18506 hardcode_libdir_separator_CXX=
18507 fi
18508 esac
18509 shared_flag='-shared'
18510 if test "$aix_use_runtimelinking" = yes; then
18511 shared_flag="$shared_flag "'${wl}-G'
18512 fi
18513 else
18514 # not using gcc
18515 if test "$host_cpu" = ia64; then
18516 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18517 # chokes on -Wl,-G. The following line is correct:
18518 shared_flag='-G'
18519 else
18520 if test "$aix_use_runtimelinking" = yes; then
18521 shared_flag='${wl}-G'
18522 else
18523 shared_flag='${wl}-bM:SRE'
18524 fi
18525 fi
18526 fi
18527
18528 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18529 # It seems that -bexpall does not export symbols beginning with
18530 # underscore (_), so it is better to generate a list of symbols to
18531 # export.
18532 always_export_symbols_CXX=yes
18533 if test "$aix_use_runtimelinking" = yes; then
18534 # Warning - without using the other runtime loading flags (-brtl),
18535 # -berok will link without error, but may produce a broken library.
18536 allow_undefined_flag_CXX='-berok'
18537 # Determine the default libpath from the value encoded in an empty
18538 # executable.
cristyda16f162011-02-19 23:52:17 +000018539 if test "${lt_cv_aix_libpath+set}" = set; then
18540 aix_libpath=$lt_cv_aix_libpath
18541else
18542 if ${lt_cv_aix_libpath__CXX+:} false; then :
18543 $as_echo_n "(cached) " >&6
18544else
18545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018546/* end confdefs.h. */
18547
18548int
18549main ()
18550{
18551
18552 ;
18553 return 0;
18554}
18555_ACEOF
18556if ac_fn_cxx_try_link "$LINENO"; then :
18557
cristyda16f162011-02-19 23:52:17 +000018558 lt_aix_libpath_sed='
18559 /Import File Strings/,/^$/ {
18560 /^0/ {
18561 s/^0 *\([^ ]*\) *$/\1/
18562 p
18563 }
18564 }'
18565 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18566 # Check for a 64-bit object if we didn't find anything.
18567 if test -z "$lt_cv_aix_libpath__CXX"; then
18568 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18569 fi
cristy73bd4a52010-10-05 11:24:23 +000018570fi
18571rm -f core conftest.err conftest.$ac_objext \
18572 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018573 if test -z "$lt_cv_aix_libpath__CXX"; then
18574 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18575 fi
18576
18577fi
18578
18579 aix_libpath=$lt_cv_aix_libpath__CXX
18580fi
cristy73bd4a52010-10-05 11:24:23 +000018581
18582 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18583
cristy0c60a692010-11-04 01:09:47 +000018584 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 +000018585 else
18586 if test "$host_cpu" = ia64; then
18587 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18588 allow_undefined_flag_CXX="-z nodefs"
18589 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"
18590 else
18591 # Determine the default libpath from the value encoded in an
18592 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018593 if test "${lt_cv_aix_libpath+set}" = set; then
18594 aix_libpath=$lt_cv_aix_libpath
18595else
18596 if ${lt_cv_aix_libpath__CXX+:} false; then :
18597 $as_echo_n "(cached) " >&6
18598else
18599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018600/* end confdefs.h. */
18601
18602int
18603main ()
18604{
18605
18606 ;
18607 return 0;
18608}
18609_ACEOF
18610if ac_fn_cxx_try_link "$LINENO"; then :
18611
cristyda16f162011-02-19 23:52:17 +000018612 lt_aix_libpath_sed='
18613 /Import File Strings/,/^$/ {
18614 /^0/ {
18615 s/^0 *\([^ ]*\) *$/\1/
18616 p
18617 }
18618 }'
18619 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18620 # Check for a 64-bit object if we didn't find anything.
18621 if test -z "$lt_cv_aix_libpath__CXX"; then
18622 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18623 fi
cristy73bd4a52010-10-05 11:24:23 +000018624fi
18625rm -f core conftest.err conftest.$ac_objext \
18626 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018627 if test -z "$lt_cv_aix_libpath__CXX"; then
18628 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18629 fi
18630
18631fi
18632
18633 aix_libpath=$lt_cv_aix_libpath__CXX
18634fi
cristy73bd4a52010-10-05 11:24:23 +000018635
18636 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18637 # Warning - without using the other run time loading flags,
18638 # -berok will link without error, but may produce a broken library.
18639 no_undefined_flag_CXX=' ${wl}-bernotok'
18640 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018641 if test "$with_gnu_ld" = yes; then
18642 # We only use this code for GNU lds that support --whole-archive.
18643 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18644 else
18645 # Exported symbols can be pulled into shared objects from archives
18646 whole_archive_flag_spec_CXX='$convenience'
18647 fi
cristy73bd4a52010-10-05 11:24:23 +000018648 archive_cmds_need_lc_CXX=yes
18649 # This is similar to how AIX traditionally builds its shared
18650 # libraries.
18651 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'
18652 fi
18653 fi
18654 ;;
18655
18656 beos*)
18657 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18658 allow_undefined_flag_CXX=unsupported
18659 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18660 # support --undefined. This deserves some investigation. FIXME
18661 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18662 else
18663 ld_shlibs_CXX=no
18664 fi
18665 ;;
18666
18667 chorus*)
18668 case $cc_basename in
18669 *)
18670 # FIXME: insert proper C++ library support
18671 ld_shlibs_CXX=no
18672 ;;
18673 esac
18674 ;;
18675
18676 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018677 case $GXX,$cc_basename in
18678 ,cl* | no,cl*)
18679 # Native MSVC
18680 # hardcode_libdir_flag_spec is actually meaningless, as there is
18681 # no search path for DLLs.
18682 hardcode_libdir_flag_spec_CXX=' '
18683 allow_undefined_flag_CXX=unsupported
18684 always_export_symbols_CXX=yes
18685 file_list_spec_CXX='@'
18686 # Tell ltmain to make .lib files, not .a files.
18687 libext=lib
18688 # Tell ltmain to make .dll files, not .so files.
18689 shrext_cmds=".dll"
18690 # FIXME: Setting linknames here is a bad hack.
18691 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18692 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18693 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18694 else
18695 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18696 fi~
18697 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18698 linknames='
18699 # The linker will not automatically build a static lib if we build a DLL.
18700 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18701 enable_shared_with_static_runtimes_CXX=yes
18702 # Don't use ranlib
18703 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18704 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18705 lt_tool_outputfile="@TOOL_OUTPUT@"~
18706 case $lt_outputfile in
18707 *.exe|*.EXE) ;;
18708 *)
18709 lt_outputfile="$lt_outputfile.exe"
18710 lt_tool_outputfile="$lt_tool_outputfile.exe"
18711 ;;
18712 esac~
18713 func_to_tool_file "$lt_outputfile"~
18714 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18715 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18716 $RM "$lt_outputfile.manifest";
18717 fi'
18718 ;;
18719 *)
18720 # g++
18721 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18722 # as there is no search path for DLLs.
18723 hardcode_libdir_flag_spec_CXX='-L$libdir'
18724 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18725 allow_undefined_flag_CXX=unsupported
18726 always_export_symbols_CXX=no
18727 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018728
cristyda16f162011-02-19 23:52:17 +000018729 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18730 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'
18731 # If the export-symbols file already is a .def file (1st line
18732 # is EXPORTS), use it as is; otherwise, prepend...
18733 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18734 cp $export_symbols $output_objdir/$soname.def;
18735 else
18736 echo EXPORTS > $output_objdir/$soname.def;
18737 cat $export_symbols >> $output_objdir/$soname.def;
18738 fi~
18739 $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'
18740 else
18741 ld_shlibs_CXX=no
18742 fi
18743 ;;
18744 esac
18745 ;;
cristy73bd4a52010-10-05 11:24:23 +000018746 darwin* | rhapsody*)
18747
18748
18749 archive_cmds_need_lc_CXX=no
18750 hardcode_direct_CXX=no
18751 hardcode_automatic_CXX=yes
18752 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018753 if test "$lt_cv_ld_force_load" = "yes"; then
18754 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 +000018755
cristy0c60a692010-11-04 01:09:47 +000018756 else
18757 whole_archive_flag_spec_CXX=''
18758 fi
cristy73bd4a52010-10-05 11:24:23 +000018759 link_all_deplibs_CXX=yes
18760 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18761 case $cc_basename in
18762 ifort*) _lt_dar_can_shared=yes ;;
18763 *) _lt_dar_can_shared=$GCC ;;
18764 esac
18765 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018766 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018767 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}"
18768 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18769 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}"
18770 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}"
18771 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18772 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}"
18773 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}"
18774 fi
18775
18776 else
18777 ld_shlibs_CXX=no
18778 fi
18779
18780 ;;
18781
18782 dgux*)
18783 case $cc_basename in
18784 ec++*)
18785 # FIXME: insert proper C++ library support
18786 ld_shlibs_CXX=no
18787 ;;
18788 ghcx*)
18789 # Green Hills C++ Compiler
18790 # FIXME: insert proper C++ library support
18791 ld_shlibs_CXX=no
18792 ;;
18793 *)
18794 # FIXME: insert proper C++ library support
18795 ld_shlibs_CXX=no
18796 ;;
18797 esac
18798 ;;
18799
cristy99bd5232011-12-07 14:38:20 +000018800 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018801 # C++ shared libraries reported to be fairly broken before
18802 # switch to ELF
18803 ld_shlibs_CXX=no
18804 ;;
18805
18806 freebsd-elf*)
18807 archive_cmds_need_lc_CXX=no
18808 ;;
18809
18810 freebsd* | dragonfly*)
18811 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18812 # conventions
18813 ld_shlibs_CXX=yes
18814 ;;
18815
18816 gnu*)
18817 ;;
18818
cristy0c60a692010-11-04 01:09:47 +000018819 haiku*)
18820 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18821 link_all_deplibs_CXX=yes
18822 ;;
18823
cristy73bd4a52010-10-05 11:24:23 +000018824 hpux9*)
18825 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18826 hardcode_libdir_separator_CXX=:
18827 export_dynamic_flag_spec_CXX='${wl}-E'
18828 hardcode_direct_CXX=yes
18829 hardcode_minus_L_CXX=yes # Not in the search PATH,
18830 # but as the default
18831 # location of the library.
18832
18833 case $cc_basename in
18834 CC*)
18835 # FIXME: insert proper C++ library support
18836 ld_shlibs_CXX=no
18837 ;;
18838 aCC*)
18839 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'
18840 # Commands to make compiler produce verbose output that lists
18841 # what "hidden" libraries, object files and flags are used when
18842 # linking a shared library.
18843 #
18844 # There doesn't appear to be a way to prevent this compiler from
18845 # explicitly linking system object files so we need to strip them
18846 # from the output so that they don't get included in the library
18847 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018848 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 +000018849 ;;
18850 *)
18851 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018852 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 +000018853 else
18854 # FIXME: insert proper C++ library support
18855 ld_shlibs_CXX=no
18856 fi
18857 ;;
18858 esac
18859 ;;
18860
18861 hpux10*|hpux11*)
18862 if test $with_gnu_ld = no; then
18863 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18864 hardcode_libdir_separator_CXX=:
18865
18866 case $host_cpu in
18867 hppa*64*|ia64*)
18868 ;;
18869 *)
18870 export_dynamic_flag_spec_CXX='${wl}-E'
18871 ;;
18872 esac
18873 fi
18874 case $host_cpu in
18875 hppa*64*|ia64*)
18876 hardcode_direct_CXX=no
18877 hardcode_shlibpath_var_CXX=no
18878 ;;
18879 *)
18880 hardcode_direct_CXX=yes
18881 hardcode_direct_absolute_CXX=yes
18882 hardcode_minus_L_CXX=yes # Not in the search PATH,
18883 # but as the default
18884 # location of the library.
18885 ;;
18886 esac
18887
18888 case $cc_basename in
18889 CC*)
18890 # FIXME: insert proper C++ library support
18891 ld_shlibs_CXX=no
18892 ;;
18893 aCC*)
18894 case $host_cpu in
18895 hppa*64*)
18896 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18897 ;;
18898 ia64*)
18899 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18900 ;;
18901 *)
18902 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18903 ;;
18904 esac
18905 # Commands to make compiler produce verbose output that lists
18906 # what "hidden" libraries, object files and flags are used when
18907 # linking a shared library.
18908 #
18909 # There doesn't appear to be a way to prevent this compiler from
18910 # explicitly linking system object files so we need to strip them
18911 # from the output so that they don't get included in the library
18912 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018913 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 +000018914 ;;
18915 *)
18916 if test "$GXX" = yes; then
18917 if test $with_gnu_ld = no; then
18918 case $host_cpu in
18919 hppa*64*)
18920 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18921 ;;
18922 ia64*)
cristyda16f162011-02-19 23:52:17 +000018923 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 +000018924 ;;
18925 *)
cristyda16f162011-02-19 23:52:17 +000018926 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 +000018927 ;;
18928 esac
18929 fi
18930 else
18931 # FIXME: insert proper C++ library support
18932 ld_shlibs_CXX=no
18933 fi
18934 ;;
18935 esac
18936 ;;
18937
18938 interix[3-9]*)
18939 hardcode_direct_CXX=no
18940 hardcode_shlibpath_var_CXX=no
18941 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18942 export_dynamic_flag_spec_CXX='${wl}-E'
18943 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18944 # Instead, shared libraries are loaded at an image base (0x10000000 by
18945 # default) and relocated if they conflict, which is a slow very memory
18946 # consuming and fragmenting process. To avoid this, we pick a random,
18947 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18948 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18949 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'
18950 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'
18951 ;;
18952 irix5* | irix6*)
18953 case $cc_basename in
18954 CC*)
18955 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018956 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 +000018957
18958 # Archives containing C++ object files must be created using
18959 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18960 # necessary to make sure instantiated templates are included
18961 # in the archive.
18962 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18963 ;;
18964 *)
18965 if test "$GXX" = yes; then
18966 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018967 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 +000018968 else
cristyda16f162011-02-19 23:52:17 +000018969 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 +000018970 fi
18971 fi
18972 link_all_deplibs_CXX=yes
18973 ;;
18974 esac
18975 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18976 hardcode_libdir_separator_CXX=:
18977 inherit_rpath_CXX=yes
18978 ;;
18979
cristy0c60a692010-11-04 01:09:47 +000018980 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018981 case $cc_basename in
18982 KCC*)
18983 # Kuck and Associates, Inc. (KAI) C++ Compiler
18984
18985 # KCC will only create a shared library if the output file
18986 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18987 # to its proper name (with version) after linking.
18988 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'
18989 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'
18990 # Commands to make compiler produce verbose output that lists
18991 # what "hidden" libraries, object files and flags are used when
18992 # linking a shared library.
18993 #
18994 # There doesn't appear to be a way to prevent this compiler from
18995 # explicitly linking system object files so we need to strip them
18996 # from the output so that they don't get included in the library
18997 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018998 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 +000018999
19000 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19001 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19002
19003 # Archives containing C++ object files must be created using
19004 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19005 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19006 ;;
19007 icpc* | ecpc* )
19008 # Intel C++
19009 with_gnu_ld=yes
19010 # version 8.0 and above of icpc choke on multiply defined symbols
19011 # if we add $predep_objects and $postdep_objects, however 7.1 and
19012 # earlier do not add the objects themselves.
19013 case `$CC -V 2>&1` in
19014 *"Version 7."*)
19015 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19016 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'
19017 ;;
19018 *) # Version 8.0 or newer
19019 tmp_idyn=
19020 case $host_cpu in
19021 ia64*) tmp_idyn=' -i_dynamic';;
19022 esac
19023 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19024 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'
19025 ;;
19026 esac
19027 archive_cmds_need_lc_CXX=no
19028 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19029 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19030 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19031 ;;
19032 pgCC* | pgcpp*)
19033 # Portland Group C++ compiler
19034 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019035 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019036 prelink_cmds_CXX='tpldir=Template.dir~
19037 rm -rf $tpldir~
19038 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019039 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019040 old_archive_cmds_CXX='tpldir=Template.dir~
19041 rm -rf $tpldir~
19042 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019043 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019044 $RANLIB $oldlib'
19045 archive_cmds_CXX='tpldir=Template.dir~
19046 rm -rf $tpldir~
19047 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019048 $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 +000019049 archive_expsym_cmds_CXX='tpldir=Template.dir~
19050 rm -rf $tpldir~
19051 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019052 $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 +000019053 ;;
cristy0c60a692010-11-04 01:09:47 +000019054 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019055 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19056 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'
19057 ;;
19058 esac
19059
19060 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19061 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019062 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 +000019063 ;;
19064 cxx*)
19065 # Compaq C++
19066 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19067 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'
19068
19069 runpath_var=LD_RUN_PATH
19070 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19071 hardcode_libdir_separator_CXX=:
19072
19073 # Commands to make compiler produce verbose output that lists
19074 # what "hidden" libraries, object files and flags are used when
19075 # linking a shared library.
19076 #
19077 # There doesn't appear to be a way to prevent this compiler from
19078 # explicitly linking system object files so we need to strip them
19079 # from the output so that they don't get included in the library
19080 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019081 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 +000019082 ;;
cristy0c60a692010-11-04 01:09:47 +000019083 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019084 # IBM XL 8.0 on PPC, with GNU ld
19085 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19086 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19087 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19088 if test "x$supports_anon_versioning" = xyes; then
19089 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19091 echo "local: *; };" >> $output_objdir/$libname.ver~
19092 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19093 fi
19094 ;;
19095 *)
19096 case `$CC -V 2>&1 | sed 5q` in
19097 *Sun\ C*)
19098 # Sun C++ 5.9
19099 no_undefined_flag_CXX=' -zdefs'
19100 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19101 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'
19102 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019103 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 +000019104 compiler_needs_object_CXX=yes
19105
19106 # Not sure whether something based on
19107 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19108 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019109 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019110
19111 # Archives containing C++ object files must be created using
19112 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19113 # necessary to make sure instantiated templates are included
19114 # in the archive.
19115 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19116 ;;
19117 esac
19118 ;;
19119 esac
19120 ;;
19121
19122 lynxos*)
19123 # FIXME: insert proper C++ library support
19124 ld_shlibs_CXX=no
19125 ;;
19126
19127 m88k*)
19128 # FIXME: insert proper C++ library support
19129 ld_shlibs_CXX=no
19130 ;;
19131
19132 mvs*)
19133 case $cc_basename in
19134 cxx*)
19135 # FIXME: insert proper C++ library support
19136 ld_shlibs_CXX=no
19137 ;;
19138 *)
19139 # FIXME: insert proper C++ library support
19140 ld_shlibs_CXX=no
19141 ;;
19142 esac
19143 ;;
19144
19145 netbsd*)
19146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19147 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19148 wlarc=
19149 hardcode_libdir_flag_spec_CXX='-R$libdir'
19150 hardcode_direct_CXX=yes
19151 hardcode_shlibpath_var_CXX=no
19152 fi
19153 # Workaround some broken pre-1.5 toolchains
19154 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19155 ;;
19156
19157 *nto* | *qnx*)
19158 ld_shlibs_CXX=yes
19159 ;;
19160
19161 openbsd2*)
19162 # C++ shared libraries are fairly broken
19163 ld_shlibs_CXX=no
19164 ;;
19165
19166 openbsd*)
19167 if test -f /usr/libexec/ld.so; then
19168 hardcode_direct_CXX=yes
19169 hardcode_shlibpath_var_CXX=no
19170 hardcode_direct_absolute_CXX=yes
19171 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19172 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19173 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19174 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19175 export_dynamic_flag_spec_CXX='${wl}-E'
19176 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19177 fi
cristy0c60a692010-11-04 01:09:47 +000019178 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019179 else
19180 ld_shlibs_CXX=no
19181 fi
19182 ;;
19183
19184 osf3* | osf4* | osf5*)
19185 case $cc_basename in
19186 KCC*)
19187 # Kuck and Associates, Inc. (KAI) C++ Compiler
19188
19189 # KCC will only create a shared library if the output file
19190 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19191 # to its proper name (with version) after linking.
19192 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'
19193
19194 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19195 hardcode_libdir_separator_CXX=:
19196
19197 # Archives containing C++ object files must be created using
19198 # the KAI C++ compiler.
19199 case $host in
19200 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19201 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19202 esac
19203 ;;
19204 RCC*)
19205 # Rational C++ 2.4.1
19206 # FIXME: insert proper C++ library support
19207 ld_shlibs_CXX=no
19208 ;;
19209 cxx*)
19210 case $host in
19211 osf3*)
19212 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019213 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 +000019214 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19215 ;;
19216 *)
19217 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019218 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 +000019219 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19220 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019221 $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 +000019222 $RM $lib.exp'
19223 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19224 ;;
19225 esac
19226
19227 hardcode_libdir_separator_CXX=:
19228
19229 # Commands to make compiler produce verbose output that lists
19230 # what "hidden" libraries, object files and flags are used when
19231 # linking a shared library.
19232 #
19233 # There doesn't appear to be a way to prevent this compiler from
19234 # explicitly linking system object files so we need to strip them
19235 # from the output so that they don't get included in the library
19236 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019237 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 +000019238 ;;
19239 *)
19240 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19241 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19242 case $host in
19243 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019244 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 +000019245 ;;
19246 *)
cristyda16f162011-02-19 23:52:17 +000019247 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 +000019248 ;;
19249 esac
19250
19251 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19252 hardcode_libdir_separator_CXX=:
19253
19254 # Commands to make compiler produce verbose output that lists
19255 # what "hidden" libraries, object files and flags are used when
19256 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019257 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019258
19259 else
19260 # FIXME: insert proper C++ library support
19261 ld_shlibs_CXX=no
19262 fi
19263 ;;
19264 esac
19265 ;;
19266
19267 psos*)
19268 # FIXME: insert proper C++ library support
19269 ld_shlibs_CXX=no
19270 ;;
19271
19272 sunos4*)
19273 case $cc_basename in
19274 CC*)
19275 # Sun C++ 4.x
19276 # FIXME: insert proper C++ library support
19277 ld_shlibs_CXX=no
19278 ;;
19279 lcc*)
19280 # Lucid
19281 # FIXME: insert proper C++ library support
19282 ld_shlibs_CXX=no
19283 ;;
19284 *)
19285 # FIXME: insert proper C++ library support
19286 ld_shlibs_CXX=no
19287 ;;
19288 esac
19289 ;;
19290
19291 solaris*)
19292 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019293 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019294 # Sun C++ 4.2, 5.x and Centerline C++
19295 archive_cmds_need_lc_CXX=yes
19296 no_undefined_flag_CXX=' -zdefs'
19297 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19298 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19299 $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'
19300
19301 hardcode_libdir_flag_spec_CXX='-R$libdir'
19302 hardcode_shlibpath_var_CXX=no
19303 case $host_os in
19304 solaris2.[0-5] | solaris2.[0-5].*) ;;
19305 *)
19306 # The compiler driver will combine and reorder linker options,
19307 # but understands `-z linker_flag'.
19308 # Supported since Solaris 2.6 (maybe 2.5.1?)
19309 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19310 ;;
19311 esac
19312 link_all_deplibs_CXX=yes
19313
cristy0c60a692010-11-04 01:09:47 +000019314 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019315
19316 # Archives containing C++ object files must be created using
19317 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19318 # necessary to make sure instantiated templates are included
19319 # in the archive.
19320 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19321 ;;
19322 gcx*)
19323 # Green Hills C++ Compiler
19324 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19325
19326 # The C++ compiler must be used to create the archive.
19327 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19328 ;;
19329 *)
19330 # GNU C++ compiler with Solaris linker
19331 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19332 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19333 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019334 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 +000019335 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 +000019336 $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 +000019337
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.
cristy0c60a692010-11-04 01:09:47 +000019341 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019342 else
19343 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19344 # platform.
19345 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19346 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19347 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19348
19349 # Commands to make compiler produce verbose output that lists
19350 # what "hidden" libraries, object files and flags are used when
19351 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019352 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019353 fi
19354
19355 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19356 case $host_os in
19357 solaris2.[0-5] | solaris2.[0-5].*) ;;
19358 *)
19359 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19360 ;;
19361 esac
19362 fi
19363 ;;
19364 esac
19365 ;;
19366
19367 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19368 no_undefined_flag_CXX='${wl}-z,text'
19369 archive_cmds_need_lc_CXX=no
19370 hardcode_shlibpath_var_CXX=no
19371 runpath_var='LD_RUN_PATH'
19372
19373 case $cc_basename in
19374 CC*)
19375 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19376 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19377 ;;
19378 *)
19379 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19380 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19381 ;;
19382 esac
19383 ;;
19384
19385 sysv5* | sco3.2v5* | sco5v6*)
19386 # Note: We can NOT use -z defs as we might desire, because we do not
19387 # link with -lc, and that would cause any symbols used from libc to
19388 # always be unresolved, which means just about no library would
19389 # ever link correctly. If we're not using GNU ld we use -z text
19390 # though, which does catch some bad symbols but isn't as heavy-handed
19391 # as -z defs.
19392 no_undefined_flag_CXX='${wl}-z,text'
19393 allow_undefined_flag_CXX='${wl}-z,nodefs'
19394 archive_cmds_need_lc_CXX=no
19395 hardcode_shlibpath_var_CXX=no
19396 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19397 hardcode_libdir_separator_CXX=':'
19398 link_all_deplibs_CXX=yes
19399 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19400 runpath_var='LD_RUN_PATH'
19401
19402 case $cc_basename in
19403 CC*)
19404 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19405 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 +000019406 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19407 '"$old_archive_cmds_CXX"
19408 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19409 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019410 ;;
19411 *)
19412 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19413 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19414 ;;
19415 esac
19416 ;;
19417
19418 tandem*)
19419 case $cc_basename in
19420 NCC*)
19421 # NonStop-UX NCC 3.20
19422 # FIXME: insert proper C++ library support
19423 ld_shlibs_CXX=no
19424 ;;
19425 *)
19426 # FIXME: insert proper C++ library support
19427 ld_shlibs_CXX=no
19428 ;;
19429 esac
19430 ;;
19431
19432 vxworks*)
19433 # FIXME: insert proper C++ library support
19434 ld_shlibs_CXX=no
19435 ;;
19436
19437 *)
19438 # FIXME: insert proper C++ library support
19439 ld_shlibs_CXX=no
19440 ;;
19441 esac
19442
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19444$as_echo "$ld_shlibs_CXX" >&6; }
19445 test "$ld_shlibs_CXX" = no && can_build_shared=no
19446
19447 GCC_CXX="$GXX"
19448 LD_CXX="$LD"
19449
19450 ## CAVEAT EMPTOR:
19451 ## There is no encapsulation within the following macros, do not change
19452 ## the running order or otherwise move them around unless you know exactly
19453 ## what you are doing...
19454 # Dependencies to place before and after the object being linked:
19455predep_objects_CXX=
19456postdep_objects_CXX=
19457predeps_CXX=
19458postdeps_CXX=
19459compiler_lib_search_path_CXX=
19460
19461cat > conftest.$ac_ext <<_LT_EOF
19462class Foo
19463{
19464public:
19465 Foo (void) { a = 0; }
19466private:
19467 int a;
19468};
19469_LT_EOF
19470
cristyda16f162011-02-19 23:52:17 +000019471
19472_lt_libdeps_save_CFLAGS=$CFLAGS
19473case "$CC $CFLAGS " in #(
19474*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19475*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019476*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019477esac
19478
cristy73bd4a52010-10-05 11:24:23 +000019479if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19480 (eval $ac_compile) 2>&5
19481 ac_status=$?
19482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19483 test $ac_status = 0; }; then
19484 # Parse the compiler output and extract the necessary
19485 # objects, libraries and library flags.
19486
19487 # Sentinel used to keep track of whether or not we are before
19488 # the conftest object file.
19489 pre_test_object_deps_done=no
19490
19491 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019492 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019493
19494 -L* | -R* | -l*)
19495 # Some compilers place space between "-{L,R}" and the path.
19496 # Remove the space.
19497 if test $p = "-L" ||
19498 test $p = "-R"; then
19499 prev=$p
19500 continue
cristy73bd4a52010-10-05 11:24:23 +000019501 fi
19502
cristyda16f162011-02-19 23:52:17 +000019503 # Expand the sysroot to ease extracting the directories later.
19504 if test -z "$prev"; then
19505 case $p in
19506 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19507 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19508 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19509 esac
19510 fi
19511 case $p in
19512 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19513 esac
cristy73bd4a52010-10-05 11:24:23 +000019514 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019515 case ${prev} in
19516 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019517 # Internal compiler library paths should come after those
19518 # provided the user. The postdeps already come after the
19519 # user supplied libs so there is no need to process them.
19520 if test -z "$compiler_lib_search_path_CXX"; then
19521 compiler_lib_search_path_CXX="${prev}${p}"
19522 else
19523 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19524 fi
19525 ;;
19526 # The "-l" case would never come before the object being
19527 # linked, so don't bother handling this case.
19528 esac
19529 else
19530 if test -z "$postdeps_CXX"; then
19531 postdeps_CXX="${prev}${p}"
19532 else
19533 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19534 fi
19535 fi
cristyda16f162011-02-19 23:52:17 +000019536 prev=
cristy73bd4a52010-10-05 11:24:23 +000019537 ;;
19538
cristyda16f162011-02-19 23:52:17 +000019539 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019540 *.$objext)
19541 # This assumes that the test object file only shows up
19542 # once in the compiler output.
19543 if test "$p" = "conftest.$objext"; then
19544 pre_test_object_deps_done=yes
19545 continue
19546 fi
19547
19548 if test "$pre_test_object_deps_done" = no; then
19549 if test -z "$predep_objects_CXX"; then
19550 predep_objects_CXX="$p"
19551 else
19552 predep_objects_CXX="$predep_objects_CXX $p"
19553 fi
19554 else
19555 if test -z "$postdep_objects_CXX"; then
19556 postdep_objects_CXX="$p"
19557 else
19558 postdep_objects_CXX="$postdep_objects_CXX $p"
19559 fi
19560 fi
19561 ;;
19562
19563 *) ;; # Ignore the rest.
19564
19565 esac
19566 done
19567
19568 # Clean up.
19569 rm -f a.out a.exe
19570else
19571 echo "libtool.m4: error: problem compiling CXX test program"
19572fi
19573
19574$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019575CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019576
19577# PORTME: override above test on systems where it is broken
19578case $host_os in
19579interix[3-9]*)
19580 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19581 # hack all around it, let's just trust "g++" to DTRT.
19582 predep_objects_CXX=
19583 postdep_objects_CXX=
19584 postdeps_CXX=
19585 ;;
19586
19587linux*)
19588 case `$CC -V 2>&1 | sed 5q` in
19589 *Sun\ C*)
19590 # Sun C++ 5.9
19591
19592 # The more standards-conforming stlport4 library is
19593 # incompatible with the Cstd library. Avoid specifying
19594 # it if it's in CXXFLAGS. Ignore libCrun as
19595 # -library=stlport4 depends on it.
19596 case " $CXX $CXXFLAGS " in
19597 *" -library=stlport4 "*)
19598 solaris_use_stlport4=yes
19599 ;;
19600 esac
19601
19602 if test "$solaris_use_stlport4" != yes; then
19603 postdeps_CXX='-library=Cstd -library=Crun'
19604 fi
19605 ;;
19606 esac
19607 ;;
19608
19609solaris*)
19610 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019611 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019612 # The more standards-conforming stlport4 library is
19613 # incompatible with the Cstd library. Avoid specifying
19614 # it if it's in CXXFLAGS. Ignore libCrun as
19615 # -library=stlport4 depends on it.
19616 case " $CXX $CXXFLAGS " in
19617 *" -library=stlport4 "*)
19618 solaris_use_stlport4=yes
19619 ;;
19620 esac
19621
19622 # Adding this requires a known-good setup of shared libraries for
19623 # Sun compiler versions before 5.6, else PIC objects from an old
19624 # archive will be linked into the output, leading to subtle bugs.
19625 if test "$solaris_use_stlport4" != yes; then
19626 postdeps_CXX='-library=Cstd -library=Crun'
19627 fi
19628 ;;
19629 esac
19630 ;;
19631esac
19632
19633
19634case " $postdeps_CXX " in
19635*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19636esac
19637 compiler_lib_search_dirs_CXX=
19638if test -n "${compiler_lib_search_path_CXX}"; then
19639 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19640fi
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672 lt_prog_compiler_wl_CXX=
19673lt_prog_compiler_pic_CXX=
19674lt_prog_compiler_static_CXX=
19675
cristy73bd4a52010-10-05 11:24:23 +000019676
19677 # C++ specific cases for pic, static, wl, etc.
19678 if test "$GXX" = yes; then
19679 lt_prog_compiler_wl_CXX='-Wl,'
19680 lt_prog_compiler_static_CXX='-static'
19681
19682 case $host_os in
19683 aix*)
19684 # All AIX code is PIC.
19685 if test "$host_cpu" = ia64; then
19686 # AIX 5 now supports IA64 processor
19687 lt_prog_compiler_static_CXX='-Bstatic'
19688 fi
19689 ;;
19690
19691 amigaos*)
19692 case $host_cpu in
19693 powerpc)
19694 # see comment about AmigaOS4 .so support
19695 lt_prog_compiler_pic_CXX='-fPIC'
19696 ;;
19697 m68k)
19698 # FIXME: we need at least 68020 code to build shared libraries, but
19699 # adding the `-m68020' flag to GCC prevents building anything better,
19700 # like `-m68040'.
19701 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19702 ;;
19703 esac
19704 ;;
19705
19706 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19707 # PIC is the default for these OSes.
19708 ;;
19709 mingw* | cygwin* | os2* | pw32* | cegcc*)
19710 # This hack is so that the source file can tell whether it is being
19711 # built for inclusion in a dll (and should export symbols for example).
19712 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19713 # (--disable-auto-import) libraries
19714 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19715 ;;
19716 darwin* | rhapsody*)
19717 # PIC is the default on this platform
19718 # Common symbols not allowed in MH_DYLIB files
19719 lt_prog_compiler_pic_CXX='-fno-common'
19720 ;;
19721 *djgpp*)
19722 # DJGPP does not support shared libraries at all
19723 lt_prog_compiler_pic_CXX=
19724 ;;
cristy0c60a692010-11-04 01:09:47 +000019725 haiku*)
19726 # PIC is the default for Haiku.
19727 # The "-static" flag exists, but is broken.
19728 lt_prog_compiler_static_CXX=
19729 ;;
cristy73bd4a52010-10-05 11:24:23 +000019730 interix[3-9]*)
19731 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19732 # Instead, we relocate shared libraries at runtime.
19733 ;;
19734 sysv4*MP*)
19735 if test -d /usr/nec; then
19736 lt_prog_compiler_pic_CXX=-Kconform_pic
19737 fi
19738 ;;
19739 hpux*)
19740 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19741 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19742 # sets the default TLS model and affects inlining.
19743 case $host_cpu in
19744 hppa*64*)
19745 ;;
19746 *)
19747 lt_prog_compiler_pic_CXX='-fPIC'
19748 ;;
19749 esac
19750 ;;
19751 *qnx* | *nto*)
19752 # QNX uses GNU C++, but need to define -shared option too, otherwise
19753 # it will coredump.
19754 lt_prog_compiler_pic_CXX='-fPIC -shared'
19755 ;;
19756 *)
19757 lt_prog_compiler_pic_CXX='-fPIC'
19758 ;;
19759 esac
19760 else
19761 case $host_os in
19762 aix[4-9]*)
19763 # All AIX code is PIC.
19764 if test "$host_cpu" = ia64; then
19765 # AIX 5 now supports IA64 processor
19766 lt_prog_compiler_static_CXX='-Bstatic'
19767 else
19768 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19769 fi
19770 ;;
19771 chorus*)
19772 case $cc_basename in
19773 cxch68*)
19774 # Green Hills C++ Compiler
19775 # _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"
19776 ;;
19777 esac
19778 ;;
cristyda16f162011-02-19 23:52:17 +000019779 mingw* | cygwin* | os2* | pw32* | cegcc*)
19780 # This hack is so that the source file can tell whether it is being
19781 # built for inclusion in a dll (and should export symbols for example).
19782 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19783 ;;
cristy73bd4a52010-10-05 11:24:23 +000019784 dgux*)
19785 case $cc_basename in
19786 ec++*)
19787 lt_prog_compiler_pic_CXX='-KPIC'
19788 ;;
19789 ghcx*)
19790 # Green Hills C++ Compiler
19791 lt_prog_compiler_pic_CXX='-pic'
19792 ;;
19793 *)
19794 ;;
19795 esac
19796 ;;
19797 freebsd* | dragonfly*)
19798 # FreeBSD uses GNU C++
19799 ;;
19800 hpux9* | hpux10* | hpux11*)
19801 case $cc_basename in
19802 CC*)
19803 lt_prog_compiler_wl_CXX='-Wl,'
19804 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19805 if test "$host_cpu" != ia64; then
19806 lt_prog_compiler_pic_CXX='+Z'
19807 fi
19808 ;;
19809 aCC*)
19810 lt_prog_compiler_wl_CXX='-Wl,'
19811 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19812 case $host_cpu in
19813 hppa*64*|ia64*)
19814 # +Z the default
19815 ;;
19816 *)
19817 lt_prog_compiler_pic_CXX='+Z'
19818 ;;
19819 esac
19820 ;;
19821 *)
19822 ;;
19823 esac
19824 ;;
19825 interix*)
19826 # This is c89, which is MS Visual C++ (no shared libs)
19827 # Anyone wants to do a port?
19828 ;;
19829 irix5* | irix6* | nonstopux*)
19830 case $cc_basename in
19831 CC*)
19832 lt_prog_compiler_wl_CXX='-Wl,'
19833 lt_prog_compiler_static_CXX='-non_shared'
19834 # CC pic flag -KPIC is the default.
19835 ;;
19836 *)
19837 ;;
19838 esac
19839 ;;
cristy0c60a692010-11-04 01:09:47 +000019840 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019841 case $cc_basename in
19842 KCC*)
19843 # KAI C++ Compiler
19844 lt_prog_compiler_wl_CXX='--backend -Wl,'
19845 lt_prog_compiler_pic_CXX='-fPIC'
19846 ;;
19847 ecpc* )
19848 # old Intel C++ for x86_64 which still supported -KPIC.
19849 lt_prog_compiler_wl_CXX='-Wl,'
19850 lt_prog_compiler_pic_CXX='-KPIC'
19851 lt_prog_compiler_static_CXX='-static'
19852 ;;
19853 icpc* )
19854 # Intel C++, used to be incompatible with GCC.
19855 # ICC 10 doesn't accept -KPIC any more.
19856 lt_prog_compiler_wl_CXX='-Wl,'
19857 lt_prog_compiler_pic_CXX='-fPIC'
19858 lt_prog_compiler_static_CXX='-static'
19859 ;;
19860 pgCC* | pgcpp*)
19861 # Portland Group C++ compiler
19862 lt_prog_compiler_wl_CXX='-Wl,'
19863 lt_prog_compiler_pic_CXX='-fpic'
19864 lt_prog_compiler_static_CXX='-Bstatic'
19865 ;;
19866 cxx*)
19867 # Compaq C++
19868 # Make sure the PIC flag is empty. It appears that all Alpha
19869 # Linux and Compaq Tru64 Unix objects are PIC.
19870 lt_prog_compiler_pic_CXX=
19871 lt_prog_compiler_static_CXX='-non_shared'
19872 ;;
cristy0c60a692010-11-04 01:09:47 +000019873 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19874 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019875 lt_prog_compiler_wl_CXX='-Wl,'
19876 lt_prog_compiler_pic_CXX='-qpic'
19877 lt_prog_compiler_static_CXX='-qstaticlink'
19878 ;;
19879 *)
19880 case `$CC -V 2>&1 | sed 5q` in
19881 *Sun\ C*)
19882 # Sun C++ 5.9
19883 lt_prog_compiler_pic_CXX='-KPIC'
19884 lt_prog_compiler_static_CXX='-Bstatic'
19885 lt_prog_compiler_wl_CXX='-Qoption ld '
19886 ;;
19887 esac
19888 ;;
19889 esac
19890 ;;
19891 lynxos*)
19892 ;;
19893 m88k*)
19894 ;;
19895 mvs*)
19896 case $cc_basename in
19897 cxx*)
19898 lt_prog_compiler_pic_CXX='-W c,exportall'
19899 ;;
19900 *)
19901 ;;
19902 esac
19903 ;;
19904 netbsd*)
19905 ;;
19906 *qnx* | *nto*)
19907 # QNX uses GNU C++, but need to define -shared option too, otherwise
19908 # it will coredump.
19909 lt_prog_compiler_pic_CXX='-fPIC -shared'
19910 ;;
19911 osf3* | osf4* | osf5*)
19912 case $cc_basename in
19913 KCC*)
19914 lt_prog_compiler_wl_CXX='--backend -Wl,'
19915 ;;
19916 RCC*)
19917 # Rational C++ 2.4.1
19918 lt_prog_compiler_pic_CXX='-pic'
19919 ;;
19920 cxx*)
19921 # Digital/Compaq C++
19922 lt_prog_compiler_wl_CXX='-Wl,'
19923 # Make sure the PIC flag is empty. It appears that all Alpha
19924 # Linux and Compaq Tru64 Unix objects are PIC.
19925 lt_prog_compiler_pic_CXX=
19926 lt_prog_compiler_static_CXX='-non_shared'
19927 ;;
19928 *)
19929 ;;
19930 esac
19931 ;;
19932 psos*)
19933 ;;
19934 solaris*)
19935 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019936 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019937 # Sun C++ 4.2, 5.x and Centerline C++
19938 lt_prog_compiler_pic_CXX='-KPIC'
19939 lt_prog_compiler_static_CXX='-Bstatic'
19940 lt_prog_compiler_wl_CXX='-Qoption ld '
19941 ;;
19942 gcx*)
19943 # Green Hills C++ Compiler
19944 lt_prog_compiler_pic_CXX='-PIC'
19945 ;;
19946 *)
19947 ;;
19948 esac
19949 ;;
19950 sunos4*)
19951 case $cc_basename in
19952 CC*)
19953 # Sun C++ 4.x
19954 lt_prog_compiler_pic_CXX='-pic'
19955 lt_prog_compiler_static_CXX='-Bstatic'
19956 ;;
19957 lcc*)
19958 # Lucid
19959 lt_prog_compiler_pic_CXX='-pic'
19960 ;;
19961 *)
19962 ;;
19963 esac
19964 ;;
19965 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19966 case $cc_basename in
19967 CC*)
19968 lt_prog_compiler_wl_CXX='-Wl,'
19969 lt_prog_compiler_pic_CXX='-KPIC'
19970 lt_prog_compiler_static_CXX='-Bstatic'
19971 ;;
19972 esac
19973 ;;
19974 tandem*)
19975 case $cc_basename in
19976 NCC*)
19977 # NonStop-UX NCC 3.20
19978 lt_prog_compiler_pic_CXX='-KPIC'
19979 ;;
19980 *)
19981 ;;
19982 esac
19983 ;;
19984 vxworks*)
19985 ;;
19986 *)
19987 lt_prog_compiler_can_build_shared_CXX=no
19988 ;;
19989 esac
19990 fi
19991
19992case $host_os in
19993 # For platforms which do not support PIC, -DPIC is meaningless:
19994 *djgpp*)
19995 lt_prog_compiler_pic_CXX=
19996 ;;
19997 *)
19998 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19999 ;;
20000esac
cristy73bd4a52010-10-05 11:24:23 +000020001
cristyda16f162011-02-19 23:52:17 +000020002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20003$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20004if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20005 $as_echo_n "(cached) " >&6
20006else
20007 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20008fi
20009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20010$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20011lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020012
20013#
20014# Check to make sure the PIC flag actually works.
20015#
20016if test -n "$lt_prog_compiler_pic_CXX"; then
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20018$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020019if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020020 $as_echo_n "(cached) " >&6
20021else
20022 lt_cv_prog_compiler_pic_works_CXX=no
20023 ac_outfile=conftest.$ac_objext
20024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20025 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20026 # Insert the option either (1) after the last *FLAGS variable, or
20027 # (2) before a word containing "conftest.", or (3) at the end.
20028 # Note that $ac_compile itself does not contain backslashes and begins
20029 # with a dollar sign (not a hyphen), so the echo should work correctly.
20030 # The option is referenced via a variable to avoid confusing sed.
20031 lt_compile=`echo "$ac_compile" | $SED \
20032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20034 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020035 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020036 (eval "$lt_compile" 2>conftest.err)
20037 ac_status=$?
20038 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020040 if (exit $ac_status) && test -s "$ac_outfile"; then
20041 # The compiler can only warn and ignore the option if not recognized
20042 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020043 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20045 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20046 lt_cv_prog_compiler_pic_works_CXX=yes
20047 fi
20048 fi
20049 $RM conftest*
20050
20051fi
20052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20053$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20054
20055if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20056 case $lt_prog_compiler_pic_CXX in
20057 "" | " "*) ;;
20058 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20059 esac
20060else
20061 lt_prog_compiler_pic_CXX=
20062 lt_prog_compiler_can_build_shared_CXX=no
20063fi
20064
20065fi
20066
20067
20068
cristyda16f162011-02-19 23:52:17 +000020069
20070
cristy73bd4a52010-10-05 11:24:23 +000020071#
20072# Check to make sure the static flag actually works.
20073#
20074wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20076$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020077if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020078 $as_echo_n "(cached) " >&6
20079else
20080 lt_cv_prog_compiler_static_works_CXX=no
20081 save_LDFLAGS="$LDFLAGS"
20082 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20083 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20084 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20085 # The linker can only warn and ignore the option if not recognized
20086 # So say no if there are warnings
20087 if test -s conftest.err; then
20088 # Append any errors to the config.log.
20089 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020090 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020091 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20092 if diff conftest.exp conftest.er2 >/dev/null; then
20093 lt_cv_prog_compiler_static_works_CXX=yes
20094 fi
20095 else
20096 lt_cv_prog_compiler_static_works_CXX=yes
20097 fi
20098 fi
20099 $RM -r conftest*
20100 LDFLAGS="$save_LDFLAGS"
20101
20102fi
20103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20104$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20105
20106if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20107 :
20108else
20109 lt_prog_compiler_static_CXX=
20110fi
20111
20112
20113
20114
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20116$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020117if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020118 $as_echo_n "(cached) " >&6
20119else
20120 lt_cv_prog_compiler_c_o_CXX=no
20121 $RM -r conftest 2>/dev/null
20122 mkdir conftest
20123 cd conftest
20124 mkdir out
20125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20126
20127 lt_compiler_flag="-o out/conftest2.$ac_objext"
20128 # Insert the option either (1) after the last *FLAGS variable, or
20129 # (2) before a word containing "conftest.", or (3) at the end.
20130 # Note that $ac_compile itself does not contain backslashes and begins
20131 # with a dollar sign (not a hyphen), so the echo should work correctly.
20132 lt_compile=`echo "$ac_compile" | $SED \
20133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20135 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020137 (eval "$lt_compile" 2>out/conftest.err)
20138 ac_status=$?
20139 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020141 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20142 then
20143 # The compiler can only warn and ignore the option if not recognized
20144 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020145 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020146 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20147 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20148 lt_cv_prog_compiler_c_o_CXX=yes
20149 fi
20150 fi
20151 chmod u+w . 2>&5
20152 $RM conftest*
20153 # SGI C++ compiler will create directory out/ii_files/ for
20154 # template instantiation
20155 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20156 $RM out/* && rmdir out
20157 cd ..
20158 $RM -r conftest
20159 $RM conftest*
20160
20161fi
20162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20163$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20164
20165
20166
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20168$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020169if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020170 $as_echo_n "(cached) " >&6
20171else
20172 lt_cv_prog_compiler_c_o_CXX=no
20173 $RM -r conftest 2>/dev/null
20174 mkdir conftest
20175 cd conftest
20176 mkdir out
20177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20178
20179 lt_compiler_flag="-o out/conftest2.$ac_objext"
20180 # Insert the option either (1) after the last *FLAGS variable, or
20181 # (2) before a word containing "conftest.", or (3) at the end.
20182 # Note that $ac_compile itself does not contain backslashes and begins
20183 # with a dollar sign (not a hyphen), so the echo should work correctly.
20184 lt_compile=`echo "$ac_compile" | $SED \
20185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20187 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020188 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020189 (eval "$lt_compile" 2>out/conftest.err)
20190 ac_status=$?
20191 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020193 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20194 then
20195 # The compiler can only warn and ignore the option if not recognized
20196 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020197 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020198 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20199 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20200 lt_cv_prog_compiler_c_o_CXX=yes
20201 fi
20202 fi
20203 chmod u+w . 2>&5
20204 $RM conftest*
20205 # SGI C++ compiler will create directory out/ii_files/ for
20206 # template instantiation
20207 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20208 $RM out/* && rmdir out
20209 cd ..
20210 $RM -r conftest
20211 $RM conftest*
20212
20213fi
20214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20215$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20216
20217
20218
20219
20220hard_links="nottested"
20221if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20222 # do not overwrite the value of need_locks provided by the user
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20224$as_echo_n "checking if we can lock with hard links... " >&6; }
20225 hard_links=yes
20226 $RM conftest*
20227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20228 touch conftest.a
20229 ln conftest.a conftest.b 2>&5 || hard_links=no
20230 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20232$as_echo "$hard_links" >&6; }
20233 if test "$hard_links" = no; then
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20235$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20236 need_locks=warn
20237 fi
20238else
20239 need_locks=no
20240fi
20241
20242
20243
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20245$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20246
20247 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020248 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020249 case $host_os in
20250 aix[4-9]*)
20251 # If we're using GNU nm, then we don't want the "-C" option.
20252 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020253 # Also, AIX nm treats weak defined symbols like other global defined
20254 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020255 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020256 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 +000020257 else
20258 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'
20259 fi
20260 ;;
20261 pw32*)
20262 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020263 ;;
cristy73bd4a52010-10-05 11:24:23 +000020264 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020265 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020266 cl*)
20267 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20268 ;;
cristyda16f162011-02-19 23:52:17 +000020269 *)
20270 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'
20271 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20272 ;;
20273 esac
20274 ;;
cristy73bd4a52010-10-05 11:24:23 +000020275 *)
20276 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020277 ;;
cristy73bd4a52010-10-05 11:24:23 +000020278 esac
cristy73bd4a52010-10-05 11:24:23 +000020279
20280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20281$as_echo "$ld_shlibs_CXX" >&6; }
20282test "$ld_shlibs_CXX" = no && can_build_shared=no
20283
20284with_gnu_ld_CXX=$with_gnu_ld
20285
20286
20287
20288
20289
20290
20291#
20292# Do we need to explicitly link libc?
20293#
20294case "x$archive_cmds_need_lc_CXX" in
20295x|xyes)
20296 # Assume -lc should be added
20297 archive_cmds_need_lc_CXX=yes
20298
20299 if test "$enable_shared" = yes && test "$GCC" = yes; then
20300 case $archive_cmds_CXX in
20301 *'~'*)
20302 # FIXME: we may have to deal with multi-command sequences.
20303 ;;
20304 '$CC '*)
20305 # Test whether the compiler implicitly links with -lc since on some
20306 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20307 # to ld, don't add -lc before -lgcc.
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20309$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020310if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020311 $as_echo_n "(cached) " >&6
20312else
20313 $RM conftest*
20314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020315
cristy0c60a692010-11-04 01:09:47 +000020316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020317 (eval $ac_compile) 2>&5
20318 ac_status=$?
20319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20320 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020321 soname=conftest
20322 lib=conftest
20323 libobjs=conftest.$ac_objext
20324 deplibs=
20325 wl=$lt_prog_compiler_wl_CXX
20326 pic_flag=$lt_prog_compiler_pic_CXX
20327 compiler_flags=-v
20328 linker_flags=-v
20329 verstring=
20330 output_objdir=.
20331 libname=conftest
20332 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20333 allow_undefined_flag_CXX=
20334 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 +000020335 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20336 ac_status=$?
20337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20338 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020339 then
20340 lt_cv_archive_cmds_need_lc_CXX=no
20341 else
20342 lt_cv_archive_cmds_need_lc_CXX=yes
20343 fi
20344 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20345 else
20346 cat conftest.err 1>&5
20347 fi
20348 $RM conftest*
20349
20350fi
20351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20352$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20353 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020354 ;;
20355 esac
20356 fi
20357 ;;
20358esac
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
cristy73bd4a52010-10-05 11:24:23 +000020421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20422$as_echo_n "checking dynamic linker characteristics... " >&6; }
20423
20424library_names_spec=
20425libname_spec='lib$name'
20426soname_spec=
20427shrext_cmds=".so"
20428postinstall_cmds=
20429postuninstall_cmds=
20430finish_cmds=
20431finish_eval=
20432shlibpath_var=
20433shlibpath_overrides_runpath=unknown
20434version_type=none
20435dynamic_linker="$host_os ld.so"
20436sys_lib_dlsearch_path_spec="/lib /usr/lib"
20437need_lib_prefix=unknown
20438hardcode_into_libs=no
20439
20440# when you set need_version to no, make sure it does not cause -set_version
20441# flags to be left without arguments
20442need_version=unknown
20443
20444case $host_os in
20445aix3*)
cristy99bd5232011-12-07 14:38:20 +000020446 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020447 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20448 shlibpath_var=LIBPATH
20449
20450 # AIX 3 has no versioning support, so we append a major version to the name.
20451 soname_spec='${libname}${release}${shared_ext}$major'
20452 ;;
20453
20454aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020455 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020456 need_lib_prefix=no
20457 need_version=no
20458 hardcode_into_libs=yes
20459 if test "$host_cpu" = ia64; then
20460 # AIX 5 supports IA64
20461 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20462 shlibpath_var=LD_LIBRARY_PATH
20463 else
20464 # With GCC up to 2.95.x, collect2 would create an import file
20465 # for dependence libraries. The import file would start with
20466 # the line `#! .'. This would cause the generated library to
20467 # depend on `.', always an invalid library. This was fixed in
20468 # development snapshots of GCC prior to 3.0.
20469 case $host_os in
20470 aix4 | aix4.[01] | aix4.[01].*)
20471 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20472 echo ' yes '
20473 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20474 :
20475 else
20476 can_build_shared=no
20477 fi
20478 ;;
20479 esac
20480 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20481 # soname into executable. Probably we can add versioning support to
20482 # collect2, so additional links can be useful in future.
20483 if test "$aix_use_runtimelinking" = yes; then
20484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20485 # instead of lib<name>.a to let people know that these are not
20486 # typical AIX shared libraries.
20487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20488 else
20489 # We preserve .a as extension for shared libraries through AIX4.2
20490 # and later when we are not doing run time linking.
20491 library_names_spec='${libname}${release}.a $libname.a'
20492 soname_spec='${libname}${release}${shared_ext}$major'
20493 fi
20494 shlibpath_var=LIBPATH
20495 fi
20496 ;;
20497
20498amigaos*)
20499 case $host_cpu in
20500 powerpc)
20501 # Since July 2007 AmigaOS4 officially supports .so libraries.
20502 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20504 ;;
20505 m68k)
20506 library_names_spec='$libname.ixlibrary $libname.a'
20507 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020508 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 +000020509 ;;
20510 esac
20511 ;;
20512
20513beos*)
20514 library_names_spec='${libname}${shared_ext}'
20515 dynamic_linker="$host_os ld.so"
20516 shlibpath_var=LIBRARY_PATH
20517 ;;
20518
20519bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020520 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020521 need_version=no
20522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20523 soname_spec='${libname}${release}${shared_ext}$major'
20524 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20525 shlibpath_var=LD_LIBRARY_PATH
20526 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20527 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20528 # the default ld.so.conf also contains /usr/contrib/lib and
20529 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20530 # libtool to hard-code these into programs
20531 ;;
20532
20533cygwin* | mingw* | pw32* | cegcc*)
20534 version_type=windows
20535 shrext_cmds=".dll"
20536 need_version=no
20537 need_lib_prefix=no
20538
cristyda16f162011-02-19 23:52:17 +000020539 case $GCC,$cc_basename in
20540 yes,*)
20541 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020542 library_names_spec='$libname.dll.a'
20543 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20544 postinstall_cmds='base_file=`basename \${file}`~
20545 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20546 dldir=$destdir/`dirname \$dlpath`~
20547 test -d \$dldir || mkdir -p \$dldir~
20548 $install_prog $dir/$dlname \$dldir/$dlname~
20549 chmod a+x \$dldir/$dlname~
20550 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20551 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20552 fi'
20553 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20554 dlpath=$dir/\$dldll~
20555 $RM \$dlpath'
20556 shlibpath_overrides_runpath=yes
20557
20558 case $host_os in
20559 cygwin*)
20560 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20561 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020562
cristy73bd4a52010-10-05 11:24:23 +000020563 ;;
20564 mingw* | cegcc*)
20565 # MinGW DLLs use traditional 'lib' prefix
20566 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020567 ;;
20568 pw32*)
20569 # pw32 DLLs use 'pw' prefix rather than 'lib'
20570 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20571 ;;
20572 esac
cristyda16f162011-02-19 23:52:17 +000020573 dynamic_linker='Win32 ld.exe'
20574 ;;
20575
20576 *,cl*)
20577 # Native MSVC
20578 libname_spec='$name'
20579 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20580 library_names_spec='${libname}.dll.lib'
20581
20582 case $build_os in
20583 mingw*)
20584 sys_lib_search_path_spec=
20585 lt_save_ifs=$IFS
20586 IFS=';'
20587 for lt_path in $LIB
20588 do
20589 IFS=$lt_save_ifs
20590 # Let DOS variable expansion print the short 8.3 style file name.
20591 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20592 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20593 done
20594 IFS=$lt_save_ifs
20595 # Convert to MSYS style.
20596 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20597 ;;
20598 cygwin*)
20599 # Convert to unix form, then to dos form, then back to unix form
20600 # but this time dos style (no spaces!) so that the unix form looks
20601 # like /cygdrive/c/PROGRA~1:/cygdr...
20602 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20603 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20604 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20605 ;;
20606 *)
20607 sys_lib_search_path_spec="$LIB"
20608 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20609 # It is most probably a Windows format PATH.
20610 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20611 else
20612 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20613 fi
20614 # FIXME: find the short name or the path components, as spaces are
20615 # common. (e.g. "Program Files" -> "PROGRA~1")
20616 ;;
20617 esac
20618
20619 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20620 postinstall_cmds='base_file=`basename \${file}`~
20621 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20622 dldir=$destdir/`dirname \$dlpath`~
20623 test -d \$dldir || mkdir -p \$dldir~
20624 $install_prog $dir/$dlname \$dldir/$dlname'
20625 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20626 dlpath=$dir/\$dldll~
20627 $RM \$dlpath'
20628 shlibpath_overrides_runpath=yes
20629 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020630 ;;
20631
20632 *)
cristyda16f162011-02-19 23:52:17 +000020633 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020634 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020635 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020636 ;;
20637 esac
cristy73bd4a52010-10-05 11:24:23 +000020638 # FIXME: first we should search . and the directory the executable is in
20639 shlibpath_var=PATH
20640 ;;
20641
20642darwin* | rhapsody*)
20643 dynamic_linker="$host_os dyld"
20644 version_type=darwin
20645 need_lib_prefix=no
20646 need_version=no
20647 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20648 soname_spec='${libname}${release}${major}$shared_ext'
20649 shlibpath_overrides_runpath=yes
20650 shlibpath_var=DYLD_LIBRARY_PATH
20651 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20652
20653 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20654 ;;
20655
20656dgux*)
cristy99bd5232011-12-07 14:38:20 +000020657 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020658 need_lib_prefix=no
20659 need_version=no
20660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20661 soname_spec='${libname}${release}${shared_ext}$major'
20662 shlibpath_var=LD_LIBRARY_PATH
20663 ;;
20664
cristy73bd4a52010-10-05 11:24:23 +000020665freebsd* | dragonfly*)
20666 # DragonFly does not have aout. When/if they implement a new
20667 # versioning mechanism, adjust this.
20668 if test -x /usr/bin/objformat; then
20669 objformat=`/usr/bin/objformat`
20670 else
20671 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020672 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020673 *) objformat=elf ;;
20674 esac
20675 fi
20676 version_type=freebsd-$objformat
20677 case $version_type in
20678 freebsd-elf*)
20679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20680 need_version=no
20681 need_lib_prefix=no
20682 ;;
20683 freebsd-*)
20684 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20685 need_version=yes
20686 ;;
20687 esac
20688 shlibpath_var=LD_LIBRARY_PATH
20689 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020690 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020691 shlibpath_overrides_runpath=yes
20692 ;;
20693 freebsd3.[01]* | freebsdelf3.[01]*)
20694 shlibpath_overrides_runpath=yes
20695 hardcode_into_libs=yes
20696 ;;
20697 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20698 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20699 shlibpath_overrides_runpath=no
20700 hardcode_into_libs=yes
20701 ;;
20702 *) # from 4.6 on, and DragonFly
20703 shlibpath_overrides_runpath=yes
20704 hardcode_into_libs=yes
20705 ;;
20706 esac
20707 ;;
20708
20709gnu*)
cristy99bd5232011-12-07 14:38:20 +000020710 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020711 need_lib_prefix=no
20712 need_version=no
20713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20714 soname_spec='${libname}${release}${shared_ext}$major'
20715 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020716 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020717 hardcode_into_libs=yes
20718 ;;
20719
cristy0c60a692010-11-04 01:09:47 +000020720haiku*)
cristy99bd5232011-12-07 14:38:20 +000020721 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020722 need_lib_prefix=no
20723 need_version=no
20724 dynamic_linker="$host_os runtime_loader"
20725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20726 soname_spec='${libname}${release}${shared_ext}$major'
20727 shlibpath_var=LIBRARY_PATH
20728 shlibpath_overrides_runpath=yes
20729 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20730 hardcode_into_libs=yes
20731 ;;
20732
cristy73bd4a52010-10-05 11:24:23 +000020733hpux9* | hpux10* | hpux11*)
20734 # Give a soname corresponding to the major version so that dld.sl refuses to
20735 # link against other versions.
20736 version_type=sunos
20737 need_lib_prefix=no
20738 need_version=no
20739 case $host_cpu in
20740 ia64*)
20741 shrext_cmds='.so'
20742 hardcode_into_libs=yes
20743 dynamic_linker="$host_os dld.so"
20744 shlibpath_var=LD_LIBRARY_PATH
20745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20747 soname_spec='${libname}${release}${shared_ext}$major'
20748 if test "X$HPUX_IA64_MODE" = X32; then
20749 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20750 else
20751 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20752 fi
20753 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20754 ;;
20755 hppa*64*)
20756 shrext_cmds='.sl'
20757 hardcode_into_libs=yes
20758 dynamic_linker="$host_os dld.sl"
20759 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20760 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20762 soname_spec='${libname}${release}${shared_ext}$major'
20763 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20765 ;;
20766 *)
20767 shrext_cmds='.sl'
20768 dynamic_linker="$host_os dld.sl"
20769 shlibpath_var=SHLIB_PATH
20770 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20772 soname_spec='${libname}${release}${shared_ext}$major'
20773 ;;
20774 esac
cristy0c60a692010-11-04 01:09:47 +000020775 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020776 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020777 # or fails outright, so override atomically:
20778 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020779 ;;
20780
20781interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020782 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020783 need_lib_prefix=no
20784 need_version=no
20785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20786 soname_spec='${libname}${release}${shared_ext}$major'
20787 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20788 shlibpath_var=LD_LIBRARY_PATH
20789 shlibpath_overrides_runpath=no
20790 hardcode_into_libs=yes
20791 ;;
20792
20793irix5* | irix6* | nonstopux*)
20794 case $host_os in
20795 nonstopux*) version_type=nonstopux ;;
20796 *)
20797 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020798 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020799 else
20800 version_type=irix
20801 fi ;;
20802 esac
20803 need_lib_prefix=no
20804 need_version=no
20805 soname_spec='${libname}${release}${shared_ext}$major'
20806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20807 case $host_os in
20808 irix5* | nonstopux*)
20809 libsuff= shlibsuff=
20810 ;;
20811 *)
20812 case $LD in # libtool.m4 will add one of these switches to LD
20813 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20814 libsuff= shlibsuff= libmagic=32-bit;;
20815 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20816 libsuff=32 shlibsuff=N32 libmagic=N32;;
20817 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20818 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20819 *) libsuff= shlibsuff= libmagic=never-match;;
20820 esac
20821 ;;
20822 esac
20823 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20824 shlibpath_overrides_runpath=no
20825 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20826 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20827 hardcode_into_libs=yes
20828 ;;
20829
20830# No shared lib support for Linux oldld, aout, or coff.
20831linux*oldld* | linux*aout* | linux*coff*)
20832 dynamic_linker=no
20833 ;;
20834
cristy99bd5232011-12-07 14:38:20 +000020835# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020836linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020837 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020838 need_lib_prefix=no
20839 need_version=no
20840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20841 soname_spec='${libname}${release}${shared_ext}$major'
20842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20843 shlibpath_var=LD_LIBRARY_PATH
20844 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020845
cristy73bd4a52010-10-05 11:24:23 +000020846 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020847 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020848 $as_echo_n "(cached) " >&6
20849else
20850 lt_cv_shlibpath_overrides_runpath=no
20851 save_LDFLAGS=$LDFLAGS
20852 save_libdir=$libdir
20853 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20854 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020856/* end confdefs.h. */
20857
20858int
20859main ()
20860{
20861
20862 ;
20863 return 0;
20864}
20865_ACEOF
20866if ac_fn_cxx_try_link "$LINENO"; then :
20867 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020868 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020869fi
20870fi
20871rm -f core conftest.err conftest.$ac_objext \
20872 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020873 LDFLAGS=$save_LDFLAGS
20874 libdir=$save_libdir
20875
20876fi
20877
20878 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020879
20880 # This implies no fast_install, which is unacceptable.
20881 # Some rework will be needed to allow for fast_install
20882 # before this can be enabled.
20883 hardcode_into_libs=yes
20884
20885 # Add ABI-specific directories to the system library path.
20886 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20887
20888 # Append ld.so.conf contents to the search path
20889 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020890 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 +000020891 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020892
cristy73bd4a52010-10-05 11:24:23 +000020893 fi
20894
20895 # We used to test for /lib/ld.so.1 and disable shared libraries on
20896 # powerpc, because MkLinux only supported shared libraries with the
20897 # GNU dynamic linker. Since this was broken with cross compilers,
20898 # most powerpc-linux boxes support dynamic linking these days and
20899 # people can always --disable-shared, the test was removed, and we
20900 # assume the GNU/Linux dynamic linker is in use.
20901 dynamic_linker='GNU/Linux ld.so'
20902 ;;
20903
20904netbsd*)
20905 version_type=sunos
20906 need_lib_prefix=no
20907 need_version=no
20908 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20911 dynamic_linker='NetBSD (a.out) ld.so'
20912 else
20913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20914 soname_spec='${libname}${release}${shared_ext}$major'
20915 dynamic_linker='NetBSD ld.elf_so'
20916 fi
20917 shlibpath_var=LD_LIBRARY_PATH
20918 shlibpath_overrides_runpath=yes
20919 hardcode_into_libs=yes
20920 ;;
20921
20922newsos6)
cristy99bd5232011-12-07 14:38:20 +000020923 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20925 shlibpath_var=LD_LIBRARY_PATH
20926 shlibpath_overrides_runpath=yes
20927 ;;
20928
20929*nto* | *qnx*)
20930 version_type=qnx
20931 need_lib_prefix=no
20932 need_version=no
20933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20934 soname_spec='${libname}${release}${shared_ext}$major'
20935 shlibpath_var=LD_LIBRARY_PATH
20936 shlibpath_overrides_runpath=no
20937 hardcode_into_libs=yes
20938 dynamic_linker='ldqnx.so'
20939 ;;
20940
20941openbsd*)
20942 version_type=sunos
20943 sys_lib_dlsearch_path_spec="/usr/lib"
20944 need_lib_prefix=no
20945 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20946 case $host_os in
20947 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20948 *) need_version=no ;;
20949 esac
20950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20952 shlibpath_var=LD_LIBRARY_PATH
20953 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20954 case $host_os in
20955 openbsd2.[89] | openbsd2.[89].*)
20956 shlibpath_overrides_runpath=no
20957 ;;
20958 *)
20959 shlibpath_overrides_runpath=yes
20960 ;;
20961 esac
20962 else
20963 shlibpath_overrides_runpath=yes
20964 fi
20965 ;;
20966
20967os2*)
20968 libname_spec='$name'
20969 shrext_cmds=".dll"
20970 need_lib_prefix=no
20971 library_names_spec='$libname${shared_ext} $libname.a'
20972 dynamic_linker='OS/2 ld.exe'
20973 shlibpath_var=LIBPATH
20974 ;;
20975
20976osf3* | osf4* | osf5*)
20977 version_type=osf
20978 need_lib_prefix=no
20979 need_version=no
20980 soname_spec='${libname}${release}${shared_ext}$major'
20981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20982 shlibpath_var=LD_LIBRARY_PATH
20983 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20984 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20985 ;;
20986
20987rdos*)
20988 dynamic_linker=no
20989 ;;
20990
20991solaris*)
cristy99bd5232011-12-07 14:38:20 +000020992 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020993 need_lib_prefix=no
20994 need_version=no
20995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20996 soname_spec='${libname}${release}${shared_ext}$major'
20997 shlibpath_var=LD_LIBRARY_PATH
20998 shlibpath_overrides_runpath=yes
20999 hardcode_into_libs=yes
21000 # ldd complains unless libraries are executable
21001 postinstall_cmds='chmod +x $lib'
21002 ;;
21003
21004sunos4*)
21005 version_type=sunos
21006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21007 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21008 shlibpath_var=LD_LIBRARY_PATH
21009 shlibpath_overrides_runpath=yes
21010 if test "$with_gnu_ld" = yes; then
21011 need_lib_prefix=no
21012 fi
21013 need_version=yes
21014 ;;
21015
21016sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021017 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21019 soname_spec='${libname}${release}${shared_ext}$major'
21020 shlibpath_var=LD_LIBRARY_PATH
21021 case $host_vendor in
21022 sni)
21023 shlibpath_overrides_runpath=no
21024 need_lib_prefix=no
21025 runpath_var=LD_RUN_PATH
21026 ;;
21027 siemens)
21028 need_lib_prefix=no
21029 ;;
21030 motorola)
21031 need_lib_prefix=no
21032 need_version=no
21033 shlibpath_overrides_runpath=no
21034 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21035 ;;
21036 esac
21037 ;;
21038
21039sysv4*MP*)
21040 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021041 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021042 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21043 soname_spec='$libname${shared_ext}.$major'
21044 shlibpath_var=LD_LIBRARY_PATH
21045 fi
21046 ;;
21047
21048sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21049 version_type=freebsd-elf
21050 need_lib_prefix=no
21051 need_version=no
21052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21053 soname_spec='${libname}${release}${shared_ext}$major'
21054 shlibpath_var=LD_LIBRARY_PATH
21055 shlibpath_overrides_runpath=yes
21056 hardcode_into_libs=yes
21057 if test "$with_gnu_ld" = yes; then
21058 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21059 else
21060 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21061 case $host_os in
21062 sco3.2v5*)
21063 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21064 ;;
21065 esac
21066 fi
21067 sys_lib_dlsearch_path_spec='/usr/lib'
21068 ;;
21069
21070tpf*)
21071 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021072 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021073 need_lib_prefix=no
21074 need_version=no
21075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21076 shlibpath_var=LD_LIBRARY_PATH
21077 shlibpath_overrides_runpath=no
21078 hardcode_into_libs=yes
21079 ;;
21080
21081uts4*)
cristy99bd5232011-12-07 14:38:20 +000021082 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21084 soname_spec='${libname}${release}${shared_ext}$major'
21085 shlibpath_var=LD_LIBRARY_PATH
21086 ;;
21087
21088*)
21089 dynamic_linker=no
21090 ;;
21091esac
21092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21093$as_echo "$dynamic_linker" >&6; }
21094test "$dynamic_linker" = no && can_build_shared=no
21095
21096variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21097if test "$GCC" = yes; then
21098 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21099fi
21100
21101if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21102 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21103fi
21104if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21105 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21106fi
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
cristy0c60a692010-11-04 01:09:47 +000021143
21144
cristy73bd4a52010-10-05 11:24:23 +000021145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21146$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21147hardcode_action_CXX=
21148if test -n "$hardcode_libdir_flag_spec_CXX" ||
21149 test -n "$runpath_var_CXX" ||
21150 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21151
21152 # We can hardcode non-existent directories.
21153 if test "$hardcode_direct_CXX" != no &&
21154 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21155 # have to relink, otherwise we might link with an installed library
21156 # when we should be linking with a yet-to-be-installed one
21157 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21158 test "$hardcode_minus_L_CXX" != no; then
21159 # Linking always hardcodes the temporary library directory.
21160 hardcode_action_CXX=relink
21161 else
21162 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21163 hardcode_action_CXX=immediate
21164 fi
21165else
21166 # We cannot hardcode anything, or else we can only hardcode existing
21167 # directories.
21168 hardcode_action_CXX=unsupported
21169fi
21170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21171$as_echo "$hardcode_action_CXX" >&6; }
21172
21173if test "$hardcode_action_CXX" = relink ||
21174 test "$inherit_rpath_CXX" = yes; then
21175 # Fast installation is not supported
21176 enable_fast_install=no
21177elif test "$shlibpath_overrides_runpath" = yes ||
21178 test "$enable_shared" = no; then
21179 # Fast installation is not necessary
21180 enable_fast_install=needless
21181fi
21182
21183
21184
21185
21186
21187
21188
21189 fi # test -n "$compiler"
21190
21191 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021192 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021193 LDCXX=$LD
21194 LD=$lt_save_LD
21195 GCC=$lt_save_GCC
21196 with_gnu_ld=$lt_save_with_gnu_ld
21197 lt_cv_path_LDCXX=$lt_cv_path_LD
21198 lt_cv_path_LD=$lt_save_path_LD
21199 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21200 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21201fi # test "$_lt_caught_CXX_error" != yes
21202
21203ac_ext=c
21204ac_cpp='$CPP $CPPFLAGS'
21205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21207ac_compiler_gnu=$ac_cv_c_compiler_gnu
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
cristy99bd5232011-12-07 14:38:20 +000021221
21222
cristy73bd4a52010-10-05 11:24:23 +000021223 ac_config_commands="$ac_config_commands libtool"
21224
21225
21226
21227
21228# Only expand once:
21229
21230
21231
cristy3ed852e2009-09-05 21:47:34 +000021232
21233
cristy3ed852e2009-09-05 21:47:34 +000021234# Check to see if building shared libraries
21235libtool_build_shared_libs='no'
21236if test "$enable_shared" = 'yes'; then
21237 libtool_build_shared_libs='yes'
21238fi
21239
21240# Check to see if building static libraries
21241libtool_build_static_libs='no'
21242if test "$enable_static" = 'yes'; then
21243 libtool_build_static_libs='yes'
21244fi
21245
cristy73bd4a52010-10-05 11:24:23 +000021246 if test "${libtool_build_shared_libs}" = 'yes'; then
21247 WITH_SHARED_LIBS_TRUE=
21248 WITH_SHARED_LIBS_FALSE='#'
21249else
21250 WITH_SHARED_LIBS_TRUE='#'
21251 WITH_SHARED_LIBS_FALSE=
21252fi
21253
cristy3ed852e2009-09-05 21:47:34 +000021254#
21255# Enable support for building loadable modules
21256#
cristyaf4cbf32012-10-16 23:47:41 +000021257build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021258
21259# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021260if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021261 withval=$with_modules; with_modules=$withval
21262else
cristy5a1cefd2010-01-06 20:42:35 +000021263 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021264fi
21265
21266
21267# Only allow building loadable modules if we are building shared libraries
21268if test "$with_modules" != 'no' ; then
21269 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021270 { $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 +000021271$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021272 build_modules='no'
21273 else
21274 build_modules='yes'
21275 fi
cristy3ed852e2009-09-05 21:47:34 +000021276fi
cristyc6722092012-10-14 00:19:31 +000021277if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021278
cristy8b350f62009-11-15 23:12:43 +000021279$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021280
cristyfa161182012-12-19 15:45:28 +000021281 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021282fi
cristyc6722092012-10-14 00:19:31 +000021283 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021284 WITH_MODULES_TRUE=
21285 WITH_MODULES_FALSE='#'
21286else
21287 WITH_MODULES_TRUE='#'
21288 WITH_MODULES_FALSE=
21289fi
21290
cristy3ed852e2009-09-05 21:47:34 +000021291
cristy3ed852e2009-09-05 21:47:34 +000021292# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021293# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021294# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021295if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021296 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21297else
21298 enable_delegate_build='no'
21299fi
21300
21301
21302# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021303if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021304 enableval=$enable_deprecated; enable_deprecated=$enableval
21305else
21306 enable_deprecated='no'
21307fi
21308
21309
21310if test "$enable_deprecated" = 'yes'; then
21311
cristy8b350f62009-11-15 23:12:43 +000021312$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021313
21314else
21315 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21316fi
21317
21318# Build a version of ImageMagick which operates uninstalled.
21319# Used to build distributions located via MAGICK_HOME / executable path
21320# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021321if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021322 enableval=$enable_installed; enable_installed=$enableval
21323else
21324 enable_installed='yes'
21325fi
21326
21327
21328if test "$enable_installed" = 'yes'; then
21329
cristy8b350f62009-11-15 23:12:43 +000021330$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021331
21332else
21333 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21334fi
21335
21336# Permit enciphering and deciphering image pixels.
21337# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021338if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021339 enableval=$enable_cipher; enable_cipher=$enableval
21340else
21341 enable_cipher='yes'
21342fi
21343
21344
21345if test "$enable_cipher" = 'yes'; then
21346
cristy8b350f62009-11-15 23:12:43 +000021347$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021348
21349fi
21350
cristy6e3607c2011-09-13 13:59:17 +000021351# Build a zero-configuration version of ImageMagick.
21352# Check whether --enable-zero-configuration was given.
21353if test "${enable_zero_configuration+set}" = set; then :
21354 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021355else
cristy6e3607c2011-09-13 13:59:17 +000021356 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021357fi
21358
21359
cristy6e3607c2011-09-13 13:59:17 +000021360if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021361
cristy6e3607c2011-09-13 13:59:17 +000021362$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021363
cristy81af5702011-09-13 14:20:58 +000021364 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021365fi
21366
21367# Build a high dynamic range version of ImageMagick.
21368# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021369if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021370 enableval=$enable_hdri; enable_hdri=$enableval
21371else
cristy191c0b72012-08-12 16:29:52 +000021372 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021373fi
21374
21375
21376MAGICK_HDRI=""
21377if test "$enable_hdri" = 'yes'; then
21378 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021379 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021380 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021381else
21382 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021383fi
21384
cristye52f12f2012-12-31 15:32:36 +000021385cat >>confdefs.h <<_ACEOF
21386#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21387_ACEOF
21388
21389MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21390CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021391CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021392
cristy3ed852e2009-09-05 21:47:34 +000021393# Build a version of ImageMagick with assert statements.
21394# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021395if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021396 enableval=$enable_assert; enable_assert=$enableval
21397else
21398 enable_assert='yes'
21399fi
21400
21401
21402if test "$enable_assert" = 'no'; then
21403
cristy8b350f62009-11-15 23:12:43 +000021404$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021405
21406fi
21407
cristya448bd22011-10-14 12:38:13 +000021408# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021409
21410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21411$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21412 # Check whether --enable-maintainer-mode was given.
21413if test "${enable_maintainer_mode+set}" = set; then :
21414 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21415else
21416 USE_MAINTAINER_MODE=no
21417fi
21418
21419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21420$as_echo "$USE_MAINTAINER_MODE" >&6; }
21421 if test $USE_MAINTAINER_MODE = yes; then
21422 MAINTAINER_MODE_TRUE=
21423 MAINTAINER_MODE_FALSE='#'
21424else
21425 MAINTAINER_MODE_TRUE='#'
21426 MAINTAINER_MODE_FALSE=
21427fi
21428
21429 MAINT=$MAINTAINER_MODE_TRUE
21430
21431
cristy3ed852e2009-09-05 21:47:34 +000021432
cristy944e51f2013-04-16 18:45:02 +000021433# Enable hugepages support
21434# Check whether --enable-hugepages was given.
21435if test "${enable_hugepages+set}" = set; then :
21436 enableval=$enable_hugepages; enable_hugepages=$enableval
21437else
21438 enable_hugepages='no'
21439fi
21440
21441
cristy3ed852e2009-09-05 21:47:34 +000021442# Enable ccmalloc memory debugging support
21443# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021444if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021445 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21446else
21447 enable_ccmalloc='no'
21448fi
21449
21450
21451# Enable Electric Fence memory debugging support
21452# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021453if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021454 enableval=$enable_efence; enable_efence=$enableval
21455else
21456 enable_efence='no'
21457fi
21458
21459
21460# Enable prof-based profiling support
21461# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021462if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021463 enableval=$enable_prof; enable_prof=$enableval
21464else
21465 enable_prof='no'
21466fi
21467
21468
21469# Enable gprof-based profiling support
21470# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021471if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021472 enableval=$enable_gprof; enable_gprof=$enableval
21473else
21474 enable_gprof='no'
21475fi
21476
21477
21478# Enable gcov-based profiling support
21479# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021480if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021481 enableval=$enable_gcov; enable_gcov=$enableval
21482else
21483 enable_gcov='no'
21484fi
21485
21486
21487enable_profiling='no'
21488if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21489 enable_profiling='yes'
21490 if test "$libtool_build_shared_libs" = 'yes'; then
21491 echo "Warning: Can not profile code using shared libraries"
21492 fi
21493fi
21494
21495# Magick API method prefix
21496
21497# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021498if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021499 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021500else
cristyfc3d0222012-02-07 15:05:57 +000021501 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021502fi
21503
21504
cristyfc3d0222012-02-07 15:05:57 +000021505if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021506
21507cat >>confdefs.h <<_ACEOF
21508#define NAMESPACE_PREFIX $with_method_prefix
21509_ACEOF
21510
cristyfc3d0222012-02-07 15:05:57 +000021511 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021512fi
21513
cristy71d8c202012-03-20 17:05:01 +000021514# Enable legacy support (default no)
21515# Check whether --enable-legacy-support was given.
21516if test "${enable_legacy_support+set}" = set; then :
21517 enableval=$enable_legacy_support; with_legacy_support=$enableval
21518else
21519 with_legacy_support='no'
21520fi
21521
21522 if test "$with_legacy_support" != 'no'; then
21523 LEGACY_SUPPORT_TRUE=
21524 LEGACY_SUPPORT_FALSE='#'
21525else
21526 LEGACY_SUPPORT_TRUE='#'
21527 LEGACY_SUPPORT_FALSE=
21528fi
21529
21530
cristy3ed852e2009-09-05 21:47:34 +000021531# Number of bits in a Quantum
21532
21533# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021534if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021535 withval=$with_quantum_depth; with_quantum_depth=$withval
21536else
21537 with_quantum_depth=16
21538fi
21539
21540
21541if test "$with_quantum_depth" != '8'; then
21542 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21543fi
21544
21545case "${with_quantum_depth}" in
21546 8 ) ;;
21547 16 ) ;;
21548 32 ) ;;
21549 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021550 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021551esac
21552QUANTUM_DEPTH="$with_quantum_depth"
21553
21554cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021555#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021556_ACEOF
21557
cristya371edf2013-02-06 13:42:17 +000021558MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021559CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021560CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021561
cristy01ff9f32012-12-01 18:15:29 +000021562# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021563MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021564if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021565 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021566fi
cristy01ff9f32012-12-01 18:15:29 +000021567
21568
cristy3ed852e2009-09-05 21:47:34 +000021569# Set pixel cache threshold
21570
21571# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021572if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021573 withval=$with_cache; with_cache=$withval
21574else
21575 with_cache=''
21576fi
21577
21578
21579if test "$with_cache" != ''; then
21580
21581cat >>confdefs.h <<_ACEOF
21582#define PixelCacheThreshold $with_cache
21583_ACEOF
21584
21585 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21586fi
21587
21588# Disable/Enable support for full delegate paths
21589
21590# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021591if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021592 withval=$with_frozenpaths; with_frozenpaths=$withval
21593else
21594 with_frozenpaths='no'
21595fi
21596
21597
21598# Enable build/install of Magick++
21599
21600# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021601if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021602 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21603else
21604 with_magick_plus_plus='yes'
21605fi
21606
21607
cristy3a75f062012-09-08 23:29:40 +000021608# Encode the this name into the shared library.
21609
21610# Check whether --with-package-release-name was given.
21611if test "${with_package_release_name+set}" = set; then :
21612 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21613fi
21614
21615
21616
cristy3ed852e2009-09-05 21:47:34 +000021617# Disable build/install of PerlMagick.
21618
21619# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021620if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021621 withval=$with_perl; with_perl=$withval
21622else
cristyb5f4e2f2010-04-25 00:49:11 +000021623 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021624fi
21625
21626
21627# Options to pass when configuring PerlMagick
21628
21629# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021630if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021631 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021632fi
21633
21634
cristy3ed852e2009-09-05 21:47:34 +000021635
cristy3b0097d2014-11-04 15:34:47 +000021636# Enable jemalloc, object-caching memory allocation library.
21637
21638# Check whether --with-jemalloc was given.
21639if test "${with_jemalloc+set}" = set; then :
21640 withval=$with_jemalloc; with_jemalloc=$withval
21641else
21642 with_jemalloc='no'
21643fi
21644
21645if test "$with_jemalloc" != 'yes' ; then
21646 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
21647fi
21648
cristy3ed852e2009-09-05 21:47:34 +000021649# Enable umem, object-caching memory allocation library.
21650
21651# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021652if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021653 withval=$with_umem; with_umem=$withval
21654else
21655 with_umem='no'
21656fi
21657
21658if test "$with_umem" != 'yes' ; then
21659 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21660fi
21661
21662#
21663# Specify path to shared libstdc++ if not in normal location
21664#
21665
21666# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021667if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021668 withval=$with_libstdc; with_libstdc=$withval
21669else
21670 with_libstdc=''
21671fi
21672
21673
21674if test "$with_libstdc" != ''; then
21675 if test -d "$with_libstdc"; then
21676 LIBSTDCLDFLAGS="-L$with_libstdc"
21677 fi
21678fi
21679
21680
21681# Does gcc required -traditional?
21682if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021684$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021685if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021686 $as_echo_n "(cached) " >&6
21687else
21688 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021690/* end confdefs.h. */
21691#include <sgtty.h>
21692Autoconf TIOCGETP
21693_ACEOF
21694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021695 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021696 ac_cv_prog_gcc_traditional=yes
21697else
21698 ac_cv_prog_gcc_traditional=no
21699fi
21700rm -f conftest*
21701
21702
21703 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021705/* end confdefs.h. */
21706#include <termio.h>
21707Autoconf TCGETA
21708_ACEOF
21709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021710 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021711 ac_cv_prog_gcc_traditional=yes
21712fi
21713rm -f conftest*
21714
21715 fi
21716fi
cristy8b350f62009-11-15 23:12:43 +000021717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021718$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21719 if test $ac_cv_prog_gcc_traditional = yes; then
21720 CC="$CC -traditional"
21721 fi
21722fi
21723
21724
21725########
21726#
21727# Set defines required to build DLLs and modules using MinGW
21728#
21729########
21730# These options are set for multi-thread DLL module build
21731# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21732# module: _DLL
21733# executable/Magick++: _DLL _MAGICKMOD_
21734MODULE_EXTRA_CPPFLAGS=''
21735LIBRARY_EXTRA_CPPFLAGS=''
21736if test "${native_win32_build}" = 'yes'; then
21737 if test "${libtool_build_shared_libs}" = 'yes'; then
21738 CPPFLAGS="$CPPFLAGS -D_DLL"
21739 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21740 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21741 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021742 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021743 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21744 else
21745 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21746 fi
21747 else
21748 CPPFLAGS="$CPPFLAGS -D_LIB"
21749 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21750 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21751 fi
21752 if test "$with_threads" = 'yes'; then
21753 CPPFLAGS="$CPPFLAGS -D_MT"
21754 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21755 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21756 fi
21757fi
21758
21759
21760
21761# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021763$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021764if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021765 $as_echo_n "(cached) " >&6
21766else
cristy8b350f62009-11-15 23:12:43 +000021767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021768/* end confdefs.h. */
21769#include <stdlib.h>
21770#include <stdarg.h>
21771#include <string.h>
21772#include <float.h>
21773
21774int
21775main ()
21776{
21777
21778 ;
21779 return 0;
21780}
21781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021782if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021783 ac_cv_header_stdc=yes
21784else
cristy8b350f62009-11-15 23:12:43 +000021785 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021786fi
cristy3ed852e2009-09-05 21:47:34 +000021787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21788
21789if test $ac_cv_header_stdc = yes; then
21790 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021792/* end confdefs.h. */
21793#include <string.h>
21794
21795_ACEOF
21796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021797 $EGREP "memchr" >/dev/null 2>&1; then :
21798
cristy3ed852e2009-09-05 21:47:34 +000021799else
21800 ac_cv_header_stdc=no
21801fi
21802rm -f conftest*
21803
21804fi
21805
21806if test $ac_cv_header_stdc = yes; then
21807 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021809/* end confdefs.h. */
21810#include <stdlib.h>
21811
21812_ACEOF
21813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021814 $EGREP "free" >/dev/null 2>&1; then :
21815
cristy3ed852e2009-09-05 21:47:34 +000021816else
21817 ac_cv_header_stdc=no
21818fi
21819rm -f conftest*
21820
21821fi
21822
21823if test $ac_cv_header_stdc = yes; then
21824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021825 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021826 :
21827else
cristy8b350f62009-11-15 23:12:43 +000021828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021829/* end confdefs.h. */
21830#include <ctype.h>
21831#include <stdlib.h>
21832#if ((' ' & 0x0FF) == 0x020)
21833# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21834# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21835#else
21836# define ISLOWER(c) \
21837 (('a' <= (c) && (c) <= 'i') \
21838 || ('j' <= (c) && (c) <= 'r') \
21839 || ('s' <= (c) && (c) <= 'z'))
21840# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21841#endif
21842
21843#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21844int
21845main ()
21846{
21847 int i;
21848 for (i = 0; i < 256; i++)
21849 if (XOR (islower (i), ISLOWER (i))
21850 || toupper (i) != TOUPPER (i))
21851 return 2;
21852 return 0;
21853}
21854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021855if ac_fn_c_try_run "$LINENO"; then :
21856
cristy3ed852e2009-09-05 21:47:34 +000021857else
cristy8b350f62009-11-15 23:12:43 +000021858 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021859fi
cristy8b350f62009-11-15 23:12:43 +000021860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21861 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021862fi
21863
cristy3ed852e2009-09-05 21:47:34 +000021864fi
21865fi
cristy8b350f62009-11-15 23:12:43 +000021866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021867$as_echo "$ac_cv_header_stdc" >&6; }
21868if test $ac_cv_header_stdc = yes; then
21869
cristy8b350f62009-11-15 23:12:43 +000021870$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021871
21872fi
21873
21874if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021875 { $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 +000021876 header files. Compilation cannot proceed. Please install the ANSI C
21877 headers and rerun this script." >&5
21878$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21879 header files. Compilation cannot proceed. Please install the ANSI C
21880 headers and rerun this script." >&2;};
21881fi
cristya0b81c32010-01-22 02:54:33 +000021882
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21884$as_echo_n "checking whether to enable assertions... " >&6; }
21885 # Check whether --enable-assert was given.
21886if test "${enable_assert+set}" = set; then :
21887 enableval=$enable_assert; ac_enable_assert=$enableval
21888 if test "x$enableval" = xno; then :
21889
21890$as_echo "#define NDEBUG 1" >>confdefs.h
21891
21892elif test "x$enableval" != xyes; then :
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21894$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21895 ac_enable_assert=yes
21896fi
21897else
21898 ac_enable_assert=yes
21899fi
21900
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21902$as_echo "$ac_enable_assert" >&6; }
21903
cristy3ed852e2009-09-05 21:47:34 +000021904ac_header_dirent=no
21905for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21906 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021908$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021909if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021910 $as_echo_n "(cached) " >&6
21911else
cristy8b350f62009-11-15 23:12:43 +000021912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021913/* end confdefs.h. */
21914#include <sys/types.h>
21915#include <$ac_hdr>
21916
21917int
21918main ()
21919{
21920if ((DIR *) 0)
21921return 0;
21922 ;
21923 return 0;
21924}
21925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021926if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021927 eval "$as_ac_Header=yes"
21928else
cristy8b350f62009-11-15 23:12:43 +000021929 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021930fi
cristy3ed852e2009-09-05 21:47:34 +000021931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21932fi
cristy8b350f62009-11-15 23:12:43 +000021933eval ac_res=\$$as_ac_Header
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021935$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021936if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021937 cat >>confdefs.h <<_ACEOF
21938#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21939_ACEOF
21940
21941ac_header_dirent=$ac_hdr; break
21942fi
21943
21944done
21945# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21946if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021948$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021949if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021950 $as_echo_n "(cached) " >&6
21951else
21952 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021954/* end confdefs.h. */
21955
21956/* Override any GCC internal prototype to avoid an error.
21957 Use char because int might match the return type of a GCC
21958 builtin and then its argument prototype would still apply. */
21959#ifdef __cplusplus
21960extern "C"
21961#endif
21962char opendir ();
21963int
21964main ()
21965{
21966return opendir ();
21967 ;
21968 return 0;
21969}
21970_ACEOF
21971for ac_lib in '' dir; do
21972 if test -z "$ac_lib"; then
21973 ac_res="none required"
21974 else
21975 ac_res=-l$ac_lib
21976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21977 fi
cristy8b350f62009-11-15 23:12:43 +000021978 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021979 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021980fi
cristy8b350f62009-11-15 23:12:43 +000021981rm -f core conftest.err conftest.$ac_objext \
21982 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021983 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021984 break
21985fi
21986done
cristyda16f162011-02-19 23:52:17 +000021987if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021988
cristy3ed852e2009-09-05 21:47:34 +000021989else
21990 ac_cv_search_opendir=no
21991fi
21992rm conftest.$ac_ext
21993LIBS=$ac_func_search_save_LIBS
21994fi
cristy8b350f62009-11-15 23:12:43 +000021995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021996$as_echo "$ac_cv_search_opendir" >&6; }
21997ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021998if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22000
22001fi
22002
22003else
cristy8b350f62009-11-15 23:12:43 +000022004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022005$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022006if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022007 $as_echo_n "(cached) " >&6
22008else
22009 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022011/* end confdefs.h. */
22012
22013/* Override any GCC internal prototype to avoid an error.
22014 Use char because int might match the return type of a GCC
22015 builtin and then its argument prototype would still apply. */
22016#ifdef __cplusplus
22017extern "C"
22018#endif
22019char opendir ();
22020int
22021main ()
22022{
22023return opendir ();
22024 ;
22025 return 0;
22026}
22027_ACEOF
22028for ac_lib in '' x; do
22029 if test -z "$ac_lib"; then
22030 ac_res="none required"
22031 else
22032 ac_res=-l$ac_lib
22033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22034 fi
cristy8b350f62009-11-15 23:12:43 +000022035 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022036 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022037fi
cristy8b350f62009-11-15 23:12:43 +000022038rm -f core conftest.err conftest.$ac_objext \
22039 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022040 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022041 break
22042fi
22043done
cristyda16f162011-02-19 23:52:17 +000022044if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022045
cristy3ed852e2009-09-05 21:47:34 +000022046else
22047 ac_cv_search_opendir=no
22048fi
22049rm conftest.$ac_ext
22050LIBS=$ac_func_search_save_LIBS
22051fi
cristy8b350f62009-11-15 23:12:43 +000022052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022053$as_echo "$ac_cv_search_opendir" >&6; }
22054ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022055if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22057
22058fi
22059
22060fi
22061
22062
22063# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000022064for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000022065do :
22066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22067ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022068if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022069 cat >>confdefs.h <<_ACEOF
22070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22071_ACEOF
22072
22073fi
22074
22075done
22076
22077
22078########
22079#
22080# Checks for typedefs, structures, and compiler characteristics.
22081#
22082########
22083
cristy8b350f62009-11-15 23:12:43 +000022084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022085$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022086if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022087 $as_echo_n "(cached) " >&6
22088else
cristy8b350f62009-11-15 23:12:43 +000022089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022090/* end confdefs.h. */
22091
cristy14fefe52012-05-21 00:59:18 +000022092 #include <stdbool.h>
22093 #ifndef bool
22094 "error: bool is not defined"
22095 #endif
22096 #ifndef false
22097 "error: false is not defined"
22098 #endif
22099 #if false
22100 "error: false is not 0"
22101 #endif
22102 #ifndef true
22103 "error: true is not defined"
22104 #endif
22105 #if true != 1
22106 "error: true is not 1"
22107 #endif
22108 #ifndef __bool_true_false_are_defined
22109 "error: __bool_true_false_are_defined is not defined"
22110 #endif
cristy3ed852e2009-09-05 21:47:34 +000022111
cristy14fefe52012-05-21 00:59:18 +000022112 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022113
cristy14fefe52012-05-21 00:59:18 +000022114 char a[true == 1 ? 1 : -1];
22115 char b[false == 0 ? 1 : -1];
22116 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22117 char d[(bool) 0.5 == true ? 1 : -1];
22118 /* See body of main program for 'e'. */
22119 char f[(_Bool) 0.0 == false ? 1 : -1];
22120 char g[true];
22121 char h[sizeof (_Bool)];
22122 char i[sizeof s.t];
22123 enum { j = false, k = true, l = false * true, m = true * 256 };
22124 /* The following fails for
22125 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22126 _Bool n[m];
22127 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22128 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22129 /* Catch a bug in an HP-UX C compiler. See
22130 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22131 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22132 */
22133 _Bool q = true;
22134 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022135
22136int
22137main ()
22138{
22139
cristy14fefe52012-05-21 00:59:18 +000022140 bool e = &s;
22141 *pq |= q;
22142 *pq |= ! q;
22143 /* Refer to every declared value, to avoid compiler optimizations. */
22144 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22145 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022146
22147 ;
22148 return 0;
22149}
22150_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022151if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022152 ac_cv_header_stdbool_h=yes
22153else
cristy8b350f62009-11-15 23:12:43 +000022154 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022155fi
cristy3ed852e2009-09-05 21:47:34 +000022156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22157fi
cristy8b350f62009-11-15 23:12:43 +000022158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022159$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022160 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022161if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022162
22163cat >>confdefs.h <<_ACEOF
22164#define HAVE__BOOL 1
22165_ACEOF
22166
22167
22168fi
22169
cristy14fefe52012-05-21 00:59:18 +000022170
cristy3ed852e2009-09-05 21:47:34 +000022171if test $ac_cv_header_stdbool_h = yes; then
22172
cristy8b350f62009-11-15 23:12:43 +000022173$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022174
22175fi
22176
cristy8b350f62009-11-15 23:12:43 +000022177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022178$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022179if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022180 $as_echo_n "(cached) " >&6
22181else
cristy8b350f62009-11-15 23:12:43 +000022182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022183/* end confdefs.h. */
22184
22185int
22186main ()
22187{
22188
22189volatile int x;
22190int * volatile y = (int *) 0;
22191return !x && !y;
22192 ;
22193 return 0;
22194}
22195_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022196if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022197 ac_cv_c_volatile=yes
22198else
cristy8b350f62009-11-15 23:12:43 +000022199 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022200fi
cristy3ed852e2009-09-05 21:47:34 +000022201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22202fi
cristy8b350f62009-11-15 23:12:43 +000022203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022204$as_echo "$ac_cv_c_volatile" >&6; }
22205if test $ac_cv_c_volatile = no; then
22206
cristy8b350f62009-11-15 23:12:43 +000022207$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022208
22209fi
22210
cristy8b350f62009-11-15 23:12:43 +000022211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022212$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022213if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022214 $as_echo_n "(cached) " >&6
22215else
cristy8b350f62009-11-15 23:12:43 +000022216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022217/* end confdefs.h. */
22218#define x(y) #y
22219
22220char *s = x(teststring);
22221_ACEOF
22222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022223 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022224 ac_cv_c_stringize=no
22225else
22226 ac_cv_c_stringize=yes
22227fi
22228rm -f conftest*
22229
22230fi
cristy8b350f62009-11-15 23:12:43 +000022231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022232$as_echo "$ac_cv_c_stringize" >&6; }
22233if test $ac_cv_c_stringize = yes; then
22234
cristy8b350f62009-11-15 23:12:43 +000022235$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022236
22237fi
22238
cristy8b350f62009-11-15 23:12:43 +000022239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022240$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022241if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022242 $as_echo_n "(cached) " >&6
22243else
cristy8b350f62009-11-15 23:12:43 +000022244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022245/* end confdefs.h. */
22246#include <sys/types.h>
22247#include <sys/stat.h>
22248
22249#if defined S_ISBLK && defined S_IFDIR
22250extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22251#endif
22252
22253#if defined S_ISBLK && defined S_IFCHR
22254extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22255#endif
22256
22257#if defined S_ISLNK && defined S_IFREG
22258extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22259#endif
22260
22261#if defined S_ISSOCK && defined S_IFREG
22262extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22263#endif
22264
22265_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022266if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022267 ac_cv_header_stat_broken=no
22268else
cristy8b350f62009-11-15 23:12:43 +000022269 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022270fi
cristy3ed852e2009-09-05 21:47:34 +000022271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22272fi
cristy8b350f62009-11-15 23:12:43 +000022273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022274$as_echo "$ac_cv_header_stat_broken" >&6; }
22275if test $ac_cv_header_stat_broken = yes; then
22276
cristy8b350f62009-11-15 23:12:43 +000022277$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022278
22279fi
22280
cristy8b350f62009-11-15 23:12:43 +000022281{ $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 +000022282$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022283if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022284 $as_echo_n "(cached) " >&6
22285else
cristy8b350f62009-11-15 23:12:43 +000022286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022287/* end confdefs.h. */
22288#include <sys/types.h>
22289#include <sys/time.h>
22290#include <time.h>
22291
22292int
22293main ()
22294{
22295if ((struct tm *) 0)
22296return 0;
22297 ;
22298 return 0;
22299}
22300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022301if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022302 ac_cv_header_time=yes
22303else
cristy8b350f62009-11-15 23:12:43 +000022304 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022305fi
cristy3ed852e2009-09-05 21:47:34 +000022306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22307fi
cristy8b350f62009-11-15 23:12:43 +000022308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022309$as_echo "$ac_cv_header_time" >&6; }
22310if test $ac_cv_header_time = yes; then
22311
cristy8b350f62009-11-15 23:12:43 +000022312$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022313
22314fi
22315
cristy8b350f62009-11-15 23:12:43 +000022316{ $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 +000022317$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022318if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022319 $as_echo_n "(cached) " >&6
22320else
cristy8b350f62009-11-15 23:12:43 +000022321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022322/* end confdefs.h. */
22323#include <sys/types.h>
22324#include <time.h>
22325
22326int
22327main ()
22328{
22329struct tm tm;
22330 int *p = &tm.tm_sec;
22331 return !p;
22332 ;
22333 return 0;
22334}
22335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022336if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022337 ac_cv_struct_tm=time.h
22338else
cristy8b350f62009-11-15 23:12:43 +000022339 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022340fi
cristy3ed852e2009-09-05 21:47:34 +000022341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22342fi
cristy8b350f62009-11-15 23:12:43 +000022343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022344$as_echo "$ac_cv_struct_tm" >&6; }
22345if test $ac_cv_struct_tm = sys/time.h; then
22346
cristy8b350f62009-11-15 23:12:43 +000022347$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022348
22349fi
22350
cristy92703d82010-04-26 00:18:18 +000022351ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22352#include <$ac_cv_struct_tm>
22353
22354"
cristyda16f162011-02-19 23:52:17 +000022355if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022356
22357cat >>confdefs.h <<_ACEOF
22358#define HAVE_STRUCT_TM_TM_ZONE 1
22359_ACEOF
22360
22361
22362fi
22363
22364if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22365
22366$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22367
22368else
22369 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22370"
cristyda16f162011-02-19 23:52:17 +000022371if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022372 ac_have_decl=1
22373else
22374 ac_have_decl=0
22375fi
22376
22377cat >>confdefs.h <<_ACEOF
22378#define HAVE_DECL_TZNAME $ac_have_decl
22379_ACEOF
22380
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22382$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022383if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022384 $as_echo_n "(cached) " >&6
22385else
22386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387/* end confdefs.h. */
22388#include <time.h>
22389#if !HAVE_DECL_TZNAME
22390extern char *tzname[];
22391#endif
22392
22393int
22394main ()
22395{
22396return tzname[0][0];
22397 ;
22398 return 0;
22399}
22400_ACEOF
22401if ac_fn_c_try_link "$LINENO"; then :
22402 ac_cv_var_tzname=yes
22403else
22404 ac_cv_var_tzname=no
22405fi
22406rm -f core conftest.err conftest.$ac_objext \
22407 conftest$ac_exeext conftest.$ac_ext
22408fi
22409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22410$as_echo "$ac_cv_var_tzname" >&6; }
22411 if test $ac_cv_var_tzname = yes; then
22412
22413$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22414
22415 fi
22416fi
22417
cristy8b350f62009-11-15 23:12:43 +000022418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022419$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022420if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022421 $as_echo_n "(cached) " >&6
22422else
22423 echo '#! /bin/cat
22424exit 69
22425' >conftest
22426chmod u+x conftest
22427(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22428if test $? -ne 69; then
22429 ac_cv_sys_interpreter=yes
22430else
22431 ac_cv_sys_interpreter=no
22432fi
22433rm -f conftest
22434fi
cristy8b350f62009-11-15 23:12:43 +000022435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022436$as_echo "$ac_cv_sys_interpreter" >&6; }
22437interpval=$ac_cv_sys_interpreter
22438
22439
cristye80f9cb2013-01-09 01:09:31 +000022440#
22441# Checks for language qualifiers and semantics.
22442#
22443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22444$as_echo_n "checking whether char is unsigned... " >&6; }
22445if ${ac_cv_c_char_unsigned+:} false; then :
22446 $as_echo_n "(cached) " >&6
22447else
22448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22449/* end confdefs.h. */
22450$ac_includes_default
22451int
22452main ()
22453{
22454static int test_array [1 - 2 * !(((char) -1) < 0)];
22455test_array [0] = 0;
22456return test_array [0];
22457
22458 ;
22459 return 0;
22460}
22461_ACEOF
22462if ac_fn_c_try_compile "$LINENO"; then :
22463 ac_cv_c_char_unsigned=no
22464else
22465 ac_cv_c_char_unsigned=yes
22466fi
22467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22468fi
22469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22470$as_echo "$ac_cv_c_char_unsigned" >&6; }
22471if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22472 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22473
22474fi
22475
22476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22477$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22478if ${ac_cv_c_const+:} false; then :
22479 $as_echo_n "(cached) " >&6
22480else
22481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22482/* end confdefs.h. */
22483
22484int
22485main ()
22486{
22487
22488#ifndef __cplusplus
22489 /* Ultrix mips cc rejects this sort of thing. */
22490 typedef int charset[2];
22491 const charset cs = { 0, 0 };
22492 /* SunOS 4.1.1 cc rejects this. */
22493 char const *const *pcpcc;
22494 char **ppc;
22495 /* NEC SVR4.0.2 mips cc rejects this. */
22496 struct point {int x, y;};
22497 static struct point const zero = {0,0};
22498 /* AIX XL C 1.02.0.0 rejects this.
22499 It does not let you subtract one const X* pointer from another in
22500 an arm of an if-expression whose if-part is not a constant
22501 expression */
22502 const char *g = "string";
22503 pcpcc = &g + (g ? g-g : 0);
22504 /* HPUX 7.0 cc rejects these. */
22505 ++pcpcc;
22506 ppc = (char**) pcpcc;
22507 pcpcc = (char const *const *) ppc;
22508 { /* SCO 3.2v4 cc rejects this sort of thing. */
22509 char tx;
22510 char *t = &tx;
22511 char const *s = 0 ? (char *) 0 : (char const *) 0;
22512
22513 *t++ = 0;
22514 if (s) return 0;
22515 }
22516 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22517 int x[] = {25, 17};
22518 const int *foo = &x[0];
22519 ++foo;
22520 }
22521 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22522 typedef const int *iptr;
22523 iptr p = 0;
22524 ++p;
22525 }
22526 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22527 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22528 struct s { int j; const int *ap[3]; } bx;
22529 struct s *b = &bx; b->j = 5;
22530 }
22531 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22532 const int foo = 10;
22533 if (!foo) return 0;
22534 }
22535 return !cs[0] && !zero.x;
22536#endif
22537
22538 ;
22539 return 0;
22540}
22541_ACEOF
22542if ac_fn_c_try_compile "$LINENO"; then :
22543 ac_cv_c_const=yes
22544else
22545 ac_cv_c_const=no
22546fi
22547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22548fi
22549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22550$as_echo "$ac_cv_c_const" >&6; }
22551if test $ac_cv_c_const = no; then
22552
22553$as_echo "#define const /**/" >>confdefs.h
22554
22555fi
22556
cristy8b350f62009-11-15 23:12:43 +000022557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022558$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022559if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022560 $as_echo_n "(cached) " >&6
22561else
22562 ac_cv_c_inline=no
22563for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022565/* end confdefs.h. */
22566#ifndef __cplusplus
22567typedef int foo_t;
22568static $ac_kw foo_t static_foo () {return 0; }
22569$ac_kw foo_t foo () {return 0; }
22570#endif
22571
22572_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022573if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022574 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022575fi
cristy3ed852e2009-09-05 21:47:34 +000022576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22577 test "$ac_cv_c_inline" != no && break
22578done
22579
22580fi
cristy8b350f62009-11-15 23:12:43 +000022581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022582$as_echo "$ac_cv_c_inline" >&6; }
22583
cristy3ed852e2009-09-05 21:47:34 +000022584case $ac_cv_c_inline in
22585 inline | yes) ;;
22586 *)
22587 case $ac_cv_c_inline in
22588 no) ac_val=;;
22589 *) ac_val=$ac_cv_c_inline;;
22590 esac
22591 cat >>confdefs.h <<_ACEOF
22592#ifndef __cplusplus
22593#define inline $ac_val
22594#endif
22595_ACEOF
22596 ;;
22597esac
22598
cristy8b350f62009-11-15 23:12:43 +000022599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022600$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022601if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022602 $as_echo_n "(cached) " >&6
22603else
22604 ac_cv_c_restrict=no
22605 # The order here caters to the fact that C++ does not require restrict.
22606 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022608/* end confdefs.h. */
22609typedef int * int_ptr;
22610 int foo (int_ptr $ac_kw ip) {
22611 return ip[0];
22612 }
22613int
22614main ()
22615{
22616int s[1];
22617 int * $ac_kw t = s;
22618 t[0] = 0;
22619 return foo(t)
22620 ;
22621 return 0;
22622}
22623_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022624if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022625 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022626fi
cristy3ed852e2009-09-05 21:47:34 +000022627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22628 test "$ac_cv_c_restrict" != no && break
22629 done
22630
22631fi
cristy8b350f62009-11-15 23:12:43 +000022632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022633$as_echo "$ac_cv_c_restrict" >&6; }
22634
cristy3ed852e2009-09-05 21:47:34 +000022635 case $ac_cv_c_restrict in
22636 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022637 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022638 ;;
22639 *) cat >>confdefs.h <<_ACEOF
22640#define restrict $ac_cv_c_restrict
22641_ACEOF
22642 ;;
22643 esac
22644
cristye80f9cb2013-01-09 01:09:31 +000022645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22646$as_echo_n "checking for working volatile... " >&6; }
22647if ${ac_cv_c_volatile+:} false; then :
22648 $as_echo_n "(cached) " >&6
22649else
22650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22651/* end confdefs.h. */
22652
22653int
22654main ()
22655{
22656
22657volatile int x;
22658int * volatile y = (int *) 0;
22659return !x && !y;
22660 ;
22661 return 0;
22662}
22663_ACEOF
22664if ac_fn_c_try_compile "$LINENO"; then :
22665 ac_cv_c_volatile=yes
22666else
22667 ac_cv_c_volatile=no
22668fi
22669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22670fi
22671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22672$as_echo "$ac_cv_c_volatile" >&6; }
22673if test $ac_cv_c_volatile = no; then
22674
22675$as_echo "#define volatile /**/" >>confdefs.h
22676
22677fi
22678
cristy3ed852e2009-09-05 21:47:34 +000022679
22680# If words are stored with the most significant byte first (like
22681# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022683$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022684if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022685 $as_echo_n "(cached) " >&6
22686else
22687 ac_cv_c_bigendian=unknown
22688 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022690/* end confdefs.h. */
22691#ifndef __APPLE_CC__
22692 not a universal capable compiler
22693 #endif
22694 typedef int dummy;
22695
22696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022697if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022698
22699 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022700 # there are at least two -arch flags with different values.
22701 ac_arch=
22702 ac_prev=
22703 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22704 if test -n "$ac_prev"; then
22705 case $ac_word in
22706 i?86 | x86_64 | ppc | ppc64)
22707 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22708 ac_arch=$ac_word
22709 else
22710 ac_cv_c_bigendian=universal
22711 break
22712 fi
22713 ;;
22714 esac
22715 ac_prev=
22716 elif test "x$ac_word" = "x-arch"; then
22717 ac_prev=arch
22718 fi
22719 done
cristy3ed852e2009-09-05 21:47:34 +000022720fi
cristy3ed852e2009-09-05 21:47:34 +000022721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22722 if test $ac_cv_c_bigendian = unknown; then
22723 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022725/* end confdefs.h. */
22726#include <sys/types.h>
22727 #include <sys/param.h>
22728
22729int
22730main ()
22731{
22732#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22733 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22734 && LITTLE_ENDIAN)
22735 bogus endian macros
22736 #endif
22737
22738 ;
22739 return 0;
22740}
22741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022742if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022743 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022745/* end confdefs.h. */
22746#include <sys/types.h>
22747 #include <sys/param.h>
22748
22749int
22750main ()
22751{
22752#if BYTE_ORDER != BIG_ENDIAN
22753 not big endian
22754 #endif
22755
22756 ;
22757 return 0;
22758}
22759_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022760if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022761 ac_cv_c_bigendian=yes
22762else
cristy8b350f62009-11-15 23:12:43 +000022763 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022764fi
cristy3ed852e2009-09-05 21:47:34 +000022765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022766fi
cristy3ed852e2009-09-05 21:47:34 +000022767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22768 fi
22769 if test $ac_cv_c_bigendian = unknown; then
22770 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022772/* end confdefs.h. */
22773#include <limits.h>
22774
22775int
22776main ()
22777{
22778#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22779 bogus endian macros
22780 #endif
22781
22782 ;
22783 return 0;
22784}
22785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022786if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022787 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022789/* end confdefs.h. */
22790#include <limits.h>
22791
22792int
22793main ()
22794{
22795#ifndef _BIG_ENDIAN
22796 not big endian
22797 #endif
22798
22799 ;
22800 return 0;
22801}
22802_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022803if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022804 ac_cv_c_bigendian=yes
22805else
cristy8b350f62009-11-15 23:12:43 +000022806 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022807fi
cristy3ed852e2009-09-05 21:47:34 +000022808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022809fi
cristy3ed852e2009-09-05 21:47:34 +000022810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22811 fi
22812 if test $ac_cv_c_bigendian = unknown; then
22813 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022814 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022815 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022817/* end confdefs.h. */
22818short int ascii_mm[] =
22819 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22820 short int ascii_ii[] =
22821 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22822 int use_ascii (int i) {
22823 return ascii_mm[i] + ascii_ii[i];
22824 }
22825 short int ebcdic_ii[] =
22826 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22827 short int ebcdic_mm[] =
22828 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22829 int use_ebcdic (int i) {
22830 return ebcdic_mm[i] + ebcdic_ii[i];
22831 }
22832 extern int foo;
22833
22834int
22835main ()
22836{
22837return use_ascii (foo) == use_ebcdic (foo);
22838 ;
22839 return 0;
22840}
22841_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022842if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022843 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22844 ac_cv_c_bigendian=yes
22845 fi
22846 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22847 if test "$ac_cv_c_bigendian" = unknown; then
22848 ac_cv_c_bigendian=no
22849 else
22850 # finding both strings is unlikely to happen, but who knows?
22851 ac_cv_c_bigendian=unknown
22852 fi
22853 fi
cristy3ed852e2009-09-05 21:47:34 +000022854fi
cristy3ed852e2009-09-05 21:47:34 +000022855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22856else
cristy8b350f62009-11-15 23:12:43 +000022857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022858/* end confdefs.h. */
22859$ac_includes_default
22860int
22861main ()
22862{
22863
22864 /* Are we little or big endian? From Harbison&Steele. */
22865 union
22866 {
22867 long int l;
22868 char c[sizeof (long int)];
22869 } u;
22870 u.l = 1;
22871 return u.c[sizeof (long int) - 1] == 1;
22872
22873 ;
22874 return 0;
22875}
22876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022877if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022878 ac_cv_c_bigendian=no
22879else
cristy8b350f62009-11-15 23:12:43 +000022880 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022881fi
cristy8b350f62009-11-15 23:12:43 +000022882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22883 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022884fi
22885
cristy3ed852e2009-09-05 21:47:34 +000022886 fi
22887fi
cristy8b350f62009-11-15 23:12:43 +000022888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022889$as_echo "$ac_cv_c_bigendian" >&6; }
22890 case $ac_cv_c_bigendian in #(
22891 yes)
cristy8b350f62009-11-15 23:12:43 +000022892 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022893;; #(
22894 no)
22895 ;; #(
22896 universal)
22897
cristy8b350f62009-11-15 23:12:43 +000022898$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022899
22900 ;; #(
22901 *)
cristy98dddb52010-11-04 00:30:15 +000022902 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022903 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022904 esac
22905
22906
cristy501c8042011-05-26 17:46:28 +000022907# Define to a suitable type, if standard headers do not define it.
22908ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22909case $ac_cv_c_int8_t in #(
22910 no|yes) ;; #(
22911 *)
cristy3ed852e2009-09-05 21:47:34 +000022912
22913cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022914#define int8_t $ac_cv_c_int8_t
22915_ACEOF
22916;;
22917esac
22918
22919ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22920case $ac_cv_c_int16_t in #(
22921 no|yes) ;; #(
22922 *)
22923
22924cat >>confdefs.h <<_ACEOF
22925#define int16_t $ac_cv_c_int16_t
22926_ACEOF
22927;;
22928esac
22929
22930ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22931case $ac_cv_c_int32_t in #(
22932 no|yes) ;; #(
22933 *)
22934
22935cat >>confdefs.h <<_ACEOF
22936#define int32_t $ac_cv_c_int32_t
22937_ACEOF
22938;;
22939esac
22940
22941ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22942case $ac_cv_c_int64_t in #(
22943 no|yes) ;; #(
22944 *)
22945
22946cat >>confdefs.h <<_ACEOF
22947#define int64_t $ac_cv_c_int64_t
22948_ACEOF
22949;;
22950esac
22951
22952
cristy045228a2013-06-23 11:00:16 +000022953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22954$as_echo_n "checking for unsigned long long int... " >&6; }
22955if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022956 $as_echo_n "(cached) " >&6
22957else
cristy045228a2013-06-23 11:00:16 +000022958 ac_cv_type_unsigned_long_long_int=yes
22959 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022961/* end confdefs.h. */
22962
22963 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022964 implementations with broken preprocessors. Perhaps this can
22965 be revisited in 2012. In the meantime, code should not expect
22966 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022967 /* Test literals. */
22968 long long int ll = 9223372036854775807ll;
22969 long long int nll = -9223372036854775807LL;
22970 unsigned long long int ull = 18446744073709551615ULL;
22971 /* Test constant expressions. */
22972 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022973 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022974 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022975 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022976 int i = 63;
22977int
22978main ()
22979{
22980/* Test availability of runtime routines for shift and division. */
22981 long long int llmax = 9223372036854775807ll;
22982 unsigned long long int ullmax = 18446744073709551615ull;
22983 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022984 | (llmax / ll) | (llmax % ll)
22985 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22986 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022987 ;
22988 return 0;
22989}
22990
22991_ACEOF
22992if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022993
22994else
22995 ac_cv_type_unsigned_long_long_int=no
22996fi
22997rm -f core conftest.err conftest.$ac_objext \
22998 conftest$ac_exeext conftest.$ac_ext
22999 fi
23000fi
23001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23002$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23003 if test $ac_cv_type_unsigned_long_long_int = yes; then
23004
23005$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23006
23007 fi
23008
23009
23010
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23012$as_echo_n "checking for long long int... " >&6; }
23013if ${ac_cv_type_long_long_int+:} false; then :
23014 $as_echo_n "(cached) " >&6
23015else
cristy501c8042011-05-26 17:46:28 +000023016 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023017 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023018 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23019 if test $ac_cv_type_long_long_int = yes; then
23020 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023021 :
cristy501c8042011-05-26 17:46:28 +000023022else
23023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23024/* end confdefs.h. */
23025#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023026 #ifndef LLONG_MAX
23027 # define HALF \
23028 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23029 # define LLONG_MAX (HALF - 1 + HALF)
23030 #endif
cristy501c8042011-05-26 17:46:28 +000023031int
23032main ()
23033{
23034long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023035 int i;
23036 for (i = 0; ; i++)
23037 {
23038 long long int m = n << i;
23039 if (m >> i != n)
23040 return 1;
23041 if (LLONG_MAX / 2 < m)
23042 break;
23043 }
23044 return 0;
cristy501c8042011-05-26 17:46:28 +000023045 ;
23046 return 0;
23047}
23048_ACEOF
23049if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023050
cristy501c8042011-05-26 17:46:28 +000023051else
23052 ac_cv_type_long_long_int=no
23053fi
23054rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23055 conftest.$ac_objext conftest.beam conftest.$ac_ext
23056fi
23057
cristy5ed9c6e2013-07-14 21:20:31 +000023058 fi
cristy045228a2013-06-23 11:00:16 +000023059 fi
cristy501c8042011-05-26 17:46:28 +000023060fi
23061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23062$as_echo "$ac_cv_type_long_long_int" >&6; }
23063 if test $ac_cv_type_long_long_int = yes; then
23064
23065$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23066
23067 fi
23068
23069
23070
23071 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23072if test "x$ac_cv_type_intmax_t" = xyes; then :
23073
23074$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23075
23076else
23077 test $ac_cv_type_long_long_int = yes \
23078 && ac_type='long long int' \
23079 || ac_type='long int'
23080
23081cat >>confdefs.h <<_ACEOF
23082#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023083_ACEOF
23084
23085fi
23086
23087
cristy501c8042011-05-26 17:46:28 +000023088
23089 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23090if test "x$ac_cv_type_intptr_t" = xyes; then :
23091
23092$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023093
cristy3ed852e2009-09-05 21:47:34 +000023094else
cristy501c8042011-05-26 17:46:28 +000023095 for ac_type in 'int' 'long int' 'long long int'; do
23096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23097/* end confdefs.h. */
23098$ac_includes_default
23099int
23100main ()
23101{
23102static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023103test_array [0] = 0;
23104return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023105
23106 ;
23107 return 0;
23108}
23109_ACEOF
23110if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023111
23112cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023113#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023114_ACEOF
23115
cristy501c8042011-05-26 17:46:28 +000023116 ac_type=
23117fi
23118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23119 test -z "$ac_type" && break
23120 done
cristy3ed852e2009-09-05 21:47:34 +000023121fi
23122
23123
cristy3ed852e2009-09-05 21:47:34 +000023124
cristy501c8042011-05-26 17:46:28 +000023125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23126$as_echo_n "checking for long double... " >&6; }
23127if ${ac_cv_type_long_double+:} false; then :
23128 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023129else
cristy501c8042011-05-26 17:46:28 +000023130 if test "$GCC" = yes; then
23131 ac_cv_type_long_double=yes
23132 else
23133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23134/* end confdefs.h. */
23135/* The Stardent Vistra knows sizeof (long double), but does
23136 not support it. */
23137 long double foo = 0.0L;
23138int
23139main ()
23140{
23141static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23142 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023143test_array [0] = 0;
23144return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023145
cristy501c8042011-05-26 17:46:28 +000023146 ;
23147 return 0;
23148}
cristy3ed852e2009-09-05 21:47:34 +000023149_ACEOF
cristy501c8042011-05-26 17:46:28 +000023150if ac_fn_c_try_compile "$LINENO"; then :
23151 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023152else
cristy501c8042011-05-26 17:46:28 +000023153 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023154fi
cristy501c8042011-05-26 17:46:28 +000023155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156 fi
cristy3ed852e2009-09-05 21:47:34 +000023157fi
cristy501c8042011-05-26 17:46:28 +000023158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23159$as_echo "$ac_cv_type_long_double" >&6; }
23160 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023161
cristy501c8042011-05-26 17:46:28 +000023162$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023163
cristy501c8042011-05-26 17:46:28 +000023164 fi
23165
cristy3ed852e2009-09-05 21:47:34 +000023166
cristy8b350f62009-11-15 23:12:43 +000023167 { $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 +000023168$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023169if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023170 $as_echo_n "(cached) " >&6
23171else
cristy8b350f62009-11-15 23:12:43 +000023172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023173/* end confdefs.h. */
23174#include <float.h>
23175 long double const a[] =
23176 {
23177 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23178 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23179 };
23180 long double
23181 f (long double x)
23182 {
23183 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23184 + (x ? f (x) : 'c'));
23185 }
23186
23187int
23188main ()
23189{
23190static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23191 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23192 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23193 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23194 && (int) LDBL_EPSILON == 0
23195 )];
cristy14fefe52012-05-21 00:59:18 +000023196test_array [0] = 0;
23197return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023198
23199 ;
23200 return 0;
23201}
23202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023203if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023204 ac_cv_type_long_double_wider=yes
23205else
cristy8b350f62009-11-15 23:12:43 +000023206 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023207fi
cristy3ed852e2009-09-05 21:47:34 +000023208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23209fi
cristy8b350f62009-11-15 23:12:43 +000023210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023211$as_echo "$ac_cv_type_long_double_wider" >&6; }
23212 if test $ac_cv_type_long_double_wider = yes; then
23213
cristy8b350f62009-11-15 23:12:43 +000023214$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023215
23216 fi
23217
23218
cristy045228a2013-06-23 11:00:16 +000023219
cristy501c8042011-05-26 17:46:28 +000023220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23221$as_echo_n "checking for long long int... " >&6; }
23222if ${ac_cv_type_long_long_int+:} false; then :
23223 $as_echo_n "(cached) " >&6
23224else
cristy501c8042011-05-26 17:46:28 +000023225 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023226 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023227 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23228 if test $ac_cv_type_long_long_int = yes; then
23229 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023230 :
cristy501c8042011-05-26 17:46:28 +000023231else
23232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23233/* end confdefs.h. */
23234#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023235 #ifndef LLONG_MAX
23236 # define HALF \
23237 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23238 # define LLONG_MAX (HALF - 1 + HALF)
23239 #endif
cristy501c8042011-05-26 17:46:28 +000023240int
23241main ()
23242{
23243long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023244 int i;
23245 for (i = 0; ; i++)
23246 {
23247 long long int m = n << i;
23248 if (m >> i != n)
23249 return 1;
23250 if (LLONG_MAX / 2 < m)
23251 break;
23252 }
23253 return 0;
cristy501c8042011-05-26 17:46:28 +000023254 ;
23255 return 0;
23256}
23257_ACEOF
23258if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023259
cristy501c8042011-05-26 17:46:28 +000023260else
23261 ac_cv_type_long_long_int=no
23262fi
23263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23264 conftest.$ac_objext conftest.beam conftest.$ac_ext
23265fi
23266
cristy5ed9c6e2013-07-14 21:20:31 +000023267 fi
cristy045228a2013-06-23 11:00:16 +000023268 fi
cristy501c8042011-05-26 17:46:28 +000023269fi
23270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23271$as_echo "$ac_cv_type_long_long_int" >&6; }
23272 if test $ac_cv_type_long_long_int = yes; then
23273
23274$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23275
23276 fi
23277
23278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23279$as_echo_n "checking for mbstate_t... " >&6; }
23280if ${ac_cv_type_mbstate_t+:} false; then :
23281 $as_echo_n "(cached) " >&6
23282else
23283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23284/* end confdefs.h. */
23285$ac_includes_default
23286# include <wchar.h>
23287int
23288main ()
23289{
23290mbstate_t x; return sizeof x;
23291 ;
23292 return 0;
23293}
23294_ACEOF
23295if ac_fn_c_try_compile "$LINENO"; then :
23296 ac_cv_type_mbstate_t=yes
23297else
23298 ac_cv_type_mbstate_t=no
23299fi
23300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23301fi
23302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23303$as_echo "$ac_cv_type_mbstate_t" >&6; }
23304 if test $ac_cv_type_mbstate_t = yes; then
23305
23306$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23307
23308 else
23309
23310$as_echo "#define mbstate_t int" >>confdefs.h
23311
23312 fi
23313ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23314if test "x$ac_cv_type_mode_t" = xyes; then :
23315
23316else
23317
23318cat >>confdefs.h <<_ACEOF
23319#define mode_t int
23320_ACEOF
23321
23322fi
23323
23324ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23325if test "x$ac_cv_type_off_t" = xyes; then :
23326
23327else
23328
23329cat >>confdefs.h <<_ACEOF
23330#define off_t long int
23331_ACEOF
23332
23333fi
23334
23335ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23336if test "x$ac_cv_type_pid_t" = xyes; then :
23337
23338else
23339
23340cat >>confdefs.h <<_ACEOF
23341#define pid_t int
23342_ACEOF
23343
23344fi
23345
23346ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23347if test "x$ac_cv_type_size_t" = xyes; then :
23348
23349else
23350
23351cat >>confdefs.h <<_ACEOF
23352#define size_t unsigned int
23353_ACEOF
23354
23355fi
23356
23357ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23358if test "x$ac_cv_type_ssize_t" = xyes; then :
23359
23360else
23361
23362cat >>confdefs.h <<_ACEOF
23363#define ssize_t int
23364_ACEOF
23365
23366fi
23367
23368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23369$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23370if ${ac_cv_type_uid_t+:} false; then :
23371 $as_echo_n "(cached) " >&6
23372else
23373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23374/* end confdefs.h. */
23375#include <sys/types.h>
23376
23377_ACEOF
23378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23379 $EGREP "uid_t" >/dev/null 2>&1; then :
23380 ac_cv_type_uid_t=yes
23381else
23382 ac_cv_type_uid_t=no
23383fi
23384rm -f conftest*
23385
23386fi
23387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23388$as_echo "$ac_cv_type_uid_t" >&6; }
23389if test $ac_cv_type_uid_t = no; then
23390
23391$as_echo "#define uid_t int" >>confdefs.h
23392
23393
23394$as_echo "#define gid_t int" >>confdefs.h
23395
23396fi
23397
23398ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23399case $ac_cv_c_uint8_t in #(
23400 no|yes) ;; #(
23401 *)
23402
23403$as_echo "#define _UINT8_T 1" >>confdefs.h
23404
23405
23406cat >>confdefs.h <<_ACEOF
23407#define uint8_t $ac_cv_c_uint8_t
23408_ACEOF
23409;;
23410 esac
23411
23412ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23413case $ac_cv_c_uint16_t in #(
23414 no|yes) ;; #(
23415 *)
23416
23417
23418cat >>confdefs.h <<_ACEOF
23419#define uint16_t $ac_cv_c_uint16_t
23420_ACEOF
23421;;
23422 esac
23423
23424ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23425case $ac_cv_c_uint32_t in #(
23426 no|yes) ;; #(
23427 *)
23428
23429$as_echo "#define _UINT32_T 1" >>confdefs.h
23430
23431
23432cat >>confdefs.h <<_ACEOF
23433#define uint32_t $ac_cv_c_uint32_t
23434_ACEOF
23435;;
23436 esac
23437
23438ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23439case $ac_cv_c_uint64_t in #(
23440 no|yes) ;; #(
23441 *)
23442
23443$as_echo "#define _UINT64_T 1" >>confdefs.h
23444
23445
23446cat >>confdefs.h <<_ACEOF
23447#define uint64_t $ac_cv_c_uint64_t
23448_ACEOF
23449;;
23450 esac
23451
23452
cristy501c8042011-05-26 17:46:28 +000023453
23454 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23455if test "x$ac_cv_type_uintmax_t" = xyes; then :
23456
23457$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23458
23459else
23460 test $ac_cv_type_unsigned_long_long_int = yes \
23461 && ac_type='unsigned long long int' \
23462 || ac_type='unsigned long int'
23463
23464cat >>confdefs.h <<_ACEOF
23465#define uintmax_t $ac_type
23466_ACEOF
23467
23468fi
23469
23470
23471
23472 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23473if test "x$ac_cv_type_uintptr_t" = xyes; then :
23474
23475$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23476
23477else
23478 for ac_type in 'unsigned int' 'unsigned long int' \
23479 'unsigned long long int'; do
23480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23481/* end confdefs.h. */
23482$ac_includes_default
23483int
23484main ()
23485{
23486static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023487test_array [0] = 0;
23488return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023489
23490 ;
23491 return 0;
23492}
23493_ACEOF
23494if ac_fn_c_try_compile "$LINENO"; then :
23495
23496cat >>confdefs.h <<_ACEOF
23497#define uintptr_t $ac_type
23498_ACEOF
23499
23500 ac_type=
23501fi
23502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23503 test -z "$ac_type" && break
23504 done
23505fi
23506
23507
23508
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23510$as_echo_n "checking for unsigned long long int... " >&6; }
23511if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23512 $as_echo_n "(cached) " >&6
23513else
cristy045228a2013-06-23 11:00:16 +000023514 ac_cv_type_unsigned_long_long_int=yes
23515 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023517/* end confdefs.h. */
23518
23519 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023520 implementations with broken preprocessors. Perhaps this can
23521 be revisited in 2012. In the meantime, code should not expect
23522 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023523 /* Test literals. */
23524 long long int ll = 9223372036854775807ll;
23525 long long int nll = -9223372036854775807LL;
23526 unsigned long long int ull = 18446744073709551615ULL;
23527 /* Test constant expressions. */
23528 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023529 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023530 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023531 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023532 int i = 63;
23533int
23534main ()
23535{
23536/* Test availability of runtime routines for shift and division. */
23537 long long int llmax = 9223372036854775807ll;
23538 unsigned long long int ullmax = 18446744073709551615ull;
23539 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023540 | (llmax / ll) | (llmax % ll)
23541 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23542 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023543 ;
23544 return 0;
23545}
23546
23547_ACEOF
23548if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023549
cristy501c8042011-05-26 17:46:28 +000023550else
23551 ac_cv_type_unsigned_long_long_int=no
23552fi
23553rm -f core conftest.err conftest.$ac_objext \
23554 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023555 fi
cristy501c8042011-05-26 17:46:28 +000023556fi
23557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23558$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23559 if test $ac_cv_type_unsigned_long_long_int = yes; then
23560
23561$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23562
23563 fi
23564
23565
cristyfec31822013-05-23 12:32:12 +000023566# Float_t and double_t are intended to be the the most efficient type.
23567ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23568"
23569if test "x$ac_cv_type_float_t" = xyes; then :
23570
23571cat >>confdefs.h <<_ACEOF
23572#define HAVE_FLOAT_T 1
23573_ACEOF
23574
23575
23576fi
23577
23578ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23579"
23580if test "x$ac_cv_type_double_t" = xyes; then :
23581
23582cat >>confdefs.h <<_ACEOF
23583#define HAVE_DOUBLE_T 1
23584_ACEOF
23585
23586
23587fi
23588
23589# The cast to long int works around a bug in the HP C Compiler
23590# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23591# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23592# This bug is HP SR number 8606223364.
23593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23594$as_echo_n "checking size of float_t... " >&6; }
23595if ${ac_cv_sizeof_float_t+:} false; then :
23596 $as_echo_n "(cached) " >&6
23597else
23598 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23599"; then :
23600
23601else
23602 if test "$ac_cv_type_float_t" = yes; then
23603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23605as_fn_error 77 "cannot compute sizeof (float_t)
23606See \`config.log' for more details" "$LINENO" 5; }
23607 else
23608 ac_cv_sizeof_float_t=0
23609 fi
23610fi
23611
23612fi
23613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23614$as_echo "$ac_cv_sizeof_float_t" >&6; }
23615
23616
23617
23618cat >>confdefs.h <<_ACEOF
23619#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23620_ACEOF
23621
23622
23623# The cast to long int works around a bug in the HP C Compiler
23624# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23625# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23626# This bug is HP SR number 8606223364.
23627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23628$as_echo_n "checking size of double_t... " >&6; }
23629if ${ac_cv_sizeof_double_t+:} false; then :
23630 $as_echo_n "(cached) " >&6
23631else
23632 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23633"; then :
23634
23635else
23636 if test "$ac_cv_type_double_t" = yes; then
23637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23639as_fn_error 77 "cannot compute sizeof (double_t)
23640See \`config.log' for more details" "$LINENO" 5; }
23641 else
23642 ac_cv_sizeof_double_t=0
23643 fi
23644fi
23645
23646fi
23647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23648$as_echo "$ac_cv_sizeof_double_t" >&6; }
23649
23650
23651
23652cat >>confdefs.h <<_ACEOF
23653#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23654_ACEOF
23655
23656
23657
cristy9b86f202012-11-28 21:55:35 +000023658# Get size of float, double and long double for comparaison.
23659# The cast to long int works around a bug in the HP C Compiler
23660# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23661# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23662# This bug is HP SR number 8606223364.
23663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23664$as_echo_n "checking size of float... " >&6; }
23665if ${ac_cv_sizeof_float+:} false; then :
23666 $as_echo_n "(cached) " >&6
23667else
23668 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23669
23670else
23671 if test "$ac_cv_type_float" = yes; then
23672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23674as_fn_error 77 "cannot compute sizeof (float)
23675See \`config.log' for more details" "$LINENO" 5; }
23676 else
23677 ac_cv_sizeof_float=0
23678 fi
23679fi
23680
23681fi
23682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23683$as_echo "$ac_cv_sizeof_float" >&6; }
23684
23685
23686
23687cat >>confdefs.h <<_ACEOF
23688#define SIZEOF_FLOAT $ac_cv_sizeof_float
23689_ACEOF
23690
23691
23692# The cast to long int works around a bug in the HP C Compiler
23693# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23694# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23695# This bug is HP SR number 8606223364.
23696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23697$as_echo_n "checking size of double... " >&6; }
23698if ${ac_cv_sizeof_double+:} false; then :
23699 $as_echo_n "(cached) " >&6
23700else
23701 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23702
23703else
23704 if test "$ac_cv_type_double" = yes; then
23705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23707as_fn_error 77 "cannot compute sizeof (double)
23708See \`config.log' for more details" "$LINENO" 5; }
23709 else
23710 ac_cv_sizeof_double=0
23711 fi
23712fi
23713
23714fi
23715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23716$as_echo "$ac_cv_sizeof_double" >&6; }
23717
23718
23719
23720cat >>confdefs.h <<_ACEOF
23721#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23722_ACEOF
23723
23724
cristy9e2b6242014-03-25 11:49:41 +000023725# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000023726# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23727# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23728# This bug is HP SR number 8606223364.
23729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23730$as_echo_n "checking size of long double... " >&6; }
23731if ${ac_cv_sizeof_long_double+:} false; then :
23732 $as_echo_n "(cached) " >&6
23733else
23734 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23735
23736else
23737 if test "$ac_cv_type_long_double" = yes; then
23738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23740as_fn_error 77 "cannot compute sizeof (long double)
23741See \`config.log' for more details" "$LINENO" 5; }
23742 else
23743 ac_cv_sizeof_long_double=0
23744 fi
23745fi
23746
23747fi
23748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23749$as_echo "$ac_cv_sizeof_long_double" >&6; }
23750
23751
23752
23753cat >>confdefs.h <<_ACEOF
23754#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23755_ACEOF
23756
23757
cristyf0cf9a22012-10-24 12:05:01 +000023758
cristy3ed852e2009-09-05 21:47:34 +000023759# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23760# The cast to long int works around a bug in the HP C Compiler
23761# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23762# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23763# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023765$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023766if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023767 $as_echo_n "(cached) " >&6
23768else
cristy8b350f62009-11-15 23:12:43 +000023769 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 +000023770
cristy3ed852e2009-09-05 21:47:34 +000023771else
cristy8b350f62009-11-15 23:12:43 +000023772 if test "$ac_cv_type_signed_short" = yes; then
23773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023775as_fn_error 77 "cannot compute sizeof (signed short)
23776See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023777 else
23778 ac_cv_sizeof_signed_short=0
23779 fi
23780fi
cristy8b350f62009-11-15 23:12:43 +000023781
cristy3ed852e2009-09-05 21:47:34 +000023782fi
cristy8b350f62009-11-15 23:12:43 +000023783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023784$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23785
23786
23787
23788cat >>confdefs.h <<_ACEOF
23789#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23790_ACEOF
23791
23792
23793
23794# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23795# The cast to long int works around a bug in the HP C Compiler
23796# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23797# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23798# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023800$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023801if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023802 $as_echo_n "(cached) " >&6
23803else
cristy8b350f62009-11-15 23:12:43 +000023804 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 +000023805
cristy3ed852e2009-09-05 21:47:34 +000023806else
cristy8b350f62009-11-15 23:12:43 +000023807 if test "$ac_cv_type_unsigned_short" = yes; then
23808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023810as_fn_error 77 "cannot compute sizeof (unsigned short)
23811See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023812 else
23813 ac_cv_sizeof_unsigned_short=0
23814 fi
23815fi
cristy8b350f62009-11-15 23:12:43 +000023816
cristy3ed852e2009-09-05 21:47:34 +000023817fi
cristy8b350f62009-11-15 23:12:43 +000023818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023819$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23820
23821
23822
23823cat >>confdefs.h <<_ACEOF
23824#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23825_ACEOF
23826
23827
23828
23829# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23830# The cast to long int works around a bug in the HP C Compiler
23831# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23832# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23833# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023835$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023836if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023837 $as_echo_n "(cached) " >&6
23838else
cristy8b350f62009-11-15 23:12:43 +000023839 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 +000023840
cristy3ed852e2009-09-05 21:47:34 +000023841else
cristy8b350f62009-11-15 23:12:43 +000023842 if test "$ac_cv_type_signed_int" = yes; then
23843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023845as_fn_error 77 "cannot compute sizeof (signed int)
23846See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023847 else
23848 ac_cv_sizeof_signed_int=0
23849 fi
23850fi
cristy8b350f62009-11-15 23:12:43 +000023851
cristy3ed852e2009-09-05 21:47:34 +000023852fi
cristy8b350f62009-11-15 23:12:43 +000023853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023854$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23855
23856
23857
23858cat >>confdefs.h <<_ACEOF
23859#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23860_ACEOF
23861
23862
23863
23864# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23865# The cast to long int works around a bug in the HP C Compiler
23866# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23867# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23868# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023870$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023871if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023872 $as_echo_n "(cached) " >&6
23873else
cristy8b350f62009-11-15 23:12:43 +000023874 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 +000023875
cristy3ed852e2009-09-05 21:47:34 +000023876else
cristy8b350f62009-11-15 23:12:43 +000023877 if test "$ac_cv_type_unsigned_int" = yes; then
23878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023880as_fn_error 77 "cannot compute sizeof (unsigned int)
23881See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023882 else
23883 ac_cv_sizeof_unsigned_int=0
23884 fi
23885fi
cristy8b350f62009-11-15 23:12:43 +000023886
cristy3ed852e2009-09-05 21:47:34 +000023887fi
cristy8b350f62009-11-15 23:12:43 +000023888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023889$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23890
23891
23892
23893cat >>confdefs.h <<_ACEOF
23894#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23895_ACEOF
23896
23897
23898
23899# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23900# The cast to long int works around a bug in the HP C Compiler
23901# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23902# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23903# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023905$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023906if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023907 $as_echo_n "(cached) " >&6
23908else
cristy8b350f62009-11-15 23:12:43 +000023909 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 +000023910
cristy3ed852e2009-09-05 21:47:34 +000023911else
cristy8b350f62009-11-15 23:12:43 +000023912 if test "$ac_cv_type_signed_long" = yes; then
23913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023915as_fn_error 77 "cannot compute sizeof (signed long)
23916See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023917 else
23918 ac_cv_sizeof_signed_long=0
23919 fi
23920fi
cristy8b350f62009-11-15 23:12:43 +000023921
cristy3ed852e2009-09-05 21:47:34 +000023922fi
cristy8b350f62009-11-15 23:12:43 +000023923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023924$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23925
23926
23927
23928cat >>confdefs.h <<_ACEOF
23929#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23930_ACEOF
23931
23932
23933
23934# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23935# The cast to long int works around a bug in the HP C Compiler
23936# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23937# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23938# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023940$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023941if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023942 $as_echo_n "(cached) " >&6
23943else
cristy8b350f62009-11-15 23:12:43 +000023944 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 +000023945
cristy3ed852e2009-09-05 21:47:34 +000023946else
cristy8b350f62009-11-15 23:12:43 +000023947 if test "$ac_cv_type_unsigned_long" = yes; then
23948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023950as_fn_error 77 "cannot compute sizeof (unsigned long)
23951See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023952 else
23953 ac_cv_sizeof_unsigned_long=0
23954 fi
23955fi
cristy8b350f62009-11-15 23:12:43 +000023956
cristy3ed852e2009-09-05 21:47:34 +000023957fi
cristy8b350f62009-11-15 23:12:43 +000023958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023959$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23960
23961
23962
23963cat >>confdefs.h <<_ACEOF
23964#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23965_ACEOF
23966
23967
23968
23969# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23970# 'signed long long' is not supported then the value defined is zero.
23971# The cast to long int works around a bug in the HP C Compiler
23972# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23973# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23974# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023976$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023977if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023978 $as_echo_n "(cached) " >&6
23979else
cristy8b350f62009-11-15 23:12:43 +000023980 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 +000023981
cristy3ed852e2009-09-05 21:47:34 +000023982else
cristy8b350f62009-11-15 23:12:43 +000023983 if test "$ac_cv_type_signed_long_long" = yes; then
23984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023986as_fn_error 77 "cannot compute sizeof (signed long long)
23987See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023988 else
23989 ac_cv_sizeof_signed_long_long=0
23990 fi
23991fi
cristy8b350f62009-11-15 23:12:43 +000023992
cristy3ed852e2009-09-05 21:47:34 +000023993fi
cristy8b350f62009-11-15 23:12:43 +000023994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023995$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23996
23997
23998
23999cat >>confdefs.h <<_ACEOF
24000#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24001_ACEOF
24002
24003
24004
24005# Obtain size of a 'unsigned long long' and define as
24006# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24007# supported then the value defined is zero.
24008# The cast to long int works around a bug in the HP C Compiler
24009# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24010# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24011# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024013$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024014if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024015 $as_echo_n "(cached) " >&6
24016else
cristy8b350f62009-11-15 23:12:43 +000024017 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 +000024018
cristy3ed852e2009-09-05 21:47:34 +000024019else
cristy8b350f62009-11-15 23:12:43 +000024020 if test "$ac_cv_type_unsigned_long_long" = yes; then
24021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024023as_fn_error 77 "cannot compute sizeof (unsigned long long)
24024See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024025 else
24026 ac_cv_sizeof_unsigned_long_long=0
24027 fi
24028fi
cristy8b350f62009-11-15 23:12:43 +000024029
cristy3ed852e2009-09-05 21:47:34 +000024030fi
cristy8b350f62009-11-15 23:12:43 +000024031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024032$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24033
24034
24035
24036cat >>confdefs.h <<_ACEOF
24037#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24038_ACEOF
24039
24040
24041
cristyfec31822013-05-23 12:32:12 +000024042# Obtain size of off_t and define as SIZEOF_OFF_T
24043# The cast to long int works around a bug in the HP C Compiler
24044# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24045# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24046# This bug is HP SR number 8606223364.
24047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24048$as_echo_n "checking size of off_t... " >&6; }
24049if ${ac_cv_sizeof_off_t+:} false; then :
24050 $as_echo_n "(cached) " >&6
24051else
24052 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24053
24054else
24055 if test "$ac_cv_type_off_t" = yes; then
24056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24058as_fn_error 77 "cannot compute sizeof (off_t)
24059See \`config.log' for more details" "$LINENO" 5; }
24060 else
24061 ac_cv_sizeof_off_t=0
24062 fi
24063fi
24064
24065fi
24066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24067$as_echo "$ac_cv_sizeof_off_t" >&6; }
24068
24069
24070
24071cat >>confdefs.h <<_ACEOF
24072#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24073_ACEOF
24074
24075
24076
24077# Obtain size of size_t and define as SIZEOF_SIZE_T
24078# The cast to long int works around a bug in the HP C Compiler
24079# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24080# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24081# This bug is HP SR number 8606223364.
24082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24083$as_echo_n "checking size of size_t... " >&6; }
24084if ${ac_cv_sizeof_size_t+:} false; then :
24085 $as_echo_n "(cached) " >&6
24086else
24087 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24088
24089else
24090 if test "$ac_cv_type_size_t" = yes; then
24091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24093as_fn_error 77 "cannot compute sizeof (size_t)
24094See \`config.log' for more details" "$LINENO" 5; }
24095 else
24096 ac_cv_sizeof_size_t=0
24097 fi
24098fi
24099
24100fi
24101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24102$as_echo "$ac_cv_sizeof_size_t" >&6; }
24103
24104
24105
24106cat >>confdefs.h <<_ACEOF
24107#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24108_ACEOF
24109
24110
24111
24112# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24113# The cast to long int works around a bug in the HP C Compiler
24114# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24115# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24116# This bug is HP SR number 8606223364.
24117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24118$as_echo_n "checking size of ssize_t... " >&6; }
24119if ${ac_cv_sizeof_ssize_t+:} false; then :
24120 $as_echo_n "(cached) " >&6
24121else
24122 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24123
24124else
24125 if test "$ac_cv_type_ssize_t" = yes; then
24126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24128as_fn_error 77 "cannot compute sizeof (ssize_t)
24129See \`config.log' for more details" "$LINENO" 5; }
24130 else
24131 ac_cv_sizeof_ssize_t=0
24132 fi
24133fi
24134
24135fi
24136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24137$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24138
24139
24140
24141cat >>confdefs.h <<_ACEOF
24142#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24143_ACEOF
24144
24145
24146
cristy3ed852e2009-09-05 21:47:34 +000024147# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24148# The cast to long int works around a bug in the HP C Compiler
24149# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24150# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24151# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024153$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024154if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024155 $as_echo_n "(cached) " >&6
24156else
cristy8b350f62009-11-15 23:12:43 +000024157 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 +000024158
cristy3ed852e2009-09-05 21:47:34 +000024159else
cristy8b350f62009-11-15 23:12:43 +000024160 if test "$ac_cv_type_unsigned_intp" = yes; then
24161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024163as_fn_error 77 "cannot compute sizeof (unsigned int*)
24164See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024165 else
24166 ac_cv_sizeof_unsigned_intp=0
24167 fi
24168fi
cristy8b350f62009-11-15 23:12:43 +000024169
cristy3ed852e2009-09-05 21:47:34 +000024170fi
cristy8b350f62009-11-15 23:12:43 +000024171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024172$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24173
24174
24175
24176cat >>confdefs.h <<_ACEOF
24177#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24178_ACEOF
24179
24180
24181
24182#
24183# Compute sized types for current CPU and compiler options.
24184#
24185
cristy8b350f62009-11-15 23:12:43 +000024186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024187$as_echo_n "checking for signed 8-bit type... " >&6; }
24188INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24190$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024191
24192
cristy8b350f62009-11-15 23:12:43 +000024193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024194$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24195UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24197$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024198
24199
cristy8b350f62009-11-15 23:12:43 +000024200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024201$as_echo_n "checking for signed 16-bit type... " >&6; }
24202INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24204$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024205
24206
cristy8b350f62009-11-15 23:12:43 +000024207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024208$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24209UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24211$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024212
24213
cristy8b350f62009-11-15 23:12:43 +000024214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024215$as_echo_n "checking for signed 32-bit type... " >&6; }
24216INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024217INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024218if test $ac_cv_sizeof_signed_int -eq 4; then
24219 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024220 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024221elif test $ac_cv_sizeof_signed_long -eq 4; then
24222 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024223 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024224fi
cristyad38abe2012-12-23 23:03:21 +000024225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24226$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024227
24228
cristy6d5e20f2011-04-25 13:48:54 +000024229
cristy8b350f62009-11-15 23:12:43 +000024230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024231$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24232UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024233UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024234if test $ac_cv_sizeof_unsigned_int -eq 4; then
24235 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024236 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024237elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24238 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024239 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024240fi
cristyad38abe2012-12-23 23:03:21 +000024241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24242$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024243
24244
cristy6d5e20f2011-04-25 13:48:54 +000024245
cristy8b350f62009-11-15 23:12:43 +000024246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024247$as_echo_n "checking for signed 64-bit type... " >&6; }
24248INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024249INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024250if test $ac_cv_sizeof_signed_long -eq 8; then
24251 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024252 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024253elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24254 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024255 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024256fi
cristy3a99dcf2011-12-17 01:29:40 +000024257case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024258 mingw* )
24259 INT64_F='"I64"'
24260 ;;
24261esac
cristyad38abe2012-12-23 23:03:21 +000024262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24263$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024264
24265
cristy6d5e20f2011-04-25 13:48:54 +000024266
cristy8b350f62009-11-15 23:12:43 +000024267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024268$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24269UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024270UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024271if test $ac_cv_sizeof_unsigned_long -eq 8; then
24272 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024273 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024274elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24275 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024276 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024277fi
cristy3a99dcf2011-12-17 01:29:40 +000024278case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024279 mingw* )
24280 UINT64_F='"I64"'
24281 ;;
24282esac
cristyad38abe2012-12-23 23:03:21 +000024283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24284$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024285
24286
cristy6d5e20f2011-04-25 13:48:54 +000024287
cristy8b350f62009-11-15 23:12:43 +000024288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024289$as_echo_n "checking for unsigned maximum type... " >&6; }
24290UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024291UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024292if test "$UINT64_T" != 'none'; then
24293 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024294 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024295elif test "$UINT32_T" != 'none'; then
24296 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024297 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024298fi
cristyad38abe2012-12-23 23:03:21 +000024299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24300$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024301
24302
cristy6d5e20f2011-04-25 13:48:54 +000024303
cristy8b350f62009-11-15 23:12:43 +000024304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024305$as_echo_n "checking for pointer difference type... " >&6; }
24306UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024307UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024308if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24309 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024310 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024311elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24312 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024313 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024314fi
cristyad38abe2012-12-23 23:03:21 +000024315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24316$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024317
24318
cristy6d5e20f2011-04-25 13:48:54 +000024319
cristy8b350f62009-11-15 23:12:43 +000024320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024321$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024323/* end confdefs.h. */
24324
24325int
24326main ()
24327{
24328{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24329 ;
24330 return 0;
24331}
24332_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024333if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24335$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024336else
cristyad38abe2012-12-23 23:03:21 +000024337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24338$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024340$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024342/* end confdefs.h. */
24343
24344int
24345main ()
24346{
24347{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24348 ;
24349 return 0;
24350}
24351_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024352if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24354$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024355
cristy8b350f62009-11-15 23:12:43 +000024356$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024357
24358else
cristyad38abe2012-12-23 23:03:21 +000024359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24360$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024361
cristy8b350f62009-11-15 23:12:43 +000024362$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024363
24364fi
cristy3ed852e2009-09-05 21:47:34 +000024365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24366fi
cristy3ed852e2009-09-05 21:47:34 +000024367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24368
24369########
24370#
24371# Check for functions
24372#
24373########
cristy8b350f62009-11-15 23:12:43 +000024374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024375$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024376if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024377 $as_echo_n "(cached) " >&6
24378else
cristy8b350f62009-11-15 23:12:43 +000024379 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024380 ac_cv_func_closedir_void=yes
24381else
cristy8b350f62009-11-15 23:12:43 +000024382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024383/* end confdefs.h. */
24384$ac_includes_default
24385#include <$ac_header_dirent>
24386#ifndef __cplusplus
24387int closedir ();
24388#endif
24389
24390int
24391main ()
24392{
24393return closedir (opendir (".")) != 0;
24394 ;
24395 return 0;
24396}
24397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024398if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024399 ac_cv_func_closedir_void=no
24400else
cristy8b350f62009-11-15 23:12:43 +000024401 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024402fi
cristy8b350f62009-11-15 23:12:43 +000024403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24404 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024405fi
24406
cristy3ed852e2009-09-05 21:47:34 +000024407fi
cristy8b350f62009-11-15 23:12:43 +000024408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024409$as_echo "$ac_cv_func_closedir_void" >&6; }
24410if test $ac_cv_func_closedir_void = yes; then
24411
cristy8b350f62009-11-15 23:12:43 +000024412$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024413
24414fi
24415
cristycd4c5312009-11-22 01:19:08 +000024416
24417
24418
24419 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024420do :
24421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024422ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24423"
cristy98dddb52010-11-04 00:30:15 +000024424if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024425 cat >>confdefs.h <<_ACEOF
24426#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24427_ACEOF
24428
24429fi
24430
24431done
24432
cristycd4c5312009-11-22 01:19:08 +000024433
24434
24435
24436
24437
24438
24439
cristy3ed852e2009-09-05 21:47:34 +000024440for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024441do :
24442 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024443if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024444 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024445#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024446_ACEOF
24447
24448fi
24449done
24450
cristy8b350f62009-11-15 23:12:43 +000024451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024452$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024453if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024454 $as_echo_n "(cached) " >&6
24455else
cristy8b350f62009-11-15 23:12:43 +000024456 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024457 ac_cv_func_mmap_fixed_mapped=no
24458else
cristy8b350f62009-11-15 23:12:43 +000024459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024460/* end confdefs.h. */
24461$ac_includes_default
24462/* malloc might have been renamed as rpl_malloc. */
24463#undef malloc
24464
24465/* Thanks to Mike Haertel and Jim Avera for this test.
24466 Here is a matrix of mmap possibilities:
24467 mmap private not fixed
24468 mmap private fixed at somewhere currently unmapped
24469 mmap private fixed at somewhere already mapped
24470 mmap shared not fixed
24471 mmap shared fixed at somewhere currently unmapped
24472 mmap shared fixed at somewhere already mapped
24473 For private mappings, we should verify that changes cannot be read()
24474 back from the file, nor mmap's back from the file at a different
24475 address. (There have been systems where private was not correctly
24476 implemented like the infamous i386 svr4.0, and systems where the
24477 VM page cache was not coherent with the file system buffer cache
24478 like early versions of FreeBSD and possibly contemporary NetBSD.)
24479 For shared mappings, we should conversely verify that changes get
24480 propagated back to all the places they're supposed to be.
24481
24482 Grep wants private fixed already mapped.
24483 The main things grep needs to know about mmap are:
24484 * does it exist and is it safe to write into the mmap'd area
24485 * how to use it (BSD variants) */
24486
24487#include <fcntl.h>
24488#include <sys/mman.h>
24489
24490#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24491char *malloc ();
24492#endif
24493
24494/* This mess was copied from the GNU getpagesize.h. */
24495#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024496# ifdef _SC_PAGESIZE
24497# define getpagesize() sysconf(_SC_PAGESIZE)
24498# else /* no _SC_PAGESIZE */
24499# ifdef HAVE_SYS_PARAM_H
24500# include <sys/param.h>
24501# ifdef EXEC_PAGESIZE
24502# define getpagesize() EXEC_PAGESIZE
24503# else /* no EXEC_PAGESIZE */
24504# ifdef NBPG
24505# define getpagesize() NBPG * CLSIZE
24506# ifndef CLSIZE
24507# define CLSIZE 1
24508# endif /* no CLSIZE */
24509# else /* no NBPG */
24510# ifdef NBPC
24511# define getpagesize() NBPC
24512# else /* no NBPC */
24513# ifdef PAGESIZE
24514# define getpagesize() PAGESIZE
24515# endif /* PAGESIZE */
24516# endif /* no NBPC */
24517# endif /* no NBPG */
24518# endif /* no EXEC_PAGESIZE */
24519# else /* no HAVE_SYS_PARAM_H */
24520# define getpagesize() 8192 /* punt totally */
24521# endif /* no HAVE_SYS_PARAM_H */
24522# endif /* no _SC_PAGESIZE */
24523
24524#endif /* no HAVE_GETPAGESIZE */
24525
24526int
24527main ()
24528{
24529 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024530 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024531 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024532 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024533
24534 pagesize = getpagesize ();
24535
24536 /* First, make a file with some known garbage in it. */
24537 data = (char *) malloc (pagesize);
24538 if (!data)
24539 return 1;
24540 for (i = 0; i < pagesize; ++i)
24541 *(data + i) = rand ();
24542 umask (0);
24543 fd = creat ("conftest.mmap", 0600);
24544 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024545 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024546 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024547 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024548 close (fd);
24549
cristycd4c5312009-11-22 01:19:08 +000024550 /* Next, check that the tail of a page is zero-filled. File must have
24551 non-zero length, otherwise we risk SIGBUS for entire page. */
24552 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24553 if (fd2 < 0)
24554 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024555 cdata2 = "";
24556 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024557 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024558 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024559 if (data2 == MAP_FAILED)
24560 return 6;
24561 for (i = 0; i < pagesize; ++i)
24562 if (*(data2 + i))
24563 return 7;
24564 close (fd2);
24565 if (munmap (data2, pagesize))
24566 return 8;
24567
cristy3ed852e2009-09-05 21:47:34 +000024568 /* Next, try to mmap the file at a fixed address which already has
24569 something else allocated at it. If we can, also make sure that
24570 we see the same garbage. */
24571 fd = open ("conftest.mmap", O_RDWR);
24572 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024573 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024574 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24575 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024576 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024577 for (i = 0; i < pagesize; ++i)
24578 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024579 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024580
24581 /* Finally, make sure that changes to the mapped area do not
24582 percolate back to the file as seen by read(). (This is a bug on
24583 some variants of i386 svr4.0.) */
24584 for (i = 0; i < pagesize; ++i)
24585 *(data2 + i) = *(data2 + i) + 1;
24586 data3 = (char *) malloc (pagesize);
24587 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024588 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024589 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024590 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024591 for (i = 0; i < pagesize; ++i)
24592 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024593 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024594 close (fd);
24595 return 0;
24596}
24597_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024598if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024599 ac_cv_func_mmap_fixed_mapped=yes
24600else
cristy8b350f62009-11-15 23:12:43 +000024601 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024602fi
cristy8b350f62009-11-15 23:12:43 +000024603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24604 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024605fi
24606
cristy3ed852e2009-09-05 21:47:34 +000024607fi
cristy8b350f62009-11-15 23:12:43 +000024608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024609$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24610if test $ac_cv_func_mmap_fixed_mapped = yes; then
24611
cristy8b350f62009-11-15 23:12:43 +000024612$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024613
24614fi
cristycd4c5312009-11-22 01:19:08 +000024615rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024616
cristy3ed852e2009-09-05 21:47:34 +000024617for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024618do :
24619 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024620if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024621 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024622#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024623_ACEOF
24624
24625fi
24626
24627done
24628
cristy3ed852e2009-09-05 21:47:34 +000024629for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024630do :
24631 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24632ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024633if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024634 cat >>confdefs.h <<_ACEOF
24635#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24636_ACEOF
24637
24638fi
24639done
24640
24641if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024643$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024644if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024645 $as_echo_n "(cached) " >&6
24646else
cristy8b350f62009-11-15 23:12:43 +000024647 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024648 ac_cv_func_fork_works=cross
24649else
cristy8b350f62009-11-15 23:12:43 +000024650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024651/* end confdefs.h. */
24652$ac_includes_default
24653int
24654main ()
24655{
24656
24657 /* By Ruediger Kuhlmann. */
24658 return fork () < 0;
24659
24660 ;
24661 return 0;
24662}
24663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024664if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024665 ac_cv_func_fork_works=yes
24666else
cristy8b350f62009-11-15 23:12:43 +000024667 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024668fi
cristy8b350f62009-11-15 23:12:43 +000024669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24670 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024671fi
24672
cristy3ed852e2009-09-05 21:47:34 +000024673fi
cristy8b350f62009-11-15 23:12:43 +000024674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024675$as_echo "$ac_cv_func_fork_works" >&6; }
24676
24677else
24678 ac_cv_func_fork_works=$ac_cv_func_fork
24679fi
24680if test "x$ac_cv_func_fork_works" = xcross; then
24681 case $host in
24682 *-*-amigaos* | *-*-msdosdjgpp*)
24683 # Override, as these systems have only a dummy fork() stub
24684 ac_cv_func_fork_works=no
24685 ;;
24686 *)
24687 ac_cv_func_fork_works=yes
24688 ;;
24689 esac
cristy8b350f62009-11-15 23:12:43 +000024690 { $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 +000024691$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24692fi
24693ac_cv_func_vfork_works=$ac_cv_func_vfork
24694if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024696$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024697if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024698 $as_echo_n "(cached) " >&6
24699else
cristy8b350f62009-11-15 23:12:43 +000024700 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024701 ac_cv_func_vfork_works=cross
24702else
cristy8b350f62009-11-15 23:12:43 +000024703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024704/* end confdefs.h. */
24705/* Thanks to Paul Eggert for this test. */
24706$ac_includes_default
24707#include <sys/wait.h>
24708#ifdef HAVE_VFORK_H
24709# include <vfork.h>
24710#endif
24711/* On some sparc systems, changes by the child to local and incoming
24712 argument registers are propagated back to the parent. The compiler
24713 is told about this with #include <vfork.h>, but some compilers
24714 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24715 static variable whose address is put into a register that is
24716 clobbered by the vfork. */
24717static void
24718#ifdef __cplusplus
24719sparc_address_test (int arg)
24720# else
24721sparc_address_test (arg) int arg;
24722#endif
24723{
24724 static pid_t child;
24725 if (!child) {
24726 child = vfork ();
24727 if (child < 0) {
24728 perror ("vfork");
24729 _exit(2);
24730 }
24731 if (!child) {
24732 arg = getpid();
24733 write(-1, "", 0);
24734 _exit (arg);
24735 }
24736 }
24737}
24738
24739int
24740main ()
24741{
24742 pid_t parent = getpid ();
24743 pid_t child;
24744
24745 sparc_address_test (0);
24746
24747 child = vfork ();
24748
24749 if (child == 0) {
24750 /* Here is another test for sparc vfork register problems. This
24751 test uses lots of local variables, at least as many local
24752 variables as main has allocated so far including compiler
24753 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24754 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24755 reuse the register of parent for one of the local variables,
24756 since it will think that parent can't possibly be used any more
24757 in this routine. Assigning to the local variable will thus
24758 munge parent in the parent process. */
24759 pid_t
24760 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24761 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24762 /* Convince the compiler that p..p7 are live; otherwise, it might
24763 use the same hardware register for all 8 local variables. */
24764 if (p != p1 || p != p2 || p != p3 || p != p4
24765 || p != p5 || p != p6 || p != p7)
24766 _exit(1);
24767
24768 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24769 from child file descriptors. If the child closes a descriptor
24770 before it execs or exits, this munges the parent's descriptor
24771 as well. Test for this by closing stdout in the child. */
24772 _exit(close(fileno(stdout)) != 0);
24773 } else {
24774 int status;
24775 struct stat st;
24776
24777 while (wait(&status) != child)
24778 ;
24779 return (
24780 /* Was there some problem with vforking? */
24781 child < 0
24782
24783 /* Did the child fail? (This shouldn't happen.) */
24784 || status
24785
24786 /* Did the vfork/compiler bug occur? */
24787 || parent != getpid()
24788
24789 /* Did the file descriptor bug occur? */
24790 || fstat(fileno(stdout), &st) != 0
24791 );
24792 }
24793}
24794_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024795if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024796 ac_cv_func_vfork_works=yes
24797else
cristy8b350f62009-11-15 23:12:43 +000024798 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024799fi
cristy8b350f62009-11-15 23:12:43 +000024800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24801 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024802fi
24803
cristy3ed852e2009-09-05 21:47:34 +000024804fi
cristy8b350f62009-11-15 23:12:43 +000024805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024806$as_echo "$ac_cv_func_vfork_works" >&6; }
24807
24808fi;
24809if test "x$ac_cv_func_fork_works" = xcross; then
24810 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024811 { $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 +000024812$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24813fi
24814
24815if test "x$ac_cv_func_vfork_works" = xyes; then
24816
cristy8b350f62009-11-15 23:12:43 +000024817$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024818
24819else
24820
cristy8b350f62009-11-15 23:12:43 +000024821$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024822
24823fi
24824if test "x$ac_cv_func_fork_works" = xyes; then
24825
cristy8b350f62009-11-15 23:12:43 +000024826$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024827
24828fi
24829
cristy8b350f62009-11-15 23:12:43 +000024830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024831$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024832if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024833 $as_echo_n "(cached) " >&6
24834else
cristy8b350f62009-11-15 23:12:43 +000024835 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024836 ac_cv_func_memcmp_working=no
24837else
cristy8b350f62009-11-15 23:12:43 +000024838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024839/* end confdefs.h. */
24840$ac_includes_default
24841int
24842main ()
24843{
24844
24845 /* Some versions of memcmp are not 8-bit clean. */
24846 char c0 = '\100', c1 = '\200', c2 = '\201';
24847 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24848 return 1;
24849
24850 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24851 or more and with at least one buffer not starting on a 4-byte boundary.
24852 William Lewis provided this test program. */
24853 {
24854 char foo[21];
24855 char bar[21];
24856 int i;
24857 for (i = 0; i < 4; i++)
24858 {
24859 char *a = foo + i;
24860 char *b = bar + i;
24861 strcpy (a, "--------01111111");
24862 strcpy (b, "--------10000000");
24863 if (memcmp (a, b, 16) >= 0)
24864 return 1;
24865 }
24866 return 0;
24867 }
24868
24869 ;
24870 return 0;
24871}
24872_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024873if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024874 ac_cv_func_memcmp_working=yes
24875else
cristy8b350f62009-11-15 23:12:43 +000024876 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024877fi
cristy8b350f62009-11-15 23:12:43 +000024878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24879 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024880fi
24881
cristy3ed852e2009-09-05 21:47:34 +000024882fi
cristy8b350f62009-11-15 23:12:43 +000024883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024884$as_echo "$ac_cv_func_memcmp_working" >&6; }
24885test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24886 *" memcmp.$ac_objext "* ) ;;
24887 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24888 ;;
24889esac
24890
24891
cristy3ed852e2009-09-05 21:47:34 +000024892for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024893do :
24894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24895ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024896if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024897 cat >>confdefs.h <<_ACEOF
24898#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24899_ACEOF
24900
24901fi
24902
24903done
24904
cristy8b350f62009-11-15 23:12:43 +000024905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024906$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024907if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024908 $as_echo_n "(cached) " >&6
24909else
24910 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24911 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24912 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024914/* end confdefs.h. */
24915$ac_includes_default
24916#ifdef HAVE_SYS_SELECT_H
24917# include <sys/select.h>
24918#endif
24919#ifdef HAVE_SYS_SOCKET_H
24920# include <sys/socket.h>
24921#endif
24922
24923int
24924main ()
24925{
24926extern int select ($ac_arg1,
24927 $ac_arg234, $ac_arg234, $ac_arg234,
24928 $ac_arg5);
24929 ;
24930 return 0;
24931}
24932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024933if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024934 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024935fi
cristy3ed852e2009-09-05 21:47:34 +000024936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24937 done
24938 done
24939done
24940# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024941: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024942
24943fi
cristy8b350f62009-11-15 23:12:43 +000024944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024945$as_echo "$ac_cv_func_select_args" >&6; }
24946ac_save_IFS=$IFS; IFS=','
24947set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24948IFS=$ac_save_IFS
24949shift
24950
24951cat >>confdefs.h <<_ACEOF
24952#define SELECT_TYPE_ARG1 $1
24953_ACEOF
24954
24955
24956cat >>confdefs.h <<_ACEOF
24957#define SELECT_TYPE_ARG234 ($2)
24958_ACEOF
24959
24960
24961cat >>confdefs.h <<_ACEOF
24962#define SELECT_TYPE_ARG5 ($3)
24963_ACEOF
24964
24965rm -f conftest*
24966
cristyda16f162011-02-19 23:52:17 +000024967if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024968 $as_echo_n "(cached) " >&6
24969else
24970 ac_cv_func_setvbuf_reversed=no
24971fi
24972
24973
cristy8b350f62009-11-15 23:12:43 +000024974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024975$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024976if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024977 $as_echo_n "(cached) " >&6
24978else
cristy8b350f62009-11-15 23:12:43 +000024979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024980/* end confdefs.h. */
24981#include <sys/types.h>
24982#include <signal.h>
24983
24984int
24985main ()
24986{
24987return *(signal (0, 0)) (0) == 1;
24988 ;
24989 return 0;
24990}
24991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024992if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024993 ac_cv_type_signal=int
24994else
cristy8b350f62009-11-15 23:12:43 +000024995 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024996fi
cristy3ed852e2009-09-05 21:47:34 +000024997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24998fi
cristy8b350f62009-11-15 23:12:43 +000024999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025000$as_echo "$ac_cv_type_signal" >&6; }
25001
25002cat >>confdefs.h <<_ACEOF
25003#define RETSIGTYPE $ac_cv_type_signal
25004_ACEOF
25005
25006
cristy8b350f62009-11-15 23:12:43 +000025007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025008$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025009if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025010 $as_echo_n "(cached) " >&6
25011else
cristy8b350f62009-11-15 23:12:43 +000025012 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025013 ac_cv_func_strtod=no
25014else
cristy8b350f62009-11-15 23:12:43 +000025015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025016/* end confdefs.h. */
25017
25018$ac_includes_default
25019#ifndef strtod
25020double strtod ();
25021#endif
25022int
25023main()
25024{
25025 {
25026 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25027 char *string = " +69";
25028 char *term;
25029 double value;
25030 value = strtod (string, &term);
25031 if (value != 69 || term != (string + 4))
25032 return 1;
25033 }
25034
25035 {
25036 /* Under Solaris 2.4, strtod returns the wrong value for the
25037 terminating character under some conditions. */
25038 char *string = "NaN";
25039 char *term;
25040 strtod (string, &term);
25041 if (term != string && *(term - 1) == 0)
25042 return 1;
25043 }
25044 return 0;
25045}
25046
25047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025048if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025049 ac_cv_func_strtod=yes
25050else
cristy8b350f62009-11-15 23:12:43 +000025051 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025052fi
cristy8b350f62009-11-15 23:12:43 +000025053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25054 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025055fi
25056
cristy3ed852e2009-09-05 21:47:34 +000025057fi
cristy8b350f62009-11-15 23:12:43 +000025058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025059$as_echo "$ac_cv_func_strtod" >&6; }
25060if test $ac_cv_func_strtod = no; then
25061 case " $LIBOBJS " in
25062 *" strtod.$ac_objext "* ) ;;
25063 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25064 ;;
25065esac
25066
cristy8b350f62009-11-15 23:12:43 +000025067ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025068if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025069
cristy3ed852e2009-09-05 21:47:34 +000025070fi
25071
cristy3ed852e2009-09-05 21:47:34 +000025072if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025074$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025075if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025076 $as_echo_n "(cached) " >&6
25077else
25078 ac_check_lib_save_LIBS=$LIBS
25079LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025081/* end confdefs.h. */
25082
25083/* Override any GCC internal prototype to avoid an error.
25084 Use char because int might match the return type of a GCC
25085 builtin and then its argument prototype would still apply. */
25086#ifdef __cplusplus
25087extern "C"
25088#endif
25089char pow ();
25090int
25091main ()
25092{
25093return pow ();
25094 ;
25095 return 0;
25096}
25097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025098if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025099 ac_cv_lib_m_pow=yes
25100else
cristy8b350f62009-11-15 23:12:43 +000025101 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025102fi
cristy8b350f62009-11-15 23:12:43 +000025103rm -f core conftest.err conftest.$ac_objext \
25104 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025105LIBS=$ac_check_lib_save_LIBS
25106fi
cristy8b350f62009-11-15 23:12:43 +000025107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025108$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025109if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025110 POW_LIB=-lm
25111else
cristy8b350f62009-11-15 23:12:43 +000025112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025113$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25114fi
25115
25116fi
25117
25118fi
25119
cristy7d4a1d62011-10-13 15:54:12 +000025120ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25121if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25122 ac_have_decl=1
25123else
25124 ac_have_decl=0
25125fi
25126
25127cat >>confdefs.h <<_ACEOF
25128#define HAVE_DECL_STRERROR_R $ac_have_decl
25129_ACEOF
25130
25131for ac_func in strerror_r
25132do :
25133 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25134if test "x$ac_cv_func_strerror_r" = xyes; then :
25135 cat >>confdefs.h <<_ACEOF
25136#define HAVE_STRERROR_R 1
25137_ACEOF
25138
25139fi
25140done
25141
25142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25143$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25144if ${ac_cv_func_strerror_r_char_p+:} false; then :
25145 $as_echo_n "(cached) " >&6
25146else
25147
25148 ac_cv_func_strerror_r_char_p=no
25149 if test $ac_cv_have_decl_strerror_r = yes; then
25150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25151/* end confdefs.h. */
25152$ac_includes_default
25153int
25154main ()
25155{
25156
25157 char buf[100];
25158 char x = *strerror_r (0, buf, sizeof buf);
25159 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025160 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025161
25162 ;
25163 return 0;
25164}
25165_ACEOF
25166if ac_fn_c_try_compile "$LINENO"; then :
25167 ac_cv_func_strerror_r_char_p=yes
25168fi
25169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25170 else
25171 # strerror_r is not declared. Choose between
25172 # systems that have relatively inaccessible declarations for the
25173 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25174 # former has a strerror_r that returns char*, while the latter
25175 # has a strerror_r that returns `int'.
25176 # This test should segfault on the DEC system.
25177 if test "$cross_compiling" = yes; then :
25178 :
25179else
25180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25181/* end confdefs.h. */
25182$ac_includes_default
25183 extern char *strerror_r ();
25184int
25185main ()
25186{
25187char buf[100];
25188 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025189 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025190 ;
25191 return 0;
25192}
25193_ACEOF
25194if ac_fn_c_try_run "$LINENO"; then :
25195 ac_cv_func_strerror_r_char_p=yes
25196fi
25197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25198 conftest.$ac_objext conftest.beam conftest.$ac_ext
25199fi
25200
25201 fi
25202
25203fi
25204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25205$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25206if test $ac_cv_func_strerror_r_char_p = yes; then
25207
25208$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25209
25210fi
25211
cristy3ed852e2009-09-05 21:47:34 +000025212for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025213do :
25214 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025215if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025216 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025217#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025218_ACEOF
25219
cristy8b350f62009-11-15 23:12:43 +000025220ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025221if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025222
cristy8b350f62009-11-15 23:12:43 +000025223$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025224
25225fi
25226
25227fi
25228done
25229
25230
25231
cristy161b9262010-03-20 19:34:32 +000025232#
25233# Find math library
25234#
25235MATH_LIBS=''
25236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25237$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025238if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025239 $as_echo_n "(cached) " >&6
25240else
25241 ac_check_lib_save_LIBS=$LIBS
25242LIBS="-lm $LIBS"
25243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25244/* end confdefs.h. */
25245
25246/* Override any GCC internal prototype to avoid an error.
25247 Use char because int might match the return type of a GCC
25248 builtin and then its argument prototype would still apply. */
25249#ifdef __cplusplus
25250extern "C"
25251#endif
25252char sqrt ();
25253int
25254main ()
25255{
25256return sqrt ();
25257 ;
25258 return 0;
25259}
25260_ACEOF
25261if ac_fn_c_try_link "$LINENO"; then :
25262 ac_cv_lib_m_sqrt=yes
25263else
25264 ac_cv_lib_m_sqrt=no
25265fi
25266rm -f core conftest.err conftest.$ac_objext \
25267 conftest$ac_exeext conftest.$ac_ext
25268LIBS=$ac_check_lib_save_LIBS
25269fi
25270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25271$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025272if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025273 MATH_LIBS="-lm"
25274fi
25275
25276LIBS="$MATH_LIBS $LIBS"
25277
25278
cristy85572162013-01-04 19:19:32 +000025279#
25280# Find socket library
25281#
cristy8a5d7f42013-01-06 15:24:33 +000025282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25283$as_echo_n "checking for library containing gethostbyname... " >&6; }
25284if ${ac_cv_search_gethostbyname+:} false; then :
25285 $as_echo_n "(cached) " >&6
25286else
25287 ac_func_search_save_LIBS=$LIBS
25288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289/* end confdefs.h. */
25290
25291/* Override any GCC internal prototype to avoid an error.
25292 Use char because int might match the return type of a GCC
25293 builtin and then its argument prototype would still apply. */
25294#ifdef __cplusplus
25295extern "C"
25296#endif
25297char gethostbyname ();
25298int
25299main ()
25300{
25301return gethostbyname ();
25302 ;
25303 return 0;
25304}
25305_ACEOF
25306for ac_lib in '' resolv nsl; do
25307 if test -z "$ac_lib"; then
25308 ac_res="none required"
25309 else
25310 ac_res=-l$ac_lib
25311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25312 fi
25313 if ac_fn_c_try_link "$LINENO"; then :
25314 ac_cv_search_gethostbyname=$ac_res
25315fi
25316rm -f core conftest.err conftest.$ac_objext \
25317 conftest$ac_exeext
25318 if ${ac_cv_search_gethostbyname+:} false; then :
25319 break
25320fi
25321done
25322if ${ac_cv_search_gethostbyname+:} false; then :
25323
25324else
25325 ac_cv_search_gethostbyname=no
25326fi
25327rm conftest.$ac_ext
25328LIBS=$ac_func_search_save_LIBS
25329fi
25330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25331$as_echo "$ac_cv_search_gethostbyname" >&6; }
25332ac_res=$ac_cv_search_gethostbyname
25333if test "$ac_res" != no; then :
25334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25335
25336fi
25337
cristy85572162013-01-04 19:19:32 +000025338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25339$as_echo_n "checking for library containing socket... " >&6; }
25340if ${ac_cv_search_socket+:} false; then :
25341 $as_echo_n "(cached) " >&6
25342else
25343 ac_func_search_save_LIBS=$LIBS
25344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25345/* end confdefs.h. */
25346
25347/* Override any GCC internal prototype to avoid an error.
25348 Use char because int might match the return type of a GCC
25349 builtin and then its argument prototype would still apply. */
25350#ifdef __cplusplus
25351extern "C"
25352#endif
25353char socket ();
25354int
25355main ()
25356{
25357return socket ();
25358 ;
25359 return 0;
25360}
25361_ACEOF
25362for ac_lib in '' socket; do
25363 if test -z "$ac_lib"; then
25364 ac_res="none required"
25365 else
25366 ac_res=-l$ac_lib
25367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25368 fi
25369 if ac_fn_c_try_link "$LINENO"; then :
25370 ac_cv_search_socket=$ac_res
25371fi
25372rm -f core conftest.err conftest.$ac_objext \
25373 conftest$ac_exeext
25374 if ${ac_cv_search_socket+:} false; then :
25375 break
25376fi
25377done
25378if ${ac_cv_search_socket+:} false; then :
25379
25380else
25381 ac_cv_search_socket=no
25382fi
25383rm conftest.$ac_ext
25384LIBS=$ac_func_search_save_LIBS
25385fi
25386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25387$as_echo "$ac_cv_search_socket" >&6; }
25388ac_res=$ac_cv_search_socket
25389if test "$ac_res" != no; then :
25390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25391
cristy85572162013-01-04 19:19:32 +000025392
cristy8a5d7f42013-01-06 15:24:33 +000025393$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025394
cristy03f187e2013-01-24 00:22:19 +000025395 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025396
25397fi
25398
25399
25400for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025401do :
25402 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25403ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025404if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025405 cat >>confdefs.h <<_ACEOF
25406#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25407_ACEOF
25408
25409fi
25410done
25411
25412
cristye43a45e2009-09-28 14:49:00 +000025413#
25414# Check for clock_gettime().
25415#
cristy8b350f62009-11-15 23:12:43 +000025416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025417$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025418if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025419 $as_echo_n "(cached) " >&6
25420else
25421 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025423/* end confdefs.h. */
25424
25425/* Override any GCC internal prototype to avoid an error.
25426 Use char because int might match the return type of a GCC
25427 builtin and then its argument prototype would still apply. */
25428#ifdef __cplusplus
25429extern "C"
25430#endif
25431char clock_gettime ();
25432int
25433main ()
25434{
25435return clock_gettime ();
25436 ;
25437 return 0;
25438}
25439_ACEOF
25440for ac_lib in '' rt; do
25441 if test -z "$ac_lib"; then
25442 ac_res="none required"
25443 else
25444 ac_res=-l$ac_lib
25445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25446 fi
cristy8b350f62009-11-15 23:12:43 +000025447 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025448 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025449fi
cristy8b350f62009-11-15 23:12:43 +000025450rm -f core conftest.err conftest.$ac_objext \
25451 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025452 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025453 break
25454fi
25455done
cristyda16f162011-02-19 23:52:17 +000025456if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025457
cristye43a45e2009-09-28 14:49:00 +000025458else
25459 ac_cv_search_clock_gettime=no
25460fi
25461rm conftest.$ac_ext
25462LIBS=$ac_func_search_save_LIBS
25463fi
cristy8b350f62009-11-15 23:12:43 +000025464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025465$as_echo "$ac_cv_search_clock_gettime" >&6; }
25466ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025467if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25469
25470
cristy8b350f62009-11-15 23:12:43 +000025471$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025472
cristy8b350f62009-11-15 23:12:43 +000025473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025474$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025476/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025477
25478 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025479int
25480main ()
25481{
25482clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025483 ;
25484 return 0;
25485}
25486_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025487if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025488
cristyad38abe2012-12-23 23:03:21 +000025489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25490$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025491
cristy8b350f62009-11-15 23:12:43 +000025492$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025493
25494
25495else
cristyad38abe2012-12-23 23:03:21 +000025496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25497$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025498
25499fi
cristye43a45e2009-09-28 14:49:00 +000025500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25501
25502else
25503
cristy8b350f62009-11-15 23:12:43 +000025504 for ac_func in gettimeofday ftime
25505do :
25506 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25507ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025508if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025509 cat >>confdefs.h <<_ACEOF
25510#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25511_ACEOF
25512 break
25513fi
25514done
25515
25516
25517
25518fi
25519
25520
cristy3ed852e2009-09-05 21:47:34 +000025521########
25522#
25523# Check for function prototypes
25524#
25525########
25526
cristy8b350f62009-11-15 23:12:43 +000025527ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025528#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025529"
cristyda16f162011-02-19 23:52:17 +000025530if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025531 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025532else
cristy8b350f62009-11-15 23:12:43 +000025533 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025534fi
25535
cristy3ed852e2009-09-05 21:47:34 +000025536cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025537#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025539ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025540#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025541"
cristyda16f162011-02-19 23:52:17 +000025542if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025543 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025544else
cristy8b350f62009-11-15 23:12:43 +000025545 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025546fi
25547
cristy3ed852e2009-09-05 21:47:34 +000025548cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025549#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025550_ACEOF
25551
25552
cristy8b350f62009-11-15 23:12:43 +000025553ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025554#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025555"
cristyda16f162011-02-19 23:52:17 +000025556if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025557 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025558else
cristy8b350f62009-11-15 23:12:43 +000025559 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025560fi
25561
cristy3ed852e2009-09-05 21:47:34 +000025562cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025563#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025564_ACEOF
25565
25566
cristy8b350f62009-11-15 23:12:43 +000025567ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025568#include <stdio.h>
25569#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025570"
cristyda16f162011-02-19 23:52:17 +000025571if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025572 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025573else
cristy8b350f62009-11-15 23:12:43 +000025574 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025575fi
25576
cristy3ed852e2009-09-05 21:47:34 +000025577cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025578#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025579_ACEOF
25580
25581
cristy3ed852e2009-09-05 21:47:34 +000025582########
25583#
25584# C++ Support Tests (For Magick++)
25585#
25586########
25587have_magick_plus_plus='no'
25588if test "$with_magick_plus_plus" = 'yes'; then
25589 OLIBS="$LIBS"
25590 LIBS=''
25591 ac_ext=cpp
25592ac_cpp='$CXXCPP $CPPFLAGS'
25593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25596
25597
25598 # Full set of headers used...
25599 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25600 # functional iomanip iosfwd iostream iterator list string strstream utility
25601 ac_ext=cpp
25602ac_cpp='$CXXCPP $CPPFLAGS'
25603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25606
25607 ac_ext=cpp
25608ac_cpp='$CXXCPP $CPPFLAGS'
25609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25612if test -z "$CXX"; then
25613 if test -n "$CCC"; then
25614 CXX=$CCC
25615 else
25616 if test -n "$ac_tool_prefix"; then
25617 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25618 do
25619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025622$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025623if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025624 $as_echo_n "(cached) " >&6
25625else
25626 if test -n "$CXX"; then
25627 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25628else
25629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25630for as_dir in $PATH
25631do
25632 IFS=$as_save_IFS
25633 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025634 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025636 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025638 break 2
25639 fi
25640done
cristy8b350f62009-11-15 23:12:43 +000025641 done
cristy3ed852e2009-09-05 21:47:34 +000025642IFS=$as_save_IFS
25643
25644fi
25645fi
25646CXX=$ac_cv_prog_CXX
25647if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025649$as_echo "$CXX" >&6; }
25650else
cristy8b350f62009-11-15 23:12:43 +000025651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025652$as_echo "no" >&6; }
25653fi
25654
25655
25656 test -n "$CXX" && break
25657 done
25658fi
25659if test -z "$CXX"; then
25660 ac_ct_CXX=$CXX
25661 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25662do
25663 # Extract the first word of "$ac_prog", so it can be a program name with args.
25664set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025666$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025667if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025668 $as_echo_n "(cached) " >&6
25669else
25670 if test -n "$ac_ct_CXX"; then
25671 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25672else
25673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25674for as_dir in $PATH
25675do
25676 IFS=$as_save_IFS
25677 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025678 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025680 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025682 break 2
25683 fi
25684done
cristy8b350f62009-11-15 23:12:43 +000025685 done
cristy3ed852e2009-09-05 21:47:34 +000025686IFS=$as_save_IFS
25687
25688fi
25689fi
25690ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25691if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025693$as_echo "$ac_ct_CXX" >&6; }
25694else
cristy8b350f62009-11-15 23:12:43 +000025695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025696$as_echo "no" >&6; }
25697fi
25698
25699
25700 test -n "$ac_ct_CXX" && break
25701done
25702
25703 if test "x$ac_ct_CXX" = x; then
25704 CXX="g++"
25705 else
25706 case $cross_compiling:$ac_tool_warned in
25707yes:)
cristy8b350f62009-11-15 23:12:43 +000025708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25710ac_tool_warned=yes ;;
25711esac
25712 CXX=$ac_ct_CXX
25713 fi
25714fi
25715
25716 fi
25717fi
25718# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025719$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025720set X $ac_compile
25721ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025722for ac_option in --version -v -V -qversion; do
25723 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025724case "(($ac_try" in
25725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25726 *) ac_try_echo=$ac_try;;
25727esac
cristy8b350f62009-11-15 23:12:43 +000025728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25729$as_echo "$ac_try_echo"; } >&5
25730 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025731 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025732 if test -s conftest.err; then
25733 sed '10a\
25734... rest of stderr output deleted ...
25735 10q' conftest.err >conftest.er1
25736 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025737 fi
cristycd4c5312009-11-22 01:19:08 +000025738 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25740 test $ac_status = 0; }
25741done
cristy3ed852e2009-09-05 21:47:34 +000025742
cristy8b350f62009-11-15 23:12:43 +000025743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025744$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025745if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025746 $as_echo_n "(cached) " >&6
25747else
cristy8b350f62009-11-15 23:12:43 +000025748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025749/* end confdefs.h. */
25750
25751int
25752main ()
25753{
25754#ifndef __GNUC__
25755 choke me
25756#endif
25757
25758 ;
25759 return 0;
25760}
25761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025762if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025763 ac_compiler_gnu=yes
25764else
cristy8b350f62009-11-15 23:12:43 +000025765 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025766fi
cristy3ed852e2009-09-05 21:47:34 +000025767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25768ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25769
25770fi
cristy8b350f62009-11-15 23:12:43 +000025771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025772$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25773if test $ac_compiler_gnu = yes; then
25774 GXX=yes
25775else
25776 GXX=
25777fi
25778ac_test_CXXFLAGS=${CXXFLAGS+set}
25779ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025781$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025782if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025783 $as_echo_n "(cached) " >&6
25784else
25785 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25786 ac_cxx_werror_flag=yes
25787 ac_cv_prog_cxx_g=no
25788 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025790/* end confdefs.h. */
25791
25792int
25793main ()
25794{
25795
25796 ;
25797 return 0;
25798}
25799_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025800if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025801 ac_cv_prog_cxx_g=yes
25802else
cristy8b350f62009-11-15 23:12:43 +000025803 CXXFLAGS=""
25804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025805/* end confdefs.h. */
25806
25807int
25808main ()
25809{
25810
25811 ;
25812 return 0;
25813}
25814_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025815if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025816
cristy8b350f62009-11-15 23:12:43 +000025817else
25818 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025819 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025821/* end confdefs.h. */
25822
25823int
25824main ()
25825{
25826
25827 ;
25828 return 0;
25829}
25830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025831if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025832 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025833fi
cristy3ed852e2009-09-05 21:47:34 +000025834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25835fi
cristy3ed852e2009-09-05 21:47:34 +000025836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25837fi
cristy3ed852e2009-09-05 21:47:34 +000025838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25839 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25840fi
cristy8b350f62009-11-15 23:12:43 +000025841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025842$as_echo "$ac_cv_prog_cxx_g" >&6; }
25843if test "$ac_test_CXXFLAGS" = set; then
25844 CXXFLAGS=$ac_save_CXXFLAGS
25845elif test $ac_cv_prog_cxx_g = yes; then
25846 if test "$GXX" = yes; then
25847 CXXFLAGS="-g -O2"
25848 else
25849 CXXFLAGS="-g"
25850 fi
25851else
25852 if test "$GXX" = yes; then
25853 CXXFLAGS="-O2"
25854 else
25855 CXXFLAGS=
25856 fi
25857fi
25858ac_ext=cpp
25859ac_cpp='$CXXCPP $CPPFLAGS'
25860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25863
cristy73bd4a52010-10-05 11:24:23 +000025864depcc="$CXX" am_compiler_list=
25865
25866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25867$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025868if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025869 $as_echo_n "(cached) " >&6
25870else
25871 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25872 # We make a subdir and do the tests there. Otherwise we can end up
25873 # making bogus files that we don't know about and never remove. For
25874 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025875 # making a dummy file named 'D' -- because '-MD' means "put the output
25876 # in D".
cristy7247bba2012-02-05 16:37:27 +000025877 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025878 mkdir conftest.dir
25879 # Copy depcomp to subdir because otherwise we won't find it if we're
25880 # using a relative directory.
25881 cp "$am_depcomp" conftest.dir
25882 cd conftest.dir
25883 # We will build objects and dependencies in a subdirectory because
25884 # it helps to detect inapplicable dependency modes. For instance
25885 # both Tru64's cc and ICC support -MD to output dependencies as a
25886 # side effect of compilation, but ICC will put the dependencies in
25887 # the current directory while Tru64 will put them in the object
25888 # directory.
25889 mkdir sub
25890
25891 am_cv_CXX_dependencies_compiler_type=none
25892 if test "$am_compiler_list" = ""; then
25893 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25894 fi
25895 am__universal=false
25896 case " $depcc " in #(
25897 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25898 esac
25899
25900 for depmode in $am_compiler_list; do
25901 # Setup a source with many dependencies, because some compilers
25902 # like to wrap large dependency lists on column 80 (with \), and
25903 # we should not choose a depcomp mode which is confused by this.
25904 #
25905 # We need to recreate these files for each test, as the compiler may
25906 # overwrite some of them when testing with obscure command lines.
25907 # This happens at least with the AIX C compiler.
25908 : > sub/conftest.c
25909 for i in 1 2 3 4 5 6; do
25910 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025911 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25912 # Solaris 10 /bin/sh.
25913 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025914 done
25915 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25916
cristyc0890a62012-07-19 00:18:20 +000025917 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025918 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025919 # handle '-M -o', and we need to detect this. Also, some Intel
25920 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025921 am__obj=sub/conftest.${OBJEXT-o}
25922 am__minus_obj="-o $am__obj"
25923 case $depmode in
25924 gcc)
25925 # This depmode causes a compiler race in universal mode.
25926 test "$am__universal" = false || continue
25927 ;;
25928 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025929 # After this tag, mechanisms are not by side-effect, so they'll
25930 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025931 if test "x$enable_dependency_tracking" = xyes; then
25932 continue
25933 else
25934 break
25935 fi
25936 ;;
cristy7247bba2012-02-05 16:37:27 +000025937 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025938 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025939 # not run yet. These depmodes are late enough in the game, and
25940 # so weak that their functioning should not be impacted.
25941 am__obj=conftest.${OBJEXT-o}
25942 am__minus_obj=
25943 ;;
25944 none) break ;;
25945 esac
25946 if depmode=$depmode \
25947 source=sub/conftest.c object=$am__obj \
25948 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25949 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25950 >/dev/null 2>conftest.err &&
25951 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25952 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25953 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25954 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25955 # icc doesn't choke on unknown options, it will just issue warnings
25956 # or remarks (even with -Werror). So we grep stderr for any message
25957 # that says an option was ignored or not supported.
25958 # When given -MP, icc 7.0 and 7.1 complain thusly:
25959 # icc: Command line warning: ignoring option '-M'; no argument required
25960 # The diagnosis changed in icc 8.0:
25961 # icc: Command line remark: option '-MP' not supported
25962 if (grep 'ignoring option' conftest.err ||
25963 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25964 am_cv_CXX_dependencies_compiler_type=$depmode
25965 break
25966 fi
25967 fi
25968 done
25969
25970 cd ..
25971 rm -rf conftest.dir
25972else
25973 am_cv_CXX_dependencies_compiler_type=none
25974fi
25975
25976fi
25977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25978$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25979CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25980
25981 if
25982 test "x$enable_dependency_tracking" != xno \
25983 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25984 am__fastdepCXX_TRUE=
25985 am__fastdepCXX_FALSE='#'
25986else
25987 am__fastdepCXX_TRUE='#'
25988 am__fastdepCXX_FALSE=
25989fi
25990
25991
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25993$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025994if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025995 $as_echo_n "(cached) " >&6
25996else
25997
25998 ac_ext=cpp
25999ac_cpp='$CXXCPP $CPPFLAGS'
26000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26003
26004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26005/* end confdefs.h. */
26006
26007int f(int x){return 1;}
26008int f(char x){return 1;}
26009int f(bool x){return 1;}
26010
26011int
26012main ()
26013{
26014bool b = true; return f(b);
26015 ;
26016 return 0;
26017}
26018_ACEOF
26019if ac_fn_cxx_try_compile "$LINENO"; then :
26020 ax_cv_cxx_bool=yes
26021else
26022 ax_cv_cxx_bool=no
26023fi
26024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26025 ac_ext=cpp
26026ac_cpp='$CXXCPP $CPPFLAGS'
26027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26030
26031
26032fi
26033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26034$as_echo "$ax_cv_cxx_bool" >&6; }
26035if test "$ax_cv_cxx_bool" = yes; then
26036
26037$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26038
26039fi
26040
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26042$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026043if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026044 $as_echo_n "(cached) " >&6
26045else
cristy17491be2014-06-24 01:10:53 +000026046 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026047ac_cpp='$CXXCPP $CPPFLAGS'
26048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26051
26052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26053/* end confdefs.h. */
26054namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026055 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026056_ACEOF
26057if ac_fn_cxx_try_compile "$LINENO"; then :
26058 ax_cv_cxx_namespaces=yes
26059else
26060 ax_cv_cxx_namespaces=no
26061fi
26062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26063 ac_ext=cpp
26064ac_cpp='$CXXCPP $CPPFLAGS'
26065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26068
26069
26070fi
26071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26072$as_echo "$ax_cv_cxx_namespaces" >&6; }
26073if test "$ax_cv_cxx_namespaces" = yes; then
26074
26075$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26076
26077fi
26078
26079
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26081$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026082if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026083 $as_echo_n "(cached) " >&6
26084else
26085
26086 ac_ext=cpp
26087ac_cpp='$CXXCPP $CPPFLAGS'
26088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26091
26092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26093/* end confdefs.h. */
26094#include <iostream>
26095 std::istream& is = std::cin;
26096int
26097main ()
26098{
26099
26100 ;
26101 return 0;
26102}
26103_ACEOF
26104if ac_fn_cxx_try_compile "$LINENO"; then :
26105 ax_cv_cxx_have_std_namespace=yes
26106else
26107 ax_cv_cxx_have_std_namespace=no
26108fi
26109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26110 ac_ext=cpp
26111ac_cpp='$CXXCPP $CPPFLAGS'
26112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26115
26116
26117fi
26118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26119$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26120 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26121
26122$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26123
26124 fi
26125
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26127$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026128if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026129 $as_echo_n "(cached) " >&6
26130else
26131
26132
26133 ac_ext=cpp
26134ac_cpp='$CXXCPP $CPPFLAGS'
26135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26138
26139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26140/* end confdefs.h. */
26141#include <iostream>
26142#include <map>
26143#include <iomanip>
26144#include <cmath>
26145#ifdef HAVE_NAMESPACES
26146using namespace std;
26147#endif
26148int
26149main ()
26150{
26151return 0;
26152 ;
26153 return 0;
26154}
26155_ACEOF
26156if ac_fn_cxx_try_compile "$LINENO"; then :
26157 ac_cv_cxx_have_std_libs=yes
26158else
26159 ac_cv_cxx_have_std_libs=no
26160fi
26161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26162 ac_ext=cpp
26163ac_cpp='$CXXCPP $CPPFLAGS'
26164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26167
26168
26169fi
26170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26171$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26172if test "$ac_cv_cxx_have_std_libs" = yes; then
26173
26174$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26175
26176fi
26177
cristy3ed852e2009-09-05 21:47:34 +000026178
26179 OPENMP_CXXFLAGS=
26180 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026181if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026182 enableval=$enable_openmp;
26183fi
26184
26185 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26187$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026188if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026189 $as_echo_n "(cached) " >&6
26190else
cristy8b350f62009-11-15 23:12:43 +000026191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26192/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026193
26194#ifndef _OPENMP
26195 choke me
26196#endif
26197#include <omp.h>
26198int main () { return omp_get_num_threads (); }
26199
26200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026201if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026202 ac_cv_prog_cxx_openmp='none needed'
26203else
cristy8b350f62009-11-15 23:12:43 +000026204 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026205 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26206 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026207 ac_save_CXXFLAGS=$CXXFLAGS
26208 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26210/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026211
26212#ifndef _OPENMP
26213 choke me
26214#endif
26215#include <omp.h>
26216int main () { return omp_get_num_threads (); }
26217
26218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026219if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026220 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026221fi
cristy8b350f62009-11-15 23:12:43 +000026222rm -f core conftest.err conftest.$ac_objext \
26223 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026224 CXXFLAGS=$ac_save_CXXFLAGS
26225 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26226 break
26227 fi
26228 done
26229fi
cristy8b350f62009-11-15 23:12:43 +000026230rm -f core conftest.err conftest.$ac_objext \
26231 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026232fi
cristy8b350f62009-11-15 23:12:43 +000026233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026234$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26235 case $ac_cv_prog_cxx_openmp in #(
26236 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026237 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026238 *)
cristy8b350f62009-11-15 23:12:43 +000026239 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026240 esac
26241 fi
26242
26243
26244 ac_ext=c
26245ac_cpp='$CPP $CPPFLAGS'
26246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26248ac_compiler_gnu=$ac_cv_c_compiler_gnu
26249
26250
cristy8b350f62009-11-15 23:12:43 +000026251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026252$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26253 if \
cristy964cb7f2010-04-25 23:18:00 +000026254 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026255 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026256 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026257 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026258 have_magick_plus_plus='yes'
26259 else
26260 have_magick_plus_plus='no (failed tests)'
26261 fi
cristyad38abe2012-12-23 23:03:21 +000026262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26263$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026264 LIBS="$OLIBS"
26265fi
cristy73bd4a52010-10-05 11:24:23 +000026266 if test "$have_magick_plus_plus" = 'yes'; then
26267 WITH_MAGICK_PLUS_PLUS_TRUE=
26268 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26269else
26270 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26271 WITH_MAGICK_PLUS_PLUS_FALSE=
26272fi
26273
cristy3ed852e2009-09-05 21:47:34 +000026274
26275# Only check for delegate libraries in subdirectories if requested.
26276if test "$enable_delegate_build" != 'no'; then
26277 # Check for delegate sub-directories and add -I & -L options as required.
26278 # This presumes that delegates are installed as detailed in the ImageMagick
26279 # README. If delegates are installed in a standard location where the
26280 # compiler will automatically find them then these options should not be
26281 # required.
26282
26283 #
26284 # Most delegates have includes in the same directory as the library, but not all...
26285 #
26286 # Includes
cristy31269aa2014-04-06 13:07:35 +000026287 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include 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 +000026288 if test -d "$builddir/$dir"; then
26289 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26290 else
26291 if test -d "$srcdirfull/$dir"; then
26292 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26293 fi
26294 fi
26295 done
26296
26297 # Libraries
cristy31269aa2014-04-06 13:07:35 +000026298 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper 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 +000026299 if test -d "$builddir/$dir/.libs"; then
26300 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26301 else
26302 if test -d "$srcdirfull/$dir/.libs"; then
26303 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26304 fi
26305 fi
26306 if test -d "$builddir/$dir"; then
26307 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26308 else
26309 if test -d "$srcdirfull/$dir"; then
26310 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26311 fi
26312 fi
26313 done
26314fi
26315
26316# Assume that delegate headers reside under same directory as ImageMagick
26317# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026318MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026319
26320#
26321# Find the X11 RGB database
26322#
cristy8b350f62009-11-15 23:12:43 +000026323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026324$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026325if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026326 $as_echo_n "(cached) " >&6
26327else
26328 # Look for the header file in a standard set of common directories.
26329# Check X11 before X11Rn because it is often a symlink to the current release.
26330 for ac_dir in \
26331 /lib/usr/lib/X11 \
26332 /usr/X11/lib \
26333 /usr/X11R4/lib \
26334 /usr/X11R5/lib \
26335 /usr/X11R6/lib \
26336 /usr/X11R7/lib \
26337 /usr/X386/lib \
26338 /usr/XFree86/lib/X11 \
26339 /usr/athena/lib \
26340 /usr/lib \
26341 /usr/lib/X11 \
26342 /usr/lib/X11R4 \
26343 /usr/lib/X11R5 \
26344 /usr/lib/X11R6 \
26345 /usr/lib/X11R7 \
26346 /usr/local/X11/lib \
26347 /usr/local/X11R4/lib \
26348 /usr/local/X11R5/lib \
26349 /usr/local/X11R6/lib \
26350 /usr/local/lib \
26351 /usr/local/lib/X11 \
26352 /usr/local/lib/X11R4 \
26353 /usr/local/lib/X11R5 \
26354 /usr/local/lib/X11R6 \
26355 /usr/local/lib/X11R7 \
26356 /usr/local/x11r5/lib \
26357 /usr/lpp/Xamples/lib \
26358 /usr/openwin/lib \
26359 /usr/openwin/share/lib \
26360 /usr/unsupported/lib \
26361 /usr/x386/lib \
26362 ; do
26363 if test -f "$ac_dir/X11/rgb.txt"; then
26364 im_cv_x_configure="$ac_dir/X11/"
26365 break
26366 elif test -f "$ac_dir/rgb.txt"; then
26367 im_cv_x_configure="$ac_dir/"
26368 break
26369 fi
26370
26371 done
26372fi
cristy8b350f62009-11-15 23:12:43 +000026373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026374$as_echo "$im_cv_x_configure" >&6; }
26375X11_CONFIGURE_PATH="$im_cv_x_configure"
26376case "${build_os}" in
26377 mingw* )
26378 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26379 ;;
26380esac
26381
26382cat >>confdefs.h <<_ACEOF
26383#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26384_ACEOF
26385
26386
26387#
26388# Find OpenMP library
26389#
26390GOMP_LIBS=''
26391if test "$enable_openmp" != 'no'; then
26392 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026393 # Open64 (passes for GCC but uses different OpenMP implementation)
26394 if test "x$GOMP_LIBS" = x ; then
26395 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26397$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26398if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26399 $as_echo_n "(cached) " >&6
26400else
26401 ac_check_lib_save_LIBS=$LIBS
26402LIBS="-lopenmp $LIBS"
26403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26404/* end confdefs.h. */
26405
26406/* Override any GCC internal prototype to avoid an error.
26407 Use char because int might match the return type of a GCC
26408 builtin and then its argument prototype would still apply. */
26409#ifdef __cplusplus
26410extern "C"
26411#endif
26412char omp_get_num_procs ();
26413int
26414main ()
26415{
26416return omp_get_num_procs ();
26417 ;
26418 return 0;
26419}
26420_ACEOF
26421if ac_fn_c_try_link "$LINENO"; then :
26422 ac_cv_lib_openmp_omp_get_num_procs=yes
26423else
26424 ac_cv_lib_openmp_omp_get_num_procs=no
26425fi
26426rm -f core conftest.err conftest.$ac_objext \
26427 conftest$ac_exeext conftest.$ac_ext
26428LIBS=$ac_check_lib_save_LIBS
26429fi
26430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26431$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26432if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26433 GOMP_LIBS="-lopenmp"
26434fi
26435
26436 fi
26437 fi
26438 # GCC
26439 if test "x$GOMP_LIBS" = x ; then
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026441$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026442if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026443 $as_echo_n "(cached) " >&6
26444else
26445 ac_check_lib_save_LIBS=$LIBS
26446LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026448/* end confdefs.h. */
26449
26450/* Override any GCC internal prototype to avoid an error.
26451 Use char because int might match the return type of a GCC
26452 builtin and then its argument prototype would still apply. */
26453#ifdef __cplusplus
26454extern "C"
26455#endif
26456char GOMP_parallel_start ();
26457int
26458main ()
26459{
26460return GOMP_parallel_start ();
26461 ;
26462 return 0;
26463}
26464_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026465if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026466 ac_cv_lib_gomp_GOMP_parallel_start=yes
26467else
cristy8b350f62009-11-15 23:12:43 +000026468 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026469fi
cristy8b350f62009-11-15 23:12:43 +000026470rm -f core conftest.err conftest.$ac_objext \
26471 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026472LIBS=$ac_check_lib_save_LIBS
26473fi
cristy8b350f62009-11-15 23:12:43 +000026474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026475$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026476if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026477 GOMP_LIBS="-lgomp"
26478fi
cristy18307f12011-12-30 01:20:16 +000026479
26480 fi
cristy3ed852e2009-09-05 21:47:34 +000026481 else
cristy18307f12011-12-30 01:20:16 +000026482 # Sun CC
26483 if test "x$GOMP_LIBS" = x ; then
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026485$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026486if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026487 $as_echo_n "(cached) " >&6
26488else
26489 ac_check_lib_save_LIBS=$LIBS
26490LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026492/* end confdefs.h. */
26493
26494/* Override any GCC internal prototype to avoid an error.
26495 Use char because int might match the return type of a GCC
26496 builtin and then its argument prototype would still apply. */
26497#ifdef __cplusplus
26498extern "C"
26499#endif
26500char sunw_mp_register_warn ();
26501int
26502main ()
26503{
26504return sunw_mp_register_warn ();
26505 ;
26506 return 0;
26507}
26508_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026509if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026510 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26511else
cristy8b350f62009-11-15 23:12:43 +000026512 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026513fi
cristy8b350f62009-11-15 23:12:43 +000026514rm -f core conftest.err conftest.$ac_objext \
26515 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026516LIBS=$ac_check_lib_save_LIBS
26517fi
cristy8b350f62009-11-15 23:12:43 +000026518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026519$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026520if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026521 GOMP_LIBS="-lmtsk"
26522fi
cristy18307f12011-12-30 01:20:16 +000026523
26524 fi
26525 # AIX xlc
26526 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026528$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026529if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026530 $as_echo_n "(cached) " >&6
26531else
26532 ac_check_lib_save_LIBS=$LIBS
26533LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026535/* end confdefs.h. */
26536
26537/* Override any GCC internal prototype to avoid an error.
26538 Use char because int might match the return type of a GCC
26539 builtin and then its argument prototype would still apply. */
26540#ifdef __cplusplus
26541extern "C"
26542#endif
26543char _xlsmpFlush ();
26544int
26545main ()
26546{
26547return _xlsmpFlush ();
26548 ;
26549 return 0;
26550}
26551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026552if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026553 ac_cv_lib_xlsmp__xlsmpFlush=yes
26554else
cristy8b350f62009-11-15 23:12:43 +000026555 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026556fi
cristy8b350f62009-11-15 23:12:43 +000026557rm -f core conftest.err conftest.$ac_objext \
26558 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026559LIBS=$ac_check_lib_save_LIBS
26560fi
cristy8b350f62009-11-15 23:12:43 +000026561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026562$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026563if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026564 GOMP_LIBS="-lxlsmp"
26565fi
cristy18307f12011-12-30 01:20:16 +000026566
26567 fi
26568 # SGI IRIX 6.5 MIPSpro C/C++
26569 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026571$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026572if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026573 $as_echo_n "(cached) " >&6
26574else
26575 ac_check_lib_save_LIBS=$LIBS
26576LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026578/* end confdefs.h. */
26579
26580/* Override any GCC internal prototype to avoid an error.
26581 Use char because int might match the return type of a GCC
26582 builtin and then its argument prototype would still apply. */
26583#ifdef __cplusplus
26584extern "C"
26585#endif
26586char mp_destroy ();
26587int
26588main ()
26589{
26590return mp_destroy ();
26591 ;
26592 return 0;
26593}
26594_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026595if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026596 ac_cv_lib_mp_mp_destroy=yes
26597else
cristy8b350f62009-11-15 23:12:43 +000026598 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026599fi
cristy8b350f62009-11-15 23:12:43 +000026600rm -f core conftest.err conftest.$ac_objext \
26601 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026602LIBS=$ac_check_lib_save_LIBS
26603fi
cristy8b350f62009-11-15 23:12:43 +000026604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026605$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026606if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026607 GOMP_LIBS="-lmp"
26608fi
cristy18307f12011-12-30 01:20:16 +000026609
26610 fi
cristy3ed852e2009-09-05 21:47:34 +000026611 fi
26612 LIBS="$GOMP_LIBS $LIBS"
26613fi
26614
26615
cristy12ac8192014-11-04 13:59:13 +000026616#
cristy3b0097d2014-11-04 15:34:47 +000026617# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026618#
cristy3b0097d2014-11-04 15:34:47 +000026619have_jemalloc='no'
26620JEMALLOC_LIBS=''
26621if test "$with_jemalloc" != 'no'; then
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26623$as_echo_n "checking for JEMALLOC support ... " >&6; }
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26625$as_echo "" >&6; }
26626 failed=0
26627 passed=0
26628 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26629if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026630 passed=`expr $passed + 1`
26631else
26632 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026633fi
26634
26635
cristy3b0097d2014-11-04 15:34:47 +000026636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26637$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26638if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000026639 $as_echo_n "(cached) " >&6
26640else
26641 ac_check_lib_save_LIBS=$LIBS
26642LIBS="-ljemalloc $LIBS"
26643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26644/* end confdefs.h. */
26645
26646/* Override any GCC internal prototype to avoid an error.
26647 Use char because int might match the return type of a GCC
26648 builtin and then its argument prototype would still apply. */
26649#ifdef __cplusplus
26650extern "C"
26651#endif
cristy3b0097d2014-11-04 15:34:47 +000026652char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026653int
26654main ()
26655{
cristy3b0097d2014-11-04 15:34:47 +000026656return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026657 ;
26658 return 0;
26659}
26660_ACEOF
26661if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000026662 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000026663else
cristy3b0097d2014-11-04 15:34:47 +000026664 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000026665fi
26666rm -f core conftest.err conftest.$ac_objext \
26667 conftest$ac_exeext conftest.$ac_ext
26668LIBS=$ac_check_lib_save_LIBS
26669fi
cristy3b0097d2014-11-04 15:34:47 +000026670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
26671$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
26672if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026673 passed=`expr $passed + 1`
26674else
26675 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026676fi
26677
cristy3b0097d2014-11-04 15:34:47 +000026678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
26679$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
26680 if test $passed -gt 0; then
26681 if test $failed -gt 0; then
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26683$as_echo "no -- some components failed test" >&6; }
26684 have_jemalloc='no (failed tests)'
26685 else
26686 JEMALLOC_LIBS='-ljemalloc'
26687 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000026688
cristy3b0097d2014-11-04 15:34:47 +000026689$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000026690
cristy3b0097d2014-11-04 15:34:47 +000026691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26692$as_echo "yes" >&6; }
26693 have_jemalloc='yes'
26694 fi
cristy12ac8192014-11-04 13:59:13 +000026695 else
cristy3b0097d2014-11-04 15:34:47 +000026696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26697$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000026698 fi
26699fi
cristy3b0097d2014-11-04 15:34:47 +000026700 if test "$have_jemalloc" = 'yes'; then
26701 HasJEMALLOC_TRUE=
26702 HasJEMALLOC_FALSE='#'
26703else
26704 HasJEMALLOC_TRUE='#'
26705 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000026706fi
26707
cristy3b0097d2014-11-04 15:34:47 +000026708
26709
cristy3ed852e2009-09-05 21:47:34 +000026710#
26711# Check for umem.
26712#
26713have_umem='no'
26714UMEM_LIBS=''
26715if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026717$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26719$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026720 failed=0
26721 passed=0
cristy8b350f62009-11-15 23:12:43 +000026722 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026723if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026724 passed=`expr $passed + 1`
26725else
26726 failed=`expr $failed + 1`
26727fi
26728
26729
cristy8b350f62009-11-15 23:12:43 +000026730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026731$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026732if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026733 $as_echo_n "(cached) " >&6
26734else
26735 ac_check_lib_save_LIBS=$LIBS
26736LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026738/* end confdefs.h. */
26739
26740/* Override any GCC internal prototype to avoid an error.
26741 Use char because int might match the return type of a GCC
26742 builtin and then its argument prototype would still apply. */
26743#ifdef __cplusplus
26744extern "C"
26745#endif
26746char umem_alloc ();
26747int
26748main ()
26749{
26750return umem_alloc ();
26751 ;
26752 return 0;
26753}
26754_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026755if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026756 ac_cv_lib_umem_umem_alloc=yes
26757else
cristy8b350f62009-11-15 23:12:43 +000026758 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026759fi
cristy8b350f62009-11-15 23:12:43 +000026760rm -f core conftest.err conftest.$ac_objext \
26761 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026762LIBS=$ac_check_lib_save_LIBS
26763fi
cristy8b350f62009-11-15 23:12:43 +000026764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026765$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026766if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026767 passed=`expr $passed + 1`
26768else
26769 failed=`expr $failed + 1`
26770fi
26771
cristy8b350f62009-11-15 23:12:43 +000026772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026773$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026774if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026775 $as_echo_n "(cached) " >&6
26776else
26777 ac_check_lib_save_LIBS=$LIBS
26778LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026780/* end confdefs.h. */
26781
26782/* Override any GCC internal prototype to avoid an error.
26783 Use char because int might match the return type of a GCC
26784 builtin and then its argument prototype would still apply. */
26785#ifdef __cplusplus
26786extern "C"
26787#endif
26788char umem_free ();
26789int
26790main ()
26791{
26792return umem_free ();
26793 ;
26794 return 0;
26795}
26796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026797if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026798 ac_cv_lib_umem_umem_free=yes
26799else
cristy8b350f62009-11-15 23:12:43 +000026800 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026801fi
cristy8b350f62009-11-15 23:12:43 +000026802rm -f core conftest.err conftest.$ac_objext \
26803 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026804LIBS=$ac_check_lib_save_LIBS
26805fi
cristy8b350f62009-11-15 23:12:43 +000026806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026807$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026808if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026809 passed=`expr $passed + 1`
26810else
26811 failed=`expr $failed + 1`
26812fi
26813
cristy8b350f62009-11-15 23:12:43 +000026814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026815$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26816 if test $passed -gt 0; then
26817 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26819$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026820 have_umem='no (failed tests)'
26821 else
26822 UMEM_LIBS='-lumem'
26823 LIBS="$UMEM_LIBS $LIBS"
26824
cristy8b350f62009-11-15 23:12:43 +000026825$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026826
cristyad38abe2012-12-23 23:03:21 +000026827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26828$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026829 have_umem='yes'
26830 fi
26831 else
cristyad38abe2012-12-23 23:03:21 +000026832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26833$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026834 fi
26835fi
cristy73bd4a52010-10-05 11:24:23 +000026836 if test "$have_umem" = 'yes'; then
26837 HasUMEM_TRUE=
26838 HasUMEM_FALSE='#'
26839else
26840 HasUMEM_TRUE='#'
26841 HasUMEM_FALSE=
26842fi
26843
cristy3ed852e2009-09-05 21:47:34 +000026844
26845
26846#
26847# Add support for ccmalloc memory debugging library if requested
26848#
26849have_ccmalloc='no'
26850CCMALLOC_LIBS=''
26851if test "$enable_ccmalloc" = 'yes'; then
26852 # Extract the first word of "ccmalloc", so it can be a program name with args.
26853set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026856if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026857 $as_echo_n "(cached) " >&6
26858else
26859 case $CCMALLOCDelegate in
26860 [\\/]* | ?:[\\/]*)
26861 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26862 ;;
26863 *)
26864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26865for as_dir in $PATH
26866do
26867 IFS=$as_save_IFS
26868 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026871 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026873 break 2
26874 fi
26875done
cristy8b350f62009-11-15 23:12:43 +000026876 done
cristy3ed852e2009-09-05 21:47:34 +000026877IFS=$as_save_IFS
26878
26879 ;;
26880esac
26881fi
26882CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26883if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026885$as_echo "$CCMALLOCDelegate" >&6; }
26886else
cristy8b350f62009-11-15 23:12:43 +000026887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026888$as_echo "no" >&6; }
26889fi
26890
26891
26892 if test -n "$CCMALLOCDelegate"; then
26893 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26894 OLIBS="$LIBS"
26895 # Assume that gcc is used with ccmalloc.
26896 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026898$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026899if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026900 $as_echo_n "(cached) " >&6
26901else
26902 ac_check_lib_save_LIBS=$LIBS
26903LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026905/* end confdefs.h. */
26906
26907/* Override any GCC internal prototype to avoid an error.
26908 Use char because int might match the return type of a GCC
26909 builtin and then its argument prototype would still apply. */
26910#ifdef __cplusplus
26911extern "C"
26912#endif
26913char ccmalloc_malloc ();
26914int
26915main ()
26916{
26917return ccmalloc_malloc ();
26918 ;
26919 return 0;
26920}
26921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026922if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026923 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26924else
cristy8b350f62009-11-15 23:12:43 +000026925 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026926fi
cristy8b350f62009-11-15 23:12:43 +000026927rm -f core conftest.err conftest.$ac_objext \
26928 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026929LIBS=$ac_check_lib_save_LIBS
26930fi
cristy8b350f62009-11-15 23:12:43 +000026931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026932$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026933if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026934 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26935fi
26936
26937 if test -n "$CCMALLOC_LIBS"; then
26938 LIBS="$OLIBS"
26939 LIBS="$LIBS $CCMALLOC_LIBS"
26940 have_ccmalloc='yes'
26941 else
26942 LIBS="$OLIBS"
26943 fi
26944 fi
26945fi
26946
26947#
cristy944e51f2013-04-16 18:45:02 +000026948# Add support for 'huge pages' if requested
26949#
26950if test "x$enable_hugepages" != "xno"; then :
26951
26952
26953$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26954
26955
26956fi
26957
26958#
cristy3ed852e2009-09-05 21:47:34 +000026959# Add support for efence memory debugging library if requested
26960#
26961if test "$enable_efence" = 'yes'; then
26962 EFENCE_LIBS='-lefence'
26963 LIBS="$EFENCE_LIBS $LIBS"
26964fi
26965
cristy3ed852e2009-09-05 21:47:34 +000026966
26967#
26968# Check for BZLIB
26969#
26970
26971
26972# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026973if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026974 withval=$with_bzlib; with_bzlib=$withval
26975else
26976 with_bzlib='yes'
26977fi
26978
26979
26980if test "$with_bzlib" != 'yes'; then
26981 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26982fi
26983
26984have_bzlib='no'
26985if test "$with_bzlib" != 'no'; then
26986 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26988$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026990$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26992$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026993 failed=0
26994 passed=0
26995 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026996 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026997if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026998 passed=`expr $passed + 1`
26999else
27000 failed=`expr $failed + 1`
27001fi
27002
27003
cristy8b350f62009-11-15 23:12:43 +000027004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027005$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027006if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027007 $as_echo_n "(cached) " >&6
27008else
27009 ac_check_lib_save_LIBS=$LIBS
27010LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027012/* end confdefs.h. */
27013
27014/* Override any GCC internal prototype to avoid an error.
27015 Use char because int might match the return type of a GCC
27016 builtin and then its argument prototype would still apply. */
27017#ifdef __cplusplus
27018extern "C"
27019#endif
27020char BZ2_bzDecompress ();
27021int
27022main ()
27023{
27024return BZ2_bzDecompress ();
27025 ;
27026 return 0;
27027}
27028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027029if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027030 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27031else
cristy8b350f62009-11-15 23:12:43 +000027032 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027033fi
cristy8b350f62009-11-15 23:12:43 +000027034rm -f core conftest.err conftest.$ac_objext \
27035 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027036LIBS=$ac_check_lib_save_LIBS
27037fi
cristy8b350f62009-11-15 23:12:43 +000027038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027039$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027040if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027041 found_libbz=`expr $found_libbz + 1`
27042fi
27043
27044 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027046$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027047if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027048 $as_echo_n "(cached) " >&6
27049else
27050 ac_check_lib_save_LIBS=$LIBS
27051LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027053/* end confdefs.h. */
27054
27055/* Override any GCC internal prototype to avoid an error.
27056 Use char because int might match the return type of a GCC
27057 builtin and then its argument prototype would still apply. */
27058#ifdef __cplusplus
27059extern "C"
27060#endif
27061char _imp__BZ2_decompress ();
27062int
27063main ()
27064{
27065return _imp__BZ2_decompress ();
27066 ;
27067 return 0;
27068}
27069_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027070if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027071 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27072else
cristy8b350f62009-11-15 23:12:43 +000027073 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027074fi
cristy8b350f62009-11-15 23:12:43 +000027075rm -f core conftest.err conftest.$ac_objext \
27076 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027077LIBS=$ac_check_lib_save_LIBS
27078fi
cristy8b350f62009-11-15 23:12:43 +000027079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027080$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027081if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027082 found_libbz=`expr $found_libbz + 1`
27083fi
27084
27085 fi
27086 if test $found_libbz -gt 0; then
27087 passed=`expr $passed + 1`
27088 else
27089 failed=`expr $failed + 1`
27090 fi
cristy8b350f62009-11-15 23:12:43 +000027091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027092$as_echo_n "checking if BZLIB package is complete... " >&6; }
27093 if test $passed -gt 0; then
27094 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27096$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027097 have_bzlib='no (failed tests)'
27098 else
27099 BZLIB_LIBS='-lbz2'
27100 LIBS="$BZLIB_LIBS $LIBS"
27101
cristy8b350f62009-11-15 23:12:43 +000027102$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027103
cristyad38abe2012-12-23 23:03:21 +000027104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27105$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027106 have_bzlib='yes'
27107 fi
27108 else
cristyad38abe2012-12-23 23:03:21 +000027109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27110$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027111 fi
27112fi
cristy73bd4a52010-10-05 11:24:23 +000027113 if test "$have_bzlib" = 'yes'; then
27114 BZLIB_DELEGATE_TRUE=
27115 BZLIB_DELEGATE_FALSE='#'
27116else
27117 BZLIB_DELEGATE_TRUE='#'
27118 BZLIB_DELEGATE_FALSE=
27119fi
27120
cristy3ed852e2009-09-05 21:47:34 +000027121
27122
27123#
27124# Find the X11 include and library directories.
27125#
27126IPC_LIBS=''
27127X11_LIBS=''
27128XEXT_LIBS=''
27129XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027131$as_echo_n "checking for X... " >&6; }
27132
27133
27134# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027135if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027136 withval=$with_x;
27137fi
27138
27139# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27140if test "x$with_x" = xno; then
27141 # The user explicitly disabled X.
27142 have_x=disabled
27143else
27144 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027145 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027146 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027147 $as_echo_n "(cached) " >&6
27148else
27149 # One or both of the vars are not set, and there is no cached value.
27150ac_x_includes=no ac_x_libraries=no
27151rm -f -r conftest.dir
27152if mkdir conftest.dir; then
27153 cd conftest.dir
27154 cat >Imakefile <<'_ACEOF'
27155incroot:
27156 @echo incroot='${INCROOT}'
27157usrlibdir:
27158 @echo usrlibdir='${USRLIBDIR}'
27159libdir:
27160 @echo libdir='${LIBDIR}'
27161_ACEOF
27162 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027163 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027164 for ac_var in incroot usrlibdir libdir; do
27165 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27166 done
27167 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27168 for ac_extension in a so sl dylib la dll; do
27169 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27170 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27171 ac_im_usrlibdir=$ac_im_libdir; break
27172 fi
27173 done
27174 # Screen out bogus values from the imake configuration. They are
27175 # bogus both because they are the default anyway, and because
27176 # using them would break gcc on systems where it needs fixed includes.
27177 case $ac_im_incroot in
27178 /usr/include) ac_x_includes= ;;
27179 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27180 esac
27181 case $ac_im_usrlibdir in
27182 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27183 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27184 esac
27185 fi
27186 cd ..
27187 rm -f -r conftest.dir
27188fi
27189
27190# Standard set of common directories for X headers.
27191# Check X11 before X11Rn because it is often a symlink to the current release.
27192ac_x_header_dirs='
27193/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027194/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027195/usr/X11R6/include
27196/usr/X11R5/include
27197/usr/X11R4/include
27198
27199/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027200/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027201/usr/include/X11R6
27202/usr/include/X11R5
27203/usr/include/X11R4
27204
27205/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027206/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027207/usr/local/X11R6/include
27208/usr/local/X11R5/include
27209/usr/local/X11R4/include
27210
27211/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027212/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027213/usr/local/include/X11R6
27214/usr/local/include/X11R5
27215/usr/local/include/X11R4
27216
27217/usr/X386/include
27218/usr/x386/include
27219/usr/XFree86/include/X11
27220
27221/usr/include
27222/usr/local/include
27223/usr/unsupported/include
27224/usr/athena/include
27225/usr/local/x11r5/include
27226/usr/lpp/Xamples/include
27227
27228/usr/openwin/include
27229/usr/openwin/share/include'
27230
27231if test "$ac_x_includes" = no; then
27232 # Guess where to find include files, by looking for Xlib.h.
27233 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027235/* end confdefs.h. */
27236#include <X11/Xlib.h>
27237_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027238if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027239 # We can compile using X headers with no special include directory.
27240ac_x_includes=
27241else
cristyc7083c12009-10-14 03:16:55 +000027242 for ac_dir in $ac_x_header_dirs; do
27243 if test -r "$ac_dir/X11/Xlib.h"; then
27244 ac_x_includes=$ac_dir
27245 break
27246 fi
27247done
27248fi
cristyda16f162011-02-19 23:52:17 +000027249rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027250fi # $ac_x_includes = no
27251
27252if test "$ac_x_libraries" = no; then
27253 # Check for the libraries.
27254 # See if we find them without any special options.
27255 # Don't add to $LIBS permanently.
27256 ac_save_LIBS=$LIBS
27257 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027259/* end confdefs.h. */
27260#include <X11/Xlib.h>
27261int
27262main ()
27263{
27264XrmInitialize ()
27265 ;
27266 return 0;
27267}
27268_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027269if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027270 LIBS=$ac_save_LIBS
27271# We can link X programs with no special library path.
27272ac_x_libraries=
27273else
cristy8b350f62009-11-15 23:12:43 +000027274 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027275for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27276do
27277 # Don't even attempt the hair of trying to link an X program!
27278 for ac_extension in a so sl dylib la dll; do
27279 if test -r "$ac_dir/libX11.$ac_extension"; then
27280 ac_x_libraries=$ac_dir
27281 break 2
27282 fi
27283 done
27284done
27285fi
cristy8b350f62009-11-15 23:12:43 +000027286rm -f core conftest.err conftest.$ac_objext \
27287 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027288fi # $ac_x_libraries = no
27289
27290case $ac_x_includes,$ac_x_libraries in #(
27291 no,* | *,no | *\'*)
27292 # Didn't find X, or a directory has "'" in its name.
27293 ac_cv_have_x="have_x=no";; #(
27294 *)
27295 # Record where we found X for the cache.
27296 ac_cv_have_x="have_x=yes\
27297 ac_x_includes='$ac_x_includes'\
27298 ac_x_libraries='$ac_x_libraries'"
27299esac
27300fi
27301;; #(
27302 *) have_x=yes;;
27303 esac
27304 eval "$ac_cv_have_x"
27305fi # $with_x != no
27306
27307if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027309$as_echo "$have_x" >&6; }
27310 no_x=yes
27311else
27312 # If each of the values was on the command line, it overrides each guess.
27313 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27314 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27315 # Update the cache value to reflect the command line values.
27316 ac_cv_have_x="have_x=yes\
27317 ac_x_includes='$x_includes'\
27318 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027320$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27321fi
27322
cristy3ed852e2009-09-05 21:47:34 +000027323if test "$no_x" = yes; then
27324 # Not all programs may use this symbol, but it does not hurt to define it.
27325
cristy8b350f62009-11-15 23:12:43 +000027326$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027327
27328 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27329else
27330 if test -n "$x_includes"; then
27331 X_CFLAGS="$X_CFLAGS -I$x_includes"
27332 fi
27333
27334 # It would also be nice to do this for all -L options, not just this one.
27335 if test -n "$x_libraries"; then
27336 X_LIBS="$X_LIBS -L$x_libraries"
27337 # For Solaris; some versions of Sun CC require a space after -R and
27338 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027340$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27341 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27342 ac_xsave_c_werror_flag=$ac_c_werror_flag
27343 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027345/* end confdefs.h. */
27346
27347int
27348main ()
27349{
27350
27351 ;
27352 return 0;
27353}
27354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027355if ac_fn_c_try_link "$LINENO"; then :
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027357$as_echo "no" >&6; }
27358 X_LIBS="$X_LIBS -R$x_libraries"
27359else
cristy8b350f62009-11-15 23:12:43 +000027360 LIBS="$ac_xsave_LIBS -R $x_libraries"
27361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027362/* end confdefs.h. */
27363
27364int
27365main ()
27366{
27367
27368 ;
27369 return 0;
27370}
27371_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027372if ac_fn_c_try_link "$LINENO"; then :
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027374$as_echo "yes" >&6; }
27375 X_LIBS="$X_LIBS -R $x_libraries"
27376else
cristy8b350f62009-11-15 23:12:43 +000027377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027378$as_echo "neither works" >&6; }
27379fi
cristy8b350f62009-11-15 23:12:43 +000027380rm -f core conftest.err conftest.$ac_objext \
27381 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027382fi
cristy8b350f62009-11-15 23:12:43 +000027383rm -f core conftest.err conftest.$ac_objext \
27384 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027385 ac_c_werror_flag=$ac_xsave_c_werror_flag
27386 LIBS=$ac_xsave_LIBS
27387 fi
27388
27389 # Check for system-dependent libraries X programs must link with.
27390 # Do this before checking for the system-independent R6 libraries
27391 # (-lICE), since we may need -lsocket or whatever for X linking.
27392
27393 if test "$ISC" = yes; then
27394 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27395 else
27396 # Martyn Johnson says this is needed for Ultrix, if the X
27397 # libraries were built with DECnet support. And Karl Berry says
27398 # the Alpha needs dnet_stub (dnet does not exist).
27399 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027401/* end confdefs.h. */
27402
27403/* Override any GCC internal prototype to avoid an error.
27404 Use char because int might match the return type of a GCC
27405 builtin and then its argument prototype would still apply. */
27406#ifdef __cplusplus
27407extern "C"
27408#endif
27409char XOpenDisplay ();
27410int
27411main ()
27412{
27413return XOpenDisplay ();
27414 ;
27415 return 0;
27416}
27417_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027418if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027419
cristy8b350f62009-11-15 23:12:43 +000027420else
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027422$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027423if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027424 $as_echo_n "(cached) " >&6
27425else
27426 ac_check_lib_save_LIBS=$LIBS
27427LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027429/* end confdefs.h. */
27430
27431/* Override any GCC internal prototype to avoid an error.
27432 Use char because int might match the return type of a GCC
27433 builtin and then its argument prototype would still apply. */
27434#ifdef __cplusplus
27435extern "C"
27436#endif
27437char dnet_ntoa ();
27438int
27439main ()
27440{
27441return dnet_ntoa ();
27442 ;
27443 return 0;
27444}
27445_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027446if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027447 ac_cv_lib_dnet_dnet_ntoa=yes
27448else
cristy8b350f62009-11-15 23:12:43 +000027449 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027450fi
cristy8b350f62009-11-15 23:12:43 +000027451rm -f core conftest.err conftest.$ac_objext \
27452 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027453LIBS=$ac_check_lib_save_LIBS
27454fi
cristy8b350f62009-11-15 23:12:43 +000027455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027456$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027457if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027458 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27459fi
27460
27461 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027463$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027464if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027465 $as_echo_n "(cached) " >&6
27466else
27467 ac_check_lib_save_LIBS=$LIBS
27468LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027470/* end confdefs.h. */
27471
27472/* Override any GCC internal prototype to avoid an error.
27473 Use char because int might match the return type of a GCC
27474 builtin and then its argument prototype would still apply. */
27475#ifdef __cplusplus
27476extern "C"
27477#endif
27478char dnet_ntoa ();
27479int
27480main ()
27481{
27482return dnet_ntoa ();
27483 ;
27484 return 0;
27485}
27486_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027487if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027488 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27489else
cristy8b350f62009-11-15 23:12:43 +000027490 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027491fi
cristy8b350f62009-11-15 23:12:43 +000027492rm -f core conftest.err conftest.$ac_objext \
27493 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027494LIBS=$ac_check_lib_save_LIBS
27495fi
cristy8b350f62009-11-15 23:12:43 +000027496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027497$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027498if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027499 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27500fi
27501
27502 fi
27503fi
cristy8b350f62009-11-15 23:12:43 +000027504rm -f core conftest.err conftest.$ac_objext \
27505 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027506 LIBS="$ac_xsave_LIBS"
27507
27508 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27509 # to get the SysV transport functions.
27510 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27511 # needs -lnsl.
27512 # The nsl library prevents programs from opening the X display
27513 # on Irix 5.2, according to T.E. Dickey.
27514 # The functions gethostbyname, getservbyname, and inet_addr are
27515 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027516 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027517if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027518
cristy3ed852e2009-09-05 21:47:34 +000027519fi
27520
cristy3ed852e2009-09-05 21:47:34 +000027521 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027523$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027524if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027525 $as_echo_n "(cached) " >&6
27526else
27527 ac_check_lib_save_LIBS=$LIBS
27528LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027530/* end confdefs.h. */
27531
27532/* Override any GCC internal prototype to avoid an error.
27533 Use char because int might match the return type of a GCC
27534 builtin and then its argument prototype would still apply. */
27535#ifdef __cplusplus
27536extern "C"
27537#endif
27538char gethostbyname ();
27539int
27540main ()
27541{
27542return gethostbyname ();
27543 ;
27544 return 0;
27545}
27546_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027547if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027548 ac_cv_lib_nsl_gethostbyname=yes
27549else
cristy8b350f62009-11-15 23:12:43 +000027550 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027551fi
cristy8b350f62009-11-15 23:12:43 +000027552rm -f core conftest.err conftest.$ac_objext \
27553 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027554LIBS=$ac_check_lib_save_LIBS
27555fi
cristy8b350f62009-11-15 23:12:43 +000027556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027557$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027558if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027559 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27560fi
27561
27562 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027564$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027565if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027566 $as_echo_n "(cached) " >&6
27567else
27568 ac_check_lib_save_LIBS=$LIBS
27569LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027571/* end confdefs.h. */
27572
27573/* Override any GCC internal prototype to avoid an error.
27574 Use char because int might match the return type of a GCC
27575 builtin and then its argument prototype would still apply. */
27576#ifdef __cplusplus
27577extern "C"
27578#endif
27579char gethostbyname ();
27580int
27581main ()
27582{
27583return gethostbyname ();
27584 ;
27585 return 0;
27586}
27587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027588if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027589 ac_cv_lib_bsd_gethostbyname=yes
27590else
cristy8b350f62009-11-15 23:12:43 +000027591 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027592fi
cristy8b350f62009-11-15 23:12:43 +000027593rm -f core conftest.err conftest.$ac_objext \
27594 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027595LIBS=$ac_check_lib_save_LIBS
27596fi
cristy8b350f62009-11-15 23:12:43 +000027597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027598$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027599if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027600 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27601fi
27602
27603 fi
27604 fi
27605
27606 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27607 # socket/setsockopt and other routines are undefined under SCO ODT
27608 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27609 # on later versions), says Simon Leinen: it contains gethostby*
27610 # variants that don't use the name server (or something). -lsocket
27611 # must be given before -lnsl if both are needed. We assume that
27612 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027613 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027614if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027615
cristy3ed852e2009-09-05 21:47:34 +000027616fi
27617
cristy3ed852e2009-09-05 21:47:34 +000027618 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027620$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027621if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027622 $as_echo_n "(cached) " >&6
27623else
27624 ac_check_lib_save_LIBS=$LIBS
27625LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027627/* end confdefs.h. */
27628
27629/* Override any GCC internal prototype to avoid an error.
27630 Use char because int might match the return type of a GCC
27631 builtin and then its argument prototype would still apply. */
27632#ifdef __cplusplus
27633extern "C"
27634#endif
27635char connect ();
27636int
27637main ()
27638{
27639return connect ();
27640 ;
27641 return 0;
27642}
27643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027644if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027645 ac_cv_lib_socket_connect=yes
27646else
cristy8b350f62009-11-15 23:12:43 +000027647 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027648fi
cristy8b350f62009-11-15 23:12:43 +000027649rm -f core conftest.err conftest.$ac_objext \
27650 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027651LIBS=$ac_check_lib_save_LIBS
27652fi
cristy8b350f62009-11-15 23:12:43 +000027653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027654$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027655if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027656 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27657fi
27658
27659 fi
27660
27661 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027662 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027663if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027664
cristy3ed852e2009-09-05 21:47:34 +000027665fi
27666
cristy3ed852e2009-09-05 21:47:34 +000027667 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027669$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027670if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027671 $as_echo_n "(cached) " >&6
27672else
27673 ac_check_lib_save_LIBS=$LIBS
27674LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027676/* end confdefs.h. */
27677
27678/* Override any GCC internal prototype to avoid an error.
27679 Use char because int might match the return type of a GCC
27680 builtin and then its argument prototype would still apply. */
27681#ifdef __cplusplus
27682extern "C"
27683#endif
27684char remove ();
27685int
27686main ()
27687{
27688return remove ();
27689 ;
27690 return 0;
27691}
27692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027693if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027694 ac_cv_lib_posix_remove=yes
27695else
cristy8b350f62009-11-15 23:12:43 +000027696 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027697fi
cristy8b350f62009-11-15 23:12:43 +000027698rm -f core conftest.err conftest.$ac_objext \
27699 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027700LIBS=$ac_check_lib_save_LIBS
27701fi
cristy8b350f62009-11-15 23:12:43 +000027702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027703$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027704if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027705 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27706fi
27707
27708 fi
27709
27710 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027711 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027712if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027713
cristy3ed852e2009-09-05 21:47:34 +000027714fi
27715
cristy3ed852e2009-09-05 21:47:34 +000027716 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027718$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027719if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027720 $as_echo_n "(cached) " >&6
27721else
27722 ac_check_lib_save_LIBS=$LIBS
27723LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027725/* end confdefs.h. */
27726
27727/* Override any GCC internal prototype to avoid an error.
27728 Use char because int might match the return type of a GCC
27729 builtin and then its argument prototype would still apply. */
27730#ifdef __cplusplus
27731extern "C"
27732#endif
27733char shmat ();
27734int
27735main ()
27736{
27737return shmat ();
27738 ;
27739 return 0;
27740}
27741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027742if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027743 ac_cv_lib_ipc_shmat=yes
27744else
cristy8b350f62009-11-15 23:12:43 +000027745 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027746fi
cristy8b350f62009-11-15 23:12:43 +000027747rm -f core conftest.err conftest.$ac_objext \
27748 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027749LIBS=$ac_check_lib_save_LIBS
27750fi
cristy8b350f62009-11-15 23:12:43 +000027751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027752$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027753if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027754 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27755fi
27756
27757 fi
27758 fi
27759
27760 # Check for libraries that X11R6 Xt/Xaw programs need.
27761 ac_save_LDFLAGS=$LDFLAGS
27762 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27763 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27764 # check for ICE first), but we must link in the order -lSM -lICE or
27765 # we get undefined symbols. So assume we have SM if we have ICE.
27766 # These have to be linked with before -lX11, unlike the other
27767 # libraries we check for below, so use a different variable.
27768 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027770$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027771if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027772 $as_echo_n "(cached) " >&6
27773else
27774 ac_check_lib_save_LIBS=$LIBS
27775LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027777/* end confdefs.h. */
27778
27779/* Override any GCC internal prototype to avoid an error.
27780 Use char because int might match the return type of a GCC
27781 builtin and then its argument prototype would still apply. */
27782#ifdef __cplusplus
27783extern "C"
27784#endif
27785char IceConnectionNumber ();
27786int
27787main ()
27788{
27789return IceConnectionNumber ();
27790 ;
27791 return 0;
27792}
27793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027794if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027795 ac_cv_lib_ICE_IceConnectionNumber=yes
27796else
cristy8b350f62009-11-15 23:12:43 +000027797 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027798fi
cristy8b350f62009-11-15 23:12:43 +000027799rm -f core conftest.err conftest.$ac_objext \
27800 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027801LIBS=$ac_check_lib_save_LIBS
27802fi
cristy8b350f62009-11-15 23:12:43 +000027803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027804$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027805if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027806 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27807fi
27808
27809 LDFLAGS=$ac_save_LDFLAGS
27810
27811fi
27812
27813if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27815$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027817$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27819$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027820 LDFLAGS="$LDFLAGS $X_LIBS"
27821 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27822 LIBS="$X11_LIBS $LIBS"
27823 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27824
27825
cristy8b350f62009-11-15 23:12:43 +000027826$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027827
27828 #
27829 # Check for X11 shared memory extension
27830 #
27831 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027832 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027833if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027834 have_shmctl='yes'
27835fi
27836
27837 if test "$have_shmctl" != 'yes'; then
27838 PERSIST_LIBS=$LIBS
27839 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027841/* end confdefs.h. */
27842
27843/* Override any GCC internal prototype to avoid an error.
27844 Use char because int might match the return type of a GCC
27845 builtin and then its argument prototype would still apply. */
27846#ifdef __cplusplus
27847extern "C"
27848#endif
27849char shmctl ();
27850int
27851main ()
27852{
27853return shmctl ();
27854 ;
27855 return 0;
27856}
27857_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027858if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027859 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027860fi
cristy8b350f62009-11-15 23:12:43 +000027861rm -f core conftest.err conftest.$ac_objext \
27862 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027863 LIBS=$PERSIST_LIBS
27864 fi
27865
27866 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027868$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027869if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027870 $as_echo_n "(cached) " >&6
27871else
27872 ac_check_lib_save_LIBS=$LIBS
27873LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027875/* end confdefs.h. */
27876
27877/* Override any GCC internal prototype to avoid an error.
27878 Use char because int might match the return type of a GCC
27879 builtin and then its argument prototype would still apply. */
27880#ifdef __cplusplus
27881extern "C"
27882#endif
27883char XShmAttach ();
27884int
27885main ()
27886{
27887return XShmAttach ();
27888 ;
27889 return 0;
27890}
27891_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027892if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027893 ac_cv_lib_Xext_XShmAttach=yes
27894else
cristy8b350f62009-11-15 23:12:43 +000027895 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027896fi
cristy8b350f62009-11-15 23:12:43 +000027897rm -f core conftest.err conftest.$ac_objext \
27898 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027899LIBS=$ac_check_lib_save_LIBS
27900fi
cristy8b350f62009-11-15 23:12:43 +000027901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027902$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027903if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027904 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027905$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027906
27907fi
27908
27909 fi
27910
27911 #
27912 # Check for X11 shape extension
27913 #
cristy8b350f62009-11-15 23:12:43 +000027914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027915$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027916if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027917 $as_echo_n "(cached) " >&6
27918else
27919 ac_check_lib_save_LIBS=$LIBS
27920LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027922/* end confdefs.h. */
27923
27924/* Override any GCC internal prototype to avoid an error.
27925 Use char because int might match the return type of a GCC
27926 builtin and then its argument prototype would still apply. */
27927#ifdef __cplusplus
27928extern "C"
27929#endif
27930char XShapeCombineMask ();
27931int
27932main ()
27933{
27934return XShapeCombineMask ();
27935 ;
27936 return 0;
27937}
27938_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027939if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027940 ac_cv_lib_Xext_XShapeCombineMask=yes
27941else
cristy8b350f62009-11-15 23:12:43 +000027942 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027943fi
cristy8b350f62009-11-15 23:12:43 +000027944rm -f core conftest.err conftest.$ac_objext \
27945 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027946LIBS=$ac_check_lib_save_LIBS
27947fi
cristy8b350f62009-11-15 23:12:43 +000027948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027949$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027950if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027951 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027952$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027953
27954fi
27955
cristy8b350f62009-11-15 23:12:43 +000027956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027957$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027958if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027959 $as_echo_n "(cached) " >&6
27960else
27961 ac_check_lib_save_LIBS=$LIBS
27962LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027964/* end confdefs.h. */
27965
27966/* Override any GCC internal prototype to avoid an error.
27967 Use char because int might match the return type of a GCC
27968 builtin and then its argument prototype would still apply. */
27969#ifdef __cplusplus
27970extern "C"
27971#endif
27972char XtSetEventDispatcher ();
27973int
27974main ()
27975{
27976return XtSetEventDispatcher ();
27977 ;
27978 return 0;
27979}
27980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027981if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027982 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27983else
cristy8b350f62009-11-15 23:12:43 +000027984 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027985fi
cristy8b350f62009-11-15 23:12:43 +000027986rm -f core conftest.err conftest.$ac_objext \
27987 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027988LIBS=$ac_check_lib_save_LIBS
27989fi
cristy8b350f62009-11-15 23:12:43 +000027990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027991$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027992if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027993 XT_LIBS='-lXt'
27994fi
27995
27996 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27997fi
27998if test "$no_x" != 'yes'; then
27999 have_x='yes'
28000else
28001 have_x='no'
28002fi
cristy73bd4a52010-10-05 11:24:23 +000028003 if test "$have_x" = 'yes'; then
28004 X11_DELEGATE_TRUE=
28005 X11_DELEGATE_FALSE='#'
28006else
28007 X11_DELEGATE_TRUE='#'
28008 X11_DELEGATE_FALSE=
28009fi
28010
cristy3ed852e2009-09-05 21:47:34 +000028011
28012
28013
28014
28015#
28016# Check for ZLIB
28017#
28018
28019# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028020if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028021 withval=$with_zlib; with_zlib=$withval
28022else
28023 with_zlib='yes'
28024fi
28025
28026
28027if test "$with_zlib" != 'yes'; then
28028 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28029fi
28030
28031have_zlib='no'
28032ZLIB_LIBS=''
28033if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28035$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028037$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28039$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028040 ZLIB_LIBS=''
28041 failed=0
28042 passed=0
cristy8b350f62009-11-15 23:12:43 +000028043 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028044if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028045 passed=`expr $passed + 1`
28046else
28047 failed=`expr $failed + 1`
28048fi
28049
28050
cristy8b350f62009-11-15 23:12:43 +000028051 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028052if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028053 passed=`expr $passed + 1`
28054else
28055 failed=`expr $failed + 1`
28056fi
28057
28058
cristy8b350f62009-11-15 23:12:43 +000028059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028060$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028061if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028062 $as_echo_n "(cached) " >&6
28063else
28064 ac_check_lib_save_LIBS=$LIBS
28065LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028067/* end confdefs.h. */
28068
28069/* Override any GCC internal prototype to avoid an error.
28070 Use char because int might match the return type of a GCC
28071 builtin and then its argument prototype would still apply. */
28072#ifdef __cplusplus
28073extern "C"
28074#endif
28075char compress ();
28076int
28077main ()
28078{
28079return compress ();
28080 ;
28081 return 0;
28082}
28083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028084if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028085 ac_cv_lib_z_compress=yes
28086else
cristy8b350f62009-11-15 23:12:43 +000028087 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028088fi
cristy8b350f62009-11-15 23:12:43 +000028089rm -f core conftest.err conftest.$ac_objext \
28090 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028091LIBS=$ac_check_lib_save_LIBS
28092fi
cristy8b350f62009-11-15 23:12:43 +000028093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028094$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028095if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028096 passed=`expr $passed + 1`
28097else
28098 failed=`expr $failed + 1`
28099fi
28100
cristy8b350f62009-11-15 23:12:43 +000028101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028102$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028103if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028104 $as_echo_n "(cached) " >&6
28105else
28106 ac_check_lib_save_LIBS=$LIBS
28107LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028109/* end confdefs.h. */
28110
28111/* Override any GCC internal prototype to avoid an error.
28112 Use char because int might match the return type of a GCC
28113 builtin and then its argument prototype would still apply. */
28114#ifdef __cplusplus
28115extern "C"
28116#endif
28117char uncompress ();
28118int
28119main ()
28120{
28121return uncompress ();
28122 ;
28123 return 0;
28124}
28125_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028126if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028127 ac_cv_lib_z_uncompress=yes
28128else
cristy8b350f62009-11-15 23:12:43 +000028129 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028130fi
cristy8b350f62009-11-15 23:12:43 +000028131rm -f core conftest.err conftest.$ac_objext \
28132 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028133LIBS=$ac_check_lib_save_LIBS
28134fi
cristy8b350f62009-11-15 23:12:43 +000028135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028136$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028137if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028138 passed=`expr $passed + 1`
28139else
28140 failed=`expr $failed + 1`
28141fi
28142
cristy8b350f62009-11-15 23:12:43 +000028143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028144$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028145if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028146 $as_echo_n "(cached) " >&6
28147else
28148 ac_check_lib_save_LIBS=$LIBS
28149LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028151/* end confdefs.h. */
28152
28153/* Override any GCC internal prototype to avoid an error.
28154 Use char because int might match the return type of a GCC
28155 builtin and then its argument prototype would still apply. */
28156#ifdef __cplusplus
28157extern "C"
28158#endif
28159char deflate ();
28160int
28161main ()
28162{
28163return deflate ();
28164 ;
28165 return 0;
28166}
28167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028168if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028169 ac_cv_lib_z_deflate=yes
28170else
cristy8b350f62009-11-15 23:12:43 +000028171 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028172fi
cristy8b350f62009-11-15 23:12:43 +000028173rm -f core conftest.err conftest.$ac_objext \
28174 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028175LIBS=$ac_check_lib_save_LIBS
28176fi
cristy8b350f62009-11-15 23:12:43 +000028177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028178$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028179if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028180 passed=`expr $passed + 1`
28181else
28182 failed=`expr $failed + 1`
28183fi
28184
cristy8b350f62009-11-15 23:12:43 +000028185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028186$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028187if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028188 $as_echo_n "(cached) " >&6
28189else
28190 ac_check_lib_save_LIBS=$LIBS
28191LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028193/* end confdefs.h. */
28194
28195/* Override any GCC internal prototype to avoid an error.
28196 Use char because int might match the return type of a GCC
28197 builtin and then its argument prototype would still apply. */
28198#ifdef __cplusplus
28199extern "C"
28200#endif
28201char inflate ();
28202int
28203main ()
28204{
28205return inflate ();
28206 ;
28207 return 0;
28208}
28209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028210if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028211 ac_cv_lib_z_inflate=yes
28212else
cristy8b350f62009-11-15 23:12:43 +000028213 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028214fi
cristy8b350f62009-11-15 23:12:43 +000028215rm -f core conftest.err conftest.$ac_objext \
28216 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028217LIBS=$ac_check_lib_save_LIBS
28218fi
cristy8b350f62009-11-15 23:12:43 +000028219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028220$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028221if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028222 passed=`expr $passed + 1`
28223else
28224 failed=`expr $failed + 1`
28225fi
28226
cristy8b350f62009-11-15 23:12:43 +000028227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028228$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028229if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028230 $as_echo_n "(cached) " >&6
28231else
28232 ac_check_lib_save_LIBS=$LIBS
28233LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028235/* end confdefs.h. */
28236
28237/* Override any GCC internal prototype to avoid an error.
28238 Use char because int might match the return type of a GCC
28239 builtin and then its argument prototype would still apply. */
28240#ifdef __cplusplus
28241extern "C"
28242#endif
28243char gzseek ();
28244int
28245main ()
28246{
28247return gzseek ();
28248 ;
28249 return 0;
28250}
28251_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028252if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028253 ac_cv_lib_z_gzseek=yes
28254else
cristy8b350f62009-11-15 23:12:43 +000028255 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028256fi
cristy8b350f62009-11-15 23:12:43 +000028257rm -f core conftest.err conftest.$ac_objext \
28258 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028259LIBS=$ac_check_lib_save_LIBS
28260fi
cristy8b350f62009-11-15 23:12:43 +000028261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028262$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028263if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028264 passed=`expr $passed + 1`
28265else
28266 failed=`expr $failed + 1`
28267fi
28268
cristy8b350f62009-11-15 23:12:43 +000028269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028270$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028271if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028272 $as_echo_n "(cached) " >&6
28273else
28274 ac_check_lib_save_LIBS=$LIBS
28275LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028277/* end confdefs.h. */
28278
28279/* Override any GCC internal prototype to avoid an error.
28280 Use char because int might match the return type of a GCC
28281 builtin and then its argument prototype would still apply. */
28282#ifdef __cplusplus
28283extern "C"
28284#endif
28285char gztell ();
28286int
28287main ()
28288{
28289return gztell ();
28290 ;
28291 return 0;
28292}
28293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028294if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028295 ac_cv_lib_z_gztell=yes
28296else
cristy8b350f62009-11-15 23:12:43 +000028297 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028298fi
cristy8b350f62009-11-15 23:12:43 +000028299rm -f core conftest.err conftest.$ac_objext \
28300 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028301LIBS=$ac_check_lib_save_LIBS
28302fi
cristy8b350f62009-11-15 23:12:43 +000028303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028304$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028305if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028306 passed=`expr $passed + 1`
28307else
28308 failed=`expr $failed + 1`
28309fi
28310
cristy8b350f62009-11-15 23:12:43 +000028311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028312$as_echo_n "checking if ZLIB package is complete... " >&6; }
28313 if test $passed -gt 0; then
28314 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28316$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028317 have_zlib='no (failed tests)'
28318 else
28319 ZLIB_LIBS='-lz'
28320 LIBS="$ZLIB_LIBS $LIBS"
28321
cristy8b350f62009-11-15 23:12:43 +000028322$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028323
cristyad38abe2012-12-23 23:03:21 +000028324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28325$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028326 have_zlib='yes'
28327 fi
28328 else
cristyad38abe2012-12-23 23:03:21 +000028329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28330$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028331 fi
28332fi
cristy73bd4a52010-10-05 11:24:23 +000028333 if test "$have_zlib" = 'yes'; then
28334 ZLIB_DELEGATE_TRUE=
28335 ZLIB_DELEGATE_FALSE='#'
28336else
28337 ZLIB_DELEGATE_TRUE='#'
28338 ZLIB_DELEGATE_FALSE=
28339fi
28340
cristy3ed852e2009-09-05 21:47:34 +000028341
28342
cristy5eef09f2012-10-16 12:08:28 +000028343# whether modules are built or not.
28344with_ltdl='yes'
28345have_ltdl='no'
28346LTDL_LIBS=''
28347if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28349$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28351$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28353$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028354 failed=0
28355 passed=0
28356 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28357if test "x$ac_cv_header_ltdl_h" = xyes; then :
28358 passed=`expr $passed + 1`
28359else
28360 failed=`expr $failed + 1`
28361fi
28362
28363
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28365$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28366if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28367 $as_echo_n "(cached) " >&6
28368else
28369 ac_check_lib_save_LIBS=$LIBS
28370LIBS="-lltdl $LIBS"
28371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28372/* end confdefs.h. */
28373
28374/* Override any GCC internal prototype to avoid an error.
28375 Use char because int might match the return type of a GCC
28376 builtin and then its argument prototype would still apply. */
28377#ifdef __cplusplus
28378extern "C"
28379#endif
28380char lt_dlinit ();
28381int
28382main ()
28383{
28384return lt_dlinit ();
28385 ;
28386 return 0;
28387}
28388_ACEOF
28389if ac_fn_c_try_link "$LINENO"; then :
28390 ac_cv_lib_ltdl_lt_dlinit=yes
28391else
28392 ac_cv_lib_ltdl_lt_dlinit=no
28393fi
28394rm -f core conftest.err conftest.$ac_objext \
28395 conftest$ac_exeext conftest.$ac_ext
28396LIBS=$ac_check_lib_save_LIBS
28397fi
28398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28399$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28400if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28401 passed=`expr $passed + 1`
28402else
28403 failed=`expr $failed + 1`
28404fi
28405
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28407$as_echo_n "checking if libltdl package is complete... " >&6; }
28408 if test $passed -gt 0 ; then
28409 if test $failed -gt 0 ; then
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28411$as_echo "no -- some components failed test" >&6; }
28412 have_ltdl='no (failed tests)'
28413 else
28414 LTDL_LIBS='-lltdl'
28415 LIBS="$LTDL_LIBS $LIBS"
28416
28417$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28418
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28420$as_echo "yes" >&6; }
28421 have_ltdl='yes'
28422 fi
28423 else
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28425$as_echo "no" >&6; }
28426 fi
cristyaf4cbf32012-10-16 23:47:41 +000028427 if test "$have_ltdl" != 'yes' ; then
28428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28430as_fn_error 1 "libltdl is required for modules build
28431See \`config.log' for more details" "$LINENO" 5; }
28432 fi
cristy5eef09f2012-10-16 12:08:28 +000028433fi
28434 if test "$have_ltdl" != 'no'; then
28435 WITH_LTDL_TRUE=
28436 WITH_LTDL_FALSE='#'
28437else
28438 WITH_LTDL_TRUE='#'
28439 WITH_LTDL_FALSE=
28440fi
28441
28442
cristy3ed852e2009-09-05 21:47:34 +000028443#
28444# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28445#
28446LIB_DL=''
28447if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028449$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028450if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028451 $as_echo_n "(cached) " >&6
28452else
28453 ac_check_lib_save_LIBS=$LIBS
28454LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028456/* end confdefs.h. */
28457
28458/* Override any GCC internal prototype to avoid an error.
28459 Use char because int might match the return type of a GCC
28460 builtin and then its argument prototype would still apply. */
28461#ifdef __cplusplus
28462extern "C"
28463#endif
28464char dlopen ();
28465int
28466main ()
28467{
28468return dlopen ();
28469 ;
28470 return 0;
28471}
28472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028473if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028474 ac_cv_lib_dl_dlopen=yes
28475else
cristy8b350f62009-11-15 23:12:43 +000028476 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028477fi
cristy8b350f62009-11-15 23:12:43 +000028478rm -f core conftest.err conftest.$ac_objext \
28479 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028480LIBS=$ac_check_lib_save_LIBS
28481fi
cristy8b350f62009-11-15 23:12:43 +000028482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028483$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028484if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028485 LIB_DL='-ldl'
28486fi
28487
28488 LIBS="$LIB_DL $LIBS"
28489fi
28490
28491
28492
28493#
28494# Check for Autotrace delegate library.
28495#
28496
28497# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028498if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028499 withval=$with_autotrace; with_autotrace=$withval
28500else
28501 with_autotrace='no'
28502fi
28503
28504
28505if test "$with_autotrace" != 'yes'; then
28506 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28507fi
28508
28509have_autotrace='no'
28510AUTOTRACE_CFLAGS=""
28511AUTOTRACE_LIBS=""
28512AUTOTRACE_PKG=""
28513if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28515$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028516
28517pkg_failed=no
28518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28519$as_echo_n "checking for AUTOTRACE... " >&6; }
28520
28521if test -n "$AUTOTRACE_CFLAGS"; then
28522 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28523 elif test -n "$PKG_CONFIG"; then
28524 if test -n "$PKG_CONFIG" && \
28525 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28526 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28527 ac_status=$?
28528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28529 test $ac_status = 0; }; then
28530 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28531else
28532 pkg_failed=yes
28533fi
28534 else
28535 pkg_failed=untried
28536fi
28537if test -n "$AUTOTRACE_LIBS"; then
28538 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28539 elif test -n "$PKG_CONFIG"; then
28540 if test -n "$PKG_CONFIG" && \
28541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28542 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28543 ac_status=$?
28544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28545 test $ac_status = 0; }; then
28546 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28547else
28548 pkg_failed=yes
28549fi
28550 else
28551 pkg_failed=untried
28552fi
28553
28554
28555
28556if test $pkg_failed = yes; then
28557
28558if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28559 _pkg_short_errors_supported=yes
28560else
28561 _pkg_short_errors_supported=no
28562fi
28563 if test $_pkg_short_errors_supported = yes; then
28564 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28565 else
28566 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28567 fi
28568 # Put the nasty error message in config.log where it belongs
28569 echo "$AUTOTRACE_PKG_ERRORS" >&5
28570
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28572$as_echo "no" >&6; }
28573 have_autotrace=no
28574elif test $pkg_failed = untried; then
28575 have_autotrace=no
28576else
28577 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28578 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28580$as_echo "yes" >&6; }
28581 have_autotrace=yes
28582fi
cristyad38abe2012-12-23 23:03:21 +000028583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28584$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028585fi
28586
28587if test "$have_autotrace" = 'yes'; then
28588 failed=0
28589
cristy8b350f62009-11-15 23:12:43 +000028590$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028591
cristyc6722092012-10-14 00:19:31 +000028592 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028593 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028594 fi
28595fi
28596
cristy73bd4a52010-10-05 11:24:23 +000028597 if test "$have_autotrace" = 'yes'; then
28598 AUTOTRACE_DELEGATE_TRUE=
28599 AUTOTRACE_DELEGATE_FALSE='#'
28600else
28601 AUTOTRACE_DELEGATE_TRUE='#'
28602 AUTOTRACE_DELEGATE_FALSE=
28603fi
28604
cristy3ed852e2009-09-05 21:47:34 +000028605
28606
28607
28608
28609#
28610# Check for Display Postscript delegate library.
28611#
28612
28613# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028614if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028615 withval=$with_dps; with_dps=$withval
28616else
28617 with_dps='yes'
28618fi
28619
28620
28621if test "$with_dps" != 'yes'; then
28622 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28623fi
28624
28625have_dps='no'
28626DPS_LIBS=''
28627if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28629$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028631$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28633$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028634 failed=0
28635 passed=0
28636 PERSIST_CPPFLAGS="$CPPFLAGS"
28637 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028638 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 +000028639if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028640 passed=`expr $passed + 1`
28641else
28642 failed=`expr $failed + 1`
28643fi
28644
28645
28646 # DPS issues:
28647 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28648 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28649 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28650 # ImageMagick itself doesn't use -lXt.
28651 have_libdps='no'
28652 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028654$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028655if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028656 $as_echo_n "(cached) " >&6
28657else
28658 ac_check_lib_save_LIBS=$LIBS
28659LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028661/* end confdefs.h. */
28662
28663/* Override any GCC internal prototype to avoid an error.
28664 Use char because int might match the return type of a GCC
28665 builtin and then its argument prototype would still apply. */
28666#ifdef __cplusplus
28667extern "C"
28668#endif
28669char DPSInitialize ();
28670int
28671main ()
28672{
28673return DPSInitialize ();
28674 ;
28675 return 0;
28676}
28677_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028678if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028679 ac_cv_lib_dps_DPSInitialize=yes
28680else
cristy8b350f62009-11-15 23:12:43 +000028681 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028682fi
cristy8b350f62009-11-15 23:12:43 +000028683rm -f core conftest.err conftest.$ac_objext \
28684 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028685LIBS=$ac_check_lib_save_LIBS
28686fi
cristy8b350f62009-11-15 23:12:43 +000028687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028688$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028689if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028690 have_libdps='yes'
28691else
28692 have_libdps='no'
28693fi
28694
28695 if test "$have_libdps" != 'yes'; then
28696 # Unset cache variable so we can try again.
28697 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028699$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028700if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028701 $as_echo_n "(cached) " >&6
28702else
28703 ac_check_lib_save_LIBS=$LIBS
28704LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028706/* end confdefs.h. */
28707
28708/* Override any GCC internal prototype to avoid an error.
28709 Use char because int might match the return type of a GCC
28710 builtin and then its argument prototype would still apply. */
28711#ifdef __cplusplus
28712extern "C"
28713#endif
28714char DPSInitialize ();
28715int
28716main ()
28717{
28718return DPSInitialize ();
28719 ;
28720 return 0;
28721}
28722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028723if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028724 ac_cv_lib_dps_DPSInitialize=yes
28725else
cristy8b350f62009-11-15 23:12:43 +000028726 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028727fi
cristy8b350f62009-11-15 23:12:43 +000028728rm -f core conftest.err conftest.$ac_objext \
28729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028730LIBS=$ac_check_lib_save_LIBS
28731fi
cristy8b350f62009-11-15 23:12:43 +000028732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028733$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028734if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028735 have_libdps='yes'
28736else
28737 have_libdps='no'
28738fi
28739
28740 if test "$have_libdps" = 'yes'; then
28741 LIBDPS_XT='-lXt'
28742 fi
28743 fi
28744 if test "$have_libdps" = 'yes'; then
28745 passed=`expr $passed + 1`
28746 else
28747 failed=`expr $failed + 1`
28748 fi
cristy8b350f62009-11-15 23:12:43 +000028749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028750$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028751if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028752 $as_echo_n "(cached) " >&6
28753else
28754 ac_check_lib_save_LIBS=$LIBS
28755LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028757/* end confdefs.h. */
28758
28759/* Override any GCC internal prototype to avoid an error.
28760 Use char because int might match the return type of a GCC
28761 builtin and then its argument prototype would still apply. */
28762#ifdef __cplusplus
28763extern "C"
28764#endif
28765char XDPSPixelsPerPoint ();
28766int
28767main ()
28768{
28769return XDPSPixelsPerPoint ();
28770 ;
28771 return 0;
28772}
28773_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028774if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028775 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28776else
cristy8b350f62009-11-15 23:12:43 +000028777 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028778fi
cristy8b350f62009-11-15 23:12:43 +000028779rm -f core conftest.err conftest.$ac_objext \
28780 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028781LIBS=$ac_check_lib_save_LIBS
28782fi
cristy8b350f62009-11-15 23:12:43 +000028783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028784$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028785if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028786 passed=`expr $passed + 1`
28787else
28788 failed=`expr $failed + 1`
28789fi
28790
cristy8b350f62009-11-15 23:12:43 +000028791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028792$as_echo_n "checking if DPS package is complete... " >&6; }
28793 if test $passed -gt 0; then
28794 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28796$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028797 have_dps='no (failed tests)'
28798 CPPFLAGS="$PERSIST_CPPFLAGS"
28799 else
28800 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28801 LIBS="$DPS_LIBS $LIBS"
28802
cristy8b350f62009-11-15 23:12:43 +000028803$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028804
cristyad38abe2012-12-23 23:03:21 +000028805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28806$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028807 have_dps='yes'
28808 fi
28809 else
cristyad38abe2012-12-23 23:03:21 +000028810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28811$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028812 CPPFLAGS=$PERSIST_CPPFLAGS
28813 fi
28814fi
cristy73bd4a52010-10-05 11:24:23 +000028815 if test "$have_dps" = 'yes'; then
28816 DPS_DELEGATE_TRUE=
28817 DPS_DELEGATE_FALSE='#'
28818else
28819 DPS_DELEGATE_TRUE='#'
28820 DPS_DELEGATE_FALSE=
28821fi
28822
cristy3ed852e2009-09-05 21:47:34 +000028823
28824
28825
28826#
cristy430a7312010-01-21 20:44:04 +000028827# Set DejaVu font directory.
28828#
28829
28830# Check whether --with-dejavu-font-dir was given.
28831if test "${with_dejavu_font_dir+set}" = set; then :
28832 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28833else
28834 with_dejavu_font_dir='default'
28835fi
28836
28837
28838if test "$with_dejavu_font_dir" != 'default'; then
28839 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28840fi
28841
28842
28843#
cristy3ed852e2009-09-05 21:47:34 +000028844# Check for FFTW delegate library.
28845#
28846
28847# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028848if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028849 withval=$with_fftw; with_fftw=$withval
28850else
28851 with_fftw='yes'
28852fi
28853
28854
28855if test "$with_fftw" != 'yes'; then
28856 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28857fi
28858
cristy81beccd2011-10-03 18:17:24 +000028859have_fftw='no'
28860FFTW_LIBS=''
28861if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28863$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28865$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28867$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028868 failed=0
28869 passed=0
28870 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28871if test "x$ac_cv_header_fftw3_h" = xyes; then :
28872 passed=`expr $passed + 1`
28873else
28874 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028875fi
28876
cristy81beccd2011-10-03 18:17:24 +000028877
28878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28879$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28880if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28881 $as_echo_n "(cached) " >&6
28882else
28883 ac_check_lib_save_LIBS=$LIBS
28884LIBS="-lfftw3 $LIBS"
28885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28886/* end confdefs.h. */
28887
28888/* Override any GCC internal prototype to avoid an error.
28889 Use char because int might match the return type of a GCC
28890 builtin and then its argument prototype would still apply. */
28891#ifdef __cplusplus
28892extern "C"
28893#endif
28894char fftw_execute ();
28895int
28896main ()
28897{
28898return fftw_execute ();
28899 ;
28900 return 0;
28901}
28902_ACEOF
28903if ac_fn_c_try_link "$LINENO"; then :
28904 ac_cv_lib_fftw3_fftw_execute=yes
28905else
28906 ac_cv_lib_fftw3_fftw_execute=no
28907fi
28908rm -f core conftest.err conftest.$ac_objext \
28909 conftest$ac_exeext conftest.$ac_ext
28910LIBS=$ac_check_lib_save_LIBS
28911fi
28912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28913$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28914if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28915 passed=`expr $passed + 1`
28916else
28917 failed=`expr $failed + 1`
28918fi
28919
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28921$as_echo_n "checking if FFTW package is complete... " >&6; }
28922 if test $passed -gt 0; then
28923 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28925$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028926 have_fftw='no (failed tests)'
28927 else
28928 FFTW_LIBS='-lfftw3'
28929 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028930
cristy8b350f62009-11-15 23:12:43 +000028931$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028932
cristyad38abe2012-12-23 23:03:21 +000028933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28934$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028935 have_fftw='yes'
28936 fi
28937 else
cristyad38abe2012-12-23 23:03:21 +000028938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28939$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028940 fi
28941fi
cristy73bd4a52010-10-05 11:24:23 +000028942 if test "$have_fftw" = 'yes'; then
28943 FFTW_DELEGATE_TRUE=
28944 FFTW_DELEGATE_FALSE='#'
28945else
28946 FFTW_DELEGATE_TRUE='#'
28947 FFTW_DELEGATE_FALSE=
28948fi
28949
cristy3ed852e2009-09-05 21:47:34 +000028950
28951
28952
28953#
28954# Check for FlashPIX delegate library.
28955#
28956
28957# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028958if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028959 withval=$with_fpx; with_fpx=$withval
28960else
28961 with_fpx='yes'
28962fi
28963
28964
28965if test "$with_fpx" != 'yes'; then
28966 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28967fi
28968
28969have_fpx='no'
28970FPX_LIBS=''
28971if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28973$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028975$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28977$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028978 failed=0
28979 passed=0
28980 ac_ext=cpp
28981ac_cpp='$CXXCPP $CPPFLAGS'
28982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28985
28986
cristy8b350f62009-11-15 23:12:43 +000028987ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028988if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028989 passed=`expr $passed + 1`
28990else
28991 failed=`expr $failed + 1`
28992fi
28993
28994
cristy8b350f62009-11-15 23:12:43 +000028995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028996$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028997if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028998 $as_echo_n "(cached) " >&6
28999else
29000 ac_check_lib_save_LIBS=$LIBS
29001LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029003/* end confdefs.h. */
29004
29005/* Override any GCC internal prototype to avoid an error.
29006 Use char because int might match the return type of a GCC
29007 builtin and then its argument prototype would still apply. */
29008#ifdef __cplusplus
29009extern "C"
29010#endif
29011char FPX_OpenImageByFilename ();
29012int
29013main ()
29014{
29015return FPX_OpenImageByFilename ();
29016 ;
29017 return 0;
29018}
29019_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029020if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029021 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29022else
cristy8b350f62009-11-15 23:12:43 +000029023 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029024fi
cristy8b350f62009-11-15 23:12:43 +000029025rm -f core conftest.err conftest.$ac_objext \
29026 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029027LIBS=$ac_check_lib_save_LIBS
29028fi
cristy8b350f62009-11-15 23:12:43 +000029029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029030$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029031if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029032 passed=`expr $passed + 1`
29033else
29034 failed=`expr $failed + 1`
29035fi
29036
29037 ac_ext=c
29038ac_cpp='$CPP $CPPFLAGS'
29039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29041ac_compiler_gnu=$ac_cv_c_compiler_gnu
29042
cristy8b350f62009-11-15 23:12:43 +000029043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029044$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29045 if test $passed -gt 0; then
29046 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29048$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029049 have_fpx='no (failed tests)'
29050 else
29051 FPX_LIBS='-lfpx'
29052
cristy8b350f62009-11-15 23:12:43 +000029053$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029054
cristyad38abe2012-12-23 23:03:21 +000029055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29056$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029057 have_fpx='yes'
29058 PERLMAINCC="$CXX"
29059 fi
29060 else
cristyad38abe2012-12-23 23:03:21 +000029061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29062$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029063 fi
29064fi
cristy73bd4a52010-10-05 11:24:23 +000029065 if test "$have_fpx" = 'yes'; then
29066 FPX_DELEGATE_TRUE=
29067 FPX_DELEGATE_FALSE='#'
29068else
29069 FPX_DELEGATE_TRUE='#'
29070 FPX_DELEGATE_FALSE=
29071fi
29072
cristy3ed852e2009-09-05 21:47:34 +000029073
cristy853d9902014-08-21 18:50:43 +000029074
29075
29076#
29077# Check for DJVU delegate library.
29078#
29079
29080# Check whether --with-djvu was given.
29081if test "${with_djvu+set}" = set; then :
29082 withval=$with_djvu; with_djvu=$withval
29083else
29084 with_djvu='yes'
29085fi
29086
29087
29088if test "$with_djvu" != 'yes'; then
29089 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29090fi
29091
29092have_djvu='no'
29093DJVU_LIBS=''
29094if test "$with_djvu" != 'no'; then
29095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29096$as_echo "-------------------------------------------------------------" >&6; }
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
29098$as_echo_n "checking for DJVU... " >&6; }
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29100$as_echo "" >&6; }
29101 failed=0
29102 passed=0
29103 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
29104if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
29105 passed=`expr $passed + 1`
29106else
29107 failed=`expr $failed + 1`
29108fi
29109
29110
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
29112$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
29113if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
29114 $as_echo_n "(cached) " >&6
29115else
29116 ac_check_lib_save_LIBS=$LIBS
29117LIBS="-ldjvulibre $LIBS"
29118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29119/* end confdefs.h. */
29120
29121/* Override any GCC internal prototype to avoid an error.
29122 Use char because int might match the return type of a GCC
29123 builtin and then its argument prototype would still apply. */
29124#ifdef __cplusplus
29125extern "C"
29126#endif
29127char ddjvu_context_create ();
29128int
29129main ()
29130{
29131return ddjvu_context_create ();
29132 ;
29133 return 0;
29134}
29135_ACEOF
29136if ac_fn_c_try_link "$LINENO"; then :
29137 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29138else
29139 ac_cv_lib_djvulibre_ddjvu_context_create=no
29140fi
29141rm -f core conftest.err conftest.$ac_objext \
29142 conftest$ac_exeext conftest.$ac_ext
29143LIBS=$ac_check_lib_save_LIBS
29144fi
29145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
29146$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
29147if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
29148 passed=`expr $passed + 1`
29149else
29150 failed=`expr $failed + 1`
29151fi
29152
29153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
29154$as_echo_n "checking if DJVU package is complete... " >&6; }
29155 if test $passed -gt 0; then
29156 if test $failed -gt 0; then
29157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29158$as_echo "no -- some components failed test" >&6; }
29159 have_djvu='no (failed tests)'
29160 else
29161 DJVU_LIBS='-ldjvulibre'
29162 LIBS="$DJVU_LIBS $LIBS"
29163
29164$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29165
29166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29167$as_echo "yes" >&6; }
29168 have_djvu='yes'
29169 fi
29170 else
29171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29172$as_echo "no" >&6; }
29173 fi
29174fi
29175 if test "$have_djvu" = 'yes'; then
29176 DJVU_DELEGATE_TRUE=
29177 DJVU_DELEGATE_FALSE='#'
29178else
29179 DJVU_DELEGATE_TRUE='#'
29180 DJVU_DELEGATE_FALSE=
29181fi
29182
29183
cristy3ed852e2009-09-05 21:47:34 +000029184
29185
29186#
29187# Check for fontconfig delegate library.
29188#
29189
29190# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029191if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029192 withval=$with_fontconfig; with_fontconfig=$withval
29193else
cristyfc3d0222012-02-07 15:05:57 +000029194 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029195fi
29196
29197
29198if test "$with_fontconfig" != 'yes'; then
29199 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29200fi
29201
29202have_fontconfig='no'
29203FONTCONFIG_CFLAGS=""
29204FONTCONFIG_LIBS=""
29205FONTCONFIG_PKG=""
29206if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29208$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029209
29210pkg_failed=no
29211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29212$as_echo_n "checking for FONTCONFIG... " >&6; }
29213
29214if test -n "$FONTCONFIG_CFLAGS"; then
29215 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29216 elif test -n "$PKG_CONFIG"; then
29217 if test -n "$PKG_CONFIG" && \
29218 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29219 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29220 ac_status=$?
29221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29222 test $ac_status = 0; }; then
29223 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29224else
29225 pkg_failed=yes
29226fi
29227 else
29228 pkg_failed=untried
29229fi
29230if test -n "$FONTCONFIG_LIBS"; then
29231 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29232 elif test -n "$PKG_CONFIG"; then
29233 if test -n "$PKG_CONFIG" && \
29234 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29235 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29236 ac_status=$?
29237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29238 test $ac_status = 0; }; then
29239 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29240else
29241 pkg_failed=yes
29242fi
29243 else
29244 pkg_failed=untried
29245fi
29246
29247
29248
29249if test $pkg_failed = yes; then
29250
29251if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29252 _pkg_short_errors_supported=yes
29253else
29254 _pkg_short_errors_supported=no
29255fi
29256 if test $_pkg_short_errors_supported = yes; then
29257 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29258 else
29259 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29260 fi
29261 # Put the nasty error message in config.log where it belongs
29262 echo "$FONTCONFIG_PKG_ERRORS" >&5
29263
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29265$as_echo "no" >&6; }
29266 have_fontconfig=no
29267elif test $pkg_failed = untried; then
29268 have_fontconfig=no
29269else
29270 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29271 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29273$as_echo "yes" >&6; }
29274 have_fontconfig=yes
29275fi
cristyad38abe2012-12-23 23:03:21 +000029276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29277$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029278fi
29279
29280if test "$have_fontconfig" = 'yes'; then
29281
cristy8b350f62009-11-15 23:12:43 +000029282$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029283
cristyc6722092012-10-14 00:19:31 +000029284 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029285 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029286 fi
cristy3ed852e2009-09-05 21:47:34 +000029287fi
29288
cristy73bd4a52010-10-05 11:24:23 +000029289 if test "$have_fontconfig" = 'yes'; then
29290 FONTCONFIG_DELEGATE_TRUE=
29291 FONTCONFIG_DELEGATE_FALSE='#'
29292else
29293 FONTCONFIG_DELEGATE_TRUE='#'
29294 FONTCONFIG_DELEGATE_FALSE=
29295fi
29296
cristy3ed852e2009-09-05 21:47:34 +000029297
29298
29299
29300
29301#
cristy03f187e2013-01-24 00:22:19 +000029302# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029303#
29304
29305# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029306if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029307 withval=$with_freetype; with_freetype=$withval
29308else
29309 with_freetype='yes'
29310fi
29311
29312
cristy3ed852e2009-09-05 21:47:34 +000029313if test "$with_freetype" != 'yes'; then
29314 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29315fi
29316
cristy81beccd2011-10-03 18:17:24 +000029317have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029318FREETYPE_CFLAGS=""
29319FREETYPE_LIBS=""
29320FREETYPE_PKG=""
29321if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29323$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029324
29325pkg_failed=no
29326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29327$as_echo_n "checking for FREETYPE... " >&6; }
29328
29329if test -n "$FREETYPE_CFLAGS"; then
29330 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29331 elif test -n "$PKG_CONFIG"; then
29332 if test -n "$PKG_CONFIG" && \
29333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29334 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29335 ac_status=$?
29336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29337 test $ac_status = 0; }; then
29338 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29339else
29340 pkg_failed=yes
29341fi
29342 else
29343 pkg_failed=untried
29344fi
29345if test -n "$FREETYPE_LIBS"; then
29346 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29347 elif test -n "$PKG_CONFIG"; then
29348 if test -n "$PKG_CONFIG" && \
29349 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29350 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29351 ac_status=$?
29352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29353 test $ac_status = 0; }; then
29354 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29355else
29356 pkg_failed=yes
29357fi
29358 else
29359 pkg_failed=untried
29360fi
29361
29362
29363
29364if test $pkg_failed = yes; then
29365
29366if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29367 _pkg_short_errors_supported=yes
29368else
29369 _pkg_short_errors_supported=no
29370fi
29371 if test $_pkg_short_errors_supported = yes; then
29372 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29373 else
29374 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29375 fi
29376 # Put the nasty error message in config.log where it belongs
29377 echo "$FREETYPE_PKG_ERRORS" >&5
29378
29379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29380$as_echo "no" >&6; }
29381 have_freetype=no
29382elif test $pkg_failed = untried; then
29383 have_freetype=no
29384else
29385 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29386 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29388$as_echo "yes" >&6; }
29389 have_freetype=yes
29390fi
cristyad38abe2012-12-23 23:03:21 +000029391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29392$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029393fi
29394
cristy03f187e2013-01-24 00:22:19 +000029395if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029396
cristy8b350f62009-11-15 23:12:43 +000029397$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029398
cristy03f187e2013-01-24 00:22:19 +000029399 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029400fi
cristy03f187e2013-01-24 00:22:19 +000029401
cristy73bd4a52010-10-05 11:24:23 +000029402 if test "$have_freetype" = 'yes'; then
29403 FREETYPE_DELEGATE_TRUE=
29404 FREETYPE_DELEGATE_FALSE='#'
29405else
29406 FREETYPE_DELEGATE_TRUE='#'
29407 FREETYPE_DELEGATE_FALSE=
29408fi
29409
cristy3ed852e2009-09-05 21:47:34 +000029410
29411
29412
cristy03f187e2013-01-24 00:22:19 +000029413
cristy3ed852e2009-09-05 21:47:34 +000029414#
29415# Check for Ghostscript library or framework.
29416#
29417# Test for iapi.h & test for gsapi_new_instance in -lgs
29418# or -framework Ghostscript
29419
29420
29421# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029422if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029423 withval=$with_gslib; with_gslib=$withval
29424else
29425 with_gslib='no'
29426fi
29427
29428
cristyb7931f12009-09-25 10:22:21 +000029429gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029430if test "$with_gslib" != 'yes'; then
29431 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29432fi
29433
29434have_gslib='no'
29435GS_LIBS=''
29436if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29438$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029440$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29442$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029443 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029444 failed=0
29445 passed=0
cristy8b350f62009-11-15 23:12:43 +000029446 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 +000029447if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029448 passed=`expr $passed + 1`
29449else
29450 failed=`expr $failed + 1`
29451fi
29452
29453
cristy8b350f62009-11-15 23:12:43 +000029454 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 +000029455if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029456 passed=`expr $passed + 1`
29457else
29458 failed=`expr $failed + 1`
29459fi
29460
29461
cristy73bd4a52010-10-05 11:24:23 +000029462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29463$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029464if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029465 $as_echo_n "(cached) " >&6
29466else
29467 ac_check_framework_save_LIBS=$LIBS
29468LIBS="-framework Ghostscript $LIBS"
29469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29470/* end confdefs.h. */
29471
29472/* Override any GCC internal prototype to avoid an error.
29473 Use char because int might match the return type of a GCC
29474 builtin and then its argument prototype would still apply. */
29475#ifdef __cplusplus
29476extern "C"
29477#endif
29478char gsapi_new_instance ();
29479int
29480main ()
29481{
29482return gsapi_new_instance ();
29483 ;
29484 return 0;
29485}
29486_ACEOF
29487if ac_fn_c_try_link "$LINENO"; then :
29488 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29489else
29490 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29491fi
29492rm -f core conftest.err conftest.$ac_objext \
29493 conftest$ac_exeext conftest.$ac_ext
29494LIBS=$ac_check_framework_save_LIBS
29495fi
29496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29497$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29498if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29499 framework=`expr $framework + 1`
29500else
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029502$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029503if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029504 $as_echo_n "(cached) " >&6
29505else
29506 ac_check_lib_save_LIBS=$LIBS
29507LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029509/* end confdefs.h. */
29510
29511/* Override any GCC internal prototype to avoid an error.
29512 Use char because int might match the return type of a GCC
29513 builtin and then its argument prototype would still apply. */
29514#ifdef __cplusplus
29515extern "C"
29516#endif
29517char gsapi_new_instance ();
29518int
29519main ()
29520{
29521return gsapi_new_instance ();
29522 ;
29523 return 0;
29524}
29525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029527 ac_cv_lib_gs_gsapi_new_instance=yes
29528else
cristy8b350f62009-11-15 23:12:43 +000029529 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029530fi
cristy8b350f62009-11-15 23:12:43 +000029531rm -f core conftest.err conftest.$ac_objext \
29532 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029533LIBS=$ac_check_lib_save_LIBS
29534fi
cristy8b350f62009-11-15 23:12:43 +000029535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029536$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029537if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029538 passed=`expr $passed + 1`
29539else
29540 failed=`expr $failed + 1`
29541fi
cristy73bd4a52010-10-05 11:24:23 +000029542
29543fi
cristy8b350f62009-11-15 23:12:43 +000029544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029545$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29546 if test $passed -gt 0; then
29547 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29549$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029550 have_gslib='no (failed tests)'
29551 else
29552 if test $framework -gt 0; then
29553 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029554 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29556$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029557 else
cristyad38abe2012-12-23 23:03:21 +000029558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29559$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029560 GS_LIBS='-lgs'
29561 fi
29562 LIBS="$GS_LIBS $LIBS"
29563
cristy8b350f62009-11-15 23:12:43 +000029564$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029565
29566 have_gslib='yes'
29567 fi
29568 else
cristyad38abe2012-12-23 23:03:21 +000029569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29570$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029571 fi
29572fi
cristy73bd4a52010-10-05 11:24:23 +000029573 if test "$have_gslib" = 'yes'; then
29574 GS_DELEGATE_TRUE=
29575 GS_DELEGATE_FALSE='#'
29576else
29577 GS_DELEGATE_TRUE='#'
29578 GS_DELEGATE_FALSE=
29579fi
29580
cristy3ed852e2009-09-05 21:47:34 +000029581
29582
29583# Set default font search path
29584
29585# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029586if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029587 withval=$with_fontpath; with_fontpath=$withval
29588else
29589 with_fontpath=''
29590fi
29591
29592
29593if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29594 with_fontpath=''
29595else
29596
29597cat >>confdefs.h <<_ACEOF
29598#define MAGICK_FONT_PATH "$with_fontpath"
29599_ACEOF
29600
29601fi
29602if test "$with_fontpath=" != ''; then
29603 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29604fi
29605
29606# Set Ghostscript font directory
29607
29608# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029609if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029610 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29611else
29612 with_gs_font_dir='default'
29613fi
29614
29615
29616if test "$with_gs_font_dir" != 'default'; then
29617 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29618fi
29619
29620
29621#
29622# Check for GVC delegate library.
29623#
29624
29625# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029626if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029627 withval=$with_gvc; with_gvc=$withval
29628else
cristy1b70dc82012-07-01 23:15:05 +000029629 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029630fi
29631
29632
29633if test "$with_gvc" != 'yes'; then
29634 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29635fi
29636
29637GVC_PKG=""
29638if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29640$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029641
29642pkg_failed=no
29643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29644$as_echo_n "checking for GVC... " >&6; }
29645
29646if test -n "$GVC_CFLAGS"; then
29647 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29648 elif test -n "$PKG_CONFIG"; then
29649 if test -n "$PKG_CONFIG" && \
29650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29651 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29652 ac_status=$?
29653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29654 test $ac_status = 0; }; then
29655 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29656else
29657 pkg_failed=yes
29658fi
29659 else
29660 pkg_failed=untried
29661fi
29662if test -n "$GVC_LIBS"; then
29663 pkg_cv_GVC_LIBS="$GVC_LIBS"
29664 elif test -n "$PKG_CONFIG"; then
29665 if test -n "$PKG_CONFIG" && \
29666 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29667 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29668 ac_status=$?
29669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29670 test $ac_status = 0; }; then
29671 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29672else
29673 pkg_failed=yes
29674fi
29675 else
29676 pkg_failed=untried
29677fi
29678
29679
29680
29681if test $pkg_failed = yes; then
29682
29683if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29684 _pkg_short_errors_supported=yes
29685else
29686 _pkg_short_errors_supported=no
29687fi
29688 if test $_pkg_short_errors_supported = yes; then
29689 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29690 else
29691 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29692 fi
29693 # Put the nasty error message in config.log where it belongs
29694 echo "$GVC_PKG_ERRORS" >&5
29695
29696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29697$as_echo "no" >&6; }
29698 have_gvc=no
29699elif test $pkg_failed = untried; then
29700 have_gvc=no
29701else
29702 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29703 GVC_LIBS=$pkg_cv_GVC_LIBS
29704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29705$as_echo "yes" >&6; }
29706 have_gvc=yes
29707fi
cristyad38abe2012-12-23 23:03:21 +000029708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29709$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029710fi
29711
29712if test "$have_gvc" = 'yes'; then
29713
cristy8b350f62009-11-15 23:12:43 +000029714$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029715
cristyc6722092012-10-14 00:19:31 +000029716 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029717 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29718 fi
29719fi
29720
cristy73bd4a52010-10-05 11:24:23 +000029721 if test "$have_gvc" = 'yes'; then
29722 GVC_DELEGATE_TRUE=
29723 GVC_DELEGATE_FALSE='#'
29724else
29725 GVC_DELEGATE_TRUE='#'
29726 GVC_DELEGATE_FALSE=
29727fi
29728
cristy3ed852e2009-09-05 21:47:34 +000029729
29730
29731
29732
29733#
29734# Check for JBIG delegate library.
29735#
29736
29737
29738# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029739if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029740 withval=$with_jbig; with_jbig=$withval
29741else
29742 with_jbig='yes'
29743fi
29744
29745
29746have_jbig='no'
29747JBIG_LIBS=''
29748if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29750$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029752$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29754$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029755 failed=0
29756 passed=0
cristy8b350f62009-11-15 23:12:43 +000029757 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029758if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029759 passed=`expr $passed + 1`
29760else
29761 failed=`expr $failed + 1`
29762fi
29763
29764
cristy8b350f62009-11-15 23:12:43 +000029765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029766$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029767if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029768 $as_echo_n "(cached) " >&6
29769else
29770 ac_check_lib_save_LIBS=$LIBS
29771LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029773/* end confdefs.h. */
29774
29775/* Override any GCC internal prototype to avoid an error.
29776 Use char because int might match the return type of a GCC
29777 builtin and then its argument prototype would still apply. */
29778#ifdef __cplusplus
29779extern "C"
29780#endif
29781char jbg_dec_init ();
29782int
29783main ()
29784{
29785return jbg_dec_init ();
29786 ;
29787 return 0;
29788}
29789_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029790if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029791 ac_cv_lib_jbig_jbg_dec_init=yes
29792else
cristy8b350f62009-11-15 23:12:43 +000029793 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029794fi
cristy8b350f62009-11-15 23:12:43 +000029795rm -f core conftest.err conftest.$ac_objext \
29796 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029797LIBS=$ac_check_lib_save_LIBS
29798fi
cristy8b350f62009-11-15 23:12:43 +000029799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029800$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029801if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029802 passed=`expr $passed + 1`
29803else
29804 failed=`expr $failed + 1`
29805fi
29806
cristy8b350f62009-11-15 23:12:43 +000029807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029808$as_echo_n "checking if JBIG package is complete... " >&6; }
29809 if test $passed -gt 0; then
29810 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29812$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029813 have_jbig='no (failed tests)'
29814 else
29815 JBIG_LIBS='-ljbig'
29816 LIBS="$JBIG_LIBS $LIBS"
29817
cristy8b350f62009-11-15 23:12:43 +000029818$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029819
cristyad38abe2012-12-23 23:03:21 +000029820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29821$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029822 have_jbig='yes'
29823 fi
29824 else
cristyad38abe2012-12-23 23:03:21 +000029825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29826$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029827 fi
29828fi
cristy73bd4a52010-10-05 11:24:23 +000029829 if test "$have_jbig" = 'yes'; then
29830 JBIG_DELEGATE_TRUE=
29831 JBIG_DELEGATE_FALSE='#'
29832else
29833 JBIG_DELEGATE_TRUE='#'
29834 JBIG_DELEGATE_FALSE=
29835fi
29836
cristy3ed852e2009-09-05 21:47:34 +000029837
29838
29839
29840#
29841# Check for JPEG delegate library.
29842#
29843
29844# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029845if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029846 withval=$with_jpeg; with_jpeg=$withval
29847else
29848 with_jpeg='yes'
29849fi
29850
29851
29852if test "$with_jpeg" != 'yes'; then
29853 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29854fi
29855
29856have_jpeg='no'
29857JPEG_LIBS=''
29858if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29860$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029862$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29864$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029865 failed=0
29866 passed=0
cristy8b350f62009-11-15 23:12:43 +000029867 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029868if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029869 passed=`expr $passed + 1`
29870else
29871 failed=`expr $failed + 1`
29872fi
29873
29874
cristy8b350f62009-11-15 23:12:43 +000029875 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029876if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029877 passed=`expr $passed + 1`
29878else
29879 failed=`expr $failed + 1`
29880fi
29881
29882
cristy8b350f62009-11-15 23:12:43 +000029883 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029884if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029885 passed=`expr $passed + 1`
29886else
29887 failed=`expr $failed + 1`
29888fi
29889
29890
cristy8b350f62009-11-15 23:12:43 +000029891 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029892if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029893 passed=`expr $passed + 1`
29894else
29895 failed=`expr $failed + 1`
29896fi
29897
29898
cristy8b350f62009-11-15 23:12:43 +000029899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029900$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029901if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029902 $as_echo_n "(cached) " >&6
29903else
29904 ac_check_lib_save_LIBS=$LIBS
29905LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029907/* end confdefs.h. */
29908
29909/* Override any GCC internal prototype to avoid an error.
29910 Use char because int might match the return type of a GCC
29911 builtin and then its argument prototype would still apply. */
29912#ifdef __cplusplus
29913extern "C"
29914#endif
29915char jpeg_read_header ();
29916int
29917main ()
29918{
29919return jpeg_read_header ();
29920 ;
29921 return 0;
29922}
29923_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029924if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029925 ac_cv_lib_jpeg_jpeg_read_header=yes
29926else
cristy8b350f62009-11-15 23:12:43 +000029927 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029928fi
cristy8b350f62009-11-15 23:12:43 +000029929rm -f core conftest.err conftest.$ac_objext \
29930 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029931LIBS=$ac_check_lib_save_LIBS
29932fi
cristy8b350f62009-11-15 23:12:43 +000029933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029934$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029935if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029936 passed=`expr $passed + 1`
29937else
29938 failed=`expr $failed + 1`
29939fi
29940
29941
29942# Test for compatible JPEG library
29943if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029945$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029946if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029947 $as_echo_n "(cached) " >&6
29948else
cristy8b350f62009-11-15 23:12:43 +000029949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029950/* end confdefs.h. */
29951#include <stdio.h>
29952#include <stdlib.h>
29953#include <jpeglib.h>
29954
29955int
29956main ()
29957{
29958
29959#if JPEG_LIB_VERSION < 62
29960#error IJG JPEG library must be version 6b or newer!
29961#endif
29962return 0;
29963
29964 ;
29965 return 0;
29966}
29967_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029968if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029969 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29970else
cristy8b350f62009-11-15 23:12:43 +000029971 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029972fi
cristy3ed852e2009-09-05 21:47:34 +000029973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29974fi
cristy8b350f62009-11-15 23:12:43 +000029975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029976$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29977fi
cristy8b350f62009-11-15 23:12:43 +000029978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029979$as_echo_n "checking if JPEG package is complete... " >&6; }
29980 if test $passed -gt 0; then
29981 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29983$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029984 have_jpeg='no (failed tests)'
29985 else
29986 JPEG_LIBS='-ljpeg'
29987 LIBS="$JPEG_LIBS $LIBS"
29988
cristy8b350f62009-11-15 23:12:43 +000029989$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029990
cristyad38abe2012-12-23 23:03:21 +000029991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29992$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029993 have_jpeg='yes'
29994 fi
29995 else
cristyad38abe2012-12-23 23:03:21 +000029996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29997$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029998 fi
29999fi
cristy73bd4a52010-10-05 11:24:23 +000030000 if test "$have_jpeg" = 'yes'; then
30001 JPEG_DELEGATE_TRUE=
30002 JPEG_DELEGATE_FALSE='#'
30003else
30004 JPEG_DELEGATE_TRUE='#'
30005 JPEG_DELEGATE_FALSE=
30006fi
30007
cristy3ed852e2009-09-05 21:47:34 +000030008
30009
30010
30011#
cristy3ed852e2009-09-05 21:47:34 +000030012# Check for LCMS delegate library.
30013#
cristy71203402010-06-18 13:12:03 +000030014# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030015
30016# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030017if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030018 withval=$with_lcms; with_lcms=$withval
30019else
30020 with_lcms='yes'
30021fi
30022
cristy71203402010-06-18 13:12:03 +000030023if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030024 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30025fi
30026
cristy71203402010-06-18 13:12:03 +000030027# Disable LCMS2.
30028
30029# Check whether --with-lcms2 was given.
30030if test "${with_lcms2+set}" = set; then :
30031 withval=$with_lcms2; with_lcms2=$withval
30032else
30033 with_lcms2='yes'
30034fi
30035
30036if test "$with_lcms2" != 'yes' ; then
30037 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30038fi
30039
30040have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030041LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030042if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30044$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30046$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30048$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030049 failed=0
30050 passed=0
30051 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030052
30053 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030054 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030055if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030056 have_lcms_header='yes'
30057fi
30058
30059
30060 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030061
30062$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30063
cristy71203402010-06-18 13:12:03 +000030064 passed=`expr $passed + 1`
30065 fi
30066
30067 # Check for <lcms2/lcms2.h)
30068 if test "$have_lcms_header" != 'yes'; then
30069 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030070if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030071 have_lcms_header='yes'
30072fi
30073
30074
cristy71203402010-06-18 13:12:03 +000030075 if test "$have_lcms_header" = 'yes'; then
30076 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030077
cristy71203402010-06-18 13:12:03 +000030078$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030079
cristy71203402010-06-18 13:12:03 +000030080 fi
cristyd09bcf92010-03-25 03:04:45 +000030081 fi
cristy71203402010-06-18 13:12:03 +000030082
30083 # Failed to find lcms header?
30084 if test "$have_lcms_header" != 'yes'; then
30085 failed=`expr $failed + 1`
30086 fi
30087
30088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30089$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030090if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030091 $as_echo_n "(cached) " >&6
30092else
30093 ac_check_lib_save_LIBS=$LIBS
30094LIBS="-llcms2 $LIBS"
30095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30096/* end confdefs.h. */
30097
30098/* Override any GCC internal prototype to avoid an error.
30099 Use char because int might match the return type of a GCC
30100 builtin and then its argument prototype would still apply. */
30101#ifdef __cplusplus
30102extern "C"
30103#endif
cristy71203402010-06-18 13:12:03 +000030104char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030105int
30106main ()
30107{
cristy71203402010-06-18 13:12:03 +000030108return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030109 ;
30110 return 0;
30111}
30112_ACEOF
30113if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030114 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030115else
cristy71203402010-06-18 13:12:03 +000030116 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030117fi
30118rm -f core conftest.err conftest.$ac_objext \
30119 conftest$ac_exeext conftest.$ac_ext
30120LIBS=$ac_check_lib_save_LIBS
30121fi
cristy71203402010-06-18 13:12:03 +000030122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30123$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030124if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030125 passed=`expr $passed + 1`
30126else
30127 failed=`expr $failed + 1`
30128fi
30129
cristy71203402010-06-18 13:12:03 +000030130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30131$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030132 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030133 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30135$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030136 have_lcms2='no (failed tests)'
30137 else
30138 LCMS_LIBS='-llcms2'
30139 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30141$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030142 have_lcms2='yes'
30143 fi
cristyd09bcf92010-03-25 03:04:45 +000030144 else
cristyad38abe2012-12-23 23:03:21 +000030145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30146$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030147 fi
30148fi
30149
cristy71203402010-06-18 13:12:03 +000030150#
30151# Check for LCMS v1 (1.11 or later)
30152#
30153if test $have_lcms2 = 'yes'; then
30154 with_lcms='no'
30155fi
30156
30157have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030158if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30160$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30162$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30164$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030165 failed=0
30166 passed=0
30167 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030168
30169 # Check for <lcms.h>
30170 if test "$have_lcms_header" != 'yes'; then
30171 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030172if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030173 have_lcms_header='yes'
30174fi
30175
30176
cristy71203402010-06-18 13:12:03 +000030177 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030178 passed=`expr $passed + 1`
30179
cristy8b350f62009-11-15 23:12:43 +000030180$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030181
cristy71203402010-06-18 13:12:03 +000030182 fi
30183 fi
30184
30185 # Check for <lcms/lcms.h>
30186 if test "$have_lcms_header" != 'yes'; then
30187 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030188if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030189 have_lcms_header='yes'
30190fi
30191
30192
cristy71203402010-06-18 13:12:03 +000030193 if test "$have_lcms_header" = 'yes'; then
30194 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030195
cristy8b350f62009-11-15 23:12:43 +000030196$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030197
cristy71203402010-06-18 13:12:03 +000030198 fi
cristy3ed852e2009-09-05 21:47:34 +000030199 fi
cristy71203402010-06-18 13:12:03 +000030200
30201 # Failed to find lcms header?
30202 if test "$have_lcms_header" != 'yes'; then
30203 failed=`expr $failed + 1`
30204 fi
30205
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30207$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030208if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030209 $as_echo_n "(cached) " >&6
30210else
30211 ac_check_lib_save_LIBS=$LIBS
30212LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030214/* end confdefs.h. */
30215
30216/* Override any GCC internal prototype to avoid an error.
30217 Use char because int might match the return type of a GCC
30218 builtin and then its argument prototype would still apply. */
30219#ifdef __cplusplus
30220extern "C"
30221#endif
cristy71203402010-06-18 13:12:03 +000030222char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030223int
30224main ()
30225{
cristy71203402010-06-18 13:12:03 +000030226return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030227 ;
30228 return 0;
30229}
30230_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030231if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030232 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030233else
cristy71203402010-06-18 13:12:03 +000030234 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030235fi
cristy8b350f62009-11-15 23:12:43 +000030236rm -f core conftest.err conftest.$ac_objext \
30237 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030238LIBS=$ac_check_lib_save_LIBS
30239fi
cristy71203402010-06-18 13:12:03 +000030240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30241$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030242if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030243 passed=`expr $passed + 1`
30244else
30245 failed=`expr $failed + 1`
30246fi
30247
cristy8b350f62009-11-15 23:12:43 +000030248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030249$as_echo_n "checking if LCMS package is complete... " >&6; }
30250 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030251 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30253$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030254 have_lcms='no (failed tests)'
30255 else
30256 LCMS_LIBS='-llcms'
30257 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30259$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030260 have_lcms='yes'
30261 fi
cristy3ed852e2009-09-05 21:47:34 +000030262 else
cristyad38abe2012-12-23 23:03:21 +000030263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30264$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030265 fi
30266fi
cristy71203402010-06-18 13:12:03 +000030267
cristy73bd4a52010-10-05 11:24:23 +000030268 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30269 LCMS_DELEGATE_TRUE=
30270 LCMS_DELEGATE_FALSE='#'
30271else
30272 LCMS_DELEGATE_TRUE='#'
30273 LCMS_DELEGATE_FALSE=
30274fi
30275
cristy71203402010-06-18 13:12:03 +000030276if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30277
30278$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30279
30280fi
30281
cristy3ed852e2009-09-05 21:47:34 +000030282
30283
30284
30285#
cristy99db3872014-01-01 15:11:34 +000030286# Check for the OpenJP2 delegate library.
30287#
30288
30289# Check whether --with-openjp2 was given.
30290if test "${with_openjp2+set}" = set; then :
30291 withval=$with_openjp2; with_openjp2=$withval
30292else
30293 with_openjp2='yes'
30294fi
30295
30296
30297if test "$with_openjp2" != 'yes'; then
30298 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30299fi
30300
30301have_openjp2='no'
30302LIBOPENJP2_CFLAGS=""
30303LIBOPENJP2_LIBS=""
30304LIBOPENJP2_PKG=""
30305if test "x$with_openjp2" = "xyes"; then
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30307$as_echo "-------------------------------------------------------------" >&6; }
30308
30309pkg_failed=no
30310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30311$as_echo_n "checking for LIBOPENJP2... " >&6; }
30312
30313if test -n "$LIBOPENJP2_CFLAGS"; then
30314 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30315 elif test -n "$PKG_CONFIG"; then
30316 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030317 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30318 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030319 ac_status=$?
30320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30321 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030322 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030323else
30324 pkg_failed=yes
30325fi
30326 else
30327 pkg_failed=untried
30328fi
30329if test -n "$LIBOPENJP2_LIBS"; then
30330 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30331 elif test -n "$PKG_CONFIG"; then
30332 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30334 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030335 ac_status=$?
30336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30337 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030338 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030339else
30340 pkg_failed=yes
30341fi
30342 else
30343 pkg_failed=untried
30344fi
30345
30346
30347
30348if test $pkg_failed = yes; then
30349
30350if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30351 _pkg_short_errors_supported=yes
30352else
30353 _pkg_short_errors_supported=no
30354fi
30355 if test $_pkg_short_errors_supported = yes; then
cristybc964932014-05-08 21:45:03 +000030356 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030357 else
cristybc964932014-05-08 21:45:03 +000030358 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030359 fi
30360 # Put the nasty error message in config.log where it belongs
30361 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30362
30363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30364$as_echo "no" >&6; }
30365 have_openjp2=no
30366elif test $pkg_failed = untried; then
30367 have_openjp2=no
30368else
30369 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30370 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30372$as_echo "yes" >&6; }
30373 have_openjp2=yes
30374fi
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30376$as_echo "" >&6; }
30377fi
30378
30379if test "$have_openjp2" = 'yes'; then
30380
30381$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30382
30383 if test "$build_modules" = 'no'; then
30384 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30385 fi
30386fi
30387
30388 if test "$have_openjp2" = 'yes'; then
30389 LIBOPENJP2_DELEGATE_TRUE=
30390 LIBOPENJP2_DELEGATE_FALSE='#'
30391else
30392 LIBOPENJP2_DELEGATE_TRUE='#'
30393 LIBOPENJP2_DELEGATE_FALSE=
30394fi
30395
30396
30397
30398
30399
30400
30401#
cristy3ed852e2009-09-05 21:47:34 +000030402# Check for the LQR (Liquid Rescale) delegate library.
30403#
30404
30405# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030406if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030407 withval=$with_lqr; with_lqr=$withval
30408else
30409 with_lqr='yes'
30410fi
30411
30412
30413if test "$with_lqr" != 'yes'; then
30414 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30415fi
30416
30417have_lqr='no'
30418LQR_CFLAGS=""
30419LQR_LIBS=""
30420LQR_PKG=""
30421if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30423$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030424
30425pkg_failed=no
30426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30427$as_echo_n "checking for LQR... " >&6; }
30428
30429if test -n "$LQR_CFLAGS"; then
30430 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30431 elif test -n "$PKG_CONFIG"; then
30432 if test -n "$PKG_CONFIG" && \
30433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30434 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30435 ac_status=$?
30436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30437 test $ac_status = 0; }; then
30438 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30439else
30440 pkg_failed=yes
30441fi
30442 else
30443 pkg_failed=untried
30444fi
30445if test -n "$LQR_LIBS"; then
30446 pkg_cv_LQR_LIBS="$LQR_LIBS"
30447 elif test -n "$PKG_CONFIG"; then
30448 if test -n "$PKG_CONFIG" && \
30449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30450 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30451 ac_status=$?
30452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30453 test $ac_status = 0; }; then
30454 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30455else
30456 pkg_failed=yes
30457fi
30458 else
30459 pkg_failed=untried
30460fi
30461
30462
30463
30464if test $pkg_failed = yes; then
30465
30466if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30467 _pkg_short_errors_supported=yes
30468else
30469 _pkg_short_errors_supported=no
30470fi
30471 if test $_pkg_short_errors_supported = yes; then
30472 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30473 else
30474 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30475 fi
30476 # Put the nasty error message in config.log where it belongs
30477 echo "$LQR_PKG_ERRORS" >&5
30478
30479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30480$as_echo "no" >&6; }
30481 have_lqr=no
30482elif test $pkg_failed = untried; then
30483 have_lqr=no
30484else
30485 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30486 LQR_LIBS=$pkg_cv_LQR_LIBS
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30488$as_echo "yes" >&6; }
30489 have_lqr=yes
30490fi
cristyad38abe2012-12-23 23:03:21 +000030491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30492$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030493fi
30494
30495if test "$have_lqr" = 'yes'; then
30496
cristy8b350f62009-11-15 23:12:43 +000030497$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030498
30499 CFLAGS="$LQR_CFLAGS $CFLAGS"
30500fi
30501
cristy73bd4a52010-10-05 11:24:23 +000030502 if test "$have_lqr" = 'yes'; then
30503 LQR_DELEGATE_TRUE=
30504 LQR_DELEGATE_FALSE='#'
30505else
30506 LQR_DELEGATE_TRUE='#'
30507 LQR_DELEGATE_FALSE=
30508fi
30509
cristy3ed852e2009-09-05 21:47:34 +000030510
30511
30512
30513
cristy81beccd2011-10-03 18:17:24 +000030514# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030515
30516# Check whether --with-lzma was given.
30517if test "${with_lzma+set}" = set; then :
30518 withval=$with_lzma; with_lzma=$withval
30519else
30520 with_lzma='yes'
30521fi
30522
cristy81beccd2011-10-03 18:17:24 +000030523if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030524 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30525fi
30526
cristyb94e5002011-11-14 13:20:10 +000030527LZMA_PKG=""
30528if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30530$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030531
30532pkg_failed=no
30533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030534$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030535
30536if test -n "$LZMA_CFLAGS"; then
30537 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30538 elif test -n "$PKG_CONFIG"; then
30539 if test -n "$PKG_CONFIG" && \
30540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30541 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30542 ac_status=$?
30543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30544 test $ac_status = 0; }; then
30545 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30546else
30547 pkg_failed=yes
30548fi
30549 else
30550 pkg_failed=untried
30551fi
30552if test -n "$LZMA_LIBS"; then
30553 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30554 elif test -n "$PKG_CONFIG"; then
30555 if test -n "$PKG_CONFIG" && \
30556 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30557 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30558 ac_status=$?
30559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30560 test $ac_status = 0; }; then
30561 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30562else
30563 pkg_failed=yes
30564fi
30565 else
30566 pkg_failed=untried
30567fi
30568
30569
30570
30571if test $pkg_failed = yes; then
30572
30573if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30574 _pkg_short_errors_supported=yes
30575else
30576 _pkg_short_errors_supported=no
30577fi
30578 if test $_pkg_short_errors_supported = yes; then
30579 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30580 else
30581 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30582 fi
30583 # Put the nasty error message in config.log where it belongs
30584 echo "$LZMA_PKG_ERRORS" >&5
30585
30586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30587$as_echo "no" >&6; }
30588 have_lzma=no
30589elif test $pkg_failed = untried; then
30590 have_lzma=no
30591else
30592 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30593 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30595$as_echo "yes" >&6; }
30596 have_lzma=yes
30597fi
cristyad38abe2012-12-23 23:03:21 +000030598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30599$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030600fi
30601
cristyb94e5002011-11-14 13:20:10 +000030602if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030603
30604$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30605
cristyc6722092012-10-14 00:19:31 +000030606 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030607 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030608 fi
cristyfbb0ef02010-12-19 02:32:11 +000030609fi
cristyb94e5002011-11-14 13:20:10 +000030610
cristyfbb0ef02010-12-19 02:32:11 +000030611 if test "$have_lzma" = 'yes'; then
30612 LZMA_DELEGATE_TRUE=
30613 LZMA_DELEGATE_FALSE='#'
30614else
30615 LZMA_DELEGATE_TRUE='#'
30616 LZMA_DELEGATE_FALSE=
30617fi
30618
30619
30620
30621
cristyb94e5002011-11-14 13:20:10 +000030622
cristy3ed852e2009-09-05 21:47:34 +000030623#
30624# Check for the OpenEXR delegate library.
30625#
30626
30627# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030628if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030629 withval=$with_openexr; with_openexr=$withval
30630else
30631 with_openexr='yes'
30632fi
30633
30634
30635if test "$with_openexr" != 'yes'; then
30636 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30637fi
30638
30639have_openexr='no'
30640OPENEXR_CFLAGS=""
30641OPENEXR_LIBS=""
30642OPENEXR_PKG=""
30643if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30645$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030646
30647pkg_failed=no
30648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30649$as_echo_n "checking for OPENEXR... " >&6; }
30650
30651if test -n "$OPENEXR_CFLAGS"; then
30652 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30653 elif test -n "$PKG_CONFIG"; then
30654 if test -n "$PKG_CONFIG" && \
30655 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30656 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30657 ac_status=$?
30658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30659 test $ac_status = 0; }; then
30660 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30661else
30662 pkg_failed=yes
30663fi
30664 else
30665 pkg_failed=untried
30666fi
30667if test -n "$OPENEXR_LIBS"; then
30668 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30669 elif test -n "$PKG_CONFIG"; then
30670 if test -n "$PKG_CONFIG" && \
30671 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30672 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30673 ac_status=$?
30674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30675 test $ac_status = 0; }; then
30676 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30677else
30678 pkg_failed=yes
30679fi
30680 else
30681 pkg_failed=untried
30682fi
30683
30684
30685
30686if test $pkg_failed = yes; then
30687
30688if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30689 _pkg_short_errors_supported=yes
30690else
30691 _pkg_short_errors_supported=no
30692fi
30693 if test $_pkg_short_errors_supported = yes; then
30694 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30695 else
30696 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30697 fi
30698 # Put the nasty error message in config.log where it belongs
30699 echo "$OPENEXR_PKG_ERRORS" >&5
30700
30701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30702$as_echo "no" >&6; }
30703 have_openexr=no
30704elif test $pkg_failed = untried; then
30705 have_openexr=no
30706else
30707 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30708 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30710$as_echo "yes" >&6; }
30711 have_openexr=yes
30712fi
cristyad38abe2012-12-23 23:03:21 +000030713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30714$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030715fi
30716
30717if test "$have_openexr" = 'yes'; then
30718
cristy8b350f62009-11-15 23:12:43 +000030719$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030720
cristyc6722092012-10-14 00:19:31 +000030721 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030722 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30723 fi
30724fi
30725
cristy73bd4a52010-10-05 11:24:23 +000030726 if test "$have_openexr" = 'yes'; then
30727 OPENEXR_DELEGATE_TRUE=
30728 OPENEXR_DELEGATE_FALSE='#'
30729else
30730 OPENEXR_DELEGATE_TRUE='#'
30731 OPENEXR_DELEGATE_FALSE=
30732fi
30733
cristy3ed852e2009-09-05 21:47:34 +000030734
30735
30736
30737
30738#
cristy41cbe8a2011-10-27 01:35:18 +000030739# Check for PANGO delegate library.
30740#
30741
30742# Check whether --with-pango was given.
30743if test "${with_pango+set}" = set; then :
30744 withval=$with_pango; with_pango=$withval
30745else
cristyfc3d0222012-02-07 15:05:57 +000030746 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030747fi
30748
30749
30750if test "$with_pango" != 'yes'; then
30751 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30752fi
30753
30754have_pango='no'
cristya054b762012-03-26 23:16:00 +000030755have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030756PANGO_CFLAGS=""
30757PANGO_LIBS=""
30758PANGO_PKG=""
30759if test "x$with_pango" = "xyes"; then
30760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30761$as_echo "-------------------------------------------------------------" >&6; }
30762
30763pkg_failed=no
30764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30765$as_echo_n "checking for PANGO... " >&6; }
30766
30767if test -n "$PANGO_CFLAGS"; then
30768 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30769 elif test -n "$PKG_CONFIG"; then
30770 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030771 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30772 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030773 ac_status=$?
30774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30775 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030776 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030777else
30778 pkg_failed=yes
30779fi
30780 else
30781 pkg_failed=untried
30782fi
30783if test -n "$PANGO_LIBS"; then
30784 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30785 elif test -n "$PKG_CONFIG"; then
30786 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030787 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30788 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030789 ac_status=$?
30790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30791 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030792 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030793else
30794 pkg_failed=yes
30795fi
30796 else
30797 pkg_failed=untried
30798fi
30799
30800
30801
30802if test $pkg_failed = yes; then
30803
30804if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30805 _pkg_short_errors_supported=yes
30806else
30807 _pkg_short_errors_supported=no
30808fi
30809 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030810 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030811 else
cristya054b762012-03-26 23:16:00 +000030812 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030813 fi
30814 # Put the nasty error message in config.log where it belongs
30815 echo "$PANGO_PKG_ERRORS" >&5
30816
30817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30818$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030819 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030820elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030821 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030822else
30823 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30824 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30826$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030827 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030828fi
30829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30830$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030831
30832pkg_failed=no
30833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30834$as_echo_n "checking for PANGO... " >&6; }
30835
30836if test -n "$PANGO_CFLAGS"; then
30837 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30838 elif test -n "$PKG_CONFIG"; then
30839 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30841 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030842 ac_status=$?
30843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30844 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030845 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030846else
30847 pkg_failed=yes
30848fi
30849 else
30850 pkg_failed=untried
30851fi
30852if test -n "$PANGO_LIBS"; then
30853 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30854 elif test -n "$PKG_CONFIG"; then
30855 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30857 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030858 ac_status=$?
30859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30860 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030861 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030862else
30863 pkg_failed=yes
30864fi
30865 else
30866 pkg_failed=untried
30867fi
30868
30869
30870
30871if test $pkg_failed = yes; then
30872
30873if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30874 _pkg_short_errors_supported=yes
30875else
30876 _pkg_short_errors_supported=no
30877fi
30878 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030879 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030880 else
cristy2542fc62011-12-06 17:50:25 +000030881 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030882 fi
30883 # Put the nasty error message in config.log where it belongs
30884 echo "$PANGO_PKG_ERRORS" >&5
30885
30886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30887$as_echo "no" >&6; }
30888 have_pango=no
30889elif test $pkg_failed = untried; then
30890 have_pango=no
30891else
30892 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30893 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30895$as_echo "yes" >&6; }
30896 have_pango=yes
30897fi
30898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30899$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030900fi
30901
30902if test "$have_pango" = 'yes'; then
30903
30904$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30905
cristyc6722092012-10-14 00:19:31 +000030906 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030907 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30908 fi
30909fi
30910
cristya054b762012-03-26 23:16:00 +000030911if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030912
cristya054b762012-03-26 23:16:00 +000030913$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030914
cristyc6722092012-10-14 00:19:31 +000030915 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030916 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030917 fi
30918fi
30919
30920 if test "$have_pango" = 'yes'; then
30921 PANGO_DELEGATE_TRUE=
30922 PANGO_DELEGATE_FALSE='#'
30923else
30924 PANGO_DELEGATE_TRUE='#'
30925 PANGO_DELEGATE_FALSE=
30926fi
30927
cristya054b762012-03-26 23:16:00 +000030928 if test "$have_pangocairo" = 'yes'; then
30929 PANGOCAIRO_DELEGATE_TRUE=
30930 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030931else
cristya054b762012-03-26 23:16:00 +000030932 PANGOCAIRO_DELEGATE_TRUE='#'
30933 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030934fi
30935
30936
30937
30938
30939
30940#
cristy3ed852e2009-09-05 21:47:34 +000030941# Check for PNG delegate library.
30942#
30943
30944# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030945if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030946 withval=$with_png; with_png=$withval
30947else
30948 with_png='yes'
30949fi
30950
30951
30952if test "$with_png" != 'yes'; then
30953 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30954fi
30955
cristy81beccd2011-10-03 18:17:24 +000030956have_png='no'
30957PNG_LIBS=''
30958
30959if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30961$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30963$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30965$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030966 failed=0
30967 passed=0
30968 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30969if test "x$ac_cv_header_png_h" = xyes; then :
30970 passed=`expr $passed + 1`
30971else
30972 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030973fi
30974
cristy81beccd2011-10-03 18:17:24 +000030975
30976
30977 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030978 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030979 if test "$have_png" = 'no' ; then
30980 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030981 pnglib='png'
30982 else
30983 pnglib="png1${var}"
30984 fi
30985
30986# Test for compatible LIBPNG library
30987 failed=0
30988 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030989 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030990 if test "${pnglib}" != 'png' ; then
30991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30992$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30994/* end confdefs.h. */
30995#include <stdio.h>
30996#include <stdlib.h>
30997#include <png.h>
30998
30999int
31000main ()
31001{
31002
31003#if PNG_LIBPNG_VER_MINOR != ${var}
31004#error LIBPNG library must be version 1${var}!
31005Kaboom, Kaboom
31006#endif
31007return 0;
31008
31009 ;
31010 return 0;
31011}
31012_ACEOF
31013if ac_fn_c_try_compile "$LINENO"; then :
31014 ac_cv_libpng_ok='yes'
31015else
31016 ac_cv_libpng_ok='no'
31017fi
31018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31019 if test "$ac_cv_libpng_ok" = 'yes' ; then
31020 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31022$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031023 else
31024 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000031025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31026$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031027 fi
31028 else
31029 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31031$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031032 fi
31033 fi
31034
31035 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000031036 if test "1${var}" = '17' ; then
31037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
31038$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
31039if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
31040 $as_echo_n "(cached) " >&6
31041else
31042 ac_check_lib_save_LIBS=$LIBS
31043LIBS="-lpng17 $LIBS"
31044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31045/* end confdefs.h. */
31046
31047/* Override any GCC internal prototype to avoid an error.
31048 Use char because int might match the return type of a GCC
31049 builtin and then its argument prototype would still apply. */
31050#ifdef __cplusplus
31051extern "C"
31052#endif
31053char png_get_io_ptr ();
31054int
31055main ()
31056{
31057return png_get_io_ptr ();
31058 ;
31059 return 0;
31060}
31061_ACEOF
31062if ac_fn_c_try_link "$LINENO"; then :
31063 ac_cv_lib_png17_png_get_io_ptr=yes
31064else
31065 ac_cv_lib_png17_png_get_io_ptr=no
31066fi
31067rm -f core conftest.err conftest.$ac_objext \
31068 conftest$ac_exeext conftest.$ac_ext
31069LIBS=$ac_check_lib_save_LIBS
31070fi
31071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31072$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31073if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31074 passed=`expr $passed + 1`
31075else
31076 failed=`expr $failed + 1`
31077fi
31078
31079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31080$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31081if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31082 $as_echo_n "(cached) " >&6
31083else
31084 ac_check_lib_save_LIBS=$LIBS
31085LIBS="-lpng17 $LIBS"
31086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31087/* end confdefs.h. */
31088
31089/* Override any GCC internal prototype to avoid an error.
31090 Use char because int might match the return type of a GCC
31091 builtin and then its argument prototype would still apply. */
31092#ifdef __cplusplus
31093extern "C"
31094#endif
31095char png_longjmp ();
31096int
31097main ()
31098{
31099return png_longjmp ();
31100 ;
31101 return 0;
31102}
31103_ACEOF
31104if ac_fn_c_try_link "$LINENO"; then :
31105 ac_cv_lib_png17_png_longjmp=yes
31106else
31107 ac_cv_lib_png17_png_longjmp=no
31108fi
31109rm -f core conftest.err conftest.$ac_objext \
31110 conftest$ac_exeext conftest.$ac_ext
31111LIBS=$ac_check_lib_save_LIBS
31112fi
31113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31114$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31115if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31116 passed=`expr $passed + 1`
31117else
31118 failed=`expr $failed + 1`
31119fi
31120
31121 fi
31122 if test "1${var}" = '16' ; then
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31124$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31125if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31126 $as_echo_n "(cached) " >&6
31127else
31128 ac_check_lib_save_LIBS=$LIBS
31129LIBS="-lpng16 $LIBS"
31130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31131/* end confdefs.h. */
31132
31133/* Override any GCC internal prototype to avoid an error.
31134 Use char because int might match the return type of a GCC
31135 builtin and then its argument prototype would still apply. */
31136#ifdef __cplusplus
31137extern "C"
31138#endif
31139char png_get_io_ptr ();
31140int
31141main ()
31142{
31143return png_get_io_ptr ();
31144 ;
31145 return 0;
31146}
31147_ACEOF
31148if ac_fn_c_try_link "$LINENO"; then :
31149 ac_cv_lib_png16_png_get_io_ptr=yes
31150else
31151 ac_cv_lib_png16_png_get_io_ptr=no
31152fi
31153rm -f core conftest.err conftest.$ac_objext \
31154 conftest$ac_exeext conftest.$ac_ext
31155LIBS=$ac_check_lib_save_LIBS
31156fi
31157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31158$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31159if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31160 passed=`expr $passed + 1`
31161else
31162 failed=`expr $failed + 1`
31163fi
31164
31165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31166$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31167if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31168 $as_echo_n "(cached) " >&6
31169else
31170 ac_check_lib_save_LIBS=$LIBS
31171LIBS="-lpng16 $LIBS"
31172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31173/* end confdefs.h. */
31174
31175/* Override any GCC internal prototype to avoid an error.
31176 Use char because int might match the return type of a GCC
31177 builtin and then its argument prototype would still apply. */
31178#ifdef __cplusplus
31179extern "C"
31180#endif
31181char png_longjmp ();
31182int
31183main ()
31184{
31185return png_longjmp ();
31186 ;
31187 return 0;
31188}
31189_ACEOF
31190if ac_fn_c_try_link "$LINENO"; then :
31191 ac_cv_lib_png16_png_longjmp=yes
31192else
31193 ac_cv_lib_png16_png_longjmp=no
31194fi
31195rm -f core conftest.err conftest.$ac_objext \
31196 conftest$ac_exeext conftest.$ac_ext
31197LIBS=$ac_check_lib_save_LIBS
31198fi
31199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31200$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31201if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31202 passed=`expr $passed + 1`
31203else
31204 failed=`expr $failed + 1`
31205fi
31206
31207 fi
cristy81beccd2011-10-03 18:17:24 +000031208 if test "1${var}" = '15' ; then
31209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31210$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31211if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31212 $as_echo_n "(cached) " >&6
31213else
31214 ac_check_lib_save_LIBS=$LIBS
31215LIBS="-lpng15 $LIBS"
31216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31217/* end confdefs.h. */
31218
31219/* Override any GCC internal prototype to avoid an error.
31220 Use char because int might match the return type of a GCC
31221 builtin and then its argument prototype would still apply. */
31222#ifdef __cplusplus
31223extern "C"
31224#endif
31225char png_get_io_ptr ();
31226int
31227main ()
31228{
31229return png_get_io_ptr ();
31230 ;
31231 return 0;
31232}
31233_ACEOF
31234if ac_fn_c_try_link "$LINENO"; then :
31235 ac_cv_lib_png15_png_get_io_ptr=yes
31236else
31237 ac_cv_lib_png15_png_get_io_ptr=no
31238fi
31239rm -f core conftest.err conftest.$ac_objext \
31240 conftest$ac_exeext conftest.$ac_ext
31241LIBS=$ac_check_lib_save_LIBS
31242fi
31243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31244$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31245if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31246 passed=`expr $passed + 1`
31247else
31248 failed=`expr $failed + 1`
31249fi
31250
31251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31252$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31253if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31254 $as_echo_n "(cached) " >&6
31255else
31256 ac_check_lib_save_LIBS=$LIBS
31257LIBS="-lpng15 $LIBS"
31258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31259/* end confdefs.h. */
31260
31261/* Override any GCC internal prototype to avoid an error.
31262 Use char because int might match the return type of a GCC
31263 builtin and then its argument prototype would still apply. */
31264#ifdef __cplusplus
31265extern "C"
31266#endif
31267char png_longjmp ();
31268int
31269main ()
31270{
31271return png_longjmp ();
31272 ;
31273 return 0;
31274}
31275_ACEOF
31276if ac_fn_c_try_link "$LINENO"; then :
31277 ac_cv_lib_png15_png_longjmp=yes
31278else
31279 ac_cv_lib_png15_png_longjmp=no
31280fi
31281rm -f core conftest.err conftest.$ac_objext \
31282 conftest$ac_exeext conftest.$ac_ext
31283LIBS=$ac_check_lib_save_LIBS
31284fi
31285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31286$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31287if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31288 passed=`expr $passed + 1`
31289else
31290 failed=`expr $failed + 1`
31291fi
31292
31293 fi
31294 if test "1${var}" = '14' ; then
31295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31296$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31297if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31298 $as_echo_n "(cached) " >&6
31299else
31300 ac_check_lib_save_LIBS=$LIBS
31301LIBS="-lpng14 $LIBS"
31302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31303/* end confdefs.h. */
31304
31305/* Override any GCC internal prototype to avoid an error.
31306 Use char because int might match the return type of a GCC
31307 builtin and then its argument prototype would still apply. */
31308#ifdef __cplusplus
31309extern "C"
31310#endif
31311char png_get_io_ptr ();
31312int
31313main ()
31314{
31315return png_get_io_ptr ();
31316 ;
31317 return 0;
31318}
31319_ACEOF
31320if ac_fn_c_try_link "$LINENO"; then :
31321 ac_cv_lib_png14_png_get_io_ptr=yes
31322else
31323 ac_cv_lib_png14_png_get_io_ptr=no
31324fi
31325rm -f core conftest.err conftest.$ac_objext \
31326 conftest$ac_exeext conftest.$ac_ext
31327LIBS=$ac_check_lib_save_LIBS
31328fi
31329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31330$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31331if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31332 passed=`expr $passed + 1`
31333else
31334 failed=`expr $failed + 1`
31335fi
31336
31337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31338$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31339if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31340 $as_echo_n "(cached) " >&6
31341else
31342 ac_check_lib_save_LIBS=$LIBS
31343LIBS="-lpng14 $LIBS"
31344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31345/* end confdefs.h. */
31346
31347/* Override any GCC internal prototype to avoid an error.
31348 Use char because int might match the return type of a GCC
31349 builtin and then its argument prototype would still apply. */
31350#ifdef __cplusplus
31351extern "C"
31352#endif
31353char png_get_io_state ();
31354int
31355main ()
31356{
31357return png_get_io_state ();
31358 ;
31359 return 0;
31360}
31361_ACEOF
31362if ac_fn_c_try_link "$LINENO"; then :
31363 ac_cv_lib_png14_png_get_io_state=yes
31364else
31365 ac_cv_lib_png14_png_get_io_state=no
31366fi
31367rm -f core conftest.err conftest.$ac_objext \
31368 conftest$ac_exeext conftest.$ac_ext
31369LIBS=$ac_check_lib_save_LIBS
31370fi
31371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31372$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31373if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31374 passed=`expr $passed + 1`
31375else
31376 failed=`expr $failed + 1`
31377fi
31378
31379 fi
31380 if test "1${var}" = '12' ; then
31381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31382$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31383if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31384 $as_echo_n "(cached) " >&6
31385else
31386 ac_check_lib_save_LIBS=$LIBS
31387LIBS="-lpng12 $LIBS"
31388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31389/* end confdefs.h. */
31390
31391/* Override any GCC internal prototype to avoid an error.
31392 Use char because int might match the return type of a GCC
31393 builtin and then its argument prototype would still apply. */
31394#ifdef __cplusplus
31395extern "C"
31396#endif
31397char png_get_io_ptr ();
31398int
31399main ()
31400{
31401return png_get_io_ptr ();
31402 ;
31403 return 0;
31404}
31405_ACEOF
31406if ac_fn_c_try_link "$LINENO"; then :
31407 ac_cv_lib_png12_png_get_io_ptr=yes
31408else
31409 ac_cv_lib_png12_png_get_io_ptr=no
31410fi
31411rm -f core conftest.err conftest.$ac_objext \
31412 conftest$ac_exeext conftest.$ac_ext
31413LIBS=$ac_check_lib_save_LIBS
31414fi
31415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31416$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31417if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31418 passed=`expr $passed + 1`
31419else
31420 failed=`expr $failed + 1`
31421fi
31422
31423 fi
31424 if test "1${var}" = '1' ; then
31425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31426$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31427if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31428 $as_echo_n "(cached) " >&6
31429else
31430 ac_check_lib_save_LIBS=$LIBS
31431LIBS="-lpng $LIBS"
31432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31433/* end confdefs.h. */
31434
31435/* Override any GCC internal prototype to avoid an error.
31436 Use char because int might match the return type of a GCC
31437 builtin and then its argument prototype would still apply. */
31438#ifdef __cplusplus
31439extern "C"
31440#endif
31441char png_get_io_ptr ();
31442int
31443main ()
31444{
31445return png_get_io_ptr ();
31446 ;
31447 return 0;
31448}
31449_ACEOF
31450if ac_fn_c_try_link "$LINENO"; then :
31451 ac_cv_lib_png_png_get_io_ptr=yes
31452else
31453 ac_cv_lib_png_png_get_io_ptr=no
31454fi
31455rm -f core conftest.err conftest.$ac_objext \
31456 conftest$ac_exeext conftest.$ac_ext
31457LIBS=$ac_check_lib_save_LIBS
31458fi
31459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31460$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31461if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31462 passed=`expr $passed + 1`
31463else
31464 failed=`expr $failed + 1`
31465fi
31466
31467 fi
31468 if test $passed -gt 0 -a $failed -le 0 ; then
31469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31470$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31471 if test $passed -gt 0 ; then
31472 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31474$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031475 have_png='no (failed tests)'
31476 else
31477 PNG_LIBS="-l${pnglib}"
31478 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031479
cristy8b350f62009-11-15 23:12:43 +000031480$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031481
cristyad38abe2012-12-23 23:03:21 +000031482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31483$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031484 have_png='yes'
31485 fi
31486 fi
31487 fi
31488 fi
31489 fi
31490 done
31491 fi
cristy3ed852e2009-09-05 21:47:34 +000031492fi
cristy64877302011-08-23 19:10:31 +000031493
cristy73bd4a52010-10-05 11:24:23 +000031494 if test "$have_png" = 'yes'; then
31495 PNG_DELEGATE_TRUE=
31496 PNG_DELEGATE_FALSE='#'
31497else
31498 PNG_DELEGATE_TRUE='#'
31499 PNG_DELEGATE_FALSE=
31500fi
31501
cristy3ed852e2009-09-05 21:47:34 +000031502
cristy50d3f5c2011-09-10 20:09:06 +000031503
cristy3ed852e2009-09-05 21:47:34 +000031504
31505
31506#
31507# Check for RSVG delegate library.
31508#
31509
31510# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031511if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031512 withval=$with_rsvg; with_rsvg=$withval
31513else
cristy1164d5f2012-08-15 00:58:25 +000031514 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031515fi
31516
31517
31518if test "$with_rsvg" != 'yes'; then
31519 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31520fi
31521
31522have_rsvg='no'
31523have_cairo='no'
31524RSVG_CFLAGS=""
31525RSVG_LIBS=""
31526RSVG_PKG=""
31527if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31529$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031530
31531pkg_failed=no
31532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31533$as_echo_n "checking for RSVG... " >&6; }
31534
31535if test -n "$RSVG_CFLAGS"; then
31536 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31537 elif test -n "$PKG_CONFIG"; then
31538 if test -n "$PKG_CONFIG" && \
31539 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31540 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31541 ac_status=$?
31542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31543 test $ac_status = 0; }; then
31544 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31545else
31546 pkg_failed=yes
31547fi
31548 else
31549 pkg_failed=untried
31550fi
31551if test -n "$RSVG_LIBS"; then
31552 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31553 elif test -n "$PKG_CONFIG"; then
31554 if test -n "$PKG_CONFIG" && \
31555 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31556 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31557 ac_status=$?
31558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31559 test $ac_status = 0; }; then
31560 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31561else
31562 pkg_failed=yes
31563fi
31564 else
31565 pkg_failed=untried
31566fi
31567
31568
31569
31570if test $pkg_failed = yes; then
31571
31572if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31573 _pkg_short_errors_supported=yes
31574else
31575 _pkg_short_errors_supported=no
31576fi
31577 if test $_pkg_short_errors_supported = yes; then
31578 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31579 else
31580 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31581 fi
31582 # Put the nasty error message in config.log where it belongs
31583 echo "$RSVG_PKG_ERRORS" >&5
31584
31585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31586$as_echo "no" >&6; }
31587 have_rsvg=no
31588elif test $pkg_failed = untried; then
31589 have_rsvg=no
31590else
31591 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31592 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31594$as_echo "yes" >&6; }
31595 have_rsvg=yes
31596fi
cristyad38abe2012-12-23 23:03:21 +000031597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31598$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031599
31600pkg_failed=no
31601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31602$as_echo_n "checking for CAIRO_SVG... " >&6; }
31603
31604if test -n "$CAIRO_SVG_CFLAGS"; then
31605 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31606 elif test -n "$PKG_CONFIG"; then
31607 if test -n "$PKG_CONFIG" && \
31608 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31609 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31610 ac_status=$?
31611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31612 test $ac_status = 0; }; then
31613 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31614else
31615 pkg_failed=yes
31616fi
31617 else
31618 pkg_failed=untried
31619fi
31620if test -n "$CAIRO_SVG_LIBS"; then
31621 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31622 elif test -n "$PKG_CONFIG"; then
31623 if test -n "$PKG_CONFIG" && \
31624 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31625 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31626 ac_status=$?
31627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31628 test $ac_status = 0; }; then
31629 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31630else
31631 pkg_failed=yes
31632fi
31633 else
31634 pkg_failed=untried
31635fi
31636
31637
31638
31639if test $pkg_failed = yes; then
31640
31641if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31642 _pkg_short_errors_supported=yes
31643else
31644 _pkg_short_errors_supported=no
31645fi
31646 if test $_pkg_short_errors_supported = yes; then
31647 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31648 else
31649 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31650 fi
31651 # Put the nasty error message in config.log where it belongs
31652 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31653
31654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31655$as_echo "no" >&6; }
31656 have_cairo=no
31657elif test $pkg_failed = untried; then
31658 have_cairo=no
31659else
31660 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31661 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31663$as_echo "yes" >&6; }
31664 have_cairo=yes
31665fi
cristyad38abe2012-12-23 23:03:21 +000031666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31667$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031668fi
31669
31670if test "$have_rsvg" = 'yes'; then
31671
cristy8b350f62009-11-15 23:12:43 +000031672$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031673
cristyc6722092012-10-14 00:19:31 +000031674 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031675 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31676 fi
31677fi
31678
31679if test "$have_cairo" = 'yes'; then
31680
cristy8b350f62009-11-15 23:12:43 +000031681$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031682
cristyc6722092012-10-14 00:19:31 +000031683 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031684 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31685 fi
31686fi
31687
cristy73bd4a52010-10-05 11:24:23 +000031688 if test "$have_rsvg" = 'yes'; then
31689 RSVG_DELEGATE_TRUE=
31690 RSVG_DELEGATE_FALSE='#'
31691else
31692 RSVG_DELEGATE_TRUE='#'
31693 RSVG_DELEGATE_FALSE=
31694fi
31695
31696 if test "$have_cairo" = 'yes'; then
31697 CAIRO_DELEGATE_TRUE=
31698 CAIRO_DELEGATE_FALSE='#'
31699else
31700 CAIRO_DELEGATE_TRUE='#'
31701 CAIRO_DELEGATE_FALSE=
31702fi
31703
cristy3ed852e2009-09-05 21:47:34 +000031704
31705
31706
31707
31708#
31709# Check for TIFF delegate library.
31710#
31711
31712# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031713if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031714 withval=$with_tiff; with_tiff=$withval
31715else
31716 with_tiff='yes'
31717fi
31718
31719
31720if test "$with_tiff" != 'yes'; then
31721 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31722fi
31723
31724have_tiff='no'
31725TIFF_LIBS=''
31726if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31728$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031730$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31732$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031733 failed=0
31734 passed=0
cristy8b350f62009-11-15 23:12:43 +000031735 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031736if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031737 passed=`expr $passed + 1`
31738else
31739 failed=`expr $failed + 1`
31740fi
31741
31742
cristy8b350f62009-11-15 23:12:43 +000031743 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031744if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031745 passed=`expr $passed + 1`
31746else
31747 failed=`expr $failed + 1`
31748fi
31749
31750
cristy8b350f62009-11-15 23:12:43 +000031751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031752$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031753if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031754 $as_echo_n "(cached) " >&6
31755else
31756 ac_check_lib_save_LIBS=$LIBS
31757LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031759/* end confdefs.h. */
31760
31761/* Override any GCC internal prototype to avoid an error.
31762 Use char because int might match the return type of a GCC
31763 builtin and then its argument prototype would still apply. */
31764#ifdef __cplusplus
31765extern "C"
31766#endif
31767char TIFFOpen ();
31768int
31769main ()
31770{
31771return TIFFOpen ();
31772 ;
31773 return 0;
31774}
31775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031776if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031777 ac_cv_lib_tiff_TIFFOpen=yes
31778else
cristy8b350f62009-11-15 23:12:43 +000031779 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031780fi
cristy8b350f62009-11-15 23:12:43 +000031781rm -f core conftest.err conftest.$ac_objext \
31782 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031783LIBS=$ac_check_lib_save_LIBS
31784fi
cristy8b350f62009-11-15 23:12:43 +000031785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031786$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031787if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031788 passed=`expr $passed + 1`
31789else
31790 failed=`expr $failed + 1`
31791fi
31792
cristy8b350f62009-11-15 23:12:43 +000031793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031794$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031795if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031796 $as_echo_n "(cached) " >&6
31797else
31798 ac_check_lib_save_LIBS=$LIBS
31799LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031801/* end confdefs.h. */
31802
31803/* Override any GCC internal prototype to avoid an error.
31804 Use char because int might match the return type of a GCC
31805 builtin and then its argument prototype would still apply. */
31806#ifdef __cplusplus
31807extern "C"
31808#endif
31809char TIFFClientOpen ();
31810int
31811main ()
31812{
31813return TIFFClientOpen ();
31814 ;
31815 return 0;
31816}
31817_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031818if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031819 ac_cv_lib_tiff_TIFFClientOpen=yes
31820else
cristy8b350f62009-11-15 23:12:43 +000031821 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031822fi
cristy8b350f62009-11-15 23:12:43 +000031823rm -f core conftest.err conftest.$ac_objext \
31824 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031825LIBS=$ac_check_lib_save_LIBS
31826fi
cristy8b350f62009-11-15 23:12:43 +000031827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031828$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031829if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031830 passed=`expr $passed + 1`
31831else
31832 failed=`expr $failed + 1`
31833fi
31834
cristy8b350f62009-11-15 23:12:43 +000031835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031836$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031837if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031838 $as_echo_n "(cached) " >&6
31839else
31840 ac_check_lib_save_LIBS=$LIBS
31841LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031843/* end confdefs.h. */
31844
31845/* Override any GCC internal prototype to avoid an error.
31846 Use char because int might match the return type of a GCC
31847 builtin and then its argument prototype would still apply. */
31848#ifdef __cplusplus
31849extern "C"
31850#endif
31851char TIFFIsByteSwapped ();
31852int
31853main ()
31854{
31855return TIFFIsByteSwapped ();
31856 ;
31857 return 0;
31858}
31859_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031860if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031861 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31862else
cristy8b350f62009-11-15 23:12:43 +000031863 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031864fi
cristy8b350f62009-11-15 23:12:43 +000031865rm -f core conftest.err conftest.$ac_objext \
31866 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031867LIBS=$ac_check_lib_save_LIBS
31868fi
cristy8b350f62009-11-15 23:12:43 +000031869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031870$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031871if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031872 passed=`expr $passed + 1`
31873else
31874 failed=`expr $failed + 1`
31875fi
31876
cristy8b350f62009-11-15 23:12:43 +000031877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031878$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031879if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031880 $as_echo_n "(cached) " >&6
31881else
31882 ac_check_lib_save_LIBS=$LIBS
31883LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031885/* end confdefs.h. */
31886
31887/* Override any GCC internal prototype to avoid an error.
31888 Use char because int might match the return type of a GCC
31889 builtin and then its argument prototype would still apply. */
31890#ifdef __cplusplus
31891extern "C"
31892#endif
31893char TIFFReadRGBATile ();
31894int
31895main ()
31896{
31897return TIFFReadRGBATile ();
31898 ;
31899 return 0;
31900}
31901_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031902if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031903 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31904else
cristy8b350f62009-11-15 23:12:43 +000031905 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031906fi
cristy8b350f62009-11-15 23:12:43 +000031907rm -f core conftest.err conftest.$ac_objext \
31908 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031909LIBS=$ac_check_lib_save_LIBS
31910fi
cristy8b350f62009-11-15 23:12:43 +000031911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031912$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031913if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031914 passed=`expr $passed + 1`
31915else
31916 failed=`expr $failed + 1`
31917fi
31918
cristy8b350f62009-11-15 23:12:43 +000031919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031920$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031921if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031922 $as_echo_n "(cached) " >&6
31923else
31924 ac_check_lib_save_LIBS=$LIBS
31925LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031927/* end confdefs.h. */
31928
31929/* Override any GCC internal prototype to avoid an error.
31930 Use char because int might match the return type of a GCC
31931 builtin and then its argument prototype would still apply. */
31932#ifdef __cplusplus
31933extern "C"
31934#endif
31935char TIFFReadRGBAStrip ();
31936int
31937main ()
31938{
31939return TIFFReadRGBAStrip ();
31940 ;
31941 return 0;
31942}
31943_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031944if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031945 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31946else
cristy8b350f62009-11-15 23:12:43 +000031947 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031948fi
cristy8b350f62009-11-15 23:12:43 +000031949rm -f core conftest.err conftest.$ac_objext \
31950 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031951LIBS=$ac_check_lib_save_LIBS
31952fi
cristy8b350f62009-11-15 23:12:43 +000031953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031954$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031955if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031956 passed=`expr $passed + 1`
31957else
31958 failed=`expr $failed + 1`
31959fi
31960
cristy8b350f62009-11-15 23:12:43 +000031961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031962$as_echo_n "checking if TIFF package is complete... " >&6; }
31963 if test $passed -gt 0; then
31964 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31966$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031967 have_tiff='no (failed tests)'
31968 else
31969 TIFF_LIBS='-ltiff'
31970 LIBS="$TIFF_LIBS $LIBS"
31971
cristy8b350f62009-11-15 23:12:43 +000031972$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031973
cristyad38abe2012-12-23 23:03:21 +000031974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31975$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031976 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031977 for ac_header in tiffconf.h
31978do :
31979 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031980if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031981 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031982#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031983_ACEOF
31984
31985fi
31986
31987done
31988
cristy8b350f62009-11-15 23:12:43 +000031989 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031990 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31991 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31992 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031993do :
31994 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31995ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031996if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031997 cat >>confdefs.h <<_ACEOF
31998#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31999_ACEOF
32000
32001fi
32002done
32003
32004 fi
32005 else
cristyad38abe2012-12-23 23:03:21 +000032006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32007$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032008 fi
32009fi
cristy73bd4a52010-10-05 11:24:23 +000032010 if test "$have_tiff" = 'yes'; then
32011 TIFF_DELEGATE_TRUE=
32012 TIFF_DELEGATE_FALSE='#'
32013else
32014 TIFF_DELEGATE_TRUE='#'
32015 TIFF_DELEGATE_FALSE=
32016fi
32017
cristy3ed852e2009-09-05 21:47:34 +000032018
32019
32020
32021#
cristyb1860752011-03-14 00:27:46 +000032022# Check for WEBP delegate library.
32023#
32024
32025# Check whether --with-webp was given.
32026if test "${with_webp+set}" = set; then :
32027 withval=$with_webp; with_webp=$withval
32028else
32029 with_webp='yes'
32030fi
32031
32032
32033if test "$with_webp" != 'yes'; then
32034 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32035fi
32036
32037have_webp='no'
32038WEBP_LIBS=''
32039if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32041$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32043$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32045$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032046 failed=0
32047 passed=0
32048 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32049if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32050 passed=`expr $passed + 1`
32051else
32052 failed=`expr $failed + 1`
32053fi
32054
32055
cristy6d670312013-03-22 23:23:01 +000032056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32057$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32058if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032059 $as_echo_n "(cached) " >&6
32060else
32061 ac_check_lib_save_LIBS=$LIBS
32062LIBS="-lwebp $LIBS"
32063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32064/* end confdefs.h. */
32065
32066/* Override any GCC internal prototype to avoid an error.
32067 Use char because int might match the return type of a GCC
32068 builtin and then its argument prototype would still apply. */
32069#ifdef __cplusplus
32070extern "C"
32071#endif
cristy6d670312013-03-22 23:23:01 +000032072char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032073int
32074main ()
32075{
cristy6d670312013-03-22 23:23:01 +000032076return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032077 ;
32078 return 0;
32079}
32080_ACEOF
32081if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032082 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032083else
cristy6d670312013-03-22 23:23:01 +000032084 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032085fi
32086rm -f core conftest.err conftest.$ac_objext \
32087 conftest$ac_exeext conftest.$ac_ext
32088LIBS=$ac_check_lib_save_LIBS
32089fi
cristy6d670312013-03-22 23:23:01 +000032090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32091$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32092if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032093 passed=`expr $passed + 1`
32094else
32095 failed=`expr $failed + 1`
32096fi
32097
32098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32099$as_echo_n "checking if WEBP package is complete... " >&6; }
32100 if test $passed -gt 0; then
32101 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32103$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032104 have_webp='no (failed tests)'
32105 else
32106 WEBP_LIBS='-lwebp'
32107 LIBS="$WEBP_LIBS $LIBS"
32108
32109$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32110
cristyad38abe2012-12-23 23:03:21 +000032111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32112$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032113 have_webp='yes'
32114 fi
32115 else
cristyad38abe2012-12-23 23:03:21 +000032116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32117$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032118 fi
32119fi
32120 if test "$have_webp" = 'yes'; then
32121 WEBP_DELEGATE_TRUE=
32122 WEBP_DELEGATE_FALSE='#'
32123else
32124 WEBP_DELEGATE_TRUE='#'
32125 WEBP_DELEGATE_FALSE=
32126fi
32127
32128
32129
32130
32131#
cristy3ed852e2009-09-05 21:47:34 +000032132# Set Windows font directory.
32133#
32134
32135# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032136if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032137 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32138else
32139 with_windows_font_dir=''
32140fi
32141
32142if test "$with_windows_font_dir" != '' ; then
32143 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32144fi
32145
32146
32147#
32148# Check for WMF delegate library.
32149#
32150
32151# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032152if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032153 withval=$with_wmf; with_wmf=$withval
32154else
cristyfc3d0222012-02-07 15:05:57 +000032155 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032156fi
32157
32158
32159if test "$with_wmf" != 'yes'; then
32160 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32161fi
32162
32163have_wmf='no'
32164WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032165WMF_LIBS_DEPS=''
32166OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032167if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32169$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032171$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32173$as_echo "" >&6; }
32174 have_libwmf='no'
32175 have_libwmflite='no'
32176 have_libwmf_ipa_h='no'
32177
32178 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32179"
32180if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32181 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032182fi
32183
32184
cristy03f7cf92011-12-15 01:40:41 +000032185 if test "$have_libwmf_ipa_h" = 'yes'; then
32186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32187$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32188if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032189 $as_echo_n "(cached) " >&6
32190else
32191 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032192LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032194/* end confdefs.h. */
32195
32196/* Override any GCC internal prototype to avoid an error.
32197 Use char because int might match the return type of a GCC
32198 builtin and then its argument prototype would still apply. */
32199#ifdef __cplusplus
32200extern "C"
32201#endif
cristy03f7cf92011-12-15 01:40:41 +000032202char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032203int
32204main ()
32205{
cristy03f7cf92011-12-15 01:40:41 +000032206return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032207 ;
32208 return 0;
32209}
32210_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032211if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032212 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032213else
cristy03f7cf92011-12-15 01:40:41 +000032214 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032215fi
cristy8b350f62009-11-15 23:12:43 +000032216rm -f core conftest.err conftest.$ac_objext \
32217 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032218LIBS=$ac_check_lib_save_LIBS
32219fi
cristy03f7cf92011-12-15 01:40:41 +000032220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32221$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32222if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32223 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032224fi
32225
cristy03f7cf92011-12-15 01:40:41 +000032226 if test "$have_libwmflite" = 'yes'; then
32227
32228$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32229
32230 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032231 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032232 have_wmf='yes'
32233 else
32234 WMF_LIBS_DEPS=''
32235 WMF_CONFIG_LIBS=`libwmf-config --libs`
32236 for lib in xml2 expat freetype jpeg png z; do
32237 testlib="-l${lib}"
32238 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32239 done
32240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32241$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32242if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32243 $as_echo_n "(cached) " >&6
32244else
32245 ac_check_lib_save_LIBS=$LIBS
32246LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32248/* end confdefs.h. */
32249
32250/* Override any GCC internal prototype to avoid an error.
32251 Use char because int might match the return type of a GCC
32252 builtin and then its argument prototype would still apply. */
32253#ifdef __cplusplus
32254extern "C"
32255#endif
32256char wmf_api_create ();
32257int
32258main ()
32259{
32260return wmf_api_create ();
32261 ;
32262 return 0;
32263}
32264_ACEOF
32265if ac_fn_c_try_link "$LINENO"; then :
32266 ac_cv_lib_wmf_wmf_api_create=yes
32267else
32268 ac_cv_lib_wmf_wmf_api_create=no
32269fi
32270rm -f core conftest.err conftest.$ac_objext \
32271 conftest$ac_exeext conftest.$ac_ext
32272LIBS=$ac_check_lib_save_LIBS
32273fi
32274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32275$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32276if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32277 have_libwmf='yes'
32278fi
32279
32280 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032281
cristy8b350f62009-11-15 23:12:43 +000032282$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032283
cristy03f7cf92011-12-15 01:40:41 +000032284 WMF_LIBS='-lwmf'
32285 LIBS="$WMF_LIBS $LIBS"
32286 have_wmf='yes'
32287 else
32288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32289$as_echo "no -- some components failed test" >&6; }
32290 have_wmf='no (failed tests)'
32291 have_wmflite='no (failed tests)'
32292 LIBS="$OLIBS"
32293 WMF_LIBS=''
32294 fi
glennrp33e524b2011-08-24 17:41:57 +000032295 fi
cristy03f7cf92011-12-15 01:40:41 +000032296 fi
32297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32298$as_echo_n "checking if WMF package is complete... " >&6; }
32299 if test "$have_wmf" = 'yes'; then
32300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32301$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032302 else
cristy03f7cf92011-12-15 01:40:41 +000032303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32304$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032305 fi
cristy3ed852e2009-09-05 21:47:34 +000032306fi
cristy73bd4a52010-10-05 11:24:23 +000032307 if test "$have_wmf" = 'yes'; then
32308 WMF_DELEGATE_TRUE=
32309 WMF_DELEGATE_FALSE='#'
32310else
32311 WMF_DELEGATE_TRUE='#'
32312 WMF_DELEGATE_FALSE=
32313fi
32314
cristy3ed852e2009-09-05 21:47:34 +000032315
32316
32317
cristy81beccd2011-10-03 18:17:24 +000032318
32319
cristy3ed852e2009-09-05 21:47:34 +000032320#
32321# Check for XML delegate library.
32322#
32323
32324# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032325if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032326 withval=$with_xml; with_xml=$withval
32327else
cristyfc3d0222012-02-07 15:05:57 +000032328 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032329fi
32330
32331
cristy81beccd2011-10-03 18:17:24 +000032332if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032333 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32334fi
32335
cristy81beccd2011-10-03 18:17:24 +000032336have_xml='no'
32337XML_LIBS=''
32338if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32340$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32342$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32344$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032345 PERSIST_LDFLAGS=$LDFLAGS
32346 PERSIST_CPPFLAGS=$CPPFLAGS
32347 xml2_config=''
32348 # Extract the first word of "xml2-config", so it can be a program name with args.
32349set dummy xml2-config; ac_word=$2
32350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32351$as_echo_n "checking for $ac_word... " >&6; }
32352if ${ac_cv_path_xml2_config+:} false; then :
32353 $as_echo_n "(cached) " >&6
32354else
32355 case $xml2_config in
32356 [\\/]* | ?:[\\/]*)
32357 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32358 ;;
32359 *)
32360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32361for as_dir in $PATH
32362do
32363 IFS=$as_save_IFS
32364 test -z "$as_dir" && as_dir=.
32365 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032367 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32369 break 2
32370 fi
32371done
32372 done
32373IFS=$as_save_IFS
32374
32375 ;;
32376esac
32377fi
32378xml2_config=$ac_cv_path_xml2_config
32379if test -n "$xml2_config"; then
32380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32381$as_echo "$xml2_config" >&6; }
32382else
32383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32384$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032385fi
32386
cristy81beccd2011-10-03 18:17:24 +000032387 if test -n "$xml2_config"; then
32388 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32389 # the shared library installed under /usr/lib, whereas the package
32390 # installs itself under $prefix/libxml and $prefix/lib.
cristy4a069772014-10-05 19:26:36 +000032391 xml2_prefix=`${xml2_config} --prefix`
cristy81beccd2011-10-03 18:17:24 +000032392 if test -d "${xml2_prefix}/include/libxml2"; then
32393 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32394 fi
32395 if test "${xml2_prefix}" != '/usr'; then
32396 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32397 fi
32398 fi
32399 failed=0
32400 passed=0
32401 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32402if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32403 passed=`expr $passed + 1`
32404else
32405 failed=`expr $failed + 1`
32406fi
32407
32408
32409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32410$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32411if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32412 $as_echo_n "(cached) " >&6
32413else
32414 ac_check_lib_save_LIBS=$LIBS
32415LIBS="-lxml2 $LIBS"
32416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32417/* end confdefs.h. */
32418
32419/* Override any GCC internal prototype to avoid an error.
32420 Use char because int might match the return type of a GCC
32421 builtin and then its argument prototype would still apply. */
32422#ifdef __cplusplus
32423extern "C"
32424#endif
32425char xmlSAXVersion ();
32426int
32427main ()
32428{
32429return xmlSAXVersion ();
32430 ;
32431 return 0;
32432}
32433_ACEOF
32434if ac_fn_c_try_link "$LINENO"; then :
32435 ac_cv_lib_xml2_xmlSAXVersion=yes
32436else
32437 ac_cv_lib_xml2_xmlSAXVersion=no
32438fi
32439rm -f core conftest.err conftest.$ac_objext \
32440 conftest$ac_exeext conftest.$ac_ext
32441LIBS=$ac_check_lib_save_LIBS
32442fi
32443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32444$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32445if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32446 passed=`expr $passed + 1`
32447else
32448 failed=`expr $failed + 1`
32449fi
32450
32451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32452$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32453if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32454 $as_echo_n "(cached) " >&6
32455else
32456 ac_check_lib_save_LIBS=$LIBS
32457LIBS="-lxml2 $LIBS"
32458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32459/* end confdefs.h. */
32460
32461/* Override any GCC internal prototype to avoid an error.
32462 Use char because int might match the return type of a GCC
32463 builtin and then its argument prototype would still apply. */
32464#ifdef __cplusplus
32465extern "C"
32466#endif
32467char xmlParseChunk ();
32468int
32469main ()
32470{
32471return xmlParseChunk ();
32472 ;
32473 return 0;
32474}
32475_ACEOF
32476if ac_fn_c_try_link "$LINENO"; then :
32477 ac_cv_lib_xml2_xmlParseChunk=yes
32478else
32479 ac_cv_lib_xml2_xmlParseChunk=no
32480fi
32481rm -f core conftest.err conftest.$ac_objext \
32482 conftest$ac_exeext conftest.$ac_ext
32483LIBS=$ac_check_lib_save_LIBS
32484fi
32485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32486$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32487if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32488 passed=`expr $passed + 1`
32489else
32490 failed=`expr $failed + 1`
32491fi
32492
32493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32494$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32495if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32496 $as_echo_n "(cached) " >&6
32497else
32498 ac_check_lib_save_LIBS=$LIBS
32499LIBS="-lxml2 $LIBS"
32500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32501/* end confdefs.h. */
32502
32503/* Override any GCC internal prototype to avoid an error.
32504 Use char because int might match the return type of a GCC
32505 builtin and then its argument prototype would still apply. */
32506#ifdef __cplusplus
32507extern "C"
32508#endif
32509char xmlCreatePushParserCtxt ();
32510int
32511main ()
32512{
32513return xmlCreatePushParserCtxt ();
32514 ;
32515 return 0;
32516}
32517_ACEOF
32518if ac_fn_c_try_link "$LINENO"; then :
32519 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32520else
32521 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32522fi
32523rm -f core conftest.err conftest.$ac_objext \
32524 conftest$ac_exeext conftest.$ac_ext
32525LIBS=$ac_check_lib_save_LIBS
32526fi
32527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32528$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32529if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32530 passed=`expr $passed + 1`
32531else
32532 failed=`expr $failed + 1`
32533fi
32534
32535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32536$as_echo_n "checking if XML package is complete... " >&6; }
32537 if test $passed -gt 0; then
32538 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32540$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032541 have_xml='no (failed tests)'
32542 LDFLAGS="$PERSIST_LDFLAGS"
32543 CPPFLAGS="$PERSIST_CPPFLAGS"
32544 else
32545 XML_LIBS='-lxml2'
32546 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032547
cristy8b350f62009-11-15 23:12:43 +000032548$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032549
cristyad38abe2012-12-23 23:03:21 +000032550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32551$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032552 have_xml='yes'
32553 fi
32554 else
cristyad38abe2012-12-23 23:03:21 +000032555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32556$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032557 fi
32558fi
cristy73bd4a52010-10-05 11:24:23 +000032559 if test "$have_xml" = 'yes'; then
32560 XML_DELEGATE_TRUE=
32561 XML_DELEGATE_FALSE='#'
32562else
32563 XML_DELEGATE_TRUE='#'
32564 XML_DELEGATE_FALSE=
32565fi
32566
cristy3ed852e2009-09-05 21:47:34 +000032567
32568
32569
32570# Substitute compiler name to build/link PerlMagick
32571#
32572
32573
32574#
32575# Configure install Paths
32576#
cristy7def36a2011-10-28 19:04:41 +000032577
cristy2a11bef2011-10-28 18:33:11 +000032578# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032579INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032580INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32581DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032582case "${build_os}" in
32583 mingw* )
32584 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32585 ;;
32586esac
32587
32588cat >>confdefs.h <<_ACEOF
32589#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32590_ACEOF
32591
32592
cristy3ed852e2009-09-05 21:47:34 +000032593
cristye52f12f2012-12-31 15:32:36 +000032594# Path to ImageMagick header files (arch part)
32595INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32596DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32597case "${build_os}" in
32598 mingw* )
32599 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32600 ;;
32601esac
32602
32603cat >>confdefs.h <<_ACEOF
32604#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32605_ACEOF
32606
32607
32608
cristy3ed852e2009-09-05 21:47:34 +000032609# Subdirectory under lib to place ImageMagick lib files
32610LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32611
32612cat >>confdefs.h <<_ACEOF
32613#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32614_ACEOF
32615
32616
32617# Path to ImageMagick bin directory
32618EXECUTABLE_PATH="${BIN_DIR}"
32619DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32620case "${build_os}" in
32621 mingw* )
32622 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32623 ;;
32624esac
32625
32626cat >>confdefs.h <<_ACEOF
32627#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32628_ACEOF
32629
32630
32631
32632# Path to ImageMagick lib
32633LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32634DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32635case "${build_os}" in
32636 mingw* )
32637 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32638 ;;
32639esac
32640
32641cat >>confdefs.h <<_ACEOF
32642#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32643_ACEOF
32644
32645
32646
cristy3ed852e2009-09-05 21:47:34 +000032647#
cristy8d0ff762013-03-10 20:33:28 +000032648# path to local binaries
32649if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32650 LIB_BIN_BASEDIRNAME="bin"
32651fi
32652
32653cat >>confdefs.h <<_ACEOF
32654#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32655_ACEOF
32656
32657
32658
32659if test "x$LIB_BIN_DIR" = "x"; then
32660 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32661fi
32662
32663
32664LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32665
32666LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32667
32668
32669#
cristy01ff9f32012-12-01 18:15:29 +000032670# path to modules lib
32671if test "x$MODULES_BASEDIRNAME" = "x"; then
32672 MODULES_BASEDIRNAME="modules"
32673fi
cristy3ed852e2009-09-05 21:47:34 +000032674
32675cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032676#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032677_ACEOF
32678
cristy01ff9f32012-12-01 18:15:29 +000032679
32680
32681if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032682 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32683else
cristy3ed852e2009-09-05 21:47:34 +000032684
32685cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032686#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032687_ACEOF
32688
cristycf4a3c22012-12-02 21:47:25 +000032689fi
cristy01ff9f32012-12-01 18:15:29 +000032690
32691
cristy371d4812012-12-01 19:48:10 +000032692MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032693
32694MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32695
32696
32697#
32698# path to coders lib
32699if test "x$CODER_DIRNAME" = "x"; then
32700 CODER_DIRNAME="coders"
32701fi
32702
32703cat >>confdefs.h <<_ACEOF
32704#define CODER_DIRNAME "$CODER_DIRNAME"
32705_ACEOF
32706
32707
32708
cristy371d4812012-12-01 19:48:10 +000032709CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032710CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032711
32712
32713#
32714# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032715#
32716# path to coders lib
32717if test "x$FILTER_DIRNAME" = "x"; then
32718 FILTER_DIRNAME="filters"
32719fi
cristy3ed852e2009-09-05 21:47:34 +000032720
32721cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032722#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032723_ACEOF
32724
cristy3ed852e2009-09-05 21:47:34 +000032725
cristy3ed852e2009-09-05 21:47:34 +000032726
cristy371d4812012-12-01 19:48:10 +000032727FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032728FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032729
32730
32731#
32732# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032733DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032734DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32735DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032736case "${build_os}" in
32737 mingw* )
32738 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32739 ;;
32740esac
32741
32742cat >>confdefs.h <<_ACEOF
32743#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32744_ACEOF
32745
32746
32747
cristydd17feb2014-03-05 02:06:32 +000032748#
32749# Enable/Disable documentation
32750# Check whether --enable-docs was given.
32751if test "${enable_docs+set}" = set; then :
32752 enableval=$enable_docs; wantdocs=$enableval
32753else
cristy02272312014-03-07 00:55:25 +000032754 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000032755fi
32756
cristy02272312014-03-07 00:55:25 +000032757 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000032758 INSTALL_DOC_TRUE=
32759 INSTALL_DOC_FALSE='#'
32760else
32761 INSTALL_DOC_TRUE='#'
32762 INSTALL_DOC_FALSE=
32763fi
32764
32765
cristy2a11bef2011-10-28 18:33:11 +000032766# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032767CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032768
32769cat >>confdefs.h <<_ACEOF
32770#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32771_ACEOF
32772
cristy7def36a2011-10-28 19:04:41 +000032773CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032774DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32775case "${build_os}" in
32776 mingw* )
32777 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32778 ;;
32779esac
32780
32781cat >>confdefs.h <<_ACEOF
32782#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32783_ACEOF
32784
32785
32786
cristy2a11bef2011-10-28 18:33:11 +000032787# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032788SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032789
32790cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032791#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032792_ACEOF
32793
cristy670aa3c2011-11-03 00:54:00 +000032794SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032795DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032796case "${build_os}" in
32797 mingw* )
cristy4f820712011-04-01 12:35:43 +000032798 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032799 ;;
32800esac
32801
32802cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032803#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032804_ACEOF
32805
32806
32807
cristy54378032012-12-04 15:52:20 +000032808#
32809# Subdirectory to place architecture-dependent configuration files.
32810if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32811 SHAREARCH_BASEDIRNAME="config"
32812fi
cristy670aa3c2011-11-03 00:54:00 +000032813
32814cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032815#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032816_ACEOF
32817
cristy54378032012-12-04 15:52:20 +000032818
32819
32820if test "x$SHAREARCH_DIRNAME" = "x"; then
32821 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32822else
cristy670aa3c2011-11-03 00:54:00 +000032823
32824cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032825#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032826_ACEOF
32827
cristy54378032012-12-04 15:52:20 +000032828fi
32829
32830
32831SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32832
32833SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032834
32835
cristy3ed852e2009-09-05 21:47:34 +000032836#
32837# program_transform_name is formed for use in a Makefile, so create a
32838# modified version for use in a shell script.
32839configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32840
32841# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32843$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032845$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32847$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032848AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032849BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032850BZIPDelegateDefault='bzip2'
32851BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032852CatDelegateDefault='cat'
32853DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000032854DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000032855GVCDecodeDelegateDefault='dot'
32856DVIDecodeDelegateDefault='dvips'
32857EchoDelegateDefault='echo'
32858EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032859ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32860DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32861MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32862GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032863HPGLDecodeDelegateDefault='hp2xx'
32864HTMLDecodeDelegateDefault='html2ps'
32865ILBMDecodeDelegateDefault='ilbmtoppm'
32866ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032867JXRDecodeDelegateDefault='JxrDecApp'
32868JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032869LPDelegateDefault='lp'
32870LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032871LaunchDelegateDefault='gimp'
32872MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032873MPEGDecodeDelegateDefault='avconv'
32874MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032875MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032876MVDelegateDefault='mv'
32877PCLDelegateDefault='pcl6'
32878PGPDecodeDelegateDefault='pgpv'
32879POVDelegateDefault='povray'
32880if test "$native_win32_build" = 'yes'; then
32881 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032882elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032883 PSDelegateDefault='gsc'
32884else
32885 PSDelegateDefault='gs'
32886fi
32887RLEEncodeDelegateDefault='rawtorle'
32888RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032889RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032890SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032891SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032892TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032893UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032894WebPDecodeDelegateDefault='dwebp'
32895WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032896WMFDecodeDelegateDefault='wmf2eps'
32897WWWDecodeDelegateDefault='curl'
32898XPSDelegateDefault='gxps'
32899ZipDelegateDefault='gzip'
32900
32901# Search for delegates
32902# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32903set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032906if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032907 $as_echo_n "(cached) " >&6
32908else
32909 case $AutotraceDecodeDelegate in
32910 [\\/]* | ?:[\\/]*)
32911 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32912 ;;
32913 *)
32914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32915for as_dir in $PATH
32916do
32917 IFS=$as_save_IFS
32918 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032921 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032923 break 2
32924 fi
32925done
cristy8b350f62009-11-15 23:12:43 +000032926 done
cristy3ed852e2009-09-05 21:47:34 +000032927IFS=$as_save_IFS
32928
32929 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32930 ;;
32931esac
32932fi
32933AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32934if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032936$as_echo "$AutotraceDecodeDelegate" >&6; }
32937else
cristy8b350f62009-11-15 23:12:43 +000032938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032939$as_echo "no" >&6; }
32940fi
32941
32942
cristy3ed852e2009-09-05 21:47:34 +000032943# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32944set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032946$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032947if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032948 $as_echo_n "(cached) " >&6
32949else
32950 case $BlenderDecodeDelegate in
32951 [\\/]* | ?:[\\/]*)
32952 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32953 ;;
32954 *)
32955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32956for as_dir in $PATH
32957do
32958 IFS=$as_save_IFS
32959 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032960 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032962 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032964 break 2
32965 fi
32966done
cristy8b350f62009-11-15 23:12:43 +000032967 done
cristy3ed852e2009-09-05 21:47:34 +000032968IFS=$as_save_IFS
32969
32970 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32971 ;;
32972esac
32973fi
32974BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32975if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032977$as_echo "$BlenderDecodeDelegate" >&6; }
32978else
cristy8b350f62009-11-15 23:12:43 +000032979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032980$as_echo "no" >&6; }
32981fi
32982
32983
32984# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32985set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032987$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032988if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032989 $as_echo_n "(cached) " >&6
32990else
32991 case $BZIPDelegate in
32992 [\\/]* | ?:[\\/]*)
32993 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32994 ;;
32995 *)
32996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32997for as_dir in $PATH
32998do
32999 IFS=$as_save_IFS
33000 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033001 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033003 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033005 break 2
33006 fi
33007done
cristy8b350f62009-11-15 23:12:43 +000033008 done
cristy3ed852e2009-09-05 21:47:34 +000033009IFS=$as_save_IFS
33010
33011 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33012 ;;
33013esac
33014fi
33015BZIPDelegate=$ac_cv_path_BZIPDelegate
33016if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033018$as_echo "$BZIPDelegate" >&6; }
33019else
cristy8b350f62009-11-15 23:12:43 +000033020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033021$as_echo "no" >&6; }
33022fi
33023
33024
cristyc59f0e72012-08-27 12:59:33 +000033025for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33026do
33027 # Extract the first word of "$ac_prog", so it can be a program name with args.
33028set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033031if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033032 $as_echo_n "(cached) " >&6
33033else
33034 case $BrowseDelegate in
33035 [\\/]* | ?:[\\/]*)
33036 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33037 ;;
33038 *)
33039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33040for as_dir in $PATH
33041do
33042 IFS=$as_save_IFS
33043 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033044 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033046 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033048 break 2
33049 fi
33050done
cristy8b350f62009-11-15 23:12:43 +000033051 done
cristy3ed852e2009-09-05 21:47:34 +000033052IFS=$as_save_IFS
33053
cristy3ed852e2009-09-05 21:47:34 +000033054 ;;
33055esac
33056fi
33057BrowseDelegate=$ac_cv_path_BrowseDelegate
33058if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033060$as_echo "$BrowseDelegate" >&6; }
33061else
cristy8b350f62009-11-15 23:12:43 +000033062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033063$as_echo "no" >&6; }
33064fi
33065
33066
cristyc59f0e72012-08-27 12:59:33 +000033067 test -n "$BrowseDelegate" && break
33068done
33069test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33070
cristy3ed852e2009-09-05 21:47:34 +000033071# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33072set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033074$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033075if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033076 $as_echo_n "(cached) " >&6
33077else
33078 case $CatDelegate in
33079 [\\/]* | ?:[\\/]*)
33080 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33081 ;;
33082 *)
33083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33084for as_dir in $PATH
33085do
33086 IFS=$as_save_IFS
33087 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033088 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033090 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033092 break 2
33093 fi
33094done
cristy8b350f62009-11-15 23:12:43 +000033095 done
cristy3ed852e2009-09-05 21:47:34 +000033096IFS=$as_save_IFS
33097
33098 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33099 ;;
33100esac
33101fi
33102CatDelegate=$ac_cv_path_CatDelegate
33103if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033105$as_echo "$CatDelegate" >&6; }
33106else
cristy8b350f62009-11-15 23:12:43 +000033107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033108$as_echo "no" >&6; }
33109fi
33110
33111
33112# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33113set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033115$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033116if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033117 $as_echo_n "(cached) " >&6
33118else
33119 case $DNGDecodeDelegate in
33120 [\\/]* | ?:[\\/]*)
33121 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33122 ;;
33123 *)
33124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33125for as_dir in $PATH
33126do
33127 IFS=$as_save_IFS
33128 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033129 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033131 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033133 break 2
33134 fi
33135done
cristy8b350f62009-11-15 23:12:43 +000033136 done
cristy3ed852e2009-09-05 21:47:34 +000033137IFS=$as_save_IFS
33138
33139 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33140 ;;
33141esac
33142fi
33143DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33144if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033146$as_echo "$DNGDecodeDelegate" >&6; }
33147else
cristy8b350f62009-11-15 23:12:43 +000033148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033149$as_echo "no" >&6; }
33150fi
33151
33152
cristy66f238e2014-05-16 12:21:48 +000033153# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33154set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033156$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033157if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033158 $as_echo_n "(cached) " >&6
33159else
cristy66f238e2014-05-16 12:21:48 +000033160 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033161 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033162 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033163 ;;
33164 *)
33165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33166for as_dir in $PATH
33167do
33168 IFS=$as_save_IFS
33169 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033172 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033174 break 2
33175 fi
33176done
cristy8b350f62009-11-15 23:12:43 +000033177 done
cristy3ed852e2009-09-05 21:47:34 +000033178IFS=$as_save_IFS
33179
cristy66f238e2014-05-16 12:21:48 +000033180 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033181 ;;
33182esac
33183fi
cristy66f238e2014-05-16 12:21:48 +000033184DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33185if test -n "$DOCDecodeDelegate"; then
33186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33187$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033188else
cristy8b350f62009-11-15 23:12:43 +000033189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033190$as_echo "no" >&6; }
33191fi
33192
33193
33194# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33195set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033197$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033198if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033199 $as_echo_n "(cached) " >&6
33200else
33201 case $DVIDecodeDelegate in
33202 [\\/]* | ?:[\\/]*)
33203 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33204 ;;
33205 *)
33206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33207for as_dir in $PATH
33208do
33209 IFS=$as_save_IFS
33210 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033211 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033213 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033215 break 2
33216 fi
33217done
cristy8b350f62009-11-15 23:12:43 +000033218 done
cristy3ed852e2009-09-05 21:47:34 +000033219IFS=$as_save_IFS
33220
33221 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33222 ;;
33223esac
33224fi
33225DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33226if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033228$as_echo "$DVIDecodeDelegate" >&6; }
33229else
cristy8b350f62009-11-15 23:12:43 +000033230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033231$as_echo "no" >&6; }
33232fi
33233
33234
cristy3ed852e2009-09-05 21:47:34 +000033235# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33236set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033238$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033239if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033240 $as_echo_n "(cached) " >&6
33241else
33242 case $ConvertDelegate in
33243 [\\/]* | ?:[\\/]*)
33244 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33245 ;;
33246 *)
33247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33248for as_dir in $PATH
33249do
33250 IFS=$as_save_IFS
33251 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033252 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033254 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033256 break 2
33257 fi
33258done
cristy8b350f62009-11-15 23:12:43 +000033259 done
cristy3ed852e2009-09-05 21:47:34 +000033260IFS=$as_save_IFS
33261
33262 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33263 ;;
33264esac
33265fi
33266ConvertDelegate=$ac_cv_path_ConvertDelegate
33267if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033269$as_echo "$ConvertDelegate" >&6; }
33270else
cristy8b350f62009-11-15 23:12:43 +000033271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033272$as_echo "no" >&6; }
33273fi
33274
33275
33276# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33277set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033279$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033280if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033281 $as_echo_n "(cached) " >&6
33282else
33283 case $DisplayDelegate in
33284 [\\/]* | ?:[\\/]*)
33285 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33286 ;;
33287 *)
33288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33289for as_dir in $PATH
33290do
33291 IFS=$as_save_IFS
33292 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033293 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033295 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033297 break 2
33298 fi
33299done
cristy8b350f62009-11-15 23:12:43 +000033300 done
cristy3ed852e2009-09-05 21:47:34 +000033301IFS=$as_save_IFS
33302
33303 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33304 ;;
33305esac
33306fi
33307DisplayDelegate=$ac_cv_path_DisplayDelegate
33308if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033310$as_echo "$DisplayDelegate" >&6; }
33311else
cristy8b350f62009-11-15 23:12:43 +000033312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033313$as_echo "no" >&6; }
33314fi
33315
33316
cristy66f238e2014-05-16 12:21:48 +000033317# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33318set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033320$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033321if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033322 $as_echo_n "(cached) " >&6
33323else
cristy66f238e2014-05-16 12:21:48 +000033324 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033325 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033326 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033327 ;;
33328 *)
33329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33330for as_dir in $PATH
33331do
33332 IFS=$as_save_IFS
33333 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033336 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033338 break 2
33339 fi
33340done
cristy8b350f62009-11-15 23:12:43 +000033341 done
cristy3ed852e2009-09-05 21:47:34 +000033342IFS=$as_save_IFS
33343
cristy66f238e2014-05-16 12:21:48 +000033344 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033345 ;;
33346esac
33347fi
cristy66f238e2014-05-16 12:21:48 +000033348EchoDelegate=$ac_cv_path_EchoDelegate
33349if test -n "$EchoDelegate"; then
33350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33351$as_echo "$EchoDelegate" >&6; }
33352else
33353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33354$as_echo "no" >&6; }
33355fi
33356
33357
33358# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33359set dummy "$EditorDelegateDefault"; ac_word=$2
33360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33361$as_echo_n "checking for $ac_word... " >&6; }
33362if ${ac_cv_path_EditorDelegate+:} false; then :
33363 $as_echo_n "(cached) " >&6
33364else
33365 case $EditorDelegate in
33366 [\\/]* | ?:[\\/]*)
33367 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33368 ;;
33369 *)
33370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33371for as_dir in $PATH
33372do
33373 IFS=$as_save_IFS
33374 test -z "$as_dir" && as_dir=.
33375 for ac_exec_ext in '' $ac_executable_extensions; do
33376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33377 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33379 break 2
33380 fi
33381done
33382 done
33383IFS=$as_save_IFS
33384
33385 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33386 ;;
33387esac
33388fi
33389EditorDelegate=$ac_cv_path_EditorDelegate
33390if test -n "$EditorDelegate"; then
33391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33392$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033393else
cristy8b350f62009-11-15 23:12:43 +000033394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033395$as_echo "no" >&6; }
33396fi
33397
33398
33399# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33400set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033402$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033403if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033404 $as_echo_n "(cached) " >&6
33405else
33406 case $GnuplotDecodeDelegate in
33407 [\\/]* | ?:[\\/]*)
33408 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33409 ;;
33410 *)
33411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33412for as_dir in $PATH
33413do
33414 IFS=$as_save_IFS
33415 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033416 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033418 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033420 break 2
33421 fi
33422done
cristy8b350f62009-11-15 23:12:43 +000033423 done
cristy3ed852e2009-09-05 21:47:34 +000033424IFS=$as_save_IFS
33425
33426 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33427 ;;
33428esac
33429fi
33430GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33431if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033433$as_echo "$GnuplotDecodeDelegate" >&6; }
33434else
cristy8b350f62009-11-15 23:12:43 +000033435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033436$as_echo "no" >&6; }
33437fi
33438
33439
cristy66f238e2014-05-16 12:21:48 +000033440# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33441set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33443$as_echo_n "checking for $ac_word... " >&6; }
33444if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33445 $as_echo_n "(cached) " >&6
33446else
33447 case $GVCDecodeDelegate in
33448 [\\/]* | ?:[\\/]*)
33449 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33450 ;;
33451 *)
33452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33453for as_dir in $PATH
33454do
33455 IFS=$as_save_IFS
33456 test -z "$as_dir" && as_dir=.
33457 for ac_exec_ext in '' $ac_executable_extensions; do
33458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33459 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33461 break 2
33462 fi
33463done
33464 done
33465IFS=$as_save_IFS
33466
33467 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33468 ;;
33469esac
33470fi
33471GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33472if test -n "$GVCDecodeDelegate"; then
33473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33474$as_echo "$GVCDecodeDelegate" >&6; }
33475else
33476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33477$as_echo "no" >&6; }
33478fi
33479
33480
cristy3ed852e2009-09-05 21:47:34 +000033481# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33482set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033484$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033485if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033486 $as_echo_n "(cached) " >&6
33487else
33488 case $HPGLDecodeDelegate in
33489 [\\/]* | ?:[\\/]*)
33490 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33491 ;;
33492 *)
33493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33494for as_dir in $PATH
33495do
33496 IFS=$as_save_IFS
33497 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033498 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033500 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033502 break 2
33503 fi
33504done
cristy8b350f62009-11-15 23:12:43 +000033505 done
cristy3ed852e2009-09-05 21:47:34 +000033506IFS=$as_save_IFS
33507
33508 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33509 ;;
33510esac
33511fi
33512HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33513if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033515$as_echo "$HPGLDecodeDelegate" >&6; }
33516else
cristy8b350f62009-11-15 23:12:43 +000033517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033518$as_echo "no" >&6; }
33519fi
33520
33521
33522# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33523set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033525$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033526if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033527 $as_echo_n "(cached) " >&6
33528else
33529 case $HTMLDecodeDelegate in
33530 [\\/]* | ?:[\\/]*)
33531 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33532 ;;
33533 *)
33534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33535for as_dir in $PATH
33536do
33537 IFS=$as_save_IFS
33538 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033541 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033543 break 2
33544 fi
33545done
cristy8b350f62009-11-15 23:12:43 +000033546 done
cristy3ed852e2009-09-05 21:47:34 +000033547IFS=$as_save_IFS
33548
33549 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33550 ;;
33551esac
33552fi
33553HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33554if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033556$as_echo "$HTMLDecodeDelegate" >&6; }
33557else
cristy8b350f62009-11-15 23:12:43 +000033558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033559$as_echo "no" >&6; }
33560fi
33561
33562
33563# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33564set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033566$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033567if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033568 $as_echo_n "(cached) " >&6
33569else
33570 case $ILBMDecodeDelegate in
33571 [\\/]* | ?:[\\/]*)
33572 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33573 ;;
33574 *)
33575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33576for as_dir in $PATH
33577do
33578 IFS=$as_save_IFS
33579 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033580 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033582 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033584 break 2
33585 fi
33586done
cristy8b350f62009-11-15 23:12:43 +000033587 done
cristy3ed852e2009-09-05 21:47:34 +000033588IFS=$as_save_IFS
33589
33590 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33591 ;;
33592esac
33593fi
33594ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33595if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033597$as_echo "$ILBMDecodeDelegate" >&6; }
33598else
cristy8b350f62009-11-15 23:12:43 +000033599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033600$as_echo "no" >&6; }
33601fi
33602
33603
33604# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33605set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033607$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033608if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033609 $as_echo_n "(cached) " >&6
33610else
33611 case $ILBMEncodeDelegate in
33612 [\\/]* | ?:[\\/]*)
33613 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33614 ;;
33615 *)
33616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33617for as_dir in $PATH
33618do
33619 IFS=$as_save_IFS
33620 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033621 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033623 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033625 break 2
33626 fi
33627done
cristy8b350f62009-11-15 23:12:43 +000033628 done
cristy3ed852e2009-09-05 21:47:34 +000033629IFS=$as_save_IFS
33630
33631 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33632 ;;
33633esac
33634fi
33635ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33636if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033638$as_echo "$ILBMEncodeDelegate" >&6; }
33639else
cristy8b350f62009-11-15 23:12:43 +000033640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033641$as_echo "no" >&6; }
33642fi
33643
33644
cristy71f53d52013-04-27 13:33:59 +000033645# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33646set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33648$as_echo_n "checking for $ac_word... " >&6; }
33649if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33650 $as_echo_n "(cached) " >&6
33651else
33652 case $JXRDecodeDelegate in
33653 [\\/]* | ?:[\\/]*)
33654 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33655 ;;
33656 *)
33657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33658for as_dir in $PATH
33659do
33660 IFS=$as_save_IFS
33661 test -z "$as_dir" && as_dir=.
33662 for ac_exec_ext in '' $ac_executable_extensions; do
33663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33664 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33666 break 2
33667 fi
33668done
33669 done
33670IFS=$as_save_IFS
33671
33672 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33673 ;;
33674esac
33675fi
33676JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33677if test -n "$JXRDecodeDelegate"; then
33678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33679$as_echo "$JXRDecodeDelegate" >&6; }
33680else
33681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33682$as_echo "no" >&6; }
33683fi
33684
33685
33686# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33687set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33689$as_echo_n "checking for $ac_word... " >&6; }
33690if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33691 $as_echo_n "(cached) " >&6
33692else
33693 case $JXREncodeDelegate in
33694 [\\/]* | ?:[\\/]*)
33695 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33696 ;;
33697 *)
33698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33699for as_dir in $PATH
33700do
33701 IFS=$as_save_IFS
33702 test -z "$as_dir" && as_dir=.
33703 for ac_exec_ext in '' $ac_executable_extensions; do
33704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33705 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33707 break 2
33708 fi
33709done
33710 done
33711IFS=$as_save_IFS
33712
33713 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33714 ;;
33715esac
33716fi
33717JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33718if test -n "$JXREncodeDelegate"; then
33719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33720$as_echo "$JXREncodeDelegate" >&6; }
33721else
33722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33723$as_echo "no" >&6; }
33724fi
33725
33726
cristy3ed852e2009-09-05 21:47:34 +000033727# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33728set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033730$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033731if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033732 $as_echo_n "(cached) " >&6
33733else
33734 case $LPDelegate in
33735 [\\/]* | ?:[\\/]*)
33736 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33737 ;;
33738 *)
33739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33740for as_dir in $PATH
33741do
33742 IFS=$as_save_IFS
33743 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033746 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033748 break 2
33749 fi
33750done
cristy8b350f62009-11-15 23:12:43 +000033751 done
cristy3ed852e2009-09-05 21:47:34 +000033752IFS=$as_save_IFS
33753
33754 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33755 ;;
33756esac
33757fi
33758LPDelegate=$ac_cv_path_LPDelegate
33759if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033761$as_echo "$LPDelegate" >&6; }
33762else
cristy8b350f62009-11-15 23:12:43 +000033763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033764$as_echo "no" >&6; }
33765fi
33766
33767
33768# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33769set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033771$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033772if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033773 $as_echo_n "(cached) " >&6
33774else
33775 case $LPRDelegate in
33776 [\\/]* | ?:[\\/]*)
33777 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33778 ;;
33779 *)
33780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33781for as_dir in $PATH
33782do
33783 IFS=$as_save_IFS
33784 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033785 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033787 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033789 break 2
33790 fi
33791done
cristy8b350f62009-11-15 23:12:43 +000033792 done
cristy3ed852e2009-09-05 21:47:34 +000033793IFS=$as_save_IFS
33794
33795 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33796 ;;
33797esac
33798fi
33799LPRDelegate=$ac_cv_path_LPRDelegate
33800if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033802$as_echo "$LPRDelegate" >&6; }
33803else
cristy8b350f62009-11-15 23:12:43 +000033804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033805$as_echo "no" >&6; }
33806fi
33807
33808
cristy3ed852e2009-09-05 21:47:34 +000033809# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33810set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033812$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033813if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033814 $as_echo_n "(cached) " >&6
33815else
33816 case $LaunchDelegate in
33817 [\\/]* | ?:[\\/]*)
33818 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33819 ;;
33820 *)
33821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33822for as_dir in $PATH
33823do
33824 IFS=$as_save_IFS
33825 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033828 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033830 break 2
33831 fi
33832done
cristy8b350f62009-11-15 23:12:43 +000033833 done
cristy3ed852e2009-09-05 21:47:34 +000033834IFS=$as_save_IFS
33835
33836 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33837 ;;
33838esac
33839fi
33840LaunchDelegate=$ac_cv_path_LaunchDelegate
33841if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033843$as_echo "$LaunchDelegate" >&6; }
33844else
cristy8b350f62009-11-15 23:12:43 +000033845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033846$as_echo "no" >&6; }
33847fi
33848
33849
33850# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33851set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033853$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033854if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033855 $as_echo_n "(cached) " >&6
33856else
33857 case $MANDelegate in
33858 [\\/]* | ?:[\\/]*)
33859 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33860 ;;
33861 *)
33862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33863for as_dir in $PATH
33864do
33865 IFS=$as_save_IFS
33866 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033867 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033869 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033871 break 2
33872 fi
33873done
cristy8b350f62009-11-15 23:12:43 +000033874 done
cristy3ed852e2009-09-05 21:47:34 +000033875IFS=$as_save_IFS
33876
33877 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33878 ;;
33879esac
33880fi
33881MANDelegate=$ac_cv_path_MANDelegate
33882if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033884$as_echo "$MANDelegate" >&6; }
33885else
cristy8b350f62009-11-15 23:12:43 +000033886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033887$as_echo "no" >&6; }
33888fi
33889
33890
cristy66f238e2014-05-16 12:21:48 +000033891# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33892set dummy "$MogrifyDelegateDefault"; ac_word=$2
33893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33894$as_echo_n "checking for $ac_word... " >&6; }
33895if ${ac_cv_path_MogrifyDelegate+:} false; then :
33896 $as_echo_n "(cached) " >&6
33897else
33898 case $MogrifyDelegate in
33899 [\\/]* | ?:[\\/]*)
33900 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33901 ;;
33902 *)
33903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33904for as_dir in $PATH
33905do
33906 IFS=$as_save_IFS
33907 test -z "$as_dir" && as_dir=.
33908 for ac_exec_ext in '' $ac_executable_extensions; do
33909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33910 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
33911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33912 break 2
33913 fi
33914done
33915 done
33916IFS=$as_save_IFS
33917
33918 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33919 ;;
33920esac
33921fi
33922MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33923if test -n "$MogrifyDelegate"; then
33924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
33925$as_echo "$MogrifyDelegate" >&6; }
33926else
33927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33928$as_echo "no" >&6; }
33929fi
33930
33931
cristy3ed852e2009-09-05 21:47:34 +000033932# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33933set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033935$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033936if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033937 $as_echo_n "(cached) " >&6
33938else
33939 case $MPEGDecodeDelegate in
33940 [\\/]* | ?:[\\/]*)
33941 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33942 ;;
33943 *)
33944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33945for as_dir in $PATH
33946do
33947 IFS=$as_save_IFS
33948 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033951 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033953 break 2
33954 fi
33955done
cristy8b350f62009-11-15 23:12:43 +000033956 done
cristy3ed852e2009-09-05 21:47:34 +000033957IFS=$as_save_IFS
33958
33959 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33960 ;;
33961esac
33962fi
33963MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33964if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033966$as_echo "$MPEGDecodeDelegate" >&6; }
33967else
cristy8b350f62009-11-15 23:12:43 +000033968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033969$as_echo "no" >&6; }
33970fi
33971
33972
cristy058d15f2014-08-21 18:53:03 +000033973if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000033974 MPEGDecodeDelegateDefault='ffmpeg'
33975 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33976set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33978$as_echo_n "checking for $ac_word... " >&6; }
33979if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33980 $as_echo_n "(cached) " >&6
33981else
33982 case $MPEGDecodeDelegate in
33983 [\\/]* | ?:[\\/]*)
33984 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33985 ;;
33986 *)
33987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33988for as_dir in $PATH
33989do
33990 IFS=$as_save_IFS
33991 test -z "$as_dir" && as_dir=.
33992 for ac_exec_ext in '' $ac_executable_extensions; do
33993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33994 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33996 break 2
33997 fi
33998done
33999 done
34000IFS=$as_save_IFS
34001
34002 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34003 ;;
34004esac
34005fi
34006MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34007if test -n "$MPEGDecodeDelegate"; then
34008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34009$as_echo "$MPEGDecodeDelegate" >&6; }
34010else
34011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34012$as_echo "no" >&6; }
34013fi
34014
34015
34016fi;
cristy3ed852e2009-09-05 21:47:34 +000034017# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34018set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034020$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034021if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034022 $as_echo_n "(cached) " >&6
34023else
34024 case $MPEGEncodeDelegate in
34025 [\\/]* | ?:[\\/]*)
34026 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34027 ;;
34028 *)
34029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34030for as_dir in $PATH
34031do
34032 IFS=$as_save_IFS
34033 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034034 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034036 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034038 break 2
34039 fi
34040done
cristy8b350f62009-11-15 23:12:43 +000034041 done
cristy3ed852e2009-09-05 21:47:34 +000034042IFS=$as_save_IFS
34043
34044 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34045 ;;
34046esac
34047fi
34048MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34049if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034051$as_echo "$MPEGEncodeDelegate" >&6; }
34052else
cristy8b350f62009-11-15 23:12:43 +000034053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034054$as_echo "no" >&6; }
34055fi
34056
34057
cristy058d15f2014-08-21 18:53:03 +000034058if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034059 MPEGEncodeDelegateDefault='ffmpeg'
34060 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34061set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34063$as_echo_n "checking for $ac_word... " >&6; }
34064if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34065 $as_echo_n "(cached) " >&6
34066else
34067 case $MPEGEncodeDelegate in
34068 [\\/]* | ?:[\\/]*)
34069 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34070 ;;
34071 *)
34072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34073for as_dir in $PATH
34074do
34075 IFS=$as_save_IFS
34076 test -z "$as_dir" && as_dir=.
34077 for ac_exec_ext in '' $ac_executable_extensions; do
34078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34079 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34081 break 2
34082 fi
34083done
34084 done
34085IFS=$as_save_IFS
34086
34087 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34088 ;;
34089esac
34090fi
34091MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34092if test -n "$MPEGEncodeDelegate"; then
34093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34094$as_echo "$MPEGEncodeDelegate" >&6; }
34095else
34096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34097$as_echo "no" >&6; }
34098fi
34099
34100
34101fi;
cristy935c86e2010-06-05 23:50:07 +000034102# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34103set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34105$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034106if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034107 $as_echo_n "(cached) " >&6
34108else
34109 case $MrSIDDecodeDelegate in
34110 [\\/]* | ?:[\\/]*)
34111 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34112 ;;
34113 *)
34114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34115for as_dir in $PATH
34116do
34117 IFS=$as_save_IFS
34118 test -z "$as_dir" && as_dir=.
34119 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034121 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34123 break 2
34124 fi
34125done
34126 done
34127IFS=$as_save_IFS
34128
34129 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34130 ;;
34131esac
34132fi
34133MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34134if test -n "$MrSIDDecodeDelegate"; then
34135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34136$as_echo "$MrSIDDecodeDelegate" >&6; }
34137else
34138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34139$as_echo "no" >&6; }
34140fi
34141
34142
cristy3ed852e2009-09-05 21:47:34 +000034143# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34144set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034146$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034147if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034148 $as_echo_n "(cached) " >&6
34149else
34150 case $MVDelegate in
34151 [\\/]* | ?:[\\/]*)
34152 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34153 ;;
34154 *)
34155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34156for as_dir in $PATH
34157do
34158 IFS=$as_save_IFS
34159 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034160 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034162 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034164 break 2
34165 fi
34166done
cristy8b350f62009-11-15 23:12:43 +000034167 done
cristy3ed852e2009-09-05 21:47:34 +000034168IFS=$as_save_IFS
34169
34170 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34171 ;;
34172esac
34173fi
34174MVDelegate=$ac_cv_path_MVDelegate
34175if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034177$as_echo "$MVDelegate" >&6; }
34178else
cristy8b350f62009-11-15 23:12:43 +000034179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034180$as_echo "no" >&6; }
34181fi
34182
34183
34184# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34185set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034187$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034188if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034189 $as_echo_n "(cached) " >&6
34190else
34191 case $PCLDelegate in
34192 [\\/]* | ?:[\\/]*)
34193 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34194 ;;
34195 *)
34196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34197for as_dir in $PATH
34198do
34199 IFS=$as_save_IFS
34200 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034201 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034203 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034205 break 2
34206 fi
34207done
cristy8b350f62009-11-15 23:12:43 +000034208 done
cristy3ed852e2009-09-05 21:47:34 +000034209IFS=$as_save_IFS
34210
34211 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34212 ;;
34213esac
34214fi
34215PCLDelegate=$ac_cv_path_PCLDelegate
34216if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034218$as_echo "$PCLDelegate" >&6; }
34219else
cristy8b350f62009-11-15 23:12:43 +000034220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034221$as_echo "no" >&6; }
34222fi
34223
34224
34225# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34226set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034228$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034229if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034230 $as_echo_n "(cached) " >&6
34231else
34232 case $PGPDecodeDelegate in
34233 [\\/]* | ?:[\\/]*)
34234 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34235 ;;
34236 *)
34237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34238for as_dir in $PATH
34239do
34240 IFS=$as_save_IFS
34241 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034242 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034244 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034246 break 2
34247 fi
34248done
cristy8b350f62009-11-15 23:12:43 +000034249 done
cristy3ed852e2009-09-05 21:47:34 +000034250IFS=$as_save_IFS
34251
34252 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34253 ;;
34254esac
34255fi
34256PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34257if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034259$as_echo "$PGPDecodeDelegate" >&6; }
34260else
cristy8b350f62009-11-15 23:12:43 +000034261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034262$as_echo "no" >&6; }
34263fi
34264
34265
34266# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34267set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034269$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034270if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034271 $as_echo_n "(cached) " >&6
34272else
34273 case $POVDelegate in
34274 [\\/]* | ?:[\\/]*)
34275 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34276 ;;
34277 *)
34278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34279for as_dir in $PATH
34280do
34281 IFS=$as_save_IFS
34282 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034283 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034285 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034287 break 2
34288 fi
34289done
cristy8b350f62009-11-15 23:12:43 +000034290 done
cristy3ed852e2009-09-05 21:47:34 +000034291IFS=$as_save_IFS
34292
34293 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34294 ;;
34295esac
34296fi
34297POVDelegate=$ac_cv_path_POVDelegate
34298if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034300$as_echo "$POVDelegate" >&6; }
34301else
cristy8b350f62009-11-15 23:12:43 +000034302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034303$as_echo "no" >&6; }
34304fi
34305
34306
34307for ac_prog in gsx gsc "$PSDelegateDefault"
34308do
34309 # Extract the first word of "$ac_prog", so it can be a program name with args.
34310set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034312$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034313if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034314 $as_echo_n "(cached) " >&6
34315else
34316 case $PSDelegate in
34317 [\\/]* | ?:[\\/]*)
34318 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34319 ;;
34320 *)
34321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34322for as_dir in $PATH
34323do
34324 IFS=$as_save_IFS
34325 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034326 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034328 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034330 break 2
34331 fi
34332done
cristy8b350f62009-11-15 23:12:43 +000034333 done
cristy3ed852e2009-09-05 21:47:34 +000034334IFS=$as_save_IFS
34335
34336 ;;
34337esac
34338fi
34339PSDelegate=$ac_cv_path_PSDelegate
34340if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034342$as_echo "$PSDelegate" >&6; }
34343else
cristy8b350f62009-11-15 23:12:43 +000034344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034345$as_echo "no" >&6; }
34346fi
34347
34348
34349 test -n "$PSDelegate" && break
34350done
34351test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34352
34353# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34354set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034356$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034357if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034358 $as_echo_n "(cached) " >&6
34359else
34360 case $RLEEncodeDelegate in
34361 [\\/]* | ?:[\\/]*)
34362 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34363 ;;
34364 *)
34365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34366for as_dir in $PATH
34367do
34368 IFS=$as_save_IFS
34369 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034372 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034374 break 2
34375 fi
34376done
cristy8b350f62009-11-15 23:12:43 +000034377 done
cristy3ed852e2009-09-05 21:47:34 +000034378IFS=$as_save_IFS
34379
34380 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34381 ;;
34382esac
34383fi
34384RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34385if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034387$as_echo "$RLEEncodeDelegate" >&6; }
34388else
cristy8b350f62009-11-15 23:12:43 +000034389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034390$as_echo "no" >&6; }
34391fi
34392
34393
34394# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34395set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034397$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034398if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034399 $as_echo_n "(cached) " >&6
34400else
34401 case $RMDelegate in
34402 [\\/]* | ?:[\\/]*)
34403 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34404 ;;
34405 *)
34406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34407for as_dir in $PATH
34408do
34409 IFS=$as_save_IFS
34410 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034411 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034413 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034415 break 2
34416 fi
34417done
cristy8b350f62009-11-15 23:12:43 +000034418 done
cristy3ed852e2009-09-05 21:47:34 +000034419IFS=$as_save_IFS
34420
34421 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34422 ;;
34423esac
34424fi
34425RMDelegate=$ac_cv_path_RMDelegate
34426if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034428$as_echo "$RMDelegate" >&6; }
34429else
cristy8b350f62009-11-15 23:12:43 +000034430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034431$as_echo "no" >&6; }
34432fi
34433
34434
cristy4689cf02010-02-17 21:15:45 +000034435# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34436set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34438$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034439if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034440 $as_echo_n "(cached) " >&6
34441else
34442 case $RSVGDecodeDelegate in
34443 [\\/]* | ?:[\\/]*)
34444 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34445 ;;
34446 *)
34447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34448for as_dir in $PATH
34449do
34450 IFS=$as_save_IFS
34451 test -z "$as_dir" && as_dir=.
34452 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034454 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34456 break 2
34457 fi
34458done
34459 done
34460IFS=$as_save_IFS
34461
34462 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34463 ;;
34464esac
34465fi
34466RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34467if test -n "$RSVGDecodeDelegate"; then
34468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34469$as_echo "$RSVGDecodeDelegate" >&6; }
34470else
34471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34472$as_echo "no" >&6; }
34473fi
34474
34475
cristy3ed852e2009-09-05 21:47:34 +000034476# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34477set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034479$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034480if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034481 $as_echo_n "(cached) " >&6
34482else
34483 case $SCANDecodeDelegate in
34484 [\\/]* | ?:[\\/]*)
34485 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34486 ;;
34487 *)
34488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34489for as_dir in $PATH
34490do
34491 IFS=$as_save_IFS
34492 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034493 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034495 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034497 break 2
34498 fi
34499done
cristy8b350f62009-11-15 23:12:43 +000034500 done
cristy3ed852e2009-09-05 21:47:34 +000034501IFS=$as_save_IFS
34502
34503 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34504 ;;
34505esac
34506fi
34507SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34508if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034510$as_echo "$SCANDecodeDelegate" >&6; }
34511else
cristy8b350f62009-11-15 23:12:43 +000034512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034513$as_echo "no" >&6; }
34514fi
34515
34516
cristyec6934f2012-08-14 18:38:40 +000034517# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34518set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34520$as_echo_n "checking for $ac_word... " >&6; }
34521if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34522 $as_echo_n "(cached) " >&6
34523else
34524 case $SVGDecodeDelegate in
34525 [\\/]* | ?:[\\/]*)
34526 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34527 ;;
34528 *)
34529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34530for as_dir in $PATH
34531do
34532 IFS=$as_save_IFS
34533 test -z "$as_dir" && as_dir=.
34534 for ac_exec_ext in '' $ac_executable_extensions; do
34535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34536 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34538 break 2
34539 fi
34540done
34541 done
34542IFS=$as_save_IFS
34543
34544 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34545 ;;
34546esac
34547fi
34548SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34549if test -n "$SVGDecodeDelegate"; then
34550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34551$as_echo "$SVGDecodeDelegate" >&6; }
34552else
34553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34554$as_echo "no" >&6; }
34555fi
34556
34557
cristy3ed852e2009-09-05 21:47:34 +000034558# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34559set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034561$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034562if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034563 $as_echo_n "(cached) " >&6
34564else
34565 case $TXTDelegate in
34566 [\\/]* | ?:[\\/]*)
34567 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34568 ;;
34569 *)
34570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34571for as_dir in $PATH
34572do
34573 IFS=$as_save_IFS
34574 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034575 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034577 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034579 break 2
34580 fi
34581done
cristy8b350f62009-11-15 23:12:43 +000034582 done
cristy3ed852e2009-09-05 21:47:34 +000034583IFS=$as_save_IFS
34584
34585 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34586 ;;
34587esac
34588fi
34589TXTDelegate=$ac_cv_path_TXTDelegate
34590if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034592$as_echo "$TXTDelegate" >&6; }
34593else
cristy8b350f62009-11-15 23:12:43 +000034594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034595$as_echo "no" >&6; }
34596fi
34597
34598
cristy5ac9ac82010-07-29 13:24:24 +000034599# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34600set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34602$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034603if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034604 $as_echo_n "(cached) " >&6
34605else
34606 case $UniconvertorDelegate in
34607 [\\/]* | ?:[\\/]*)
34608 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34609 ;;
34610 *)
34611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34612for as_dir in $PATH
34613do
34614 IFS=$as_save_IFS
34615 test -z "$as_dir" && as_dir=.
34616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034618 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34620 break 2
34621 fi
34622done
34623 done
34624IFS=$as_save_IFS
34625
34626 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34627 ;;
34628esac
34629fi
34630UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34631if test -n "$UniconvertorDelegate"; then
34632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34633$as_echo "$UniconvertorDelegate" >&6; }
34634else
34635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34636$as_echo "no" >&6; }
34637fi
34638
34639
cristy86e86092013-08-04 17:43:57 +000034640# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34641set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34643$as_echo_n "checking for $ac_word... " >&6; }
34644if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34645 $as_echo_n "(cached) " >&6
34646else
34647 case $WebPDecodeDelegate in
34648 [\\/]* | ?:[\\/]*)
34649 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34650 ;;
34651 *)
34652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34653for as_dir in $PATH
34654do
34655 IFS=$as_save_IFS
34656 test -z "$as_dir" && as_dir=.
34657 for ac_exec_ext in '' $ac_executable_extensions; do
34658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34659 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34661 break 2
34662 fi
34663done
34664 done
34665IFS=$as_save_IFS
34666
34667 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34668 ;;
34669esac
34670fi
34671WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34672if test -n "$WebPDecodeDelegate"; then
34673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34674$as_echo "$WebPDecodeDelegate" >&6; }
34675else
34676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34677$as_echo "no" >&6; }
34678fi
34679
34680
34681# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34682set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34684$as_echo_n "checking for $ac_word... " >&6; }
34685if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34686 $as_echo_n "(cached) " >&6
34687else
34688 case $WebPEncodeDelegate in
34689 [\\/]* | ?:[\\/]*)
34690 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34691 ;;
34692 *)
34693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34694for as_dir in $PATH
34695do
34696 IFS=$as_save_IFS
34697 test -z "$as_dir" && as_dir=.
34698 for ac_exec_ext in '' $ac_executable_extensions; do
34699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34700 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34702 break 2
34703 fi
34704done
34705 done
34706IFS=$as_save_IFS
34707
34708 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34709 ;;
34710esac
34711fi
34712WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34713if test -n "$WebPEncodeDelegate"; then
34714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34715$as_echo "$WebPEncodeDelegate" >&6; }
34716else
34717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34718$as_echo "no" >&6; }
34719fi
34720
34721
cristy3ed852e2009-09-05 21:47:34 +000034722# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34723set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034725$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034726if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034727 $as_echo_n "(cached) " >&6
34728else
34729 case $WMFDecodeDelegate in
34730 [\\/]* | ?:[\\/]*)
34731 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34732 ;;
34733 *)
34734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34735for as_dir in $PATH
34736do
34737 IFS=$as_save_IFS
34738 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034739 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034741 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034743 break 2
34744 fi
34745done
cristy8b350f62009-11-15 23:12:43 +000034746 done
cristy3ed852e2009-09-05 21:47:34 +000034747IFS=$as_save_IFS
34748
34749 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34750 ;;
34751esac
34752fi
34753WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34754if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034756$as_echo "$WMFDecodeDelegate" >&6; }
34757else
cristy8b350f62009-11-15 23:12:43 +000034758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034759$as_echo "no" >&6; }
34760fi
34761
34762
34763# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34764set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034766$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034767if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034768 $as_echo_n "(cached) " >&6
34769else
34770 case $WWWDecodeDelegate in
34771 [\\/]* | ?:[\\/]*)
34772 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34773 ;;
34774 *)
34775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34776for as_dir in $PATH
34777do
34778 IFS=$as_save_IFS
34779 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034780 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034782 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034784 break 2
34785 fi
34786done
cristy8b350f62009-11-15 23:12:43 +000034787 done
cristy3ed852e2009-09-05 21:47:34 +000034788IFS=$as_save_IFS
34789
34790 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34791 ;;
34792esac
34793fi
34794WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34795if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034797$as_echo "$WWWDecodeDelegate" >&6; }
34798else
cristy8b350f62009-11-15 23:12:43 +000034799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034800$as_echo "no" >&6; }
34801fi
34802
34803
34804# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34805set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034807$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034808if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034809 $as_echo_n "(cached) " >&6
34810else
34811 case $XPSDelegate in
34812 [\\/]* | ?:[\\/]*)
34813 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34814 ;;
34815 *)
34816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34817for as_dir in $PATH
34818do
34819 IFS=$as_save_IFS
34820 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034823 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034825 break 2
34826 fi
34827done
cristy8b350f62009-11-15 23:12:43 +000034828 done
cristy3ed852e2009-09-05 21:47:34 +000034829IFS=$as_save_IFS
34830
34831 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34832 ;;
34833esac
34834fi
34835XPSDelegate=$ac_cv_path_XPSDelegate
34836if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034838$as_echo "$XPSDelegate" >&6; }
34839else
cristy8b350f62009-11-15 23:12:43 +000034840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034841$as_echo "no" >&6; }
34842fi
34843
34844
34845# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34846set dummy "$ZipDelegateDefault"; 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_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034850 $as_echo_n "(cached) " >&6
34851else
34852 case $ZipDelegate in
34853 [\\/]* | ?:[\\/]*)
34854 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34855 ;;
34856 *)
34857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34858for as_dir in $PATH
34859do
34860 IFS=$as_save_IFS
34861 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034862 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034864 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034866 break 2
34867 fi
34868done
cristy8b350f62009-11-15 23:12:43 +000034869 done
cristy3ed852e2009-09-05 21:47:34 +000034870IFS=$as_save_IFS
34871
34872 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34873 ;;
34874esac
34875fi
34876ZipDelegate=$ac_cv_path_ZipDelegate
34877if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034879$as_echo "$ZipDelegate" >&6; }
34880else
cristy8b350f62009-11-15 23:12:43 +000034881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034882$as_echo "no" >&6; }
34883fi
34884
34885
34886
34887# Prefer lpr to lp; lp needs options tacked on.
34888if test "$LPRDelegate" != no; then
34889 PrintDelegate="$LPRDelegate"
34890else
34891 PrintDelegate="$LPDelegate -c -s"
34892fi
34893
34894
34895# Installed ImageMagick utiltity paths
34896ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34897DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34898MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34899
34900# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034901have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034902have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34903have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34904have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034905have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034906have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34907have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034908have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34909
34910#
34911# Test for font directories
34912#
34913type_include_files=''
34914
cristy430a7312010-01-21 20:44:04 +000034915# Dejavu fonts.
34916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34917$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34918dejavu_font_dir=''
34919if test "${with_dejavu_font_dir}" != 'default'; then
34920 dejavu_font_dir="${with_dejavu_font_dir}/"
34921else
34922 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34923 if test -f "${font_dir}DejaVuSerif.ttf"; then
34924 dejavu_font_dir="${font_dir}"
34925 break 1
34926 fi
34927 done
34928fi
34929if test "${dejavu_font_dir}x" != 'x'; then
34930 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34932$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034933else
cristyad38abe2012-12-23 23:03:21 +000034934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34935$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034936fi
34937
34938
cristy3ed852e2009-09-05 21:47:34 +000034939# Windows
34940windows_font_dir=''
34941if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34942 windows_font_dir="${with_windows_font_dir}/"
34943fi
cristy430a7312010-01-21 20:44:04 +000034944if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034945 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34946 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34947 fi
34948 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34949 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34950 fi
34951 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34952 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34953 fi
34954fi
cristy430a7312010-01-21 20:44:04 +000034955if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034956 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34957fi
34958
34959
34960# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034962$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34963ghostscript_font_dir=''
34964if test "${with_gs_font_dir}" != 'default'; then
34965 ghostscript_font_dir="${with_gs_font_dir}/"
34966else
34967 if test "${native_win32_build}" = 'yes'; then
34968 # Native Windows Build
34969 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34970 if test -f "${font_dir}a010013l.pfb"; then
34971 ghostscript_font_dir="$font_dir"
34972 break 1
34973 fi
34974 done
34975 if test "${PSDelegate}" != 'gswin32c'; then
34976 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34977 fi
34978 else
34979 # Linux / Mac OS X / Unix Build
34980 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
34981 if test -f "${font_dir}a010013l.pfb"; then
34982 ghostscript_font_dir="${font_dir}"
34983 break 1
34984 fi
34985 done
34986 if test "${ghostscript_font_dir}x" = 'x'; then
34987 if test "$PSDelegate" != 'gs'; then
34988 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34989 fi
34990 fi
34991 fi
34992fi
34993if test "${ghostscript_font_dir}x" != 'x'; then
34994 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34996$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034997else
cristyad38abe2012-12-23 23:03:21 +000034998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34999$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000035000fi
35001
35002case "${build_os}" in
35003 mingw* )
35004 PSDelegate=`$WinPathScript "$PSDelegate" 1`
35005 ;;
35006esac
35007
35008
35009
35010#
35011# Handle case where user doesn't want frozen paths
35012#
35013if test "$with_frozenpaths" != 'yes'; then
35014 # Re-set delegate definitions to default (no paths)
35015 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035016 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35017 BZIPDelegate="$BZIPDelegateDefault"
35018 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035019 CatDelegate="$CatDelegateDefault"
35020 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035021 DisplayDelegate="$DisplayDelegateDefault"
35022 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000035023 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035024 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35025 EchoDelegate="$EchoDelegateDefault"
35026 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035027 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035028 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035029 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35030 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35031 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35032 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035033 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35034 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035035 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035036 LaunchDelegate="$LaunchDelegateDefault"
35037 MANDelegate="$MANDelegateDefault"
35038 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35039 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035040 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035041 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35042 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035043 PCLDelegate="$PCLDelegateDefault"
35044 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35045 POVDelegate="$POVDelegateDefault"
35046 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035047 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35048 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035049 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035050 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035051 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035052 ShowImageDelegate="$ShowImageDelegateDefault"
35053 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035054 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035055 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35056 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035057 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35058 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35059 XPSDelegate="$XPSDelegateDefault"
35060 ZipDelegate="$ZipDelegateDefault"
35061fi
35062
35063# Delegate substitutions
35064
35065
35066
35067
35068
35069
35070
35071
35072
35073
35074
35075
35076
35077
35078
35079
35080
35081
35082
35083
35084
35085
35086
35087
35088
35089
35090
35091
35092
35093
35094
35095
35096
35097
35098
35099
35100
35101
35102
35103
cristy71f53d52013-04-27 13:33:59 +000035104
35105
cristy3ed852e2009-09-05 21:47:34 +000035106#
35107# RPM support.
35108#
35109RPM=''
35110for ac_prog in gnutar gtar tar
35111do
35112 # Extract the first word of "$ac_prog", so it can be a program name with args.
35113set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035115$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035116if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035117 $as_echo_n "(cached) " >&6
35118else
35119 if test -n "$TAR"; then
35120 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35121else
35122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35123for as_dir in $PATH
35124do
35125 IFS=$as_save_IFS
35126 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035127 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035129 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035131 break 2
35132 fi
35133done
cristy8b350f62009-11-15 23:12:43 +000035134 done
cristy3ed852e2009-09-05 21:47:34 +000035135IFS=$as_save_IFS
35136
35137fi
35138fi
35139TAR=$ac_cv_prog_TAR
35140if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035142$as_echo "$TAR" >&6; }
35143else
cristy8b350f62009-11-15 23:12:43 +000035144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035145$as_echo "no" >&6; }
35146fi
35147
35148
35149 test -n "$TAR" && break
35150done
35151
35152for ac_prog in perl
35153do
35154 # Extract the first word of "$ac_prog", so it can be a program name with args.
35155set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035157$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035158if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035159 $as_echo_n "(cached) " >&6
35160else
35161 if test -n "$PERL"; then
35162 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35163else
35164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35165for as_dir in $PATH
35166do
35167 IFS=$as_save_IFS
35168 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035169 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035171 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035173 break 2
35174 fi
35175done
cristy8b350f62009-11-15 23:12:43 +000035176 done
cristy3ed852e2009-09-05 21:47:34 +000035177IFS=$as_save_IFS
35178
35179fi
35180fi
35181PERL=$ac_cv_prog_PERL
35182if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035184$as_echo "$PERL" >&6; }
35185else
cristy8b350f62009-11-15 23:12:43 +000035186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035187$as_echo "no" >&6; }
35188fi
35189
35190
35191 test -n "$PERL" && break
35192done
35193
35194for ac_prog in rpmbuild rpm
35195do
35196 # Extract the first word of "$ac_prog", so it can be a program name with args.
35197set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035199$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035200if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035201 $as_echo_n "(cached) " >&6
35202else
35203 if test -n "$RPM"; then
35204 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35205else
35206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35207for as_dir in $PATH
35208do
35209 IFS=$as_save_IFS
35210 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035211 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035213 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035215 break 2
35216 fi
35217done
cristy8b350f62009-11-15 23:12:43 +000035218 done
cristy3ed852e2009-09-05 21:47:34 +000035219IFS=$as_save_IFS
35220
35221fi
35222fi
35223RPM=$ac_cv_prog_RPM
35224if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035226$as_echo "$RPM" >&6; }
35227else
cristy8b350f62009-11-15 23:12:43 +000035228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035229$as_echo "no" >&6; }
35230fi
35231
35232
35233 test -n "$RPM" && break
35234done
35235
35236
cristy73bd4a52010-10-05 11:24:23 +000035237ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35238
35239
35240AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35241
35242
35243AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35244
35245
35246AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35247
35248
35249 if test "x$RPM" != "x" ; then
35250 RPM_DELEGATE_TRUE=
35251 RPM_DELEGATE_FALSE='#'
35252else
35253 RPM_DELEGATE_TRUE='#'
35254 RPM_DELEGATE_FALSE=
35255fi
35256
cristy3ed852e2009-09-05 21:47:34 +000035257
35258#
35259# 7ZIP support (http://p7zip.sourceforge.net/)
35260#
35261P7ZIP=''
35262for ac_prog in 7za
35263do
35264 # Extract the first word of "$ac_prog", so it can be a program name with args.
35265set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035267$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035268if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035269 $as_echo_n "(cached) " >&6
35270else
35271 if test -n "$P7ZIP"; then
35272 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35273else
35274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35275for as_dir in $PATH
35276do
35277 IFS=$as_save_IFS
35278 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035279 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035281 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035283 break 2
35284 fi
35285done
cristy8b350f62009-11-15 23:12:43 +000035286 done
cristy3ed852e2009-09-05 21:47:34 +000035287IFS=$as_save_IFS
35288
35289fi
35290fi
35291P7ZIP=$ac_cv_prog_P7ZIP
35292if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035294$as_echo "$P7ZIP" >&6; }
35295else
cristy8b350f62009-11-15 23:12:43 +000035296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035297$as_echo "no" >&6; }
35298fi
35299
35300
35301 test -n "$P7ZIP" && break
35302done
35303
35304
cristy73bd4a52010-10-05 11:24:23 +000035305 if test "x$P7ZIP" != "x" ; then
35306 P7ZIP_DELEGATE_TRUE=
35307 P7ZIP_DELEGATE_FALSE='#'
35308else
35309 P7ZIP_DELEGATE_TRUE='#'
35310 P7ZIP_DELEGATE_FALSE=
35311fi
35312
cristy3ed852e2009-09-05 21:47:34 +000035313
35314#
35315# ZIP support (http://www.info-zip.org/Zip.html)
35316#
35317ZIP=''
35318for ac_prog in zip
35319do
35320 # Extract the first word of "$ac_prog", so it can be a program name with args.
35321set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035323$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035324if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035325 $as_echo_n "(cached) " >&6
35326else
35327 if test -n "$ZIP"; then
35328 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35329else
35330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35331for as_dir in $PATH
35332do
35333 IFS=$as_save_IFS
35334 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035337 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035339 break 2
35340 fi
35341done
cristy8b350f62009-11-15 23:12:43 +000035342 done
cristy3ed852e2009-09-05 21:47:34 +000035343IFS=$as_save_IFS
35344
35345fi
35346fi
35347ZIP=$ac_cv_prog_ZIP
35348if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035350$as_echo "$ZIP" >&6; }
35351else
cristy8b350f62009-11-15 23:12:43 +000035352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035353$as_echo "no" >&6; }
35354fi
35355
35356
35357 test -n "$ZIP" && break
35358done
35359
35360
cristy73bd4a52010-10-05 11:24:23 +000035361 if test "x$ZIP" != "x" ; then
35362 ZIP_DELEGATE_TRUE=
35363 ZIP_DELEGATE_FALSE='#'
35364else
35365 ZIP_DELEGATE_TRUE='#'
35366 ZIP_DELEGATE_FALSE=
35367fi
35368
cristy3ed852e2009-09-05 21:47:34 +000035369
35370#
35371# GhostPCL related configuration.
35372#
35373PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035374PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035375PCLMonoDevice=pbmraw
35376if test -z "$PCLVersion"; then
35377 PCLVersion='unknown'
35378fi
35379if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35381$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035383$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35385$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035386 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035388$as_echo_n "checking for pcl color device... " >&6; }
35389 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35390 :
35391 else
35392 PCLColorDevice=ppmraw
35393 fi
cristyad38abe2012-12-23 23:03:21 +000035394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35395$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035396
35397 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035399$as_echo_n "checking for pcl CMYK device... " >&6; }
35400 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35401 :
35402 else
35403 PCLCMYKDevice=$PCLColorDevice
35404 fi
cristyad38abe2012-12-23 23:03:21 +000035405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35406$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035407
35408 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035410$as_echo_n "checking for pcl mono device... " >&6; }
35411 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35412 :
35413 else
35414 PCLMonoDevice=$PCLColorDevice
35415 fi
cristyad38abe2012-12-23 23:03:21 +000035416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35417$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035418fi
35419
35420
35421
35422
35423
35424
35425#
35426# GhostXPS related configuration.
35427#
35428XPSColorDevice=ppmraw
35429XPSCMYKDevice=bmpsep8
35430XPSMonoDevice=pbmraw
35431if test -z "$XPSVersion"; then
35432 XPSVersion='unknown'
35433fi
35434if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35436$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035438$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35440$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035441 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035443$as_echo_n "checking for xps color device... " >&6; }
35444 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35445 :
35446 else
35447 XPSColorDevice=ppmraw
35448 fi
cristyad38abe2012-12-23 23:03:21 +000035449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35450$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035451
35452 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035454$as_echo_n "checking for xps CMYK device... " >&6; }
35455 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35456 :
35457 else
35458 XPSCMYKDevice=$XPSColorDevice
35459 fi
cristyad38abe2012-12-23 23:03:21 +000035460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35461$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035462
35463 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035465$as_echo_n "checking for xps mono device... " >&6; }
35466 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35467 :
35468 else
35469 XPSMonoDevice=$XPSColorDevice
35470 fi
cristyad38abe2012-12-23 23:03:21 +000035471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35472$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035473fi
35474
35475
35476
35477
35478
35479
35480#
35481# Ghostscript related configuration.
35482#
cristya97426c2011-02-04 01:41:27 +000035483GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035484GSColorDevice=pnmraw
35485GSCMYKDevice=pam
35486GSMonoDevice=pbmraw
35487GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035488GSPSDevice=ps2write
cristy3ed852e2009-09-05 21:47:34 +000035489GSEPSDevice=epswrite
35490GSVersion='unknown'
35491if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35493$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035495$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35497$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035499$as_echo_n "checking for Ghostscript version... " >&6; }
35500 if GSVersion=`$PSDelegate --version`; then
35501 :
35502 else
35503 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35504 fi
cristyad38abe2012-12-23 23:03:21 +000035505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35506$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035507
35508 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035510$as_echo_n "checking for gs alpha device... " >&6; }
35511 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35512 :
35513 else
35514 GSAlphaDevice=pnmraw
35515 fi
cristyad38abe2012-12-23 23:03:21 +000035516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35517$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035518
35519 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035521$as_echo_n "checking for gs color device... " >&6; }
35522 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35523 :
35524 else
35525 GSColorDevice=pnmraw
35526 fi
cristyad38abe2012-12-23 23:03:21 +000035527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35528$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035529
35530 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035532$as_echo_n "checking for gs CMYK device... " >&6; }
35533 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35534 :
35535 else
35536 GSCMYKDevice=bmpsep8
35537 fi
cristyad38abe2012-12-23 23:03:21 +000035538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35539$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035540
35541 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035543$as_echo_n "checking for gs mono device... " >&6; }
35544 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35545 :
35546 else
35547 GSMonoDevice=$GSColorDevice
35548 fi
cristyad38abe2012-12-23 23:03:21 +000035549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35550$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035551
35552 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035554$as_echo_n "checking for gs PDF writing device... " >&6; }
35555 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35556 :
35557 else
35558 GSPDFDevice=nodevice
35559 fi
cristyad38abe2012-12-23 23:03:21 +000035560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35561$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035562
35563 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035565$as_echo_n "checking for gs PS writing device... " >&6; }
35566 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35567 :
35568 else
35569 GSPSDevice=nodevice
35570 fi
cristyad38abe2012-12-23 23:03:21 +000035571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35572$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035573
35574 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035576$as_echo_n "checking for gs EPS writing device... " >&6; }
35577 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35578 :
35579 else
35580 GSEPSDevice=nodevice
35581 fi
cristyad38abe2012-12-23 23:03:21 +000035582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35583$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035584fi
35585
35586
35587
35588
35589
35590
35591
35592
35593
35594
35595#
35596# PerlMagick-related configuration
35597#
35598
35599# Look for PERL if PerlMagick requested
35600# If name/path of desired PERL interpreter is specified, look for that one first
35601have_perl='no'
35602if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35604$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035606$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35608$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035609 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035611$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035612if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035613 $as_echo_n "(cached) " >&6
35614else
35615 ac_cv_path_PERL="$with_perl"
35616fi
cristy8b350f62009-11-15 23:12:43 +000035617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035618$as_echo "$ac_cv_path_PERL" >&6; };
35619 PERL=$ac_cv_path_PERL
35620 have_perl="$ac_cv_path_PERL"
35621 else
35622 for ac_prog in perl perl5
35623do
35624 # Extract the first word of "$ac_prog", so it can be a program name with args.
35625set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035627$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035628if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035629 $as_echo_n "(cached) " >&6
35630else
35631 case $PERL in
35632 [\\/]* | ?:[\\/]*)
35633 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35634 ;;
35635 *)
35636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35637for as_dir in $PATH
35638do
35639 IFS=$as_save_IFS
35640 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035643 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035645 break 2
35646 fi
35647done
cristy8b350f62009-11-15 23:12:43 +000035648 done
cristy3ed852e2009-09-05 21:47:34 +000035649IFS=$as_save_IFS
35650
35651 ;;
35652esac
35653fi
35654PERL=$ac_cv_path_PERL
35655if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035657$as_echo "$PERL" >&6; }
35658else
cristy8b350f62009-11-15 23:12:43 +000035659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035660$as_echo "no" >&6; }
35661fi
35662
35663
35664 test -n "$PERL" && break
35665done
35666 if test "$ac_cv_path_PERL"; then
35667 have_perl="$ac_cv_path_PERL"
35668 fi
35669 fi
35670fi
35671
cristy949301e2010-01-06 01:38:40 +000035672if test "$with_perl" != 'yes' ; then
35673 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35674fi
35675
35676PERL_SUPPORTS_DESTDIR='no'
35677
cristy3ed852e2009-09-05 21:47:34 +000035678with_perl_static='no'
35679with_perl_dynamic='no'
35680if test "$have_perl" != 'no'; then
35681 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35682 with_perl_static='yes'
35683 fi
35684 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35685 with_perl_dynamic='yes'
35686 fi
35687 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035688
35689
35690
35691
35692 if test -n "$PERL"; then :
35693
35694 ax_perl_version="5.8.1"
35695
35696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35697$as_echo_n "checking for perl version... " >&6; }
35698
cristy17491be2014-06-24 01:10:53 +000035699 perl_version=`$PERL --version 2>&1 \
35700 | $SED -n -e '/This is perl/b inspect
35701b
35702: inspect
35703s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000035704
35705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35706$as_echo "$perl_version" >&6; }
35707
35708 PERL_VERSION=$perl_version
35709
35710
35711
35712
35713
35714 # Used to indicate true or false condition
35715 ax_compare_version=false
35716
35717 # Convert the two version strings to be compared into a format that
35718 # allows a simple string comparison. The end result is that a version
35719 # string of the form 1.12.5-r617 will be converted to the form
35720 # 0001001200050617. In other words, each number is zero padded to four
35721 # digits, and non digits are removed.
35722
35723 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35724 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35725 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35726 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35727 -e 's/[^0-9]//g'`
35728
35729
35730 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35731 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35732 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35733 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35734 -e 's/[^0-9]//g'`
35735
35736
35737 ax_compare_version=`echo "x$ax_compare_version_A
35738x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35739
35740
35741
35742 if test "$ax_compare_version" = "true" ; then
35743
35744 :
35745 PERL_SUPPORTS_DESTDIR='yes'
35746
35747 else
35748 :
35749 PERL_SUPPORTS_DESTDIR='no'
35750
35751 fi
35752
35753
35754else
35755
35756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35757$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35758 PERL_SUPPORTS_DESTDIR='no'
35759
cristy3ed852e2009-09-05 21:47:34 +000035760fi
cristy73bd4a52010-10-05 11:24:23 +000035761
35762fi
35763 if test "$have_perl" != 'no'; then
35764 WITH_PERL_TRUE=
35765 WITH_PERL_FALSE='#'
35766else
35767 WITH_PERL_TRUE='#'
35768 WITH_PERL_FALSE=
35769fi
35770
35771 if test $with_perl_static = 'yes'; then
35772 WITH_PERL_STATIC_TRUE=
35773 WITH_PERL_STATIC_FALSE='#'
35774else
35775 WITH_PERL_STATIC_TRUE='#'
35776 WITH_PERL_STATIC_FALSE=
35777fi
35778
35779 if test $with_perl_dynamic = 'yes'; then
35780 WITH_PERL_DYNAMIC_TRUE=
35781 WITH_PERL_DYNAMIC_FALSE='#'
35782else
35783 WITH_PERL_DYNAMIC_TRUE='#'
35784 WITH_PERL_DYNAMIC_FALSE=
35785fi
35786
cristy3ed852e2009-09-05 21:47:34 +000035787
35788
35789# Determine path to pick up MagickCore library from for use with building PerlMagick
35790MAGICKCORE_PATH="${LIB_DIR}"
35791if test $with_perl_static = 'yes'; then
35792 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35793 libtool_objdir=$objdir
35794
35795 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035796 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035797fi
35798
35799
cristy2a3eb392012-12-17 13:39:20 +000035800# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035801MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035802if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035803 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035804fi
cristy2a3eb392012-12-17 13:39:20 +000035805if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035806 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035807fi
35808if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035809 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035810fi
35811if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035812 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035813fi
cristy81ab5af2013-10-06 18:28:39 +000035814if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035815 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035816fi
35817if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035818 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035819fi
cristy2a3eb392012-12-17 13:39:20 +000035820if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035821 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035822fi
35823if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035824 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035825fi
35826if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035827 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035828fi
35829if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035830 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035831fi
35832if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035833 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035834fi
35835if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035836 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035837fi
35838if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035839 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035840fi
35841if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035842 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035843fi
35844if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035845 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035846fi
35847if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035848 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035849fi
35850if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035851 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035852fi
35853if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035854 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035855fi
cristy99db3872014-01-01 15:11:34 +000035856if test "$have_openjp2" = 'yes' ; then
35857 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000035858fi
cristy2a3eb392012-12-17 13:39:20 +000035859if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035860 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035861fi
35862if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035863 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035864fi
35865have_ps='no'
35866if test "$have_dps" = 'yes' || \
35867 test "$have_gs" = 'yes' || \
35868 test "${native_win32_build}" = 'yes' ; then
35869 have_ps='yes'
35870fi
35871if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035872 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035873fi
cristy2a3eb392012-12-17 13:39:20 +000035874if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035875 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035876fi
35877if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035878 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035879fi
35880if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035881 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035882fi
35883if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035884 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035885fi
cristy3b640ed2013-07-29 00:27:59 +000035886if test "$have_webp" = 'yes' ; then
35887 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35888fi
cristy2a3eb392012-12-17 13:39:20 +000035889if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035890 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035891fi
35892if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035893 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035894fi
35895if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035896 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035897fi
35898if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035899 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035900fi
cristy2a3eb392012-12-17 13:39:20 +000035901# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035902MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035903MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035904
35905
cristyfa161182012-12-19 15:45:28 +000035906
cristy3ed852e2009-09-05 21:47:34 +000035907#
35908# Handle special compiler flags
35909#
35910
35911# Add '-p' if prof source profiling support enabled
35912if test "$enable_prof" = 'yes'; then
35913 CFLAGS="-p $CFLAGS"
35914 CXXFLAGS="-p $CXXFLAGS"
35915 LDFLAGS="-p $LDFLAGS"
35916fi
35917
35918# Add '-pg' if gprof source profiling support enabled
35919if test "$enable_gprof" = 'yes'; then
35920 CFLAGS="-pg $CFLAGS"
35921 CXXFLAGS="-pg $CXXFLAGS"
35922 LDFLAGS="-pg $LDFLAGS"
35923fi
35924
35925# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35926# This is a gcc-specific feature
35927if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035929$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035930if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035931 $as_echo_n "(cached) " >&6
35932else
35933 ac_check_lib_save_LIBS=$LIBS
35934LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035936/* end confdefs.h. */
35937
35938/* Override any GCC internal prototype to avoid an error.
35939 Use char because int might match the return type of a GCC
35940 builtin and then its argument prototype would still apply. */
35941#ifdef __cplusplus
35942extern "C"
35943#endif
35944char _gcov_init ();
35945int
35946main ()
35947{
35948return _gcov_init ();
35949 ;
35950 return 0;
35951}
35952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035953if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035954 ac_cv_lib_gcov__gcov_init=yes
35955else
cristy8b350f62009-11-15 23:12:43 +000035956 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035957fi
cristy8b350f62009-11-15 23:12:43 +000035958rm -f core conftest.err conftest.$ac_objext \
35959 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035960LIBS=$ac_check_lib_save_LIBS
35961fi
cristy8b350f62009-11-15 23:12:43 +000035962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035963$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035964if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035965 cat >>confdefs.h <<_ACEOF
35966#define HAVE_LIBGCOV 1
35967_ACEOF
35968
35969 LIBS="-lgcov $LIBS"
35970
35971fi
35972
cristy8b350f62009-11-15 23:12:43 +000035973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035974$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035975if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035976 $as_echo_n "(cached) " >&6
35977else
35978 ac_check_lib_save_LIBS=$LIBS
35979LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035981/* end confdefs.h. */
35982
35983/* Override any GCC internal prototype to avoid an error.
35984 Use char because int might match the return type of a GCC
35985 builtin and then its argument prototype would still apply. */
35986#ifdef __cplusplus
35987extern "C"
35988#endif
35989char __gcov_init ();
35990int
35991main ()
35992{
35993return __gcov_init ();
35994 ;
35995 return 0;
35996}
35997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035998if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035999 ac_cv_lib_gcov___gcov_init=yes
36000else
cristy8b350f62009-11-15 23:12:43 +000036001 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036002fi
cristy8b350f62009-11-15 23:12:43 +000036003rm -f core conftest.err conftest.$ac_objext \
36004 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036005LIBS=$ac_check_lib_save_LIBS
36006fi
cristy8b350f62009-11-15 23:12:43 +000036007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036008$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036009if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036010 cat >>confdefs.h <<_ACEOF
36011#define HAVE_LIBGCOV 1
36012_ACEOF
36013
36014 LIBS="-lgcov $LIBS"
36015
36016fi
36017
36018 case "$target_os" in
36019 darwin*)
36020 OSX_GCOV_LDFLAG="-Wl,-single_module"
36021 ;;
36022 *)
36023 OSX_GCOV_LDFLAG=""
36024 ;;
36025 esac
36026
36027 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36028 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36029 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36030fi
36031
36032#
36033# Build library dependency list for libMagickCore
36034#
36035
cristyc6722092012-10-14 00:19:31 +000036036if test "$build_modules" != 'no'; then
cristy3b0097d2014-11-04 15:34:47 +000036037 MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036038else
cristy3b0097d2014-11-04 15:34:47 +000036039 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $OPENJPEG_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036040fi
36041
36042
36043#
36044# Remove extraneous spaces from output variables (asthetic)
36045#
36046X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
36047X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
36048X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
36049X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
36050
36051CC=`echo $CC | sed -e 's/ */ /g'`
36052CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
36053CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
36054CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036055DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
36056LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
36057TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36058MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
36059#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36060
36061# Pass only user-provided LIBS as "global" libraries
36062LIBS=$USER_LIBS
36063
36064#AC_SUBST(CPPFLAGS)
36065
36066#AC_SUBST(LDFLAGS)
36067#AC_SUBST(X_PRE_LIBS)
36068#AC_SUBST(X_LIBS)
36069#AC_SUBST(X_EXTRA_LIBS)
36070
36071MAGICK_CFLAGS=$CFLAGS
36072MAGICK_CXXFLAGS="$CXXFLAGS"
36073MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36074MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36075MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036076MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036077
36078
36079
36080
36081
36082
36083
36084
36085# Set configured scripts to executable.
36086ac_config_commands="$ac_config_commands default"
36087
cristy2bd4b6e2012-07-22 15:29:11 +000036088ac_config_commands="$ac_config_commands magick.sh.in"
36089
cristy3ed852e2009-09-05 21:47:34 +000036090ac_config_commands="$ac_config_commands MagickCore-config.in"
36091
cristy3ed852e2009-09-05 21:47:34 +000036092ac_config_commands="$ac_config_commands MagickWand-config.in"
36093
cristy3ed852e2009-09-05 21:47:34 +000036094ac_config_commands="$ac_config_commands Magick++-config.in"
36095
36096ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36097
36098
cristyad38abe2012-12-23 23:03:21 +000036099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36100$as_echo "-------------------------------------------------------------" >&6; }
36101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36102$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036103cat >confcache <<\_ACEOF
36104# This file is a shell script that caches the results of configure
36105# tests run on this system so they can be shared between configure
36106# scripts and configure runs, see configure's option --config-cache.
36107# It is not useful on other systems. If it contains results you don't
36108# want to keep, you may remove or edit it.
36109#
36110# config.status only pays attention to the cache file if you give it
36111# the --recheck option to rerun configure.
36112#
36113# `ac_cv_env_foo' variables (set or unset) will be overridden when
36114# loading this file, other *unset* `ac_cv_foo' will be assigned the
36115# following values.
36116
36117_ACEOF
36118
36119# The following way of writing the cache mishandles newlines in values,
36120# but we know of no workaround that is simple, portable, and efficient.
36121# So, we kill variables containing newlines.
36122# Ultrix sh set writes to stderr and can't be redirected directly,
36123# and sets the high bit in the cache file unless we assign to the vars.
36124(
36125 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36126 eval ac_val=\$$ac_var
36127 case $ac_val in #(
36128 *${as_nl}*)
36129 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036130 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036131$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36132 esac
36133 case $ac_var in #(
36134 _ | IFS | as_nl) ;; #(
36135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036136 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036137 esac ;;
36138 esac
36139 done
36140
36141 (set) 2>&1 |
36142 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36143 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036144 # `set' does not quote correctly, so add quotes: double-quote
36145 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036146 sed -n \
36147 "s/'/'\\\\''/g;
36148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36149 ;; #(
36150 *)
36151 # `set' quotes correctly as required by POSIX, so do not add quotes.
36152 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36153 ;;
36154 esac |
36155 sort
36156) |
36157 sed '
36158 /^ac_cv_env_/b end
36159 t clear
36160 :clear
36161 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36162 t end
36163 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36164 :end' >>confcache
36165if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36166 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036167 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036168 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036169$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036170 if test ! -f "$cache_file" || test -h "$cache_file"; then
36171 cat confcache >"$cache_file"
36172 else
36173 case $cache_file in #(
36174 */* | ?:*)
36175 mv -f confcache "$cache_file"$$ &&
36176 mv -f "$cache_file"$$ "$cache_file" ;; #(
36177 *)
36178 mv -f confcache "$cache_file" ;;
36179 esac
36180 fi
36181 fi
cristy3ed852e2009-09-05 21:47:34 +000036182 else
cristy8b350f62009-11-15 23:12:43 +000036183 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036184$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36185 fi
36186fi
36187rm -f confcache
36188
36189test "x$prefix" = xNONE && prefix=$ac_default_prefix
36190# Let make expand exec_prefix.
36191test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36192
36193DEFS=-DHAVE_CONFIG_H
36194
36195ac_libobjs=
36196ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036197U=
cristy3ed852e2009-09-05 21:47:34 +000036198for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36199 # 1. Remove the extension, and $U if already installed.
36200 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36201 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36203 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036204 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36205 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036206done
36207LIBOBJS=$ac_libobjs
36208
36209LTLIBOBJS=$ac_ltlibobjs
36210
36211
cristyc0890a62012-07-19 00:18:20 +000036212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36213$as_echo_n "checking that generated files are newer than configure... " >&6; }
36214 if test -n "$am_sleep_pid"; then
36215 # Hide warnings about reused PIDs.
36216 wait $am_sleep_pid 2>/dev/null
36217 fi
36218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36219$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036220 if test -n "$EXEEXT"; then
36221 am__EXEEXT_TRUE=
36222 am__EXEEXT_FALSE='#'
36223else
36224 am__EXEEXT_TRUE='#'
36225 am__EXEEXT_FALSE=
36226fi
cristy3ed852e2009-09-05 21:47:34 +000036227
cristy73bd4a52010-10-05 11:24:23 +000036228if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036229 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036230Usually this means the macro was only invoked conditionally." "$LINENO" 5
36231fi
36232if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036233 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036234Usually this means the macro was only invoked conditionally." "$LINENO" 5
36235fi
36236if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036237 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036238Usually this means the macro was only invoked conditionally." "$LINENO" 5
36239fi
36240if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036241 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036242Usually this means the macro was only invoked conditionally." "$LINENO" 5
36243fi
cristy9b86f202012-11-28 21:55:35 +000036244if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36245 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36246Usually this means the macro was only invoked conditionally." "$LINENO" 5
36247fi
cristy73bd4a52010-10-05 11:24:23 +000036248if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036249 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036250Usually this means the macro was only invoked conditionally." "$LINENO" 5
36251fi
36252if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036253 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036254Usually this means the macro was only invoked conditionally." "$LINENO" 5
36255fi
36256if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036257 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036258Usually this means the macro was only invoked conditionally." "$LINENO" 5
36259fi
36260if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036261 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036262Usually this means the macro was only invoked conditionally." "$LINENO" 5
36263fi
cristy73bd4a52010-10-05 11:24:23 +000036264if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036265 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036266Usually this means the macro was only invoked conditionally." "$LINENO" 5
36267fi
36268if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036269 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036270Usually this means the macro was only invoked conditionally." "$LINENO" 5
36271fi
cristy73bd4a52010-10-05 11:24:23 +000036272if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036273 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036274Usually this means the macro was only invoked conditionally." "$LINENO" 5
36275fi
cristy71d8c202012-03-20 17:05:01 +000036276if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36277 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36278Usually this means the macro was only invoked conditionally." "$LINENO" 5
36279fi
cristy73bd4a52010-10-05 11:24:23 +000036280
36281if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036282 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036283Usually this means the macro was only invoked conditionally." "$LINENO" 5
36284fi
36285if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036286 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036287Usually this means the macro was only invoked conditionally." "$LINENO" 5
36288fi
cristy3b0097d2014-11-04 15:34:47 +000036289if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
36290 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
36291Usually this means the macro was only invoked conditionally." "$LINENO" 5
36292fi
cristy73bd4a52010-10-05 11:24:23 +000036293if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036294 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036295Usually this means the macro was only invoked conditionally." "$LINENO" 5
36296fi
36297if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036298 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036299Usually this means the macro was only invoked conditionally." "$LINENO" 5
36300fi
36301if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036302 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036303Usually this means the macro was only invoked conditionally." "$LINENO" 5
36304fi
36305if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036306 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036307Usually this means the macro was only invoked conditionally." "$LINENO" 5
36308fi
cristy5eef09f2012-10-16 12:08:28 +000036309if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36310 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36311Usually this means the macro was only invoked conditionally." "$LINENO" 5
36312fi
cristy73bd4a52010-10-05 11:24:23 +000036313if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036314 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036315Usually this means the macro was only invoked conditionally." "$LINENO" 5
36316fi
36317if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036318 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036319Usually this means the macro was only invoked conditionally." "$LINENO" 5
36320fi
cristy73bd4a52010-10-05 11:24:23 +000036321if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036322 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036323Usually this means the macro was only invoked conditionally." "$LINENO" 5
36324fi
36325if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036326 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036327Usually this means the macro was only invoked conditionally." "$LINENO" 5
36328fi
cristy853d9902014-08-21 18:50:43 +000036329if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36330 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36331Usually this means the macro was only invoked conditionally." "$LINENO" 5
36332fi
cristy73bd4a52010-10-05 11:24:23 +000036333if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036334 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036335Usually this means the macro was only invoked conditionally." "$LINENO" 5
36336fi
36337if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036338 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036339Usually this means the macro was only invoked conditionally." "$LINENO" 5
36340fi
36341if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036342 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036343Usually this means the macro was only invoked conditionally." "$LINENO" 5
36344fi
36345if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036346 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036347Usually this means the macro was only invoked conditionally." "$LINENO" 5
36348fi
36349if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036350 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036351Usually this means the macro was only invoked conditionally." "$LINENO" 5
36352fi
36353if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036354 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036355Usually this means the macro was only invoked conditionally." "$LINENO" 5
36356fi
cristy73bd4a52010-10-05 11:24:23 +000036357if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036358 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036359Usually this means the macro was only invoked conditionally." "$LINENO" 5
36360fi
cristy99db3872014-01-01 15:11:34 +000036361if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36362 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36363Usually this means the macro was only invoked conditionally." "$LINENO" 5
36364fi
cristy73bd4a52010-10-05 11:24:23 +000036365if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036366 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036367Usually this means the macro was only invoked conditionally." "$LINENO" 5
36368fi
cristyfbb0ef02010-12-19 02:32:11 +000036369if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36370 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36371Usually this means the macro was only invoked conditionally." "$LINENO" 5
36372fi
cristy73bd4a52010-10-05 11:24:23 +000036373if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036374 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036375Usually this means the macro was only invoked conditionally." "$LINENO" 5
36376fi
cristy41cbe8a2011-10-27 01:35:18 +000036377if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36378 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36379Usually this means the macro was only invoked conditionally." "$LINENO" 5
36380fi
cristya054b762012-03-26 23:16:00 +000036381if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36382 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036383Usually this means the macro was only invoked conditionally." "$LINENO" 5
36384fi
cristy73bd4a52010-10-05 11:24:23 +000036385if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036386 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036387Usually this means the macro was only invoked conditionally." "$LINENO" 5
36388fi
36389if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036390 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036391Usually this means the macro was only invoked conditionally." "$LINENO" 5
36392fi
36393if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036394 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036395Usually this means the macro was only invoked conditionally." "$LINENO" 5
36396fi
36397if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036398 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036399Usually this means the macro was only invoked conditionally." "$LINENO" 5
36400fi
cristyb1860752011-03-14 00:27:46 +000036401if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36402 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36403Usually this means the macro was only invoked conditionally." "$LINENO" 5
36404fi
cristy73bd4a52010-10-05 11:24:23 +000036405if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036406 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036407Usually this means the macro was only invoked conditionally." "$LINENO" 5
36408fi
36409if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036410 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036411Usually this means the macro was only invoked conditionally." "$LINENO" 5
36412fi
cristydd17feb2014-03-05 02:06:32 +000036413if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36414 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36415Usually this means the macro was only invoked conditionally." "$LINENO" 5
36416fi
cristy73bd4a52010-10-05 11:24:23 +000036417if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036418 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036419Usually this means the macro was only invoked conditionally." "$LINENO" 5
36420fi
36421if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036422 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036423Usually this means the macro was only invoked conditionally." "$LINENO" 5
36424fi
36425if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036426 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036427Usually this means the macro was only invoked conditionally." "$LINENO" 5
36428fi
36429if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036430 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036431Usually this means the macro was only invoked conditionally." "$LINENO" 5
36432fi
36433if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036434 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036435Usually this means the macro was only invoked conditionally." "$LINENO" 5
36436fi
36437if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036438 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036439Usually this means the macro was only invoked conditionally." "$LINENO" 5
36440fi
cristy3ed852e2009-09-05 21:47:34 +000036441
cristyda16f162011-02-19 23:52:17 +000036442: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036443ac_write_fail=0
36444ac_clean_files_save=$ac_clean_files
36445ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036446{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036447$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036448as_write_fail=0
36449cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036450#! $SHELL
36451# Generated by $as_me.
36452# Run this file to recreate the current configuration.
36453# Compiler output produced by configure, useful for debugging
36454# configure, is in config.log if it exists.
36455
36456debug=false
36457ac_cs_recheck=false
36458ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036459
cristy8b350f62009-11-15 23:12:43 +000036460SHELL=\${CONFIG_SHELL-$SHELL}
36461export SHELL
36462_ASEOF
36463cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36464## -------------------- ##
36465## M4sh Initialization. ##
36466## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036467
36468# Be more Bourne compatible
36469DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036470if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036471 emulate sh
36472 NULLCMD=:
36473 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36474 # is contrary to our usage. Disable this feature.
36475 alias -g '${1+"$@"}'='"$@"'
36476 setopt NO_GLOB_SUBST
36477else
cristy8b350f62009-11-15 23:12:43 +000036478 case `(set -o) 2>/dev/null` in #(
36479 *posix*) :
36480 set -o posix ;; #(
36481 *) :
36482 ;;
cristy3ed852e2009-09-05 21:47:34 +000036483esac
cristy3ed852e2009-09-05 21:47:34 +000036484fi
36485
36486
cristy3ed852e2009-09-05 21:47:34 +000036487as_nl='
36488'
36489export as_nl
36490# Printing a long string crashes Solaris 7 /usr/bin/printf.
36491as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36492as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36493as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036494# Prefer a ksh shell builtin over an external printf program on Solaris,
36495# but without wasting forks for bash or zsh.
36496if test -z "$BASH_VERSION$ZSH_VERSION" \
36497 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36498 as_echo='print -r --'
36499 as_echo_n='print -rn --'
36500elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036501 as_echo='printf %s\n'
36502 as_echo_n='printf %s'
36503else
36504 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36505 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36506 as_echo_n='/usr/ucb/echo -n'
36507 else
36508 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36509 as_echo_n_body='eval
36510 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036511 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036512 *"$as_nl"*)
36513 expr "X$arg" : "X\\(.*\\)$as_nl";
36514 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36515 esac;
36516 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36517 '
36518 export as_echo_n_body
36519 as_echo_n='sh -c $as_echo_n_body as_echo'
36520 fi
36521 export as_echo_body
36522 as_echo='sh -c $as_echo_body as_echo'
36523fi
36524
36525# The user is always right.
36526if test "${PATH_SEPARATOR+set}" != set; then
36527 PATH_SEPARATOR=:
36528 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36529 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36530 PATH_SEPARATOR=';'
36531 }
36532fi
36533
cristy3ed852e2009-09-05 21:47:34 +000036534
36535# IFS
36536# We need space, tab and new line, in precisely that order. Quoting is
36537# there to prevent editors from complaining about space-tab.
36538# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36539# splitting by setting IFS to empty value.)
36540IFS=" "" $as_nl"
36541
36542# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036543as_myself=
cristy8b350f62009-11-15 23:12:43 +000036544case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036545 *[\\/]* ) as_myself=$0 ;;
36546 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36547for as_dir in $PATH
36548do
36549 IFS=$as_save_IFS
36550 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036551 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36552 done
cristy3ed852e2009-09-05 21:47:34 +000036553IFS=$as_save_IFS
36554
36555 ;;
36556esac
36557# We did not find ourselves, most probably we were run as `sh COMMAND'
36558# in which case we are not to be found in the path.
36559if test "x$as_myself" = x; then
36560 as_myself=$0
36561fi
36562if test ! -f "$as_myself"; then
36563 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036564 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036565fi
36566
cristy8b350f62009-11-15 23:12:43 +000036567# Unset variables that we do not need and which cause bugs (e.g. in
36568# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36569# suppresses any "Segmentation fault" message there. '((' could
36570# trigger a bug in pdksh 5.2.14.
36571for as_var in BASH_ENV ENV MAIL MAILPATH
36572do eval test x\${$as_var+set} = xset \
36573 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036574done
36575PS1='$ '
36576PS2='> '
36577PS4='+ '
36578
36579# NLS nuisances.
36580LC_ALL=C
36581export LC_ALL
36582LANGUAGE=C
36583export LANGUAGE
36584
cristy8b350f62009-11-15 23:12:43 +000036585# CDPATH.
36586(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36587
36588
cristy98dddb52010-11-04 00:30:15 +000036589# as_fn_error STATUS ERROR [LINENO LOG_FD]
36590# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036591# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36592# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036593# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036594as_fn_error ()
36595{
cristy98dddb52010-11-04 00:30:15 +000036596 as_status=$1; test $as_status -eq 0 && as_status=1
36597 if test "$4"; then
36598 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36599 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036600 fi
cristy98dddb52010-11-04 00:30:15 +000036601 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036602 as_fn_exit $as_status
36603} # as_fn_error
36604
36605
36606# as_fn_set_status STATUS
36607# -----------------------
36608# Set $? to STATUS, without forking.
36609as_fn_set_status ()
36610{
36611 return $1
36612} # as_fn_set_status
36613
36614# as_fn_exit STATUS
36615# -----------------
36616# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36617as_fn_exit ()
36618{
36619 set +e
36620 as_fn_set_status $1
36621 exit $1
36622} # as_fn_exit
36623
36624# as_fn_unset VAR
36625# ---------------
36626# Portably unset VAR.
36627as_fn_unset ()
36628{
36629 { eval $1=; unset $1;}
36630}
36631as_unset=as_fn_unset
36632# as_fn_append VAR VALUE
36633# ----------------------
36634# Append the text in VALUE to the end of the definition contained in VAR. Take
36635# advantage of any shell optimizations that allow amortized linear growth over
36636# repeated appends, instead of the typical quadratic growth present in naive
36637# implementations.
36638if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36639 eval 'as_fn_append ()
36640 {
36641 eval $1+=\$2
36642 }'
36643else
36644 as_fn_append ()
36645 {
36646 eval $1=\$$1\$2
36647 }
36648fi # as_fn_append
36649
36650# as_fn_arith ARG...
36651# ------------------
36652# Perform arithmetic evaluation on the ARGs, and store the result in the
36653# global $as_val. Take advantage of shells that can avoid forks. The arguments
36654# must be portable across $(()) and expr.
36655if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36656 eval 'as_fn_arith ()
36657 {
36658 as_val=$(( $* ))
36659 }'
36660else
36661 as_fn_arith ()
36662 {
36663 as_val=`expr "$@" || test $? -eq 1`
36664 }
36665fi # as_fn_arith
36666
36667
cristy3ed852e2009-09-05 21:47:34 +000036668if expr a : '\(a\)' >/dev/null 2>&1 &&
36669 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36670 as_expr=expr
36671else
36672 as_expr=false
36673fi
36674
36675if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36676 as_basename=basename
36677else
36678 as_basename=false
36679fi
36680
cristy8b350f62009-11-15 23:12:43 +000036681if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36682 as_dirname=dirname
36683else
36684 as_dirname=false
36685fi
cristy3ed852e2009-09-05 21:47:34 +000036686
cristy3ed852e2009-09-05 21:47:34 +000036687as_me=`$as_basename -- "$0" ||
36688$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36689 X"$0" : 'X\(//\)$' \| \
36690 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36691$as_echo X/"$0" |
36692 sed '/^.*\/\([^/][^/]*\)\/*$/{
36693 s//\1/
36694 q
36695 }
36696 /^X\/\(\/\/\)$/{
36697 s//\1/
36698 q
36699 }
36700 /^X\/\(\/\).*/{
36701 s//\1/
36702 q
36703 }
36704 s/.*/./; q'`
36705
cristy8b350f62009-11-15 23:12:43 +000036706# Avoid depending upon Character Ranges.
36707as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36708as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36709as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36710as_cr_digits='0123456789'
36711as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036712
36713ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036714case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036715-n*)
cristy8b350f62009-11-15 23:12:43 +000036716 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036717 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036718 xy) ECHO_C='\c';;
36719 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36720 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036721 esac;;
36722*)
36723 ECHO_N='-n';;
36724esac
cristy3ed852e2009-09-05 21:47:34 +000036725
36726rm -f conf$$ conf$$.exe conf$$.file
36727if test -d conf$$.dir; then
36728 rm -f conf$$.dir/conf$$.file
36729else
36730 rm -f conf$$.dir
36731 mkdir conf$$.dir 2>/dev/null
36732fi
36733if (echo >conf$$.file) 2>/dev/null; then
36734 if ln -s conf$$.file conf$$ 2>/dev/null; then
36735 as_ln_s='ln -s'
36736 # ... but there are two gotchas:
36737 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36738 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036739 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036740 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036741 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036742 elif ln conf$$.file conf$$ 2>/dev/null; then
36743 as_ln_s=ln
36744 else
cristy14fefe52012-05-21 00:59:18 +000036745 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036746 fi
36747else
cristy14fefe52012-05-21 00:59:18 +000036748 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036749fi
36750rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36751rmdir conf$$.dir 2>/dev/null
36752
cristy8b350f62009-11-15 23:12:43 +000036753
36754# as_fn_mkdir_p
36755# -------------
36756# Create "$as_dir" as a directory, including parents if necessary.
36757as_fn_mkdir_p ()
36758{
36759
36760 case $as_dir in #(
36761 -*) as_dir=./$as_dir;;
36762 esac
36763 test -d "$as_dir" || eval $as_mkdir_p || {
36764 as_dirs=
36765 while :; do
36766 case $as_dir in #(
36767 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36768 *) as_qdir=$as_dir;;
36769 esac
36770 as_dirs="'$as_qdir' $as_dirs"
36771 as_dir=`$as_dirname -- "$as_dir" ||
36772$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36773 X"$as_dir" : 'X\(//\)[^/]' \| \
36774 X"$as_dir" : 'X\(//\)$' \| \
36775 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36776$as_echo X"$as_dir" |
36777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36778 s//\1/
36779 q
36780 }
36781 /^X\(\/\/\)[^/].*/{
36782 s//\1/
36783 q
36784 }
36785 /^X\(\/\/\)$/{
36786 s//\1/
36787 q
36788 }
36789 /^X\(\/\).*/{
36790 s//\1/
36791 q
36792 }
36793 s/.*/./; q'`
36794 test -d "$as_dir" && break
36795 done
36796 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036797 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036798
36799
36800} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036801if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036802 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036803else
36804 test -d ./-p && rmdir ./-p
36805 as_mkdir_p=false
36806fi
36807
cristy14fefe52012-05-21 00:59:18 +000036808
36809# as_fn_executable_p FILE
36810# -----------------------
36811# Test if FILE is an executable regular file.
36812as_fn_executable_p ()
36813{
36814 test -f "$1" && test -x "$1"
36815} # as_fn_executable_p
36816as_test_x='test -x'
36817as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036818
36819# Sed expression to map a string onto a valid CPP name.
36820as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36821
36822# Sed expression to map a string onto a valid variable name.
36823as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36824
36825
36826exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036827## ----------------------------------- ##
36828## Main body of $CONFIG_STATUS script. ##
36829## ----------------------------------- ##
36830_ASEOF
36831test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036832
cristy8b350f62009-11-15 23:12:43 +000036833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36834# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036835# report actual input values of CONFIG_FILES etc. instead of their
36836# values after options handling.
36837ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036838This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036839generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036840
36841 CONFIG_FILES = $CONFIG_FILES
36842 CONFIG_HEADERS = $CONFIG_HEADERS
36843 CONFIG_LINKS = $CONFIG_LINKS
36844 CONFIG_COMMANDS = $CONFIG_COMMANDS
36845 $ $0 $@
36846
36847on `(hostname || uname -n) 2>/dev/null | sed 1q`
36848"
36849
36850_ACEOF
36851
36852case $ac_config_files in *"
36853"*) set x $ac_config_files; shift; ac_config_files=$*;;
36854esac
36855
36856case $ac_config_headers in *"
36857"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36858esac
36859
36860
36861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36862# Files that config.status was made for.
36863config_files="$ac_config_files"
36864config_headers="$ac_config_headers"
36865config_commands="$ac_config_commands"
36866
36867_ACEOF
36868
36869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36870ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036871\`$as_me' instantiates files and other configuration actions
36872from templates according to the current configuration. Unless the files
36873and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036874
cristy8b350f62009-11-15 23:12:43 +000036875Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036876
36877 -h, --help print this help, then exit
36878 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036879 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036880 -q, --quiet, --silent
36881 do not print progress messages
36882 -d, --debug don't remove temporary files
36883 --recheck update $as_me by reconfiguring in the same conditions
36884 --file=FILE[:TEMPLATE]
36885 instantiate the configuration file FILE
36886 --header=FILE[:TEMPLATE]
36887 instantiate the configuration header FILE
36888
36889Configuration files:
36890$config_files
36891
36892Configuration headers:
36893$config_headers
36894
36895Configuration commands:
36896$config_commands
36897
cristy8b350f62009-11-15 23:12:43 +000036898Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036899
36900_ACEOF
36901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036902ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036903ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036904ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036905configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036906 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036907
cristy14fefe52012-05-21 00:59:18 +000036908Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036909This config.status script is free software; the Free Software Foundation
36910gives unlimited permission to copy, distribute and modify it."
36911
36912ac_pwd='$ac_pwd'
36913srcdir='$srcdir'
36914INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036915MKDIR_P='$MKDIR_P'
36916AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036917test -n "\$AWK" || AWK=awk
36918_ACEOF
36919
36920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36921# The default lists apply if the user does not specify any file.
36922ac_need_defaults=:
36923while test $# != 0
36924do
36925 case $1 in
cristyda16f162011-02-19 23:52:17 +000036926 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036927 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36928 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36929 ac_shift=:
36930 ;;
cristyda16f162011-02-19 23:52:17 +000036931 --*=)
36932 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36933 ac_optarg=
36934 ac_shift=:
36935 ;;
cristy3ed852e2009-09-05 21:47:34 +000036936 *)
36937 ac_option=$1
36938 ac_optarg=$2
36939 ac_shift=shift
36940 ;;
36941 esac
36942
36943 case $ac_option in
36944 # Handling of the options.
36945 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36946 ac_cs_recheck=: ;;
36947 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36948 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036949 --config | --confi | --conf | --con | --co | --c )
36950 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036951 --debug | --debu | --deb | --de | --d | -d )
36952 debug=: ;;
36953 --file | --fil | --fi | --f )
36954 $ac_shift
36955 case $ac_optarg in
36956 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036957 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036958 esac
cristy8b350f62009-11-15 23:12:43 +000036959 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036960 ac_need_defaults=false;;
36961 --header | --heade | --head | --hea )
36962 $ac_shift
36963 case $ac_optarg in
36964 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36965 esac
cristy8b350f62009-11-15 23:12:43 +000036966 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036967 ac_need_defaults=false;;
36968 --he | --h)
36969 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036970 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036971Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036972 --help | --hel | -h )
36973 $as_echo "$ac_cs_usage"; exit ;;
36974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36975 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36976 ac_cs_silent=: ;;
36977
36978 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036979 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036980Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036981
cristy8b350f62009-11-15 23:12:43 +000036982 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036983 ac_need_defaults=false ;;
36984
36985 esac
36986 shift
36987done
36988
36989ac_configure_extra_args=
36990
36991if $ac_cs_silent; then
36992 exec 6>/dev/null
36993 ac_configure_extra_args="$ac_configure_extra_args --silent"
36994fi
36995
36996_ACEOF
36997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36998if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036999 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000037000 shift
37001 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37002 CONFIG_SHELL='$SHELL'
37003 export CONFIG_SHELL
37004 exec "\$@"
37005fi
37006
37007_ACEOF
37008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37009exec 5>>config.log
37010{
37011 echo
37012 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37013## Running $as_me. ##
37014_ASBOX
37015 $as_echo "$ac_log"
37016} >&5
37017
37018_ACEOF
37019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000037020#
37021# INIT-COMMANDS
37022#
37023PACKAGE="$PACKAGE"
37024AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37025
37026
37027# The HP-UX ksh and POSIX shell print the target directory to stdout
37028# if CDPATH is set.
37029(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37030
37031sed_quote_subst='$sed_quote_subst'
37032double_quote_subst='$double_quote_subst'
37033delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037034SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37035Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37036GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37037EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37038FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37039SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37040ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37041LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37042macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37043macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37044AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37045DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37046OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37047enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37048enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37049pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37050enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037051PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037052host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37053host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37054host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37055build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37056build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37057build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37058NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37059LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37060max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37061ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37062exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37063lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37064lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37065lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037066lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37067lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037068reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37069reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37070deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37071file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037072file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37073want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37074sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037075AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37076AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037077archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037078STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37079RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37080old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37081old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37082old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37083lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37084CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37085CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37086compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37087GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37088lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37089lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37090lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37091lt_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 +000037092nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37093lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037094objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37095MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37096lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037097lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037098lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037099lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37100lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37101need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037102MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037103DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37104NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37105LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37106OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37107OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37108libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37109shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37110extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37111archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37112enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37113export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37114whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37115compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37116old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37117old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37118archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37119archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37120module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37121module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37122with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37123allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37124no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37125hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037126hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37127hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37128hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37129hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37130hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37131hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37132inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37133link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037134always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37135export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37136exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37137include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37138prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037139postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037140file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37141variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37142need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37143need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37144version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37145runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37146shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37147shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37148libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37149library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37150soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37151install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37152postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37153postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37154finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37155finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37156hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37157sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37158sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37159hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37160enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37161enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37162enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37163old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37164striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37165compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37166predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37167postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37168predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37169postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37170compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37171LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37172reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37173reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37174old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37175compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37176GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37177lt_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 +000037178lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037179lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037180lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37181lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37182archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37183enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37184export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37185whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37186compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37187old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37188old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37189archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37190archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37191module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37192module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37193with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37194allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37195no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37196hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037197hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37198hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37199hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37200hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37201hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37202hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37203inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37204link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037205always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37206export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37207exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37208include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37209prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037210postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037211file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37212hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37213compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37214predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37215postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37216predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37217postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37218compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037219
37220LTCC='$LTCC'
37221LTCFLAGS='$LTCFLAGS'
37222compiler='$compiler_DEFAULT'
37223
cristy0c60a692010-11-04 01:09:47 +000037224# A function that is used when there is no print builtin or printf.
37225func_fallback_echo ()
37226{
37227 eval 'cat <<_LTECHO_EOF
37228\$1
37229_LTECHO_EOF'
37230}
37231
cristy73bd4a52010-10-05 11:24:23 +000037232# Quote evaled strings.
37233for var in SED \
37234GREP \
37235EGREP \
37236FGREP \
cristy0c60a692010-11-04 01:09:47 +000037237SHELL \
37238ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037239LD \
cristy0c60a692010-11-04 01:09:47 +000037240AS \
37241DLLTOOL \
37242OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037243PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037244NM \
37245LN_S \
37246lt_SP2NL \
37247lt_NL2SP \
37248reload_flag \
37249deplibs_check_method \
37250file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037251file_magic_glob \
37252want_nocaseglob \
37253sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037254AR \
37255AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037256archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037257STRIP \
37258RANLIB \
37259CC \
37260CFLAGS \
37261compiler \
37262lt_cv_sys_global_symbol_pipe \
37263lt_cv_sys_global_symbol_to_cdecl \
37264lt_cv_sys_global_symbol_to_c_name_address \
37265lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037266nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037267lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037268lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037269lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037270lt_prog_compiler_static \
37271lt_cv_prog_compiler_c_o \
37272need_locks \
cristyda16f162011-02-19 23:52:17 +000037273MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037274DSYMUTIL \
37275NMEDIT \
37276LIPO \
37277OTOOL \
37278OTOOL64 \
37279shrext_cmds \
37280export_dynamic_flag_spec \
37281whole_archive_flag_spec \
37282compiler_needs_object \
37283with_gnu_ld \
37284allow_undefined_flag \
37285no_undefined_flag \
37286hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037287hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037288exclude_expsyms \
37289include_expsyms \
37290file_list_spec \
37291variables_saved_for_relink \
37292libname_spec \
37293library_names_spec \
37294soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037295install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037296finish_eval \
37297old_striplib \
37298striplib \
37299compiler_lib_search_dirs \
37300predep_objects \
37301postdep_objects \
37302predeps \
37303postdeps \
37304compiler_lib_search_path \
37305LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037306reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037307compiler_CXX \
37308lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037309lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037310lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037311lt_prog_compiler_static_CXX \
37312lt_cv_prog_compiler_c_o_CXX \
37313export_dynamic_flag_spec_CXX \
37314whole_archive_flag_spec_CXX \
37315compiler_needs_object_CXX \
37316with_gnu_ld_CXX \
37317allow_undefined_flag_CXX \
37318no_undefined_flag_CXX \
37319hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037320hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037321exclude_expsyms_CXX \
37322include_expsyms_CXX \
37323file_list_spec_CXX \
37324compiler_lib_search_dirs_CXX \
37325predep_objects_CXX \
37326postdep_objects_CXX \
37327predeps_CXX \
37328postdeps_CXX \
37329compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037330 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037331 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037332 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037333 ;;
37334 *)
37335 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37336 ;;
37337 esac
37338done
37339
37340# Double-quote double-evaled strings.
37341for var in reload_cmds \
37342old_postinstall_cmds \
37343old_postuninstall_cmds \
37344old_archive_cmds \
37345extract_expsyms_cmds \
37346old_archive_from_new_cmds \
37347old_archive_from_expsyms_cmds \
37348archive_cmds \
37349archive_expsym_cmds \
37350module_cmds \
37351module_expsym_cmds \
37352export_symbols_cmds \
37353prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037354postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037355postinstall_cmds \
37356postuninstall_cmds \
37357finish_cmds \
37358sys_lib_search_path_spec \
37359sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037360reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037361old_archive_cmds_CXX \
37362old_archive_from_new_cmds_CXX \
37363old_archive_from_expsyms_cmds_CXX \
37364archive_cmds_CXX \
37365archive_expsym_cmds_CXX \
37366module_cmds_CXX \
37367module_expsym_cmds_CXX \
37368export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037369prelink_cmds_CXX \
37370postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037371 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037372 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037373 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037374 ;;
37375 *)
37376 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37377 ;;
37378 esac
37379done
37380
cristy73bd4a52010-10-05 11:24:23 +000037381ac_aux_dir='$ac_aux_dir'
37382xsi_shell='$xsi_shell'
37383lt_shell_append='$lt_shell_append'
37384
37385# See if we are running on zsh, and set the options which allow our
37386# commands through without removal of \ escapes INIT.
37387if test -n "\${ZSH_VERSION+set}" ; then
37388 setopt NO_GLOB_SUBST
37389fi
37390
37391
37392 PACKAGE='$PACKAGE'
37393 VERSION='$VERSION'
37394 TIMESTAMP='$TIMESTAMP'
37395 RM='$RM'
37396 ofile='$ofile'
37397
37398
37399
37400
37401
37402
cristy3ed852e2009-09-05 21:47:34 +000037403_ACEOF
37404
37405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37406
37407# Handling of arguments.
37408for ac_config_target in $ac_config_targets
37409do
37410 case $ac_config_target in
37411 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037412 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037413 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037414 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37415 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37416 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37417 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37418 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037419 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037420 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037421 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37422 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37423 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37424 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37425 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037426 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037427 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037428 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37429 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37430 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037431 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37432 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037433 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037434 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037435 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037436 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037437 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37438 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37439 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37440 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037441 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37442 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37443 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37444 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37445 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37446 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37447 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37448 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37449 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37450 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37451 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37452 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037453 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37454 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037455 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37456 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037457 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037458 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037459 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037460 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037461 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37462 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37463
cristy98dddb52010-11-04 00:30:15 +000037464 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037465 esac
37466done
37467
37468
37469# If the user did not use the arguments to specify the items to instantiate,
37470# then the envvar interface is used. Set only those that are not.
37471# We use the long form for the default assignment because of an extremely
37472# bizarre bug on SunOS 4.1.3.
37473if $ac_need_defaults; then
37474 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37475 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37476 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37477fi
37478
37479# Have a temporary directory for convenience. Make it in the build tree
37480# simply because there is no reason against having it here, and in addition,
37481# creating and moving files from /tmp can sometimes cause problems.
37482# Hook for its removal unless debugging.
37483# Note that there is a small window in which the directory will not be cleaned:
37484# after its creation but before its name has been assigned to `$tmp'.
37485$debug ||
37486{
cristyda16f162011-02-19 23:52:17 +000037487 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037488 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037489 : "${ac_tmp:=$tmp}"
37490 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037491' 0
cristy8b350f62009-11-15 23:12:43 +000037492 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037493}
37494# Create a (secure) tmp directory for tmp files.
37495
37496{
37497 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037498 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037499} ||
37500{
37501 tmp=./conf$$-$RANDOM
37502 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037503} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037504ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037505
37506# Set up the scripts for CONFIG_FILES section.
37507# No need to generate them if there are no CONFIG_FILES.
37508# This happens for instance with `./config.status config.h'.
37509if test -n "$CONFIG_FILES"; then
37510
37511
cristy8b350f62009-11-15 23:12:43 +000037512ac_cr=`echo X | tr X '\015'`
37513# On cygwin, bash can eat \r inside `` if the user requested igncr.
37514# But we know of no other shell where ac_cr would be empty at this
37515# point, so we can use a bashism as a fallback.
37516if test "x$ac_cr" = x; then
37517 eval ac_cr=\$\'\\r\'
37518fi
cristy3ed852e2009-09-05 21:47:34 +000037519ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37520if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037521 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037522else
37523 ac_cs_awk_cr=$ac_cr
37524fi
37525
cristyda16f162011-02-19 23:52:17 +000037526echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037527_ACEOF
37528
37529
37530{
37531 echo "cat >conf$$subs.awk <<_ACEOF" &&
37532 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37533 echo "_ACEOF"
37534} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37536ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037537ac_delim='%!_!# '
37538for ac_last_try in false false false false false :; do
37539 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037540 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037541
37542 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37543 if test $ac_delim_n = $ac_delim_num; then
37544 break
37545 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037546 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037547 else
37548 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37549 fi
37550done
37551rm -f conf$$subs.sh
37552
37553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037554cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037555_ACEOF
37556sed -n '
37557h
37558s/^/S["/; s/!.*/"]=/
37559p
37560g
37561s/^[^!]*!//
37562:repl
37563t repl
37564s/'"$ac_delim"'$//
37565t delim
37566:nl
37567h
cristycd4c5312009-11-22 01:19:08 +000037568s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037569t more1
37570s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37571p
37572n
37573b repl
37574:more1
37575s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37576p
37577g
37578s/.\{148\}//
37579t nl
37580:delim
37581h
cristycd4c5312009-11-22 01:19:08 +000037582s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037583t more2
37584s/["\\]/\\&/g; s/^/"/; s/$/"/
37585p
37586b
37587:more2
37588s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37589p
37590g
37591s/.\{148\}//
37592t delim
37593' <conf$$subs.awk | sed '
37594/^[^""]/{
37595 N
37596 s/\n//
37597}
37598' >>$CONFIG_STATUS || ac_write_fail=1
37599rm -f conf$$subs.awk
37600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37601_ACAWK
cristyda16f162011-02-19 23:52:17 +000037602cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037603 for (key in S) S_is_set[key] = 1
37604 FS = ""
37605
37606}
37607{
37608 line = $ 0
37609 nfields = split(line, field, "@")
37610 substed = 0
37611 len = length(field[1])
37612 for (i = 2; i < nfields; i++) {
37613 key = field[i]
37614 keylen = length(key)
37615 if (S_is_set[key]) {
37616 value = S[key]
37617 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37618 len += length(value) + length(field[++i])
37619 substed = 1
37620 } else
37621 len += 1 + keylen
37622 }
37623
37624 print line
37625}
37626
37627_ACAWK
37628_ACEOF
37629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37630if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37631 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37632else
37633 cat
cristyda16f162011-02-19 23:52:17 +000037634fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037635 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037636_ACEOF
37637
cristy98dddb52010-11-04 00:30:15 +000037638# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37639# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037640# trailing colons and then remove the whole line if VPATH becomes empty
37641# (actually we leave an empty line to preserve line numbers).
37642if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037643 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37644h
37645s///
37646s/^/:/
37647s/[ ]*$/:/
37648s/:\$(srcdir):/:/g
37649s/:\${srcdir}:/:/g
37650s/:@srcdir@:/:/g
37651s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037652s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037653x
37654s/\(=[ ]*\).*/\1/
37655G
37656s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037657s/^[^=]*=[ ]*$//
37658}'
37659fi
37660
37661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37662fi # test -n "$CONFIG_FILES"
37663
37664# Set up the scripts for CONFIG_HEADERS section.
37665# No need to generate them if there are no CONFIG_HEADERS.
37666# This happens for instance with `./config.status Makefile'.
37667if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037668cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037669BEGIN {
37670_ACEOF
37671
37672# Transform confdefs.h into an awk script `defines.awk', embedded as
37673# here-document in config.status, that substitutes the proper values into
37674# config.h.in to produce config.h.
37675
37676# Create a delimiter string that does not exist in confdefs.h, to ease
37677# handling of long lines.
37678ac_delim='%!_!# '
37679for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037680 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37681 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037682 break
37683 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037684 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037685 else
37686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37687 fi
37688done
37689
37690# For the awk script, D is an array of macro values keyed by name,
37691# likewise P contains macro parameters if any. Preserve backslash
37692# newline sequences.
37693
37694ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37695sed -n '
37696s/.\{148\}/&'"$ac_delim"'/g
37697t rset
37698:rset
37699s/^[ ]*#[ ]*define[ ][ ]*/ /
37700t def
37701d
37702:def
37703s/\\$//
37704t bsnl
37705s/["\\]/\\&/g
37706s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37707D["\1"]=" \3"/p
37708s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37709d
37710:bsnl
37711s/["\\]/\\&/g
37712s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37713D["\1"]=" \3\\\\\\n"\\/p
37714t cont
37715s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37716t cont
37717d
37718:cont
37719n
37720s/.\{148\}/&'"$ac_delim"'/g
37721t clear
37722:clear
37723s/\\$//
37724t bsnlc
37725s/["\\]/\\&/g; s/^/"/; s/$/"/p
37726d
37727:bsnlc
37728s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37729b cont
37730' <confdefs.h | sed '
37731s/'"$ac_delim"'/"\\\
37732"/g' >>$CONFIG_STATUS || ac_write_fail=1
37733
37734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37735 for (key in D) D_is_set[key] = 1
37736 FS = ""
37737}
37738/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37739 line = \$ 0
37740 split(line, arg, " ")
37741 if (arg[1] == "#") {
37742 defundef = arg[2]
37743 mac1 = arg[3]
37744 } else {
37745 defundef = substr(arg[1], 2)
37746 mac1 = arg[2]
37747 }
37748 split(mac1, mac2, "(") #)
37749 macro = mac2[1]
37750 prefix = substr(line, 1, index(line, defundef) - 1)
37751 if (D_is_set[macro]) {
37752 # Preserve the white space surrounding the "#".
37753 print prefix "define", macro P[macro] D[macro]
37754 next
37755 } else {
37756 # Replace #undef with comments. This is necessary, for example,
37757 # in the case of _POSIX_SOURCE, which is predefined and required
37758 # on some systems where configure will not decide to define it.
37759 if (defundef == "undef") {
37760 print "/*", prefix defundef, macro, "*/"
37761 next
37762 }
37763 }
37764}
37765{ print }
37766_ACAWK
37767_ACEOF
37768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037769 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037770fi # test -n "$CONFIG_HEADERS"
37771
37772
37773eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37774shift
37775for ac_tag
37776do
37777 case $ac_tag in
37778 :[FHLC]) ac_mode=$ac_tag; continue;;
37779 esac
37780 case $ac_mode$ac_tag in
37781 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037782 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037783 :[FH]-) ac_tag=-:-;;
37784 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37785 esac
37786 ac_save_IFS=$IFS
37787 IFS=:
37788 set x $ac_tag
37789 IFS=$ac_save_IFS
37790 shift
37791 ac_file=$1
37792 shift
37793
37794 case $ac_mode in
37795 :L) ac_source=$1;;
37796 :[FH])
37797 ac_file_inputs=
37798 for ac_f
37799 do
37800 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037801 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037802 *) # Look for the file first in the build tree, then in the source tree
37803 # (if the path is not absolute). The absolute path cannot be DOS-style,
37804 # because $ac_f cannot contain `:'.
37805 test -f "$ac_f" ||
37806 case $ac_f in
37807 [\\/$]*) false;;
37808 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37809 esac ||
cristy98dddb52010-11-04 00:30:15 +000037810 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037811 esac
37812 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037813 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037814 done
37815
37816 # Let's still pretend it is `configure' which instantiates (i.e., don't
37817 # use $as_me), people would be surprised to read:
37818 # /* config.h. Generated by config.status. */
37819 configure_input='Generated from '`
37820 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37821 `' by configure.'
37822 if test x"$ac_file" != x-; then
37823 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037824 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037825$as_echo "$as_me: creating $ac_file" >&6;}
37826 fi
37827 # Neutralize special characters interpreted by sed in replacement strings.
37828 case $configure_input in #(
37829 *\&* | *\|* | *\\* )
37830 ac_sed_conf_input=`$as_echo "$configure_input" |
37831 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37832 *) ac_sed_conf_input=$configure_input;;
37833 esac
37834
37835 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037836 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037838 esac
37839 ;;
37840 esac
37841
37842 ac_dir=`$as_dirname -- "$ac_file" ||
37843$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37844 X"$ac_file" : 'X\(//\)[^/]' \| \
37845 X"$ac_file" : 'X\(//\)$' \| \
37846 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37847$as_echo X"$ac_file" |
37848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37849 s//\1/
37850 q
37851 }
37852 /^X\(\/\/\)[^/].*/{
37853 s//\1/
37854 q
37855 }
37856 /^X\(\/\/\)$/{
37857 s//\1/
37858 q
37859 }
37860 /^X\(\/\).*/{
37861 s//\1/
37862 q
37863 }
37864 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037865 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037866 ac_builddir=.
37867
37868case "$ac_dir" in
37869.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37870*)
37871 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37872 # A ".." for each directory in $ac_dir_suffix.
37873 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37874 case $ac_top_builddir_sub in
37875 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37876 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37877 esac ;;
37878esac
37879ac_abs_top_builddir=$ac_pwd
37880ac_abs_builddir=$ac_pwd$ac_dir_suffix
37881# for backward compatibility:
37882ac_top_builddir=$ac_top_build_prefix
37883
37884case $srcdir in
37885 .) # We are building in place.
37886 ac_srcdir=.
37887 ac_top_srcdir=$ac_top_builddir_sub
37888 ac_abs_top_srcdir=$ac_pwd ;;
37889 [\\/]* | ?:[\\/]* ) # Absolute name.
37890 ac_srcdir=$srcdir$ac_dir_suffix;
37891 ac_top_srcdir=$srcdir
37892 ac_abs_top_srcdir=$srcdir ;;
37893 *) # Relative name.
37894 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37895 ac_top_srcdir=$ac_top_build_prefix$srcdir
37896 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37897esac
37898ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37899
37900
37901 case $ac_mode in
37902 :F)
37903 #
37904 # CONFIG_FILE
37905 #
37906
37907 case $INSTALL in
37908 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37909 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37910 esac
cristy73bd4a52010-10-05 11:24:23 +000037911 ac_MKDIR_P=$MKDIR_P
37912 case $MKDIR_P in
37913 [\\/$]* | ?:[\\/]* ) ;;
37914 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37915 esac
cristy3ed852e2009-09-05 21:47:34 +000037916_ACEOF
37917
37918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37919# If the template does not know about datarootdir, expand it.
37920# FIXME: This hack should be removed a few years after 2.60.
37921ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037922ac_sed_dataroot='
37923/datarootdir/ {
37924 p
37925 q
37926}
37927/@datadir@/p
37928/@docdir@/p
37929/@infodir@/p
37930/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037931/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037932case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37933*datarootdir*) ac_datarootdir_seen=yes;;
37934*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037936$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37937_ACEOF
37938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37939 ac_datarootdir_hack='
37940 s&@datadir@&$datadir&g
37941 s&@docdir@&$docdir&g
37942 s&@infodir@&$infodir&g
37943 s&@localedir@&$localedir&g
37944 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037945 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037946esac
37947_ACEOF
37948
37949# Neutralize VPATH when `$srcdir' = `.'.
37950# Shell code in configure.ac might set extrasub.
37951# FIXME: do we really want to maintain this feature?
37952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37953ac_sed_extra="$ac_vpsub
37954$extrasub
37955_ACEOF
37956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37957:t
37958/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37959s|@configure_input@|$ac_sed_conf_input|;t t
37960s&@top_builddir@&$ac_top_builddir_sub&;t t
37961s&@top_build_prefix@&$ac_top_build_prefix&;t t
37962s&@srcdir@&$ac_srcdir&;t t
37963s&@abs_srcdir@&$ac_abs_srcdir&;t t
37964s&@top_srcdir@&$ac_top_srcdir&;t t
37965s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37966s&@builddir@&$ac_builddir&;t t
37967s&@abs_builddir@&$ac_abs_builddir&;t t
37968s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37969s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037970s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037971$ac_datarootdir_hack
37972"
cristyda16f162011-02-19 23:52:17 +000037973eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37974 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037975
37976test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037977 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37978 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37979 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037981which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037982$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037983which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037984
cristyda16f162011-02-19 23:52:17 +000037985 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037986 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037987 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37988 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037989 esac \
cristy98dddb52010-11-04 00:30:15 +000037990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037991 ;;
37992 :H)
37993 #
37994 # CONFIG_HEADER
37995 #
37996 if test x"$ac_file" != x-; then
37997 {
37998 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037999 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38000 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000038001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038002 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000038003 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000038004$as_echo "$as_me: $ac_file is unchanged" >&6;}
38005 else
38006 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000038007 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000038008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038009 fi
38010 else
38011 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038012 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000038013 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038014 fi
cristy73bd4a52010-10-05 11:24:23 +000038015# Compute "$ac_file"'s index in $config_headers.
38016_am_arg="$ac_file"
38017_am_stamp_count=1
38018for _am_header in $config_headers :; do
38019 case $_am_header in
38020 $_am_arg | $_am_arg:* )
38021 break ;;
38022 * )
38023 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38024 esac
38025done
38026echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38027$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38028 X"$_am_arg" : 'X\(//\)[^/]' \| \
38029 X"$_am_arg" : 'X\(//\)$' \| \
38030 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38031$as_echo X"$_am_arg" |
38032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38033 s//\1/
38034 q
38035 }
38036 /^X\(\/\/\)[^/].*/{
38037 s//\1/
38038 q
38039 }
38040 /^X\(\/\/\)$/{
38041 s//\1/
38042 q
38043 }
38044 /^X\(\/\).*/{
38045 s//\1/
38046 q
38047 }
38048 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038049 ;;
38050
cristy8b350f62009-11-15 23:12:43 +000038051 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038052$as_echo "$as_me: executing $ac_file commands" >&6;}
38053 ;;
38054 esac
38055
38056
38057 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038058 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038059ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38060ac_prefix_conf_PKG=`echo MagickCore`
38061ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38062ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38063ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38064if test ".$ac_prefix_conf_INP" = "."; then
38065 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38066 case "$ac_file" in
38067 *.h) ac_prefix_conf_INP=$ac_file ;;
38068 *)
38069 esac
38070 test ".$ac_prefix_conf_INP" != "." && break
38071 done
38072fi
38073if test ".$ac_prefix_conf_INP" = "."; then
38074 case "$ac_prefix_conf_OUT" in
38075 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38076 ;;
38077 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38078 ;;
38079 *) ac_prefix_conf_INP=config.h
38080 ;;
38081 esac
38082fi
38083if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038084 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038085else
38086 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38087 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38088 fi fi
38089 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38090$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38091 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038092 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38093 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38094 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38095 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38096 $as_echo "#endif/" >> conftest.prefix
38097 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38098 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38099 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038100 # now executing _script on _DEF input to create _OUT output file
38101 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38102 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38103 echo ' ' >>$tmp/pconfig.h
38104 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38105
38106 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38107 echo ' ' >>$tmp/pconfig.h
38108 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38109 echo "#endif" >>$tmp/pconfig.h
38110 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38111 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38112$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38113 else
38114 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38115$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38116 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38117 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38118 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38119$as_echo X"$ac_prefix_conf_OUT" |
38120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38121 s//\1/
38122 q
38123 }
38124 /^X\(\/\/\)[^/].*/{
38125 s//\1/
38126 q
38127 }
38128 /^X\(\/\/\)$/{
38129 s//\1/
38130 q
38131 }
38132 /^X\(\/\).*/{
38133 s//\1/
38134 q
38135 }
38136 s/.*/./; q'`
38137 as_dir="$ac_dir"; as_fn_mkdir_p
38138 rm -f "$ac_prefix_conf_OUT"
38139 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38140 fi
cristy73bd4a52010-10-05 11:24:23 +000038141 else
cristy98dddb52010-11-04 00:30:15 +000038142 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 +000038143 fi
38144 rm -f conftest.*
38145fi
38146 ;;
38147 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038148 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038149 # are listed without --file. Let's play safe and only enable the eval
38150 # if we detect the quoting.
38151 case $CONFIG_FILES in
38152 *\'*) eval set x "$CONFIG_FILES" ;;
38153 *) set x $CONFIG_FILES ;;
38154 esac
38155 shift
38156 for mf
38157 do
38158 # Strip MF so we end up with the name of the file.
38159 mf=`echo "$mf" | sed -e 's/:.*$//'`
38160 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038161 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038162 # some people rename them; so instead we look at the file content.
38163 # Grep'ing the first line is not enough: some people post-process
38164 # each Makefile.in and add a new line on top of each file to say so.
38165 # Grep'ing the whole file is not good either: AIX grep has a line
38166 # limit of 2048, but all sed's we know have understand at least 4000.
38167 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38168 dirpart=`$as_dirname -- "$mf" ||
38169$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38170 X"$mf" : 'X\(//\)[^/]' \| \
38171 X"$mf" : 'X\(//\)$' \| \
38172 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38173$as_echo X"$mf" |
38174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38175 s//\1/
38176 q
38177 }
38178 /^X\(\/\/\)[^/].*/{
38179 s//\1/
38180 q
38181 }
38182 /^X\(\/\/\)$/{
38183 s//\1/
38184 q
38185 }
38186 /^X\(\/\).*/{
38187 s//\1/
38188 q
38189 }
38190 s/.*/./; q'`
38191 else
38192 continue
38193 fi
38194 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038195 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038196 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38197 test -z "$DEPDIR" && continue
38198 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038199 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038200 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038201 # Find all dependency output files, they are included files with
38202 # $(DEPDIR) in their names. We invoke sed twice because it is the
38203 # simplest approach to changing $(DEPDIR) to its actual value in the
38204 # expansion.
38205 for file in `sed -n "
38206 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038207 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038208 # Make sure the directory exists.
38209 test -f "$dirpart/$file" && continue
38210 fdir=`$as_dirname -- "$file" ||
38211$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38212 X"$file" : 'X\(//\)[^/]' \| \
38213 X"$file" : 'X\(//\)$' \| \
38214 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38215$as_echo X"$file" |
38216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38217 s//\1/
38218 q
38219 }
38220 /^X\(\/\/\)[^/].*/{
38221 s//\1/
38222 q
38223 }
38224 /^X\(\/\/\)$/{
38225 s//\1/
38226 q
38227 }
38228 /^X\(\/\).*/{
38229 s//\1/
38230 q
38231 }
38232 s/.*/./; q'`
38233 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38234 # echo "creating $dirpart/$file"
38235 echo '# dummy' > "$dirpart/$file"
38236 done
38237 done
38238}
38239 ;;
38240 "libtool":C)
38241
38242 # See if we are running on zsh, and set the options which allow our
38243 # commands through without removal of \ escapes.
38244 if test -n "${ZSH_VERSION+set}" ; then
38245 setopt NO_GLOB_SUBST
38246 fi
38247
38248 cfgfile="${ofile}T"
38249 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38250 $RM "$cfgfile"
38251
38252 cat <<_LT_EOF >> "$cfgfile"
38253#! $SHELL
38254
38255# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38256# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38257# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38258# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38259#
38260# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038261# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38262# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038263# Written by Gordon Matzigkeit, 1996
38264#
38265# This file is part of GNU Libtool.
38266#
38267# GNU Libtool is free software; you can redistribute it and/or
38268# modify it under the terms of the GNU General Public License as
38269# published by the Free Software Foundation; either version 2 of
38270# the License, or (at your option) any later version.
38271#
38272# As a special exception to the GNU General Public License,
38273# if you distribute this file as part of a program or library that
38274# is built using GNU Libtool, you may include this file under the
38275# same distribution terms that you use for the rest of that program.
38276#
38277# GNU Libtool is distributed in the hope that it will be useful,
38278# but WITHOUT ANY WARRANTY; without even the implied warranty of
38279# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38280# GNU General Public License for more details.
38281#
38282# You should have received a copy of the GNU General Public License
38283# along with GNU Libtool; see the file COPYING. If not, a copy
38284# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38285# obtained by writing to the Free Software Foundation, Inc.,
38286# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38287
38288
38289# The names of the tagged configurations supported by this script.
38290available_tags="CXX "
38291
38292# ### BEGIN LIBTOOL CONFIG
38293
38294# A sed program that does not truncate output.
38295SED=$lt_SED
38296
38297# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38298Xsed="\$SED -e 1s/^X//"
38299
38300# A grep program that handles long lines.
38301GREP=$lt_GREP
38302
38303# An ERE matcher.
38304EGREP=$lt_EGREP
38305
38306# A literal string matcher.
38307FGREP=$lt_FGREP
38308
cristy0c60a692010-11-04 01:09:47 +000038309# Shell to use when invoking shell scripts.
38310SHELL=$lt_SHELL
38311
38312# An echo program that protects backslashes.
38313ECHO=$lt_ECHO
38314
cristy73bd4a52010-10-05 11:24:23 +000038315# Which release of libtool.m4 was used?
38316macro_version=$macro_version
38317macro_revision=$macro_revision
38318
38319# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038320AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038321
38322# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038323DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038324
38325# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038326OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038327
38328# Whether or not to build shared libraries.
38329build_libtool_libs=$enable_shared
38330
38331# Whether or not to build static libraries.
38332build_old_libs=$enable_static
38333
38334# What type of objects to build.
38335pic_mode=$pic_mode
38336
38337# Whether or not to optimize for fast installation.
38338fast_install=$enable_fast_install
38339
cristy99bd5232011-12-07 14:38:20 +000038340# The PATH separator for the build system.
38341PATH_SEPARATOR=$lt_PATH_SEPARATOR
38342
cristy73bd4a52010-10-05 11:24:23 +000038343# The host system.
38344host_alias=$host_alias
38345host=$host
38346host_os=$host_os
38347
38348# The build system.
38349build_alias=$build_alias
38350build=$build
38351build_os=$build_os
38352
38353# A BSD- or MS-compatible name lister.
38354NM=$lt_NM
38355
38356# Whether we need soft or hard links.
38357LN_S=$lt_LN_S
38358
38359# What is the maximum length of a command?
38360max_cmd_len=$max_cmd_len
38361
38362# Object file suffix (normally "o").
38363objext=$ac_objext
38364
38365# Executable file suffix (normally "").
38366exeext=$exeext
38367
38368# whether the shell understands "unset".
38369lt_unset=$lt_unset
38370
38371# turn spaces into newlines.
38372SP2NL=$lt_lt_SP2NL
38373
38374# turn newlines into spaces.
38375NL2SP=$lt_lt_NL2SP
38376
cristyda16f162011-02-19 23:52:17 +000038377# convert \$build file names to \$host format.
38378to_host_file_cmd=$lt_cv_to_host_file_cmd
38379
38380# convert \$build files to toolchain format.
38381to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38382
cristy73bd4a52010-10-05 11:24:23 +000038383# Method to check whether dependent libraries are shared objects.
38384deplibs_check_method=$lt_deplibs_check_method
38385
cristyda16f162011-02-19 23:52:17 +000038386# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038387file_magic_cmd=$lt_file_magic_cmd
38388
cristyda16f162011-02-19 23:52:17 +000038389# How to find potential files when deplibs_check_method = "file_magic".
38390file_magic_glob=$lt_file_magic_glob
38391
38392# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38393want_nocaseglob=$lt_want_nocaseglob
38394
38395# Command to associate shared and link libraries.
38396sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38397
cristy73bd4a52010-10-05 11:24:23 +000038398# The archiver.
38399AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038400
38401# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038402AR_FLAGS=$lt_AR_FLAGS
38403
cristyda16f162011-02-19 23:52:17 +000038404# How to feed a file listing to the archiver.
38405archiver_list_spec=$lt_archiver_list_spec
38406
cristy73bd4a52010-10-05 11:24:23 +000038407# A symbol stripping program.
38408STRIP=$lt_STRIP
38409
38410# Commands used to install an old-style archive.
38411RANLIB=$lt_RANLIB
38412old_postinstall_cmds=$lt_old_postinstall_cmds
38413old_postuninstall_cmds=$lt_old_postuninstall_cmds
38414
cristy0c60a692010-11-04 01:09:47 +000038415# Whether to use a lock for old archive extraction.
38416lock_old_archive_extraction=$lock_old_archive_extraction
38417
cristy73bd4a52010-10-05 11:24:23 +000038418# A C compiler.
38419LTCC=$lt_CC
38420
38421# LTCC compiler flags.
38422LTCFLAGS=$lt_CFLAGS
38423
38424# Take the output of nm and produce a listing of raw symbols and C names.
38425global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38426
38427# Transform the output of nm in a proper C declaration.
38428global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38429
38430# Transform the output of nm in a C name address pair.
38431global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38432
38433# Transform the output of nm in a C name address pair when lib prefix is needed.
38434global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38435
cristyda16f162011-02-19 23:52:17 +000038436# Specify filename containing input files for \$NM.
38437nm_file_list_spec=$lt_nm_file_list_spec
38438
38439# The root where to search for dependent libraries,and in which our libraries should be installed.
38440lt_sysroot=$lt_sysroot
38441
cristy73bd4a52010-10-05 11:24:23 +000038442# The name of the directory that contains temporary libtool files.
38443objdir=$objdir
38444
cristy73bd4a52010-10-05 11:24:23 +000038445# Used to examine libraries when file_magic_cmd begins with "file".
38446MAGIC_CMD=$MAGIC_CMD
38447
38448# Must we lock files when doing compilation?
38449need_locks=$lt_need_locks
38450
cristyda16f162011-02-19 23:52:17 +000038451# Manifest tool.
38452MANIFEST_TOOL=$lt_MANIFEST_TOOL
38453
cristy73bd4a52010-10-05 11:24:23 +000038454# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38455DSYMUTIL=$lt_DSYMUTIL
38456
38457# Tool to change global to local symbols on Mac OS X.
38458NMEDIT=$lt_NMEDIT
38459
38460# Tool to manipulate fat objects and archives on Mac OS X.
38461LIPO=$lt_LIPO
38462
38463# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38464OTOOL=$lt_OTOOL
38465
38466# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38467OTOOL64=$lt_OTOOL64
38468
38469# Old archive suffix (normally "a").
38470libext=$libext
38471
38472# Shared library suffix (normally ".so").
38473shrext_cmds=$lt_shrext_cmds
38474
38475# The commands to extract the exported symbol list from a shared archive.
38476extract_expsyms_cmds=$lt_extract_expsyms_cmds
38477
38478# Variables whose values should be saved in libtool wrapper scripts and
38479# restored at link time.
38480variables_saved_for_relink=$lt_variables_saved_for_relink
38481
38482# Do we need the "lib" prefix for modules?
38483need_lib_prefix=$need_lib_prefix
38484
38485# Do we need a version for libraries?
38486need_version=$need_version
38487
38488# Library versioning type.
38489version_type=$version_type
38490
38491# Shared library runtime path variable.
38492runpath_var=$runpath_var
38493
38494# Shared library path variable.
38495shlibpath_var=$shlibpath_var
38496
38497# Is shlibpath searched before the hard-coded library search path?
38498shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38499
38500# Format of library name prefix.
38501libname_spec=$lt_libname_spec
38502
38503# List of archive names. First name is the real one, the rest are links.
38504# The last name is the one that the linker finds with -lNAME
38505library_names_spec=$lt_library_names_spec
38506
38507# The coded name of the library, if different from the real name.
38508soname_spec=$lt_soname_spec
38509
cristy0c60a692010-11-04 01:09:47 +000038510# Permission mode override for installation of shared libraries.
38511install_override_mode=$lt_install_override_mode
38512
cristy73bd4a52010-10-05 11:24:23 +000038513# Command to use after installation of a shared archive.
38514postinstall_cmds=$lt_postinstall_cmds
38515
38516# Command to use after uninstallation of a shared archive.
38517postuninstall_cmds=$lt_postuninstall_cmds
38518
38519# Commands used to finish a libtool library installation in a directory.
38520finish_cmds=$lt_finish_cmds
38521
38522# As "finish_cmds", except a single script fragment to be evaled but
38523# not shown.
38524finish_eval=$lt_finish_eval
38525
38526# Whether we should hardcode library paths into libraries.
38527hardcode_into_libs=$hardcode_into_libs
38528
38529# Compile-time system search path for libraries.
38530sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38531
38532# Run-time system search path for libraries.
38533sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38534
38535# Whether dlopen is supported.
38536dlopen_support=$enable_dlopen
38537
38538# Whether dlopen of programs is supported.
38539dlopen_self=$enable_dlopen_self
38540
38541# Whether dlopen of statically linked programs is supported.
38542dlopen_self_static=$enable_dlopen_self_static
38543
38544# Commands to strip libraries.
38545old_striplib=$lt_old_striplib
38546striplib=$lt_striplib
38547
38548
38549# The linker used to build libraries.
38550LD=$lt_LD
38551
cristy0c60a692010-11-04 01:09:47 +000038552# How to create reloadable object files.
38553reload_flag=$lt_reload_flag
38554reload_cmds=$lt_reload_cmds
38555
cristy73bd4a52010-10-05 11:24:23 +000038556# Commands used to build an old-style archive.
38557old_archive_cmds=$lt_old_archive_cmds
38558
38559# A language specific compiler.
38560CC=$lt_compiler
38561
38562# Is the compiler the GNU compiler?
38563with_gcc=$GCC
38564
38565# Compiler flag to turn off builtin functions.
38566no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38567
cristy73bd4a52010-10-05 11:24:23 +000038568# Additional compiler flags for building library objects.
38569pic_flag=$lt_lt_prog_compiler_pic
38570
cristyda16f162011-02-19 23:52:17 +000038571# How to pass a linker flag through the compiler.
38572wl=$lt_lt_prog_compiler_wl
38573
cristy73bd4a52010-10-05 11:24:23 +000038574# Compiler flag to prevent dynamic linking.
38575link_static_flag=$lt_lt_prog_compiler_static
38576
38577# Does compiler simultaneously support -c and -o options?
38578compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38579
38580# Whether or not to add -lc for building shared libraries.
38581build_libtool_need_lc=$archive_cmds_need_lc
38582
38583# Whether or not to disallow shared libs when runtime libs are static.
38584allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38585
38586# Compiler flag to allow reflexive dlopens.
38587export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38588
38589# Compiler flag to generate shared objects directly from archives.
38590whole_archive_flag_spec=$lt_whole_archive_flag_spec
38591
38592# Whether the compiler copes with passing no objects directly.
38593compiler_needs_object=$lt_compiler_needs_object
38594
38595# Create an old-style archive from a shared archive.
38596old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38597
38598# Create a temporary old-style archive to link instead of a shared archive.
38599old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38600
38601# Commands used to build a shared archive.
38602archive_cmds=$lt_archive_cmds
38603archive_expsym_cmds=$lt_archive_expsym_cmds
38604
38605# Commands used to build a loadable module if different from building
38606# a shared archive.
38607module_cmds=$lt_module_cmds
38608module_expsym_cmds=$lt_module_expsym_cmds
38609
38610# Whether we are building with GNU ld or not.
38611with_gnu_ld=$lt_with_gnu_ld
38612
38613# Flag that allows shared libraries with undefined symbols to be built.
38614allow_undefined_flag=$lt_allow_undefined_flag
38615
38616# Flag that enforces no undefined symbols.
38617no_undefined_flag=$lt_no_undefined_flag
38618
38619# Flag to hardcode \$libdir into a binary during linking.
38620# This must work even if \$libdir does not exist
38621hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38622
cristy73bd4a52010-10-05 11:24:23 +000038623# Whether we need a single "-rpath" flag with a separated argument.
38624hardcode_libdir_separator=$lt_hardcode_libdir_separator
38625
38626# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38627# DIR into the resulting binary.
38628hardcode_direct=$hardcode_direct
38629
38630# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38631# DIR into the resulting binary and the resulting library dependency is
38632# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38633# library is relocated.
38634hardcode_direct_absolute=$hardcode_direct_absolute
38635
38636# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38637# into the resulting binary.
38638hardcode_minus_L=$hardcode_minus_L
38639
38640# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38641# into the resulting binary.
38642hardcode_shlibpath_var=$hardcode_shlibpath_var
38643
38644# Set to "yes" if building a shared library automatically hardcodes DIR
38645# into the library and all subsequent libraries and executables linked
38646# against it.
38647hardcode_automatic=$hardcode_automatic
38648
38649# Set to yes if linker adds runtime paths of dependent libraries
38650# to runtime path list.
38651inherit_rpath=$inherit_rpath
38652
38653# Whether libtool must link a program against all its dependency libraries.
38654link_all_deplibs=$link_all_deplibs
38655
cristy73bd4a52010-10-05 11:24:23 +000038656# Set to "yes" if exported symbols are required.
38657always_export_symbols=$always_export_symbols
38658
38659# The commands to list exported symbols.
38660export_symbols_cmds=$lt_export_symbols_cmds
38661
38662# Symbols that should not be listed in the preloaded symbols.
38663exclude_expsyms=$lt_exclude_expsyms
38664
38665# Symbols that must always be exported.
38666include_expsyms=$lt_include_expsyms
38667
38668# Commands necessary for linking programs (against libraries) with templates.
38669prelink_cmds=$lt_prelink_cmds
38670
cristyda16f162011-02-19 23:52:17 +000038671# Commands necessary for finishing linking programs.
38672postlink_cmds=$lt_postlink_cmds
38673
cristy73bd4a52010-10-05 11:24:23 +000038674# Specify filename containing input files.
38675file_list_spec=$lt_file_list_spec
38676
38677# How to hardcode a shared library path into an executable.
38678hardcode_action=$hardcode_action
38679
38680# The directories searched by this compiler when creating a shared library.
38681compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38682
38683# Dependencies to place before and after the objects being linked to
38684# create a shared library.
38685predep_objects=$lt_predep_objects
38686postdep_objects=$lt_postdep_objects
38687predeps=$lt_predeps
38688postdeps=$lt_postdeps
38689
38690# The library search path used internally by the compiler when linking
38691# a shared library.
38692compiler_lib_search_path=$lt_compiler_lib_search_path
38693
38694# ### END LIBTOOL CONFIG
38695
38696_LT_EOF
38697
38698 case $host_os in
38699 aix3*)
38700 cat <<\_LT_EOF >> "$cfgfile"
38701# AIX sometimes has problems with the GCC collect2 program. For some
38702# reason, if we set the COLLECT_NAMES environment variable, the problems
38703# vanish in a puff of smoke.
38704if test "X${COLLECT_NAMES+set}" != Xset; then
38705 COLLECT_NAMES=
38706 export COLLECT_NAMES
38707fi
38708_LT_EOF
38709 ;;
38710 esac
38711
38712
38713ltmain="$ac_aux_dir/ltmain.sh"
38714
38715
38716 # We use sed instead of cat because bash on DJGPP gets confused if
38717 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38718 # text mode, it properly converts lines to CR/LF. This bash problem
38719 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038720 sed '$q' "$ltmain" >> "$cfgfile" \
38721 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038722
cristyda16f162011-02-19 23:52:17 +000038723 if test x"$xsi_shell" = xyes; then
38724 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38725func_dirname ()\
38726{\
38727\ case ${1} in\
38728\ */*) func_dirname_result="${1%/*}${2}" ;;\
38729\ * ) func_dirname_result="${3}" ;;\
38730\ esac\
38731} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38732 && mv -f "$cfgfile.tmp" "$cfgfile" \
38733 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38734test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038735
38736
cristyda16f162011-02-19 23:52:17 +000038737 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38738func_basename ()\
38739{\
38740\ func_basename_result="${1##*/}"\
38741} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38742 && mv -f "$cfgfile.tmp" "$cfgfile" \
38743 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38744test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038745
38746
cristyda16f162011-02-19 23:52:17 +000038747 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38748func_dirname_and_basename ()\
38749{\
38750\ case ${1} in\
38751\ */*) func_dirname_result="${1%/*}${2}" ;;\
38752\ * ) func_dirname_result="${3}" ;;\
38753\ esac\
38754\ func_basename_result="${1##*/}"\
38755} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38756 && mv -f "$cfgfile.tmp" "$cfgfile" \
38757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38758test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038759
cristyda16f162011-02-19 23:52:17 +000038760
38761 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38762func_stripname ()\
38763{\
38764\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38765\ # positional parameters, so assign one to ordinary parameter first.\
38766\ func_stripname_result=${3}\
38767\ func_stripname_result=${func_stripname_result#"${1}"}\
38768\ func_stripname_result=${func_stripname_result%"${2}"}\
38769} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38770 && mv -f "$cfgfile.tmp" "$cfgfile" \
38771 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38772test 0 -eq $? || _lt_function_replace_fail=:
38773
38774
38775 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38776func_split_long_opt ()\
38777{\
38778\ func_split_long_opt_name=${1%%=*}\
38779\ func_split_long_opt_arg=${1#*=}\
38780} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38781 && mv -f "$cfgfile.tmp" "$cfgfile" \
38782 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38783test 0 -eq $? || _lt_function_replace_fail=:
38784
38785
38786 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38787func_split_short_opt ()\
38788{\
38789\ func_split_short_opt_arg=${1#??}\
38790\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38791} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38792 && mv -f "$cfgfile.tmp" "$cfgfile" \
38793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38794test 0 -eq $? || _lt_function_replace_fail=:
38795
38796
38797 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38798func_lo2o ()\
38799{\
38800\ case ${1} in\
38801\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38802\ *) func_lo2o_result=${1} ;;\
38803\ esac\
38804} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38805 && mv -f "$cfgfile.tmp" "$cfgfile" \
38806 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38807test 0 -eq $? || _lt_function_replace_fail=:
38808
38809
38810 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38811func_xform ()\
38812{\
38813 func_xform_result=${1%.*}.lo\
38814} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38815 && mv -f "$cfgfile.tmp" "$cfgfile" \
38816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38817test 0 -eq $? || _lt_function_replace_fail=:
38818
38819
38820 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38821func_arith ()\
38822{\
38823 func_arith_result=$(( $* ))\
38824} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38825 && mv -f "$cfgfile.tmp" "$cfgfile" \
38826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38827test 0 -eq $? || _lt_function_replace_fail=:
38828
38829
38830 sed -e '/^func_len ()$/,/^} # func_len /c\
38831func_len ()\
38832{\
38833 func_len_result=${#1}\
38834} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38835 && mv -f "$cfgfile.tmp" "$cfgfile" \
38836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38837test 0 -eq $? || _lt_function_replace_fail=:
38838
38839fi
38840
38841if test x"$lt_shell_append" = xyes; then
38842 sed -e '/^func_append ()$/,/^} # func_append /c\
38843func_append ()\
38844{\
38845 eval "${1}+=\\${2}"\
38846} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38847 && mv -f "$cfgfile.tmp" "$cfgfile" \
38848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38849test 0 -eq $? || _lt_function_replace_fail=:
38850
38851
38852 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38853func_append_quoted ()\
38854{\
38855\ func_quote_for_eval "${2}"\
38856\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38857} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38858 && mv -f "$cfgfile.tmp" "$cfgfile" \
38859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38860test 0 -eq $? || _lt_function_replace_fail=:
38861
38862
38863 # Save a `func_append' function call where possible by direct use of '+='
38864 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38865 && mv -f "$cfgfile.tmp" "$cfgfile" \
38866 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38867 test 0 -eq $? || _lt_function_replace_fail=:
38868else
38869 # Save a `func_append' function call even when '+=' is not available
38870 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38871 && mv -f "$cfgfile.tmp" "$cfgfile" \
38872 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38873 test 0 -eq $? || _lt_function_replace_fail=:
38874fi
38875
38876if test x"$_lt_function_replace_fail" = x":"; then
38877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38878$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38879fi
38880
38881
38882 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038883 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38884 chmod +x "$ofile"
38885
38886
38887 cat <<_LT_EOF >> "$ofile"
38888
38889# ### BEGIN LIBTOOL TAG CONFIG: CXX
38890
38891# The linker used to build libraries.
38892LD=$lt_LD_CXX
38893
cristy0c60a692010-11-04 01:09:47 +000038894# How to create reloadable object files.
38895reload_flag=$lt_reload_flag_CXX
38896reload_cmds=$lt_reload_cmds_CXX
38897
cristy73bd4a52010-10-05 11:24:23 +000038898# Commands used to build an old-style archive.
38899old_archive_cmds=$lt_old_archive_cmds_CXX
38900
38901# A language specific compiler.
38902CC=$lt_compiler_CXX
38903
38904# Is the compiler the GNU compiler?
38905with_gcc=$GCC_CXX
38906
38907# Compiler flag to turn off builtin functions.
38908no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38909
cristy73bd4a52010-10-05 11:24:23 +000038910# Additional compiler flags for building library objects.
38911pic_flag=$lt_lt_prog_compiler_pic_CXX
38912
cristyda16f162011-02-19 23:52:17 +000038913# How to pass a linker flag through the compiler.
38914wl=$lt_lt_prog_compiler_wl_CXX
38915
cristy73bd4a52010-10-05 11:24:23 +000038916# Compiler flag to prevent dynamic linking.
38917link_static_flag=$lt_lt_prog_compiler_static_CXX
38918
38919# Does compiler simultaneously support -c and -o options?
38920compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38921
38922# Whether or not to add -lc for building shared libraries.
38923build_libtool_need_lc=$archive_cmds_need_lc_CXX
38924
38925# Whether or not to disallow shared libs when runtime libs are static.
38926allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38927
38928# Compiler flag to allow reflexive dlopens.
38929export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38930
38931# Compiler flag to generate shared objects directly from archives.
38932whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38933
38934# Whether the compiler copes with passing no objects directly.
38935compiler_needs_object=$lt_compiler_needs_object_CXX
38936
38937# Create an old-style archive from a shared archive.
38938old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38939
38940# Create a temporary old-style archive to link instead of a shared archive.
38941old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38942
38943# Commands used to build a shared archive.
38944archive_cmds=$lt_archive_cmds_CXX
38945archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38946
38947# Commands used to build a loadable module if different from building
38948# a shared archive.
38949module_cmds=$lt_module_cmds_CXX
38950module_expsym_cmds=$lt_module_expsym_cmds_CXX
38951
38952# Whether we are building with GNU ld or not.
38953with_gnu_ld=$lt_with_gnu_ld_CXX
38954
38955# Flag that allows shared libraries with undefined symbols to be built.
38956allow_undefined_flag=$lt_allow_undefined_flag_CXX
38957
38958# Flag that enforces no undefined symbols.
38959no_undefined_flag=$lt_no_undefined_flag_CXX
38960
38961# Flag to hardcode \$libdir into a binary during linking.
38962# This must work even if \$libdir does not exist
38963hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38964
cristy73bd4a52010-10-05 11:24:23 +000038965# Whether we need a single "-rpath" flag with a separated argument.
38966hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38967
38968# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38969# DIR into the resulting binary.
38970hardcode_direct=$hardcode_direct_CXX
38971
38972# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38973# DIR into the resulting binary and the resulting library dependency is
38974# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38975# library is relocated.
38976hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38977
38978# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38979# into the resulting binary.
38980hardcode_minus_L=$hardcode_minus_L_CXX
38981
38982# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38983# into the resulting binary.
38984hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38985
38986# Set to "yes" if building a shared library automatically hardcodes DIR
38987# into the library and all subsequent libraries and executables linked
38988# against it.
38989hardcode_automatic=$hardcode_automatic_CXX
38990
38991# Set to yes if linker adds runtime paths of dependent libraries
38992# to runtime path list.
38993inherit_rpath=$inherit_rpath_CXX
38994
38995# Whether libtool must link a program against all its dependency libraries.
38996link_all_deplibs=$link_all_deplibs_CXX
38997
cristy73bd4a52010-10-05 11:24:23 +000038998# Set to "yes" if exported symbols are required.
38999always_export_symbols=$always_export_symbols_CXX
39000
39001# The commands to list exported symbols.
39002export_symbols_cmds=$lt_export_symbols_cmds_CXX
39003
39004# Symbols that should not be listed in the preloaded symbols.
39005exclude_expsyms=$lt_exclude_expsyms_CXX
39006
39007# Symbols that must always be exported.
39008include_expsyms=$lt_include_expsyms_CXX
39009
39010# Commands necessary for linking programs (against libraries) with templates.
39011prelink_cmds=$lt_prelink_cmds_CXX
39012
cristyda16f162011-02-19 23:52:17 +000039013# Commands necessary for finishing linking programs.
39014postlink_cmds=$lt_postlink_cmds_CXX
39015
cristy73bd4a52010-10-05 11:24:23 +000039016# Specify filename containing input files.
39017file_list_spec=$lt_file_list_spec_CXX
39018
39019# How to hardcode a shared library path into an executable.
39020hardcode_action=$hardcode_action_CXX
39021
39022# The directories searched by this compiler when creating a shared library.
39023compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39024
39025# Dependencies to place before and after the objects being linked to
39026# create a shared library.
39027predep_objects=$lt_predep_objects_CXX
39028postdep_objects=$lt_postdep_objects_CXX
39029predeps=$lt_predeps_CXX
39030postdeps=$lt_postdeps_CXX
39031
39032# The library search path used internally by the compiler when linking
39033# a shared library.
39034compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39035
39036# ### END LIBTOOL TAG CONFIG: CXX
39037_LT_EOF
39038
39039 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039040 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039041 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039042 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039043 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39044 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39045
39046 esac
39047done # for ac_tag
39048
39049
cristy8b350f62009-11-15 23:12:43 +000039050as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039051_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039052ac_clean_files=$ac_clean_files_save
39053
39054test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039055 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039056
39057
39058# configure is writing to config.log, and then calls config.status.
39059# config.status does its own redirection, appending to config.log.
39060# Unfortunately, on DOS this fails, as config.log is still kept open
39061# by configure, so config.status won't be able to write to it; its
39062# output is simply discarded. So we exec the FD to /dev/null,
39063# effectively closing config.log, so it can be properly (re)opened and
39064# appended to by config.status. When coming back to configure, we
39065# need to make the FD available again.
39066if test "$no_create" != yes; then
39067 ac_cs_success=:
39068 ac_config_status_args=
39069 test "$silent" = yes &&
39070 ac_config_status_args="$ac_config_status_args --quiet"
39071 exec 5>/dev/null
39072 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39073 exec 5>>config.log
39074 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39075 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039076 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039077fi
39078if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039080$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39081fi
39082
39083
39084rm -f magick-version
39085
cristy430a7312010-01-21 20:44:04 +000039086result_dejavu_font_dir='none'
39087if test "${dejavu_font_dir}x" != 'x'; then
39088 result_dejavu_font_dir=$dejavu_font_dir
39089fi
39090
cristy3ed852e2009-09-05 21:47:34 +000039091result_ghostscript_font_dir='none'
39092if test "${ghostscript_font_dir}x" != 'x'; then
39093 result_ghostscript_font_dir=$ghostscript_font_dir
39094fi
39095
39096result_windows_font_dir='none'
39097if test "${windows_font_dir}x" != 'x'; then
39098 result_windows_font_dir=${windows_font_dir}
39099fi
39100
cristyad38abe2012-12-23 23:03:21 +000039101{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000039102ImageMagick is configured as follows. Please verify that this configuration
39103matches your expectations.
39104
39105Host system type: $host
39106Build system type: $build
39107
39108 Option Value
39109-------------------------------------------------------------------------------
39110Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39111Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039112Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039113GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39114Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39115High Dynamic Range Imagery
39116 --enable-hdri=$enable_hdri $enable_hdri
39117
39118Delegate Configuration:
39119BZLIB --with-bzlib=$with_bzlib $have_bzlib
39120Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039121Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039122DJVU --with-djvu=$with_djvu $have_djvu
39123DPS --with-dps=$with_dps $have_dps
39124FFTW --with-fftw=$with_fftw $have_fftw
39125FlashPIX --with-fpx=$with_fpx $have_fpx
39126FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39127FreeType --with-freetype=$with_freetype $have_freetype
39128GhostPCL None $PCLDelegate ($PCLVersion)
39129GhostXPS None $XPSDelegate ($XPSVersion)
39130Ghostscript None $PSDelegate ($GSVersion)
39131Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39132Ghostscript lib --with-gslib=$with_gslib $have_gslib
39133Graphviz --with-gvc=$with_gvc $have_gvc
39134JBIG --with-jbig=$with_jbig $have_jbig
39135JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39136JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039137LCMS v1 --with-lcms=$with_lcms $have_lcms
39138LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039139LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039140LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039141LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039142LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039143Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39144OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039145PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039146PERL --with-perl=$with_perl $have_perl
39147PNG --with-png=$with_png $have_png
39148RSVG --with-rsvg=$with_rsvg $have_rsvg
39149TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039150WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039151Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039152WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039153X11 --with-x=$with_x $have_x
39154XML --with-xml=$with_xml $have_xml
39155ZLIB --with-zlib=$with_zlib $have_zlib
39156
39157X11 Configuration:
39158 X_CFLAGS = $X_CFLAGS
39159 X_PRE_LIBS = $X_PRE_LIBS
39160 X_LIBS = $X_LIBS
39161 X_EXTRA_LIBS = $X_EXTRA_LIBS
39162
39163Options used to compile and link:
39164 PREFIX = $PREFIX_DIR
39165 EXEC-PREFIX = $EXEC_PREFIX_DIR
39166 VERSION = $PACKAGE_VERSION
39167 CC = $CC
39168 CFLAGS = $CFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039169 CPPFLAGS = $CPPFLAGS
39170 PCFLAGS = $PCFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039171 DEFS = $DEFS
39172 LDFLAGS = $LDFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039173 LIBS = $LIBS
cristy3ed852e2009-09-05 21:47:34 +000039174 CXX = $CXX
39175 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039176 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039177 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000039178" >&5
cristyad38abe2012-12-23 23:03:21 +000039179$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000039180ImageMagick is configured as follows. Please verify that this configuration
39181matches your expectations.
39182
39183Host system type: $host
39184Build system type: $build
39185
39186 Option Value
39187-------------------------------------------------------------------------------
39188Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39189Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039190Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039191GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39192Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39193High Dynamic Range Imagery
39194 --enable-hdri=$enable_hdri $enable_hdri
39195
39196Delegate Configuration:
39197BZLIB --with-bzlib=$with_bzlib $have_bzlib
39198Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039199Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039200DJVU --with-djvu=$with_djvu $have_djvu
39201DPS --with-dps=$with_dps $have_dps
39202FFTW --with-fftw=$with_fftw $have_fftw
39203FlashPIX --with-fpx=$with_fpx $have_fpx
39204FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39205FreeType --with-freetype=$with_freetype $have_freetype
39206GhostPCL None $PCLDelegate ($PCLVersion)
39207GhostXPS None $XPSDelegate ($XPSVersion)
39208Ghostscript None $PSDelegate ($GSVersion)
39209Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39210Ghostscript lib --with-gslib=$with_gslib $have_gslib
39211Graphviz --with-gvc=$with_gvc $have_gvc
39212JBIG --with-jbig=$with_jbig $have_jbig
39213JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39214JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039215LCMS v1 --with-lcms=$with_lcms $have_lcms
39216LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039217LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039218LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039219LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039220LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039221Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39222OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039223PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039224PERL --with-perl=$with_perl $have_perl
39225PNG --with-png=$with_png $have_png
39226RSVG --with-rsvg=$with_rsvg $have_rsvg
39227TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039228WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039229Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039230WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039231X11 --with-x=$with_x $have_x
39232XML --with-xml=$with_xml $have_xml
39233ZLIB --with-zlib=$with_zlib $have_zlib
39234
39235X11 Configuration:
39236 X_CFLAGS = $X_CFLAGS
39237 X_PRE_LIBS = $X_PRE_LIBS
39238 X_LIBS = $X_LIBS
39239 X_EXTRA_LIBS = $X_EXTRA_LIBS
39240
39241Options used to compile and link:
39242 PREFIX = $PREFIX_DIR
39243 EXEC-PREFIX = $EXEC_PREFIX_DIR
39244 VERSION = $PACKAGE_VERSION
39245 CC = $CC
39246 CFLAGS = $CFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039247 CPPFLAGS = $CPPFLAGS
39248 PCFLAGS = $PCFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039249 DEFS = $DEFS
39250 LDFLAGS = $LDFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039251 LIBS = $LIBS
cristy3ed852e2009-09-05 21:47:34 +000039252 CXX = $CXX
39253 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039254 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039255 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000039256" >&6; }