blob: ff3d072a215f47d183c8982b3800d498b6bf609e [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
cristy5ac9ac82010-07-29 13:24:24 +0000695UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000697SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000699RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700RMDelegate
701RLEEncodeDelegate
702PSDelegate
703POVDelegate
704PGPDecodeDelegate
705PCLDelegate
706MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000707MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708MPEGEncodeDelegate
709MPEGDecodeDelegate
710MANDelegate
711LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000712LPRDelegate
713LPDelegate
714ILBMEncodeDelegate
715ILBMDecodeDelegate
716HTMLDecodeDelegate
717HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718GnuplotDecodeDelegate
719MogrifyDelegate
720DisplayDelegate
721ConvertDelegate
722FIGDecodeDelegate
723EditorDelegate
724EchoDelegate
725DVIDecodeDelegate
726GVCDecodeDelegate
727DNGDecodeDelegate
728CatDelegate
729CGMDecodeDelegate
730BrowseDelegate
731BZIPDelegate
732BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000733AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000734SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000735SHAREARCH_RELATIVE_PATH
736SHAREARCH_DIRNAME
737SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000738SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000739CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000740DOCUMENTATION_PATH
741FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000742FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000743CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744CODER_DIRNAME
745MODULES_PATH
746MODULES_RELATIVE_PATH
747MODULES_DIRNAME
748MODULES_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000749LIBRARY_PATH
750EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000751INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000752INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000753PERLMAINCC
754XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000755XML_DELEGATE_FALSE
756XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000757xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000758WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000759WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000760WMF_DELEGATE_FALSE
761WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000762WEBP_LIBS
763WEBP_DELEGATE_FALSE
764WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766TIFF_DELEGATE_FALSE
767TIFF_DELEGATE_TRUE
768CAIRO_DELEGATE_FALSE
769CAIRO_DELEGATE_TRUE
770RSVG_DELEGATE_FALSE
771RSVG_DELEGATE_TRUE
772CAIRO_SVG_LIBS
773CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000774RSVG_LIBS
775RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000776PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777PNG_DELEGATE_FALSE
778PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000779PANGOCAIRO_DELEGATE_FALSE
780PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000781PANGO_DELEGATE_FALSE
782PANGO_DELEGATE_TRUE
783PANGO_LIBS
784PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000785OPENEXR_DELEGATE_FALSE
786OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787OPENEXR_LIBS
788OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000789LZMA_DELEGATE_FALSE
790LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000791LZMA_LIBS
792LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000793LQR_DELEGATE_FALSE
794LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795LQR_LIBS
796LQR_CFLAGS
797LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798LCMS_DELEGATE_FALSE
799LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801JP2_DELEGATE_FALSE
802JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804JPEG_DELEGATE_FALSE
805JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807JBIG_DELEGATE_FALSE
808JBIG_DELEGATE_TRUE
809GVC_DELEGATE_FALSE
810GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000811GVC_LIBS
812GVC_CFLAGS
813GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814GS_DELEGATE_FALSE
815GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000816FREETYPE_DELEGATE_FALSE
817FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000818FREETYPE_LIBS
819FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000820FONTCONFIG_DELEGATE_FALSE
821FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000822FONTCONFIG_LIBS
823FONTCONFIG_CFLAGS
824FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825FPX_DELEGATE_FALSE
826FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000827FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828FFTW_DELEGATE_FALSE
829FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831DJVU_DELEGATE_FALSE
832DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834DPS_DELEGATE_FALSE
835DPS_DELEGATE_TRUE
836AUTOTRACE_DELEGATE_FALSE
837AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000838AUTOTRACE_LIBS
839AUTOTRACE_CFLAGS
840LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000841WITH_LTDL_FALSE
842WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844ZLIB_DELEGATE_FALSE
845ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846XEXT_LIBS
847X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000848X11_DELEGATE_FALSE
849X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000850X_EXTRA_LIBS
851X_LIBS
852X_PRE_LIBS
853X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000854XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000855BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000856BZLIB_DELEGATE_FALSE
857BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000858CCMALLOCDelegate
859UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000860HasUMEM_FALSE
861HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862THREAD_LIBS
863GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000864WITH_MAGICK_PLUS_PLUS_FALSE
865WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000866OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000867MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000868POW_LIB
869LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000870UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000871UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000872UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000873UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000874UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000875UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000876INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000877INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000878UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000879UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000880INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000881INT32_T
882UINT16_T
883INT16_T
884UINT8_T
885INT8_T
886LIBRARY_EXTRA_CPPFLAGS
887MODULE_EXTRA_CPPFLAGS
888LIBSTDCLDFLAGS
889PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000890MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000891MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000892QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000893LEGACY_SUPPORT_FALSE
894LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000895MAINT
896MAINTAINER_MODE_FALSE
897MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000898MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000899WITH_MODULES_FALSE
900WITH_MODULES_TRUE
901WITH_SHARED_LIBS_FALSE
902WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000903LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000904CXXCPP
905OTOOL64
906OTOOL
907LIPO
908NMEDIT
909DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000910MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000911RANLIB
cristyda16f162011-02-19 23:52:17 +0000912ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000913AR
914NM
915ac_ct_DUMPBIN
916DUMPBIN
917LIBTOOL
918OBJDUMP
919DLLTOOL
920AS
cristy3ed852e2009-09-05 21:47:34 +0000921LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000922CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000923CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000924OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000925PTHREAD_CFLAGS
926PTHREAD_LIBS
927PTHREAD_CC
928ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000929SHAREARCH_DIR
930INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000931WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000932USING_CL_FALSE
933USING_CL_TRUE
934CYGWIN_BUILD_FALSE
935CYGWIN_BUILD_TRUE
936WIN32_NATIVE_BUILD_FALSE
937WIN32_NATIVE_BUILD_TRUE
938WINGDI32_DELEGATE_FALSE
939WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000940GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000941HAVE_LD_VERSION_SCRIPT_FALSE
942HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000943PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000944PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000945LN_S
cristy3ed852e2009-09-05 21:47:34 +0000946LD
cristy73bd4a52010-10-05 11:24:23 +0000947FGREP
948SED
949am__fastdepCXX_FALSE
950am__fastdepCXX_TRUE
951CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000952ac_ct_CXX
953CXXFLAGS
954CXX
cristya0b81c32010-01-22 02:54:33 +0000955EGREP
956GREP
957CPP
cristy73bd4a52010-10-05 11:24:23 +0000958am__fastdepCC_FALSE
959am__fastdepCC_TRUE
960CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000961am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000962AMDEPBACKSLASH
963AMDEP_FALSE
964AMDEP_TRUE
965am__quote
966am__include
967DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000968OBJEXT
969EXEEXT
970ac_ct_CC
971CPPFLAGS
972LDFLAGS
973CFLAGS
974CC
975DIRSEP
976MAGICK_FILTER_MODULE_PATH
977MAGICK_CONFIGURE_BUILD_PATH
978MAGICK_CONFIGURE_SRC_PATH
979MAGICK_CODER_MODULE_PATH
980MAN_DIR
981INFO_DIR
982PERSISTINCLUDE_DIR
983INCLUDE_DIR
984LIB_DIR
985LOCALSTATE_DIR
986SHAREDSTATE_DIR
987SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000988DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000989DATA_DIR
990LIBEXEC_DIR
991SBIN_DIR
992BIN_DIR
993EXEC_PREFIX_DIR
994PREFIX_DIR
995CONFIG_STATUS_DEPENDENCIES
996MAGICK_LIB_VERSION_NUMBER
997MAGICK_LIB_VERSION_TEXT
998MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000999AM_BACKSLASH
1000AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001001AM_DEFAULT_V
1002AM_V
cristy73bd4a52010-10-05 11:24:23 +00001003am__untar
1004am__tar
1005AMTAR
1006am__leading_dot
1007SET_MAKE
1008AWK
1009mkdir_p
1010MKDIR_P
1011INSTALL_STRIP_PROGRAM
1012STRIP
1013install_sh
1014MAKEINFO
1015AUTOHEADER
1016AUTOMAKE
1017AUTOCONF
1018ACLOCAL
1019VERSION
1020PACKAGE
1021CYGPATH_W
1022am__isrc
1023INSTALL_DATA
1024INSTALL_SCRIPT
1025INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001026PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001027PACKAGE_RELEASE_DATE
1028PACKAGE_LIB_VERSION_NUMBER
1029PACKAGE_LIB_VERSION
1030PACKAGE_CHANGE_DATE
1031PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001032PACKAGE_PERL_VERSION
cristybab87c32010-02-09 20:54:22 +00001033MAGICK_LIBRARY_VERSION_INFO
1034MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001035MAGICK_LIBRARY_AGE
1036MAGICK_LIBRARY_REVISION
1037MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001038MAGICK_SVN_REVISION
1039MAGICK_VERSION
1040MAGICK_PATCHLEVEL_VERSION
1041MAGICK_MICRO_VERSION
1042MAGICK_MINOR_VERSION
1043MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001044MAGICK_TARGET_OS
1045MAGICK_TARGET_VENDOR
1046MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001047target_os
1048target_vendor
1049target_cpu
1050target
1051host_os
1052host_vendor
1053host_cpu
1054host
1055build_os
1056build_vendor
1057build_cpu
1058build
1059CONFIGURE_ARGS
1060DISTCHECK_CONFIG_FLAGS
1061target_alias
1062host_alias
1063build_alias
1064LIBS
1065ECHO_T
1066ECHO_N
1067ECHO_C
1068DEFS
1069mandir
1070localedir
1071libdir
1072psdir
1073pdfdir
1074dvidir
1075htmldir
1076infodir
1077docdir
1078oldincludedir
1079includedir
1080localstatedir
1081sharedstatedir
1082sysconfdir
1083datadir
1084datarootdir
1085libexecdir
1086sbindir
1087bindir
1088program_transform_name
1089prefix
1090exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001091PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001092PACKAGE_BUGREPORT
1093PACKAGE_STRING
1094PACKAGE_VERSION
1095PACKAGE_TARNAME
1096PACKAGE_NAME
1097PATH_SEPARATOR
1098SHELL'
1099ac_subst_files=''
1100ac_user_opts='
1101enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001102enable_silent_rules
1103enable_dependency_tracking
1104with_gnu_ld
1105with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001106with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001107enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001108enable_bounds_checking
1109enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001110with_includearch_dir
1111with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001112with_threads
1113enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001114enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001115enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001116enable_shared
1117enable_static
1118with_pic
1119enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001120with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001121enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001122with_modules
1123enable_delegate_build
1124enable_deprecated
1125enable_installed
1126enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001127enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001128enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001129enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001130enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001131enable_ccmalloc
1132enable_efence
1133enable_prof
1134enable_gprof
1135enable_gcov
1136with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001137enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001138with_quantum_depth
1139with_cache
1140with_frozenpaths
1141with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001142with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001143with_perl
1144with_perl_options
1145with_umem
1146with_libstdc
1147with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001148with_x
cristy3ed852e2009-09-05 21:47:34 +00001149with_zlib
1150with_autotrace
1151with_dps
1152with_djvu
cristy430a7312010-01-21 20:44:04 +00001153with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001154with_fftw
1155with_fpx
1156with_fontconfig
1157with_freetype
1158with_gslib
1159with_fontpath
1160with_gs_font_dir
1161with_gvc
1162with_jbig
1163with_jpeg
1164with_jp2
1165with_lcms
cristy71203402010-06-18 13:12:03 +00001166with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001167with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001168with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001169with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001170with_pango
cristy3ed852e2009-09-05 21:47:34 +00001171with_png
1172with_rsvg
1173with_tiff
cristyb1860752011-03-14 00:27:46 +00001174with_webp
cristy3ed852e2009-09-05 21:47:34 +00001175with_windows_font_dir
1176with_wmf
1177with_xml
1178'
1179 ac_precious_vars='build_alias
1180host_alias
1181target_alias
1182CC
1183CFLAGS
1184LDFLAGS
1185LIBS
1186CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001187CPP
cristy3ed852e2009-09-05 21:47:34 +00001188CXX
1189CXXFLAGS
1190CCC
cristy73bd4a52010-10-05 11:24:23 +00001191PKG_CONFIG
1192CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001193XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001194AUTOTRACE_CFLAGS
1195AUTOTRACE_LIBS
1196FONTCONFIG_CFLAGS
1197FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001198FREETYPE_CFLAGS
1199FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001200GVC_CFLAGS
1201GVC_LIBS
1202LQR_CFLAGS
1203LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001204LZMA_CFLAGS
1205LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001206OPENEXR_CFLAGS
1207OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001208PANGO_CFLAGS
1209PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001210RSVG_CFLAGS
1211RSVG_LIBS
1212CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001213CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001214
1215
1216# Initialize some variables set by options.
1217ac_init_help=
1218ac_init_version=false
1219ac_unrecognized_opts=
1220ac_unrecognized_sep=
1221# The variables have the same names as the options, with
1222# dashes changed to underlines.
1223cache_file=/dev/null
1224exec_prefix=NONE
1225no_create=
1226no_recursion=
1227prefix=NONE
1228program_prefix=NONE
1229program_suffix=NONE
1230program_transform_name=s,x,x,
1231silent=
1232site=
1233srcdir=
1234verbose=
1235x_includes=NONE
1236x_libraries=NONE
1237
1238# Installation directory options.
1239# These are left unexpanded so users can "make install exec_prefix=/foo"
1240# and all the variables that are supposed to be based on exec_prefix
1241# by default will actually change.
1242# Use braces instead of parens because sh, perl, etc. also accept them.
1243# (The list follows the same order as the GNU Coding Standards.)
1244bindir='${exec_prefix}/bin'
1245sbindir='${exec_prefix}/sbin'
1246libexecdir='${exec_prefix}/libexec'
1247datarootdir='${prefix}/share'
1248datadir='${datarootdir}'
1249sysconfdir='${prefix}/etc'
1250sharedstatedir='${prefix}/com'
1251localstatedir='${prefix}/var'
1252includedir='${prefix}/include'
1253oldincludedir='/usr/include'
1254docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1255infodir='${datarootdir}/info'
1256htmldir='${docdir}'
1257dvidir='${docdir}'
1258pdfdir='${docdir}'
1259psdir='${docdir}'
1260libdir='${exec_prefix}/lib'
1261localedir='${datarootdir}/locale'
1262mandir='${datarootdir}/man'
1263
1264ac_prev=
1265ac_dashdash=
1266for ac_option
1267do
1268 # If the previous option needs an argument, assign it.
1269 if test -n "$ac_prev"; then
1270 eval $ac_prev=\$ac_option
1271 ac_prev=
1272 continue
1273 fi
1274
1275 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001276 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1277 *=) ac_optarg= ;;
1278 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001279 esac
1280
1281 # Accept the important Cygnus configure options, so we can diagnose typos.
1282
1283 case $ac_dashdash$ac_option in
1284 --)
1285 ac_dashdash=yes ;;
1286
1287 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1288 ac_prev=bindir ;;
1289 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1290 bindir=$ac_optarg ;;
1291
1292 -build | --build | --buil | --bui | --bu)
1293 ac_prev=build_alias ;;
1294 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1295 build_alias=$ac_optarg ;;
1296
1297 -cache-file | --cache-file | --cache-fil | --cache-fi \
1298 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1299 ac_prev=cache_file ;;
1300 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1301 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1302 cache_file=$ac_optarg ;;
1303
1304 --config-cache | -C)
1305 cache_file=config.cache ;;
1306
1307 -datadir | --datadir | --datadi | --datad)
1308 ac_prev=datadir ;;
1309 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1310 datadir=$ac_optarg ;;
1311
1312 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1313 | --dataroo | --dataro | --datar)
1314 ac_prev=datarootdir ;;
1315 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1316 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1317 datarootdir=$ac_optarg ;;
1318
1319 -disable-* | --disable-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001323 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1327 *"
1328"enable_$ac_useropt"
1329"*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1332 esac
1333 eval enable_$ac_useropt=no ;;
1334
1335 -docdir | --docdir | --docdi | --doc | --do)
1336 ac_prev=docdir ;;
1337 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1338 docdir=$ac_optarg ;;
1339
1340 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1341 ac_prev=dvidir ;;
1342 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1343 dvidir=$ac_optarg ;;
1344
1345 -enable-* | --enable-*)
1346 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001349 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1353 *"
1354"enable_$ac_useropt"
1355"*) ;;
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1358 esac
1359 eval enable_$ac_useropt=\$ac_optarg ;;
1360
1361 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1362 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1363 | --exec | --exe | --ex)
1364 ac_prev=exec_prefix ;;
1365 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1366 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1367 | --exec=* | --exe=* | --ex=*)
1368 exec_prefix=$ac_optarg ;;
1369
1370 -gas | --gas | --ga | --g)
1371 # Obsolete; use --with-gas.
1372 with_gas=yes ;;
1373
1374 -help | --help | --hel | --he | -h)
1375 ac_init_help=long ;;
1376 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1377 ac_init_help=recursive ;;
1378 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1379 ac_init_help=short ;;
1380
1381 -host | --host | --hos | --ho)
1382 ac_prev=host_alias ;;
1383 -host=* | --host=* | --hos=* | --ho=*)
1384 host_alias=$ac_optarg ;;
1385
1386 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1387 ac_prev=htmldir ;;
1388 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1389 | --ht=*)
1390 htmldir=$ac_optarg ;;
1391
1392 -includedir | --includedir | --includedi | --included | --include \
1393 | --includ | --inclu | --incl | --inc)
1394 ac_prev=includedir ;;
1395 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1396 | --includ=* | --inclu=* | --incl=* | --inc=*)
1397 includedir=$ac_optarg ;;
1398
1399 -infodir | --infodir | --infodi | --infod | --info | --inf)
1400 ac_prev=infodir ;;
1401 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1402 infodir=$ac_optarg ;;
1403
1404 -libdir | --libdir | --libdi | --libd)
1405 ac_prev=libdir ;;
1406 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1407 libdir=$ac_optarg ;;
1408
1409 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1410 | --libexe | --libex | --libe)
1411 ac_prev=libexecdir ;;
1412 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1413 | --libexe=* | --libex=* | --libe=*)
1414 libexecdir=$ac_optarg ;;
1415
1416 -localedir | --localedir | --localedi | --localed | --locale)
1417 ac_prev=localedir ;;
1418 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1419 localedir=$ac_optarg ;;
1420
1421 -localstatedir | --localstatedir | --localstatedi | --localstated \
1422 | --localstate | --localstat | --localsta | --localst | --locals)
1423 ac_prev=localstatedir ;;
1424 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1425 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1426 localstatedir=$ac_optarg ;;
1427
1428 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1429 ac_prev=mandir ;;
1430 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1431 mandir=$ac_optarg ;;
1432
1433 -nfp | --nfp | --nf)
1434 # Obsolete; use --without-fp.
1435 with_fp=no ;;
1436
1437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1438 | --no-cr | --no-c | -n)
1439 no_create=yes ;;
1440
1441 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1442 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1443 no_recursion=yes ;;
1444
1445 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1446 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1447 | --oldin | --oldi | --old | --ol | --o)
1448 ac_prev=oldincludedir ;;
1449 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1450 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1451 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1452 oldincludedir=$ac_optarg ;;
1453
1454 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1455 ac_prev=prefix ;;
1456 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1457 prefix=$ac_optarg ;;
1458
1459 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1460 | --program-pre | --program-pr | --program-p)
1461 ac_prev=program_prefix ;;
1462 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1463 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1464 program_prefix=$ac_optarg ;;
1465
1466 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1467 | --program-suf | --program-su | --program-s)
1468 ac_prev=program_suffix ;;
1469 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1470 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1471 program_suffix=$ac_optarg ;;
1472
1473 -program-transform-name | --program-transform-name \
1474 | --program-transform-nam | --program-transform-na \
1475 | --program-transform-n | --program-transform- \
1476 | --program-transform | --program-transfor \
1477 | --program-transfo | --program-transf \
1478 | --program-trans | --program-tran \
1479 | --progr-tra | --program-tr | --program-t)
1480 ac_prev=program_transform_name ;;
1481 -program-transform-name=* | --program-transform-name=* \
1482 | --program-transform-nam=* | --program-transform-na=* \
1483 | --program-transform-n=* | --program-transform-=* \
1484 | --program-transform=* | --program-transfor=* \
1485 | --program-transfo=* | --program-transf=* \
1486 | --program-trans=* | --program-tran=* \
1487 | --progr-tra=* | --program-tr=* | --program-t=*)
1488 program_transform_name=$ac_optarg ;;
1489
1490 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1491 ac_prev=pdfdir ;;
1492 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1493 pdfdir=$ac_optarg ;;
1494
1495 -psdir | --psdir | --psdi | --psd | --ps)
1496 ac_prev=psdir ;;
1497 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1498 psdir=$ac_optarg ;;
1499
1500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1501 | -silent | --silent | --silen | --sile | --sil)
1502 silent=yes ;;
1503
1504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1505 ac_prev=sbindir ;;
1506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1507 | --sbi=* | --sb=*)
1508 sbindir=$ac_optarg ;;
1509
1510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1512 | --sharedst | --shareds | --shared | --share | --shar \
1513 | --sha | --sh)
1514 ac_prev=sharedstatedir ;;
1515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1518 | --sha=* | --sh=*)
1519 sharedstatedir=$ac_optarg ;;
1520
1521 -site | --site | --sit)
1522 ac_prev=site ;;
1523 -site=* | --site=* | --sit=*)
1524 site=$ac_optarg ;;
1525
1526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1527 ac_prev=srcdir ;;
1528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1529 srcdir=$ac_optarg ;;
1530
1531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1532 | --syscon | --sysco | --sysc | --sys | --sy)
1533 ac_prev=sysconfdir ;;
1534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1536 sysconfdir=$ac_optarg ;;
1537
1538 -target | --target | --targe | --targ | --tar | --ta | --t)
1539 ac_prev=target_alias ;;
1540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1541 target_alias=$ac_optarg ;;
1542
1543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1544 verbose=yes ;;
1545
1546 -version | --version | --versio | --versi | --vers | -V)
1547 ac_init_version=: ;;
1548
1549 -with-* | --with-*)
1550 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1551 # Reject names that are not valid shell variable names.
1552 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001553 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001554 ac_useropt_orig=$ac_useropt
1555 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1556 case $ac_user_opts in
1557 *"
1558"with_$ac_useropt"
1559"*) ;;
1560 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1561 ac_unrecognized_sep=', ';;
1562 esac
1563 eval with_$ac_useropt=\$ac_optarg ;;
1564
1565 -without-* | --without-*)
1566 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1567 # Reject names that are not valid shell variable names.
1568 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001569 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001570 ac_useropt_orig=$ac_useropt
1571 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1572 case $ac_user_opts in
1573 *"
1574"with_$ac_useropt"
1575"*) ;;
1576 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1577 ac_unrecognized_sep=', ';;
1578 esac
1579 eval with_$ac_useropt=no ;;
1580
1581 --x)
1582 # Obsolete; use --with-x.
1583 with_x=yes ;;
1584
1585 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1586 | --x-incl | --x-inc | --x-in | --x-i)
1587 ac_prev=x_includes ;;
1588 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1589 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1590 x_includes=$ac_optarg ;;
1591
1592 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1593 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1594 ac_prev=x_libraries ;;
1595 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1596 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1597 x_libraries=$ac_optarg ;;
1598
cristy98dddb52010-11-04 00:30:15 +00001599 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1600Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001601 ;;
1602
1603 *=*)
1604 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1605 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001606 case $ac_envvar in #(
1607 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001608 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001609 esac
cristy3ed852e2009-09-05 21:47:34 +00001610 eval $ac_envvar=\$ac_optarg
1611 export $ac_envvar ;;
1612
1613 *)
1614 # FIXME: should be removed in autoconf 3.0.
1615 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1616 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1617 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001618 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001619 ;;
1620
1621 esac
1622done
1623
1624if test -n "$ac_prev"; then
1625 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001626 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001627fi
1628
1629if test -n "$ac_unrecognized_opts"; then
1630 case $enable_option_checking in
1631 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001632 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001633 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1634 esac
1635fi
1636
1637# Check all directory arguments for consistency.
1638for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1639 datadir sysconfdir sharedstatedir localstatedir includedir \
1640 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1641 libdir localedir mandir
1642do
1643 eval ac_val=\$$ac_var
1644 # Remove trailing slashes.
1645 case $ac_val in
1646 */ )
1647 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1648 eval $ac_var=\$ac_val;;
1649 esac
1650 # Be sure to have absolute directory names.
1651 case $ac_val in
1652 [\\/$]* | ?:[\\/]* ) continue;;
1653 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1654 esac
cristy98dddb52010-11-04 00:30:15 +00001655 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001656done
1657
1658# There might be people who depend on the old broken behavior: `$host'
1659# used to hold the argument of --host etc.
1660# FIXME: To remove some day.
1661build=$build_alias
1662host=$host_alias
1663target=$target_alias
1664
1665# FIXME: To remove some day.
1666if test "x$host_alias" != x; then
1667 if test "x$build_alias" = x; then
1668 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001669 elif test "x$build_alias" != "x$host_alias"; then
1670 cross_compiling=yes
1671 fi
1672fi
1673
1674ac_tool_prefix=
1675test -n "$host_alias" && ac_tool_prefix=$host_alias-
1676
1677test "$silent" = yes && exec 6>/dev/null
1678
1679
1680ac_pwd=`pwd` && test -n "$ac_pwd" &&
1681ac_ls_di=`ls -di .` &&
1682ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001683 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001684test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001685 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001686
1687
1688# Find the source files, if location was not specified.
1689if test -z "$srcdir"; then
1690 ac_srcdir_defaulted=yes
1691 # Try the directory containing this script, then the parent directory.
1692 ac_confdir=`$as_dirname -- "$as_myself" ||
1693$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1694 X"$as_myself" : 'X\(//\)[^/]' \| \
1695 X"$as_myself" : 'X\(//\)$' \| \
1696 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1697$as_echo X"$as_myself" |
1698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1699 s//\1/
1700 q
1701 }
1702 /^X\(\/\/\)[^/].*/{
1703 s//\1/
1704 q
1705 }
1706 /^X\(\/\/\)$/{
1707 s//\1/
1708 q
1709 }
1710 /^X\(\/\).*/{
1711 s//\1/
1712 q
1713 }
1714 s/.*/./; q'`
1715 srcdir=$ac_confdir
1716 if test ! -r "$srcdir/$ac_unique_file"; then
1717 srcdir=..
1718 fi
1719else
1720 ac_srcdir_defaulted=no
1721fi
1722if test ! -r "$srcdir/$ac_unique_file"; then
1723 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001724 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001725fi
1726ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1727ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001728 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001729 pwd)`
1730# When building in place, set srcdir=.
1731if test "$ac_abs_confdir" = "$ac_pwd"; then
1732 srcdir=.
1733fi
1734# Remove unnecessary trailing slashes from srcdir.
1735# Double slashes in file names in object file debugging info
1736# mess up M-x gdb in Emacs.
1737case $srcdir in
1738*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1739esac
1740for ac_var in $ac_precious_vars; do
1741 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1742 eval ac_env_${ac_var}_value=\$${ac_var}
1743 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1744 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1745done
1746
1747#
1748# Report the --help message.
1749#
1750if test "$ac_init_help" = "long"; then
1751 # Omit some internal or obsolete options to make the list less imposing.
1752 # This message is too long to be a string in the A/UX 3.1 sh.
1753 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001754\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001755
1756Usage: $0 [OPTION]... [VAR=VALUE]...
1757
1758To assign environment variables (e.g., CC, CFLAGS...), specify them as
1759VAR=VALUE. See below for descriptions of some of the useful variables.
1760
1761Defaults for the options are specified in brackets.
1762
1763Configuration:
1764 -h, --help display this help and exit
1765 --help=short display options specific to this package
1766 --help=recursive display the short help of all the included packages
1767 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001768 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001769 --cache-file=FILE cache test results in FILE [disabled]
1770 -C, --config-cache alias for \`--cache-file=config.cache'
1771 -n, --no-create do not create output files
1772 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1773
1774Installation directories:
1775 --prefix=PREFIX install architecture-independent files in PREFIX
1776 [$ac_default_prefix]
1777 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1778 [PREFIX]
1779
1780By default, \`make install' will install all the files in
1781\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1782an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1783for instance \`--prefix=\$HOME'.
1784
1785For better control, use the options below.
1786
1787Fine tuning of the installation directories:
1788 --bindir=DIR user executables [EPREFIX/bin]
1789 --sbindir=DIR system admin executables [EPREFIX/sbin]
1790 --libexecdir=DIR program executables [EPREFIX/libexec]
1791 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1792 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1793 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1794 --libdir=DIR object code libraries [EPREFIX/lib]
1795 --includedir=DIR C header files [PREFIX/include]
1796 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1797 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1798 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1799 --infodir=DIR info documentation [DATAROOTDIR/info]
1800 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1801 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001802 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001803 --htmldir=DIR html documentation [DOCDIR]
1804 --dvidir=DIR dvi documentation [DOCDIR]
1805 --pdfdir=DIR pdf documentation [DOCDIR]
1806 --psdir=DIR ps documentation [DOCDIR]
1807_ACEOF
1808
1809 cat <<\_ACEOF
1810
cristy73bd4a52010-10-05 11:24:23 +00001811Program names:
1812 --program-prefix=PREFIX prepend PREFIX to installed program names
1813 --program-suffix=SUFFIX append SUFFIX to installed program names
1814 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1815
cristy3ed852e2009-09-05 21:47:34 +00001816X features:
1817 --x-includes=DIR X include files are in DIR
1818 --x-libraries=DIR X library files are in DIR
1819
1820System types:
1821 --build=BUILD configure for building on BUILD [guessed]
1822 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1823 --target=TARGET configure for building compilers for TARGET [HOST]
1824_ACEOF
1825fi
1826
1827if test -n "$ac_init_help"; then
1828 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001829 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001830 esac
1831 cat <<\_ACEOF
1832
1833Optional Features:
1834 --disable-option-checking ignore unrecognized --enable/--with options
1835 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1836 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001837 --enable-silent-rules less verbose build output (undo: "make V=1")
1838 --disable-silent-rules verbose build output (undo: "make V=0")
1839 --enable-dependency-tracking
1840 do not reject slow dependency extractors
1841 --disable-dependency-tracking
1842 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001843 --enable-ld-version-script
1844 enable linker version script (default is enabled
1845 when possible)
cristya3824692012-03-30 17:22:07 +00001846 --enable-bounds-checking
1847 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001848 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001849 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001850 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001851 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001852 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001853 --enable-shared[=PKGS] build shared libraries [default=yes]
1854 --enable-static[=PKGS] build static libraries [default=yes]
1855 --enable-fast-install[=PKGS]
1856 optimize for fast installation [default=yes]
1857 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001858 --enable-delegate-build look for delegate libraries in build directory
1859 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001860 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001861 --disable-installed Formally install ImageMagick under PREFIX
1862 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001863 --enable-zero-configuration
1864 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001865 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001866 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001867 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001868 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001869 --enable-maintainer-mode
1870 enable make rules and dependencies not useful (and
1871 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001872 --enable-ccmalloc enable 'ccmalloc' memory debug support
1873 --enable-efence enable 'efence' memory debug support
1874 --enable-prof enable 'prof' profiling support
1875 --enable-gprof enable 'gprof' profiling support
1876 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001877 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001878 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001879
1880Optional Packages:
1881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001883 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001884 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001885 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1886 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001887 --includearch-dir=DIR ARCH specific include directory
1888 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001889 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001890 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001891 both]
cristyda16f162011-02-19 23:52:17 +00001892 --with-sysroot=DIR Search for dependent libraries within DIR
1893 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001894 --with-modules enable building dynamically loadable modules
1895 --with-method-prefix=PREFIX
1896 prefix MagickCore API methods
1897 --with-quantum-depth=DEPTH
1898 number of bits in a pixel quantum (default 16)
1899 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1900 memory)
1901 --with-frozenpaths freeze delegate paths
1902 --without-magick-plus-plus
1903 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001904 --with-package-release-name=NAME
1905 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001906 --with-perl enable build/install of PerlMagick
1907 --with-perl-options=OPTIONS
1908 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001909 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001910 --with-umem enable umem memory allocation library support
1911 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1912 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001913 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001914 --without-zlib disable ZLIB support
1915 --with-autotrace enable autotrace support
1916 --without-dps disable Display Postscript support
1917 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001918 --with-dejavu-font-dir=DIR
1919 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001920 --without-fftw disable FFTW support
1921 --without-fpx disable FlashPIX support
1922 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001923 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001924 --without-gslib enable Ghostscript library support
1925 --with-fontpath=DIR prepend to default font search path
1926 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001927 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001928 --without-jbig disable JBIG support
1929 --without-jpeg disable JPEG support
1930 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001931 --without-lcms disable lcms (v1.1X) support
1932 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001933 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001934 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001935 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001936 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001937 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001938 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001939 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001940 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001941 --with-windows-font-dir=DIR
1942 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001943 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001944 --without-xml disable XML support
1945
1946Some influential environment variables:
1947 CC C compiler command
1948 CFLAGS C compiler flags
1949 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1950 nonstandard directory <lib dir>
1951 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001952 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001953 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001954 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001955 CXX C++ compiler command
1956 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001957 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001958 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001959 XMKMF Path to xmkmf, Makefile generator for X Window System
1960 AUTOTRACE_CFLAGS
1961 C compiler flags for AUTOTRACE, overriding pkg-config
1962 AUTOTRACE_LIBS
1963 linker flags for AUTOTRACE, overriding pkg-config
1964 FONTCONFIG_CFLAGS
1965 C compiler flags for FONTCONFIG, overriding pkg-config
1966 FONTCONFIG_LIBS
1967 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001968 FREETYPE_CFLAGS
1969 C compiler flags for FREETYPE, overriding pkg-config
1970 FREETYPE_LIBS
1971 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001972 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1973 GVC_LIBS linker flags for GVC, overriding pkg-config
1974 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1975 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001976 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1977 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001978 OPENEXR_CFLAGS
1979 C compiler flags for OPENEXR, overriding pkg-config
1980 OPENEXR_LIBS
1981 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001982 PANGO_CFLAGS
1983 C compiler flags for PANGO, overriding pkg-config
1984 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001985 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1986 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1987 CAIRO_SVG_CFLAGS
1988 C compiler flags for CAIRO_SVG, overriding pkg-config
1989 CAIRO_SVG_LIBS
1990 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001991
1992Use these variables to override the choices made by `configure' or to help
1993it to find libraries and programs with nonstandard names/locations.
1994
1995Report bugs to <http://www.imagemagick.org>.
1996_ACEOF
1997ac_status=$?
1998fi
1999
2000if test "$ac_init_help" = "recursive"; then
2001 # If there are subdirs, report their specific --help.
2002 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2003 test -d "$ac_dir" ||
2004 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2005 continue
2006 ac_builddir=.
2007
2008case "$ac_dir" in
2009.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2010*)
2011 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2012 # A ".." for each directory in $ac_dir_suffix.
2013 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2014 case $ac_top_builddir_sub in
2015 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2016 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2017 esac ;;
2018esac
2019ac_abs_top_builddir=$ac_pwd
2020ac_abs_builddir=$ac_pwd$ac_dir_suffix
2021# for backward compatibility:
2022ac_top_builddir=$ac_top_build_prefix
2023
2024case $srcdir in
2025 .) # We are building in place.
2026 ac_srcdir=.
2027 ac_top_srcdir=$ac_top_builddir_sub
2028 ac_abs_top_srcdir=$ac_pwd ;;
2029 [\\/]* | ?:[\\/]* ) # Absolute name.
2030 ac_srcdir=$srcdir$ac_dir_suffix;
2031 ac_top_srcdir=$srcdir
2032 ac_abs_top_srcdir=$srcdir ;;
2033 *) # Relative name.
2034 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2035 ac_top_srcdir=$ac_top_build_prefix$srcdir
2036 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2037esac
2038ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2039
2040 cd "$ac_dir" || { ac_status=$?; continue; }
2041 # Check for guested configure.
2042 if test -f "$ac_srcdir/configure.gnu"; then
2043 echo &&
2044 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2045 elif test -f "$ac_srcdir/configure"; then
2046 echo &&
2047 $SHELL "$ac_srcdir/configure" --help=recursive
2048 else
2049 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2050 fi || ac_status=$?
2051 cd "$ac_pwd" || { ac_status=$?; break; }
2052 done
2053fi
2054
2055test -n "$ac_init_help" && exit $ac_status
2056if $ac_init_version; then
2057 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002058ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002059generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002060
cristy14fefe52012-05-21 00:59:18 +00002061Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002062This configure script is free software; the Free Software Foundation
2063gives unlimited permission to copy, distribute and modify it.
2064_ACEOF
2065 exit
2066fi
cristy8b350f62009-11-15 23:12:43 +00002067
2068## ------------------------ ##
2069## Autoconf initialization. ##
2070## ------------------------ ##
2071
2072# ac_fn_c_try_compile LINENO
2073# --------------------------
2074# Try to compile conftest.$ac_ext, and return whether this succeeded.
2075ac_fn_c_try_compile ()
2076{
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 rm -f conftest.$ac_objext
2079 if { { ac_try="$ac_compile"
2080case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2083esac
2084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085$as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_compile") 2>conftest.err
2087 ac_status=$?
2088 if test -s conftest.err; then
2089 grep -v '^ *+' conftest.err >conftest.er1
2090 cat conftest.er1 >&5
2091 mv -f conftest.er1 conftest.err
2092 fi
2093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094 test $ac_status = 0; } && {
2095 test -z "$ac_c_werror_flag" ||
2096 test ! -s conftest.err
2097 } && test -s conftest.$ac_objext; then :
2098 ac_retval=0
2099else
2100 $as_echo "$as_me: failed program was:" >&5
2101sed 's/^/| /' conftest.$ac_ext >&5
2102
2103 ac_retval=1
2104fi
cristyda16f162011-02-19 23:52:17 +00002105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002106 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002107
2108} # ac_fn_c_try_compile
2109
cristy95646052009-11-28 23:05:30 +00002110# ac_fn_c_try_cpp LINENO
2111# ----------------------
2112# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2113ac_fn_c_try_cpp ()
2114{
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if { { ac_try="$ac_cpp conftest.$ac_ext"
2117case "(($ac_try" in
2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119 *) ac_try_echo=$ac_try;;
2120esac
2121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2122$as_echo "$ac_try_echo"; } >&5
2123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2124 ac_status=$?
2125 if test -s conftest.err; then
2126 grep -v '^ *+' conftest.err >conftest.er1
2127 cat conftest.er1 >&5
2128 mv -f conftest.er1 conftest.err
2129 fi
2130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002131 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2133 test ! -s conftest.err
2134 }; then :
2135 ac_retval=0
2136else
2137 $as_echo "$as_me: failed program was:" >&5
2138sed 's/^/| /' conftest.$ac_ext >&5
2139
2140 ac_retval=1
2141fi
cristyda16f162011-02-19 23:52:17 +00002142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002143 as_fn_set_status $ac_retval
2144
2145} # ac_fn_c_try_cpp
2146
cristy8b350f62009-11-15 23:12:43 +00002147# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2148# -------------------------------------------------------
2149# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2150# the include files in INCLUDES and setting the cache variable VAR
2151# accordingly.
2152ac_fn_c_check_header_mongrel ()
2153{
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002155 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002158if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002159 $as_echo_n "(cached) " >&6
2160fi
2161eval ac_res=\$$3
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163$as_echo "$ac_res" >&6; }
2164else
2165 # Is the header compilable?
2166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2167$as_echo_n "checking $2 usability... " >&6; }
2168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h. */
2170$4
2171#include <$2>
2172_ACEOF
2173if ac_fn_c_try_compile "$LINENO"; then :
2174 ac_header_compiler=yes
2175else
2176 ac_header_compiler=no
2177fi
2178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2180$as_echo "$ac_header_compiler" >&6; }
2181
2182# Is the header present?
2183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2184$as_echo_n "checking $2 presence... " >&6; }
2185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186/* end confdefs.h. */
2187#include <$2>
2188_ACEOF
2189if ac_fn_c_try_cpp "$LINENO"; then :
2190 ac_header_preproc=yes
2191else
2192 ac_header_preproc=no
2193fi
cristyda16f162011-02-19 23:52:17 +00002194rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2196$as_echo "$ac_header_preproc" >&6; }
2197
2198# So? What about this header?
2199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2200 yes:no: )
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2202$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2204$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2205 ;;
2206 no:yes:* )
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2208$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2210$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2212$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2214$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2216$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002217( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002218## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002219## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002220 ) | sed "s/^/$as_me: WARNING: /" >&2
2221 ;;
2222esac
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002225if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002226 $as_echo_n "(cached) " >&6
2227else
2228 eval "$3=\$ac_header_compiler"
2229fi
2230eval ac_res=\$$3
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232$as_echo "$ac_res" >&6; }
2233fi
cristyda16f162011-02-19 23:52:17 +00002234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002235
2236} # ac_fn_c_check_header_mongrel
2237
2238# ac_fn_c_try_run LINENO
2239# ----------------------
2240# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2241# that executables *can* be run.
2242ac_fn_c_try_run ()
2243{
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 if { { ac_try="$ac_link"
2246case "(($ac_try" in
2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248 *) ac_try_echo=$ac_try;;
2249esac
2250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2251$as_echo "$ac_try_echo"; } >&5
2252 (eval "$ac_link") 2>&5
2253 ac_status=$?
2254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2255 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2256 { { case "(($ac_try" in
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2259esac
2260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2261$as_echo "$ac_try_echo"; } >&5
2262 (eval "$ac_try") 2>&5
2263 ac_status=$?
2264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2265 test $ac_status = 0; }; }; then :
2266 ac_retval=0
2267else
2268 $as_echo "$as_me: program exited with status $ac_status" >&5
2269 $as_echo "$as_me: failed program was:" >&5
2270sed 's/^/| /' conftest.$ac_ext >&5
2271
2272 ac_retval=$ac_status
2273fi
2274 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002276 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002277
2278} # ac_fn_c_try_run
2279
2280# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2281# -------------------------------------------------------
2282# Tests whether HEADER exists and can be compiled using the include files in
2283# INCLUDES, setting the cache variable VAR accordingly.
2284ac_fn_c_check_header_compile ()
2285{
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002289if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002290 $as_echo_n "(cached) " >&6
2291else
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293/* end confdefs.h. */
2294$4
2295#include <$2>
2296_ACEOF
2297if ac_fn_c_try_compile "$LINENO"; then :
2298 eval "$3=yes"
2299else
2300 eval "$3=no"
2301fi
2302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303fi
2304eval ac_res=\$$3
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002308
2309} # ac_fn_c_check_header_compile
2310
cristya0b81c32010-01-22 02:54:33 +00002311# ac_fn_cxx_try_compile LINENO
2312# ----------------------------
2313# Try to compile conftest.$ac_ext, and return whether this succeeded.
2314ac_fn_cxx_try_compile ()
2315{
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 rm -f conftest.$ac_objext
2318 if { { ac_try="$ac_compile"
2319case "(($ac_try" in
2320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2321 *) ac_try_echo=$ac_try;;
2322esac
2323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2324$as_echo "$ac_try_echo"; } >&5
2325 (eval "$ac_compile") 2>conftest.err
2326 ac_status=$?
2327 if test -s conftest.err; then
2328 grep -v '^ *+' conftest.err >conftest.er1
2329 cat conftest.er1 >&5
2330 mv -f conftest.er1 conftest.err
2331 fi
2332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2333 test $ac_status = 0; } && {
2334 test -z "$ac_cxx_werror_flag" ||
2335 test ! -s conftest.err
2336 } && test -s conftest.$ac_objext; then :
2337 ac_retval=0
2338else
2339 $as_echo "$as_me: failed program was:" >&5
2340sed 's/^/| /' conftest.$ac_ext >&5
2341
2342 ac_retval=1
2343fi
cristyda16f162011-02-19 23:52:17 +00002344 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002345 as_fn_set_status $ac_retval
2346
2347} # ac_fn_cxx_try_compile
2348
cristy8b350f62009-11-15 23:12:43 +00002349# ac_fn_c_try_link LINENO
2350# -----------------------
2351# Try to link conftest.$ac_ext, and return whether this succeeded.
2352ac_fn_c_try_link ()
2353{
2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355 rm -f conftest.$ac_objext conftest$ac_exeext
2356 if { { ac_try="$ac_link"
2357case "(($ac_try" in
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2360esac
2361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362$as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_link") 2>conftest.err
2364 ac_status=$?
2365 if test -s conftest.err; then
2366 grep -v '^ *+' conftest.err >conftest.er1
2367 cat conftest.er1 >&5
2368 mv -f conftest.er1 conftest.err
2369 fi
2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371 test $ac_status = 0; } && {
2372 test -z "$ac_c_werror_flag" ||
2373 test ! -s conftest.err
2374 } && test -s conftest$ac_exeext && {
2375 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002376 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002377 }; then :
2378 ac_retval=0
2379else
2380 $as_echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 ac_retval=1
2384fi
2385 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2386 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2387 # interfere with the next link command; also delete a directory that is
2388 # left behind by Apple's compiler. We do this before executing the actions.
2389 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002391 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002392
2393} # ac_fn_c_try_link
2394
cristy73bd4a52010-10-05 11:24:23 +00002395# ac_fn_c_check_func LINENO FUNC VAR
2396# ----------------------------------
2397# Tests whether FUNC exists, setting the cache variable VAR accordingly
2398ac_fn_c_check_func ()
2399{
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2402$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002403if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002404 $as_echo_n "(cached) " >&6
2405else
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407/* end confdefs.h. */
2408/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2410#define $2 innocuous_$2
2411
2412/* System header to define __stub macros and hopefully few prototypes,
2413 which can conflict with char $2 (); below.
2414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2415 <limits.h> exists even on freestanding compilers. */
2416
2417#ifdef __STDC__
2418# include <limits.h>
2419#else
2420# include <assert.h>
2421#endif
2422
2423#undef $2
2424
2425/* Override any GCC internal prototype to avoid an error.
2426 Use char because int might match the return type of a GCC
2427 builtin and then its argument prototype would still apply. */
2428#ifdef __cplusplus
2429extern "C"
2430#endif
2431char $2 ();
2432/* The GNU C library defines this for functions which it implements
2433 to always fail with ENOSYS. Some functions are actually named
2434 something starting with __ and the normal name is an alias. */
2435#if defined __stub_$2 || defined __stub___$2
2436choke me
2437#endif
2438
2439int
2440main ()
2441{
2442return $2 ();
2443 ;
2444 return 0;
2445}
2446_ACEOF
2447if ac_fn_c_try_link "$LINENO"; then :
2448 eval "$3=yes"
2449else
2450 eval "$3=no"
2451fi
2452rm -f core conftest.err conftest.$ac_objext \
2453 conftest$ac_exeext conftest.$ac_ext
2454fi
2455eval ac_res=\$$3
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2457$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002458 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002459
2460} # ac_fn_c_check_func
2461
2462# ac_fn_cxx_try_cpp LINENO
2463# ------------------------
2464# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2465ac_fn_cxx_try_cpp ()
2466{
2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468 if { { ac_try="$ac_cpp conftest.$ac_ext"
2469case "(($ac_try" in
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2472esac
2473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2474$as_echo "$ac_try_echo"; } >&5
2475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2476 ac_status=$?
2477 if test -s conftest.err; then
2478 grep -v '^ *+' conftest.err >conftest.er1
2479 cat conftest.er1 >&5
2480 mv -f conftest.er1 conftest.err
2481 fi
2482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002483 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002484 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2485 test ! -s conftest.err
2486 }; then :
2487 ac_retval=0
2488else
2489 $as_echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 ac_retval=1
2493fi
cristyda16f162011-02-19 23:52:17 +00002494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002495 as_fn_set_status $ac_retval
2496
2497} # ac_fn_cxx_try_cpp
2498
2499# ac_fn_cxx_try_link LINENO
2500# -------------------------
2501# Try to link conftest.$ac_ext, and return whether this succeeded.
2502ac_fn_cxx_try_link ()
2503{
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 rm -f conftest.$ac_objext conftest$ac_exeext
2506 if { { ac_try="$ac_link"
2507case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2510esac
2511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2512$as_echo "$ac_try_echo"; } >&5
2513 (eval "$ac_link") 2>conftest.err
2514 ac_status=$?
2515 if test -s conftest.err; then
2516 grep -v '^ *+' conftest.err >conftest.er1
2517 cat conftest.er1 >&5
2518 mv -f conftest.er1 conftest.err
2519 fi
2520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2521 test $ac_status = 0; } && {
2522 test -z "$ac_cxx_werror_flag" ||
2523 test ! -s conftest.err
2524 } && test -s conftest$ac_exeext && {
2525 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002526 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002527 }; then :
2528 ac_retval=0
2529else
2530 $as_echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533 ac_retval=1
2534fi
2535 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2536 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2537 # interfere with the next link command; also delete a directory that is
2538 # left behind by Apple's compiler. We do this before executing the actions.
2539 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002541 as_fn_set_status $ac_retval
2542
2543} # ac_fn_cxx_try_link
2544
cristy8b350f62009-11-15 23:12:43 +00002545# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2546# -------------------------------------------
2547# Tests whether TYPE exists after having included INCLUDES, setting cache
2548# variable VAR accordingly.
2549ac_fn_c_check_type ()
2550{
2551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2553$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002554if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002555 $as_echo_n "(cached) " >&6
2556else
2557 eval "$3=no"
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559/* end confdefs.h. */
2560$4
2561int
2562main ()
2563{
2564if (sizeof ($2))
2565 return 0;
2566 ;
2567 return 0;
2568}
2569_ACEOF
2570if ac_fn_c_try_compile "$LINENO"; then :
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572/* end confdefs.h. */
2573$4
2574int
2575main ()
2576{
2577if (sizeof (($2)))
2578 return 0;
2579 ;
2580 return 0;
2581}
2582_ACEOF
2583if ac_fn_c_try_compile "$LINENO"; then :
2584
2585else
2586 eval "$3=yes"
2587fi
2588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589fi
2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591fi
2592eval ac_res=\$$3
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002596
2597} # ac_fn_c_check_type
2598
cristy92703d82010-04-26 00:18:18 +00002599# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2600# ----------------------------------------------------
2601# Tries to find if the field MEMBER exists in type AGGR, after including
2602# INCLUDES, setting cache variable VAR accordingly.
2603ac_fn_c_check_member ()
2604{
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2607$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002608if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002609 $as_echo_n "(cached) " >&6
2610else
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612/* end confdefs.h. */
2613$5
2614int
2615main ()
2616{
2617static $2 ac_aggr;
2618if (ac_aggr.$3)
2619return 0;
2620 ;
2621 return 0;
2622}
2623_ACEOF
2624if ac_fn_c_try_compile "$LINENO"; then :
2625 eval "$4=yes"
2626else
2627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628/* end confdefs.h. */
2629$5
2630int
2631main ()
2632{
2633static $2 ac_aggr;
2634if (sizeof ac_aggr.$3)
2635return 0;
2636 ;
2637 return 0;
2638}
2639_ACEOF
2640if ac_fn_c_try_compile "$LINENO"; then :
2641 eval "$4=yes"
2642else
2643 eval "$4=no"
2644fi
2645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646fi
2647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648fi
2649eval ac_res=\$$4
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2651$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002653
2654} # ac_fn_c_check_member
2655
cristy5eef09f2012-10-16 12:08:28 +00002656# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2657# ---------------------------------------------
2658# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2659# accordingly.
2660ac_fn_c_check_decl ()
2661{
2662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2663 as_decl_name=`echo $2|sed 's/ *(.*//'`
2664 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2666$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2667if eval \${$3+:} false; then :
2668 $as_echo_n "(cached) " >&6
2669else
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671/* end confdefs.h. */
2672$4
2673int
2674main ()
2675{
2676#ifndef $as_decl_name
2677#ifdef __cplusplus
2678 (void) $as_decl_use;
2679#else
2680 (void) $as_decl_name;
2681#endif
2682#endif
2683
2684 ;
2685 return 0;
2686}
2687_ACEOF
2688if ac_fn_c_try_compile "$LINENO"; then :
2689 eval "$3=yes"
2690else
2691 eval "$3=no"
2692fi
2693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694fi
2695eval ac_res=\$$3
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2697$as_echo "$ac_res" >&6; }
2698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2699
2700} # ac_fn_c_check_decl
2701
cristy501c8042011-05-26 17:46:28 +00002702# ac_fn_c_find_intX_t LINENO BITS VAR
2703# -----------------------------------
2704# Finds a signed integer type with width BITS, setting cache variable VAR
2705# accordingly.
2706ac_fn_c_find_intX_t ()
2707{
2708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2710$as_echo_n "checking for int$2_t... " >&6; }
2711if eval \${$3+:} false; then :
2712 $as_echo_n "(cached) " >&6
2713else
2714 eval "$3=no"
2715 # Order is important - never check a type that is potentially smaller
2716 # than half of the expected target width.
2717 for ac_type in int$2_t 'int' 'long int' \
2718 'long long int' 'short int' 'signed char'; do
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720/* end confdefs.h. */
2721$ac_includes_default
2722 enum { N = $2 / 2 - 1 };
2723int
2724main ()
2725{
2726static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002727test_array [0] = 0;
2728return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002729
2730 ;
2731 return 0;
2732}
2733_ACEOF
2734if ac_fn_c_try_compile "$LINENO"; then :
2735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2736/* end confdefs.h. */
2737$ac_includes_default
2738 enum { N = $2 / 2 - 1 };
2739int
2740main ()
2741{
2742static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2743 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002744test_array [0] = 0;
2745return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002746
2747 ;
2748 return 0;
2749}
2750_ACEOF
2751if ac_fn_c_try_compile "$LINENO"; then :
2752
2753else
2754 case $ac_type in #(
2755 int$2_t) :
2756 eval "$3=yes" ;; #(
2757 *) :
2758 eval "$3=\$ac_type" ;;
2759esac
2760fi
2761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762fi
2763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764 if eval test \"x\$"$3"\" = x"no"; then :
2765
2766else
2767 break
2768fi
2769 done
2770fi
2771eval ac_res=\$$3
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2773$as_echo "$ac_res" >&6; }
2774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2775
2776} # ac_fn_c_find_intX_t
2777
2778# ac_fn_c_find_uintX_t LINENO BITS VAR
2779# ------------------------------------
2780# Finds an unsigned integer type with width BITS, setting cache variable VAR
2781# accordingly.
2782ac_fn_c_find_uintX_t ()
2783{
2784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2786$as_echo_n "checking for uint$2_t... " >&6; }
2787if eval \${$3+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789else
2790 eval "$3=no"
2791 # Order is important - never check a type that is potentially smaller
2792 # than half of the expected target width.
2793 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2794 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796/* end confdefs.h. */
2797$ac_includes_default
2798int
2799main ()
2800{
2801static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002802test_array [0] = 0;
2803return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002804
2805 ;
2806 return 0;
2807}
2808_ACEOF
2809if ac_fn_c_try_compile "$LINENO"; then :
2810 case $ac_type in #(
2811 uint$2_t) :
2812 eval "$3=yes" ;; #(
2813 *) :
2814 eval "$3=\$ac_type" ;;
2815esac
2816fi
2817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818 if eval test \"x\$"$3"\" = x"no"; then :
2819
2820else
2821 break
2822fi
2823 done
2824fi
2825eval ac_res=\$$3
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2827$as_echo "$ac_res" >&6; }
2828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2829
2830} # ac_fn_c_find_uintX_t
2831
cristy8b350f62009-11-15 23:12:43 +00002832# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2833# --------------------------------------------
2834# Tries to find the compile-time value of EXPR in a program that includes
2835# INCLUDES, setting VAR accordingly. Returns whether the value could be
2836# computed
2837ac_fn_c_compute_int ()
2838{
2839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2840 if test "$cross_compiling" = yes; then
2841 # Depending upon the size, compute the lo and hi bounds.
2842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843/* end confdefs.h. */
2844$4
2845int
2846main ()
2847{
2848static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002849test_array [0] = 0;
2850return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002851
2852 ;
2853 return 0;
2854}
2855_ACEOF
2856if ac_fn_c_try_compile "$LINENO"; then :
2857 ac_lo=0 ac_mid=0
2858 while :; do
2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860/* end confdefs.h. */
2861$4
2862int
2863main ()
2864{
2865static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002866test_array [0] = 0;
2867return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002868
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873if ac_fn_c_try_compile "$LINENO"; then :
2874 ac_hi=$ac_mid; break
2875else
2876 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2877 if test $ac_lo -le $ac_mid; then
2878 ac_lo= ac_hi=
2879 break
2880 fi
2881 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2882fi
2883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2884 done
2885else
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887/* end confdefs.h. */
2888$4
2889int
2890main ()
2891{
2892static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002893test_array [0] = 0;
2894return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002895
2896 ;
2897 return 0;
2898}
2899_ACEOF
2900if ac_fn_c_try_compile "$LINENO"; then :
2901 ac_hi=-1 ac_mid=-1
2902 while :; do
2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904/* end confdefs.h. */
2905$4
2906int
2907main ()
2908{
2909static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002910test_array [0] = 0;
2911return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002912
2913 ;
2914 return 0;
2915}
2916_ACEOF
2917if ac_fn_c_try_compile "$LINENO"; then :
2918 ac_lo=$ac_mid; break
2919else
2920 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2921 if test $ac_mid -le $ac_hi; then
2922 ac_lo= ac_hi=
2923 break
2924 fi
2925 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2926fi
2927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928 done
2929else
2930 ac_lo= ac_hi=
2931fi
2932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933fi
2934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935# Binary search between lo and hi bounds.
2936while test "x$ac_lo" != "x$ac_hi"; do
2937 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939/* end confdefs.h. */
2940$4
2941int
2942main ()
2943{
2944static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002945test_array [0] = 0;
2946return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952if ac_fn_c_try_compile "$LINENO"; then :
2953 ac_hi=$ac_mid
2954else
2955 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2956fi
2957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958done
2959case $ac_lo in #((
2960?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2961'') ac_retval=1 ;;
2962esac
2963 else
2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965/* end confdefs.h. */
2966$4
2967static long int longval () { return $2; }
2968static unsigned long int ulongval () { return $2; }
2969#include <stdio.h>
2970#include <stdlib.h>
2971int
2972main ()
2973{
2974
2975 FILE *f = fopen ("conftest.val", "w");
2976 if (! f)
2977 return 1;
2978 if (($2) < 0)
2979 {
2980 long int i = longval ();
2981 if (i != ($2))
2982 return 1;
2983 fprintf (f, "%ld", i);
2984 }
2985 else
2986 {
2987 unsigned long int i = ulongval ();
2988 if (i != ($2))
2989 return 1;
2990 fprintf (f, "%lu", i);
2991 }
2992 /* Do not output a trailing newline, as this causes \r\n confusion
2993 on some platforms. */
2994 return ferror (f) || fclose (f) != 0;
2995
2996 ;
2997 return 0;
2998}
2999_ACEOF
3000if ac_fn_c_try_run "$LINENO"; then :
3001 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3002else
3003 ac_retval=1
3004fi
3005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3006 conftest.$ac_objext conftest.beam conftest.$ac_ext
3007rm -f conftest.val
3008
3009 fi
cristyda16f162011-02-19 23:52:17 +00003010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003011 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003012
3013} # ac_fn_c_compute_int
3014
3015# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3016# ---------------------------------------------------------
3017# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3018# the include files in INCLUDES and setting the cache variable VAR
3019# accordingly.
3020ac_fn_cxx_check_header_mongrel ()
3021{
3022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003023 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3025$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003026if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003027 $as_echo_n "(cached) " >&6
3028fi
3029eval ac_res=\$$3
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3031$as_echo "$ac_res" >&6; }
3032else
3033 # Is the header compilable?
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3035$as_echo_n "checking $2 usability... " >&6; }
3036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037/* end confdefs.h. */
3038$4
3039#include <$2>
3040_ACEOF
3041if ac_fn_cxx_try_compile "$LINENO"; then :
3042 ac_header_compiler=yes
3043else
3044 ac_header_compiler=no
3045fi
3046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3048$as_echo "$ac_header_compiler" >&6; }
3049
3050# Is the header present?
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3052$as_echo_n "checking $2 presence... " >&6; }
3053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054/* end confdefs.h. */
3055#include <$2>
3056_ACEOF
3057if ac_fn_cxx_try_cpp "$LINENO"; then :
3058 ac_header_preproc=yes
3059else
3060 ac_header_preproc=no
3061fi
cristyda16f162011-02-19 23:52:17 +00003062rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3064$as_echo "$ac_header_preproc" >&6; }
3065
3066# So? What about this header?
3067case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3068 yes:no: )
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3070$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3072$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3073 ;;
3074 no:yes:* )
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3076$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3078$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3080$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3082$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3084$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003085( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003086## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003087## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003088 ) | sed "s/^/$as_me: WARNING: /" >&2
3089 ;;
3090esac
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3092$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003093if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003094 $as_echo_n "(cached) " >&6
3095else
3096 eval "$3=\$ac_header_compiler"
3097fi
3098eval ac_res=\$$3
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3100$as_echo "$ac_res" >&6; }
3101fi
cristyda16f162011-02-19 23:52:17 +00003102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003103
3104} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003105cat >config.log <<_ACEOF
3106This file contains any messages produced by compilers while
3107running configure, to aid debugging if configure makes a mistake.
3108
cristy29eb34e2011-10-16 00:46:08 +00003109It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003110generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003111
3112 $ $0 $@
3113
3114_ACEOF
3115exec 5>>config.log
3116{
3117cat <<_ASUNAME
3118## --------- ##
3119## Platform. ##
3120## --------- ##
3121
3122hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3123uname -m = `(uname -m) 2>/dev/null || echo unknown`
3124uname -r = `(uname -r) 2>/dev/null || echo unknown`
3125uname -s = `(uname -s) 2>/dev/null || echo unknown`
3126uname -v = `(uname -v) 2>/dev/null || echo unknown`
3127
3128/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3129/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3130
3131/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3132/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3133/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3134/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3135/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3136/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3137/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3138
3139_ASUNAME
3140
3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003146 $as_echo "PATH: $as_dir"
3147 done
cristy3ed852e2009-09-05 21:47:34 +00003148IFS=$as_save_IFS
3149
3150} >&5
3151
3152cat >&5 <<_ACEOF
3153
3154
3155## ----------- ##
3156## Core tests. ##
3157## ----------- ##
3158
3159_ACEOF
3160
3161
3162# Keep a trace of the command line.
3163# Strip out --no-create and --no-recursion so they do not pile up.
3164# Strip out --silent because we don't want to record it for future runs.
3165# Also quote any args containing shell meta-characters.
3166# Make two passes to allow for proper duplicate-argument suppression.
3167ac_configure_args=
3168ac_configure_args0=
3169ac_configure_args1=
3170ac_must_keep_next=false
3171for ac_pass in 1 2
3172do
3173 for ac_arg
3174 do
3175 case $ac_arg in
3176 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3178 | -silent | --silent | --silen | --sile | --sil)
3179 continue ;;
3180 *\'*)
3181 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3182 esac
3183 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003184 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003185 2)
cristy8b350f62009-11-15 23:12:43 +00003186 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003187 if test $ac_must_keep_next = true; then
3188 ac_must_keep_next=false # Got value, back to normal.
3189 else
3190 case $ac_arg in
3191 *=* | --config-cache | -C | -disable-* | --disable-* \
3192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3194 | -with-* | --with-* | -without-* | --without-* | --x)
3195 case "$ac_configure_args0 " in
3196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3197 esac
3198 ;;
3199 -* ) ac_must_keep_next=true ;;
3200 esac
3201 fi
cristy8b350f62009-11-15 23:12:43 +00003202 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003203 ;;
3204 esac
3205 done
3206done
cristy8b350f62009-11-15 23:12:43 +00003207{ ac_configure_args0=; unset ac_configure_args0;}
3208{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003209
3210# When interrupted or exit'd, cleanup temporary files, and complete
3211# config.log. We remove comments because anyway the quotes in there
3212# would cause problems or look ugly.
3213# WARNING: Use '\'' to represent an apostrophe within the trap.
3214# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3215trap 'exit_status=$?
3216 # Save into config.log some information that might help in debugging.
3217 {
3218 echo
3219
cristy98dddb52010-11-04 00:30:15 +00003220 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003221## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003222## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003223 echo
3224 # The following way of writing the cache mishandles newlines in values,
3225(
3226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3227 eval ac_val=\$$ac_var
3228 case $ac_val in #(
3229 *${as_nl}*)
3230 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003231 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003232$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3233 esac
3234 case $ac_var in #(
3235 _ | IFS | as_nl) ;; #(
3236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003237 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003238 esac ;;
3239 esac
3240 done
3241 (set) 2>&1 |
3242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3243 *${as_nl}ac_space=\ *)
3244 sed -n \
3245 "s/'\''/'\''\\\\'\'''\''/g;
3246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3247 ;; #(
3248 *)
3249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3250 ;;
3251 esac |
3252 sort
3253)
3254 echo
3255
cristy98dddb52010-11-04 00:30:15 +00003256 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003257## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003258## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003259 echo
3260 for ac_var in $ac_subst_vars
3261 do
3262 eval ac_val=\$$ac_var
3263 case $ac_val in
3264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3265 esac
3266 $as_echo "$ac_var='\''$ac_val'\''"
3267 done | sort
3268 echo
3269
3270 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003271 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003272## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003273## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003274 echo
3275 for ac_var in $ac_subst_files
3276 do
3277 eval ac_val=\$$ac_var
3278 case $ac_val in
3279 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3280 esac
3281 $as_echo "$ac_var='\''$ac_val'\''"
3282 done | sort
3283 echo
3284 fi
3285
3286 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003287 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003288## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003289## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003290 echo
3291 cat confdefs.h
3292 echo
3293 fi
3294 test "$ac_signal" != 0 &&
3295 $as_echo "$as_me: caught signal $ac_signal"
3296 $as_echo "$as_me: exit $exit_status"
3297 } >&5
3298 rm -f core *.core core.conftest.* &&
3299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3300 exit $exit_status
3301' 0
3302for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003304done
3305ac_signal=0
3306
3307# confdefs.h avoids OS command line length limits that DEFS can exceed.
3308rm -f -r conftest* confdefs.h
3309
cristy8b350f62009-11-15 23:12:43 +00003310$as_echo "/* confdefs.h */" > confdefs.h
3311
cristy3ed852e2009-09-05 21:47:34 +00003312# Predefined preprocessor variables.
3313
3314cat >>confdefs.h <<_ACEOF
3315#define PACKAGE_NAME "$PACKAGE_NAME"
3316_ACEOF
3317
cristy3ed852e2009-09-05 21:47:34 +00003318cat >>confdefs.h <<_ACEOF
3319#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3320_ACEOF
3321
cristy3ed852e2009-09-05 21:47:34 +00003322cat >>confdefs.h <<_ACEOF
3323#define PACKAGE_VERSION "$PACKAGE_VERSION"
3324_ACEOF
3325
cristy3ed852e2009-09-05 21:47:34 +00003326cat >>confdefs.h <<_ACEOF
3327#define PACKAGE_STRING "$PACKAGE_STRING"
3328_ACEOF
3329
cristy3ed852e2009-09-05 21:47:34 +00003330cat >>confdefs.h <<_ACEOF
3331#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3332_ACEOF
3333
cristy8b350f62009-11-15 23:12:43 +00003334cat >>confdefs.h <<_ACEOF
3335#define PACKAGE_URL "$PACKAGE_URL"
3336_ACEOF
3337
cristy3ed852e2009-09-05 21:47:34 +00003338
3339# Let the site file select an alternate cache file if it wants to.
3340# Prefer an explicitly selected file to automatically selected ones.
3341ac_site_file1=NONE
3342ac_site_file2=NONE
3343if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003344 # We do not want a PATH search for config.site.
3345 case $CONFIG_SITE in #((
3346 -*) ac_site_file1=./$CONFIG_SITE;;
3347 */*) ac_site_file1=$CONFIG_SITE;;
3348 *) ac_site_file1=./$CONFIG_SITE;;
3349 esac
cristy3ed852e2009-09-05 21:47:34 +00003350elif test "x$prefix" != xNONE; then
3351 ac_site_file1=$prefix/share/config.site
3352 ac_site_file2=$prefix/etc/config.site
3353else
3354 ac_site_file1=$ac_default_prefix/share/config.site
3355 ac_site_file2=$ac_default_prefix/etc/config.site
3356fi
3357for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3358do
3359 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003360 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003362$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3363 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003364 . "$ac_site_file" \
3365 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367as_fn_error $? "failed to load site script $ac_site_file
3368See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003369 fi
3370done
3371
3372if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003373 # Some versions of bash will fail to source /dev/null (special files
3374 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3375 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003376 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003377$as_echo "$as_me: loading cache $cache_file" >&6;}
3378 case $cache_file in
3379 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3380 *) . "./$cache_file";;
3381 esac
3382 fi
3383else
cristy8b350f62009-11-15 23:12:43 +00003384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003385$as_echo "$as_me: creating cache $cache_file" >&6;}
3386 >$cache_file
3387fi
3388
cristycd4c5312009-11-22 01:19:08 +00003389as_fn_append ac_header_list " stdlib.h"
3390as_fn_append ac_header_list " unistd.h"
3391as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003392# Check that the precious variables saved in the cache have kept the same
3393# value.
3394ac_cache_corrupted=false
3395for ac_var in $ac_precious_vars; do
3396 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3397 eval ac_new_set=\$ac_env_${ac_var}_set
3398 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3399 eval ac_new_val=\$ac_env_${ac_var}_value
3400 case $ac_old_set,$ac_new_set in
3401 set,)
cristy8b350f62009-11-15 23:12:43 +00003402 { $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 +00003403$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3404 ac_cache_corrupted=: ;;
3405 ,set)
cristy8b350f62009-11-15 23:12:43 +00003406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003407$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3408 ac_cache_corrupted=: ;;
3409 ,);;
3410 *)
3411 if test "x$ac_old_val" != "x$ac_new_val"; then
3412 # differences in whitespace do not lead to failure.
3413 ac_old_val_w=`echo x $ac_old_val`
3414 ac_new_val_w=`echo x $ac_new_val`
3415 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003417$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3418 ac_cache_corrupted=:
3419 else
cristy8b350f62009-11-15 23:12:43 +00003420 { $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 +00003421$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3422 eval $ac_var=\$ac_old_val
3423 fi
cristy8b350f62009-11-15 23:12:43 +00003424 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003425$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003426 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003427$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3428 fi;;
3429 esac
3430 # Pass precious variables to config.status.
3431 if test "$ac_new_set" = set; then
3432 case $ac_new_val in
3433 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3434 *) ac_arg=$ac_var=$ac_new_val ;;
3435 esac
3436 case " $ac_configure_args " in
3437 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003438 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003439 esac
3440 fi
3441done
3442if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003446$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003447 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003448fi
cristy8b350f62009-11-15 23:12:43 +00003449## -------------------- ##
3450## Main body of script. ##
3451## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003452
3453ac_ext=c
3454ac_cpp='$CPP $CPPFLAGS'
3455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458
3459
3460
3461ac_aux_dir=
3462for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003463 if test -f "$ac_dir/install-sh"; then
3464 ac_aux_dir=$ac_dir
3465 ac_install_sh="$ac_aux_dir/install-sh -c"
3466 break
3467 elif test -f "$ac_dir/install.sh"; then
3468 ac_aux_dir=$ac_dir
3469 ac_install_sh="$ac_aux_dir/install.sh -c"
3470 break
3471 elif test -f "$ac_dir/shtool"; then
3472 ac_aux_dir=$ac_dir
3473 ac_install_sh="$ac_aux_dir/shtool install -c"
3474 break
3475 fi
cristy3ed852e2009-09-05 21:47:34 +00003476done
3477if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003478 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003479fi
3480
3481# These three variables are undocumented and unsupported,
3482# and are intended to be withdrawn in a future Autoconf release.
3483# They can cause serious problems if a builder's source tree is in a directory
3484# whose full name contains unusual characters.
3485ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3486ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3487ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3488
3489
3490
3491
3492ac_config_headers="$ac_config_headers config/config.h"
3493
cristy24fc1fe2010-10-23 21:13:01 +00003494
cristy01ff9f32012-12-01 18:15:29 +00003495ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003496
cristy3e049f82013-02-13 13:26:53 +00003497ac_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/Magick.pm PerlMagick/Magick.xs PerlMagick/Makefile.PL PerlMagick/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 +00003498
3499
3500#
3501# Save initial user-tunable values
3502#
3503USER_LIBS=$LIBS
3504for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3505 eval isset=\${$var+set}
3506 if test "$isset" = 'set'; then
3507 eval val=$`echo $var`
3508 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3509 fi
3510done
3511
3512
3513CONFIGURE_ARGS="$0 ${ac_configure_args}"
3514
3515
3516# Source file containing package/library versioning information.
3517. ${srcdir}/version.sh
3518
cristy15a88782010-01-31 23:24:49 +00003519echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003520# Make sure we can run config.sub.
3521$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003522 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003523
cristy8b350f62009-11-15 23:12:43 +00003524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003525$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003526if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003527 $as_echo_n "(cached) " >&6
3528else
3529 ac_build_alias=$build_alias
3530test "x$ac_build_alias" = x &&
3531 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3532test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003533 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003534ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003535 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003536
3537fi
cristy8b350f62009-11-15 23:12:43 +00003538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003539$as_echo "$ac_cv_build" >&6; }
3540case $ac_cv_build in
3541*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003542*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003543esac
3544build=$ac_cv_build
3545ac_save_IFS=$IFS; IFS='-'
3546set x $ac_cv_build
3547shift
3548build_cpu=$1
3549build_vendor=$2
3550shift; shift
3551# Remember, the first character of IFS is used to create $*,
3552# except with old shells:
3553build_os=$*
3554IFS=$ac_save_IFS
3555case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3556
3557
cristy8b350f62009-11-15 23:12:43 +00003558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003559$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003560if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003561 $as_echo_n "(cached) " >&6
3562else
3563 if test "x$host_alias" = x; then
3564 ac_cv_host=$ac_cv_build
3565else
3566 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003567 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003568fi
3569
3570fi
cristy8b350f62009-11-15 23:12:43 +00003571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003572$as_echo "$ac_cv_host" >&6; }
3573case $ac_cv_host in
3574*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003575*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003576esac
3577host=$ac_cv_host
3578ac_save_IFS=$IFS; IFS='-'
3579set x $ac_cv_host
3580shift
3581host_cpu=$1
3582host_vendor=$2
3583shift; shift
3584# Remember, the first character of IFS is used to create $*,
3585# except with old shells:
3586host_os=$*
3587IFS=$ac_save_IFS
3588case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3589
3590
cristy8b350f62009-11-15 23:12:43 +00003591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003592$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003593if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003594 $as_echo_n "(cached) " >&6
3595else
3596 if test "x$target_alias" = x; then
3597 ac_cv_target=$ac_cv_host
3598else
3599 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003600 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003601fi
3602
3603fi
cristy8b350f62009-11-15 23:12:43 +00003604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003605$as_echo "$ac_cv_target" >&6; }
3606case $ac_cv_target in
3607*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003608*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003609esac
3610target=$ac_cv_target
3611ac_save_IFS=$IFS; IFS='-'
3612set x $ac_cv_target
3613shift
3614target_cpu=$1
3615target_vendor=$2
3616shift; shift
3617# Remember, the first character of IFS is used to create $*,
3618# except with old shells:
3619target_os=$*
3620IFS=$ac_save_IFS
3621case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3622
3623
3624# The aliases save the names the user supplied, while $host etc.
3625# will get canonicalized.
3626test -n "$target_alias" &&
3627 test "$program_prefix$program_suffix$program_transform_name" = \
3628 NONENONEs,x,x, &&
3629 program_prefix=${target_alias}-
3630
cristy837d6dc2010-02-27 01:16:57 +00003631
3632
3633
cristy8be34142012-06-17 14:07:18 +00003634
cristy19615b82011-04-13 20:02:01 +00003635MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003636
3637
cristy27d53d62012-07-29 23:30:07 +00003638cat >>confdefs.h <<_ACEOF
3639#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3640_ACEOF
3641
3642
cristy19615b82011-04-13 20:02:01 +00003643MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003644
3645
cristy27d53d62012-07-29 23:30:07 +00003646cat >>confdefs.h <<_ACEOF
3647#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3648_ACEOF
3649
3650
cristy19615b82011-04-13 20:02:01 +00003651MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003652
3653
cristy27d53d62012-07-29 23:30:07 +00003654cat >>confdefs.h <<_ACEOF
3655#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3656_ACEOF
3657
3658
cristy37442762013-02-10 21:07:23 +00003659
3660# Substitute versioning
3661MAGICK_MAJOR_VERSION=7
3662
3663MAGICK_MINOR_VERSION=0
3664
3665MAGICK_MICRO_VERSION=0
3666
3667MAGICK_PATCHLEVEL_VERSION=0
3668
3669MAGICK_VERSION=7.0.0-0
3670
cristy3e049f82013-02-13 13:26:53 +00003671MAGICK_SVN_REVISION=11008:11015M
cristy37442762013-02-10 21:07:23 +00003672
3673
cristy3ed852e2009-09-05 21:47:34 +00003674# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003675MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3676
3677MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3678
cristy37442762013-02-10 21:07:23 +00003679
cristyd694ca32011-03-27 21:42:54 +00003680
cristy3ed852e2009-09-05 21:47:34 +00003681
3682
3683# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3685$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003686# Reject unsafe characters in $srcdir or the absolute working directory
3687# name. Accept space and tab only in the latter.
3688am_lf='
3689'
3690case `pwd` in
3691 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003692 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003693esac
3694case $srcdir in
3695 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003696 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003697esac
cristy3ed852e2009-09-05 21:47:34 +00003698
cristyc0890a62012-07-19 00:18:20 +00003699# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003700# arguments. Must try -L first in case configure is actually a
3701# symlink; some systems play weird games with the mod time of symlinks
3702# (eg FreeBSD returns the mod time of the symlink's containing
3703# directory).
3704if (
cristyc0890a62012-07-19 00:18:20 +00003705 am_has_slept=no
3706 for am_try in 1 2; do
3707 echo "timestamp, slept: $am_has_slept" > conftest.file
3708 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3709 if test "$*" = "X"; then
3710 # -L didn't work.
3711 set X `ls -t "$srcdir/configure" conftest.file`
3712 fi
3713 if test "$*" != "X $srcdir/configure conftest.file" \
3714 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003715
cristyc0890a62012-07-19 00:18:20 +00003716 # If neither matched, then we have a broken ls. This can happen
3717 # if, for instance, CONFIG_SHELL is bash and it inherits a
3718 # broken ls alias from the environment. This has actually
3719 # happened. Such a system could not be considered "sane".
3720 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3721 alias in your environment" "$LINENO" 5
3722 fi
3723 if test "$2" = conftest.file || test $am_try -eq 2; then
3724 break
3725 fi
3726 # Just in case.
3727 sleep 1
3728 am_has_slept=yes
3729 done
cristy73bd4a52010-10-05 11:24:23 +00003730 test "$2" = conftest.file
3731 )
3732then
3733 # Ok.
3734 :
3735else
cristy98dddb52010-11-04 00:30:15 +00003736 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003737Check your system clock" "$LINENO" 5
3738fi
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3740$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003741# If we didn't sleep, we still need to ensure time stamps of config.status and
3742# generated files are strictly newer.
3743am_sleep_pid=
3744if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3745 ( sleep 1 ) &
3746 am_sleep_pid=$!
3747fi
cristy73bd4a52010-10-05 11:24:23 +00003748
cristyc0890a62012-07-19 00:18:20 +00003749rm -f conftest.file
3750
3751
cristy58d34aa2013-01-24 15:11:54 +00003752am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003753
3754# Find a good install program. We prefer a C program (faster),
3755# so one script is as good as another. But avoid the broken or
3756# incompatible versions:
3757# SysV /etc/install, /usr/sbin/install
3758# SunOS /usr/etc/install
3759# IRIX /sbin/install
3760# AIX /bin/install
3761# AmigaOS /C/install, which installs bootblocks on floppy discs
3762# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3763# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3764# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3765# OS/2's system install, which has a completely different semantic
3766# ./install, which can be erroneously created by make from ./install.sh.
3767# Reject install programs that cannot install multiple files.
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3769$as_echo_n "checking for a BSD-compatible install... " >&6; }
3770if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003771if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003772 $as_echo_n "(cached) " >&6
3773else
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775for as_dir in $PATH
3776do
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 # Account for people who put trailing slashes in PATH elements.
3780case $as_dir/ in #((
3781 ./ | .// | /[cC]/* | \
3782 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3783 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3784 /usr/ucb/* ) ;;
3785 *)
3786 # OSF1 and SCO ODT 3.0 have their own names for install.
3787 # Don't use installbsd from OSF since it installs stuff as root
3788 # by default.
3789 for ac_prog in ginstall scoinst install; do
3790 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003791 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003792 if test $ac_prog = install &&
3793 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3794 # AIX install. It has an incompatible calling convention.
3795 :
3796 elif test $ac_prog = install &&
3797 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3798 # program-specific install script used by HP pwplus--don't use.
3799 :
3800 else
3801 rm -rf conftest.one conftest.two conftest.dir
3802 echo one > conftest.one
3803 echo two > conftest.two
3804 mkdir conftest.dir
3805 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3806 test -s conftest.one && test -s conftest.two &&
3807 test -s conftest.dir/conftest.one &&
3808 test -s conftest.dir/conftest.two
3809 then
3810 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3811 break 3
3812 fi
3813 fi
3814 fi
3815 done
3816 done
3817 ;;
3818esac
3819
3820 done
3821IFS=$as_save_IFS
3822
3823rm -rf conftest.one conftest.two conftest.dir
3824
3825fi
3826 if test "${ac_cv_path_install+set}" = set; then
3827 INSTALL=$ac_cv_path_install
3828 else
3829 # As a last resort, use the slow shell script. Don't cache a
3830 # value for INSTALL within a source directory, because that will
3831 # break other packages using the cache if that directory is
3832 # removed, or if the value is a relative name.
3833 INSTALL=$ac_install_sh
3834 fi
3835fi
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3837$as_echo "$INSTALL" >&6; }
3838
3839# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3840# It thinks the first close brace ends the variable substitution.
3841test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3842
3843test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3844
3845test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3846
3847test "$program_prefix" != NONE &&
3848 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3849# Use a double $ so make ignores it.
3850test "$program_suffix" != NONE &&
3851 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3852# Double any \ or $.
3853# By default was `s,x,x', remove it if useless.
3854ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3855program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3856
3857# expand $ac_aux_dir to an absolute path
3858am_aux_dir=`cd $ac_aux_dir && pwd`
3859
3860if test x"${MISSING+set}" != xset; then
3861 case $am_aux_dir in
3862 *\ * | *\ *)
3863 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3864 *)
3865 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3866 esac
3867fi
3868# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003869if eval "$MISSING --is-lightweight"; then
3870 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003871else
3872 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3874$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003875fi
3876
3877if test x"${install_sh}" != xset; then
3878 case $am_aux_dir in
3879 *\ * | *\ *)
3880 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3881 *)
3882 install_sh="\${SHELL} $am_aux_dir/install-sh"
3883 esac
3884fi
3885
cristyc0890a62012-07-19 00:18:20 +00003886# Installed binaries are usually stripped using 'strip' when the user
3887# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003888# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003889# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003890if test "$cross_compiling" != no; then
3891 if test -n "$ac_tool_prefix"; then
3892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3893set dummy ${ac_tool_prefix}strip; ac_word=$2
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003896if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003897 $as_echo_n "(cached) " >&6
3898else
3899 if test -n "$STRIP"; then
3900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3901else
3902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH
3904do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003909 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913done
3914 done
3915IFS=$as_save_IFS
3916
3917fi
3918fi
3919STRIP=$ac_cv_prog_STRIP
3920if test -n "$STRIP"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3922$as_echo "$STRIP" >&6; }
3923else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925$as_echo "no" >&6; }
3926fi
3927
3928
3929fi
3930if test -z "$ac_cv_prog_STRIP"; then
3931 ac_ct_STRIP=$STRIP
3932 # Extract the first word of "strip", so it can be a program name with args.
3933set dummy strip; ac_word=$2
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003936if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003937 $as_echo_n "(cached) " >&6
3938else
3939 if test -n "$ac_ct_STRIP"; then
3940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3941else
3942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943for as_dir in $PATH
3944do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003949 ac_cv_prog_ac_ct_STRIP="strip"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3952 fi
3953done
3954 done
3955IFS=$as_save_IFS
3956
3957fi
3958fi
3959ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3960if test -n "$ac_ct_STRIP"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3962$as_echo "$ac_ct_STRIP" >&6; }
3963else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965$as_echo "no" >&6; }
3966fi
3967
3968 if test "x$ac_ct_STRIP" = x; then
3969 STRIP=":"
3970 else
3971 case $cross_compiling:$ac_tool_warned in
3972yes:)
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3975ac_tool_warned=yes ;;
3976esac
3977 STRIP=$ac_ct_STRIP
3978 fi
3979else
3980 STRIP="$ac_cv_prog_STRIP"
3981fi
3982
3983fi
3984INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3985
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3987$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3988if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003989 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003990 $as_echo_n "(cached) " >&6
3991else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3994do
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_prog in mkdir gmkdir; do
3998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003999 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004000 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4001 'mkdir (GNU coreutils) '* | \
4002 'mkdir (coreutils) '* | \
4003 'mkdir (fileutils) '4.1*)
4004 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4005 break 3;;
4006 esac
4007 done
4008 done
4009 done
4010IFS=$as_save_IFS
4011
4012fi
4013
4014 test -d ./--version && rmdir ./--version
4015 if test "${ac_cv_path_mkdir+set}" = set; then
4016 MKDIR_P="$ac_cv_path_mkdir -p"
4017 else
4018 # As a last resort, use the slow shell script. Don't cache a
4019 # value for MKDIR_P within a source directory, because that will
4020 # break other packages using the cache if that directory is
4021 # removed, or if the value is a relative name.
4022 MKDIR_P="$ac_install_sh -d"
4023 fi
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4026$as_echo "$MKDIR_P" >&6; }
4027
cristy73bd4a52010-10-05 11:24:23 +00004028for ac_prog in gawk mawk nawk awk
4029do
4030 # Extract the first word of "$ac_prog", so it can be a program name with args.
4031set dummy $ac_prog; ac_word=$2
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004034if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004035 $as_echo_n "(cached) " >&6
4036else
4037 if test -n "$AWK"; then
4038 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4039else
4040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041for as_dir in $PATH
4042do
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004047 ac_cv_prog_AWK="$ac_prog"
4048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 break 2
4050 fi
4051done
4052 done
4053IFS=$as_save_IFS
4054
4055fi
4056fi
4057AWK=$ac_cv_prog_AWK
4058if test -n "$AWK"; then
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4060$as_echo "$AWK" >&6; }
4061else
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063$as_echo "no" >&6; }
4064fi
4065
4066
4067 test -n "$AWK" && break
4068done
4069
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4071$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4072set x ${MAKE-make}
4073ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004074if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004075 $as_echo_n "(cached) " >&6
4076else
4077 cat >conftest.make <<\_ACEOF
4078SHELL = /bin/sh
4079all:
4080 @echo '@@@%%%=$(MAKE)=@@@%%%'
4081_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004082# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004083case `${MAKE-make} -f conftest.make 2>/dev/null` in
4084 *@@@%%%=?*=@@@%%%*)
4085 eval ac_cv_prog_make_${ac_make}_set=yes;;
4086 *)
4087 eval ac_cv_prog_make_${ac_make}_set=no;;
4088esac
4089rm -f conftest.make
4090fi
4091if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4093$as_echo "yes" >&6; }
4094 SET_MAKE=
4095else
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4097$as_echo "no" >&6; }
4098 SET_MAKE="MAKE=${MAKE-make}"
4099fi
4100
4101rm -rf .tst 2>/dev/null
4102mkdir .tst 2>/dev/null
4103if test -d .tst; then
4104 am__leading_dot=.
4105else
4106 am__leading_dot=_
4107fi
4108rmdir .tst 2>/dev/null
4109
cristya448bd22011-10-14 12:38:13 +00004110# Check whether --enable-silent-rules was given.
4111if test "${enable_silent_rules+set}" = set; then :
4112 enableval=$enable_silent_rules;
4113fi
4114
cristyc0890a62012-07-19 00:18:20 +00004115case $enable_silent_rules in # (((
4116 yes) AM_DEFAULT_VERBOSITY=0;;
4117 no) AM_DEFAULT_VERBOSITY=1;;
4118 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004119esac
cristyc3fb77b2012-02-06 01:49:41 +00004120am_make=${MAKE-make}
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4122$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4123if ${am_cv_make_support_nested_variables+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125else
4126 if $as_echo 'TRUE=$(BAR$(V))
4127BAR0=false
4128BAR1=true
4129V=1
4130am__doit:
4131 @$(TRUE)
4132.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4133 am_cv_make_support_nested_variables=yes
4134else
4135 am_cv_make_support_nested_variables=no
4136fi
4137fi
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4139$as_echo "$am_cv_make_support_nested_variables" >&6; }
4140if test $am_cv_make_support_nested_variables = yes; then
4141 AM_V='$(V)'
4142 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4143else
4144 AM_V=$AM_DEFAULT_VERBOSITY
4145 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4146fi
cristya448bd22011-10-14 12:38:13 +00004147AM_BACKSLASH='\'
4148
cristy73bd4a52010-10-05 11:24:23 +00004149if test "`cd $srcdir && pwd`" != "`pwd`"; then
4150 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4151 # is not polluted with repeated "-I."
4152 am__isrc=' -I$(srcdir)'
4153 # test to see if srcdir already configured
4154 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004155 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004156 fi
4157fi
4158
4159# test whether we have cygpath
4160if test -z "$CYGPATH_W"; then
4161 if (cygpath --version) >/dev/null 2>/dev/null; then
4162 CYGPATH_W='cygpath -w'
4163 else
4164 CYGPATH_W=echo
4165 fi
4166fi
4167
4168
4169# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004170 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004171 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004172
4173
cristya448bd22011-10-14 12:38:13 +00004174cat >>confdefs.h <<_ACEOF
4175#define PACKAGE "$PACKAGE"
4176_ACEOF
4177
4178
4179cat >>confdefs.h <<_ACEOF
4180#define VERSION "$VERSION"
4181_ACEOF
4182
cristy73bd4a52010-10-05 11:24:23 +00004183# Some tools Automake needs.
4184
4185ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4186
4187
4188AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4189
4190
4191AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4192
4193
4194AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4195
4196
4197MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4198
cristyc0890a62012-07-19 00:18:20 +00004199# For better backward compatibility. To be removed once Automake 1.9.x
4200# dies out for good. For more background, see:
4201# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4202# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4203mkdir_p='$(MKDIR_P)'
4204
cristy73bd4a52010-10-05 11:24:23 +00004205# We need awk for the "check" target. The system "awk" is bad on
4206# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004207# Always define AMTAR for backward compatibility. Yes, it's still used
4208# in the wild :-( We should find a proper way to deprecate it ...
4209AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004210
cristyc3fb77b2012-02-06 01:49:41 +00004211am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004212
4213
4214
4215
4216
cristy3ed852e2009-09-05 21:47:34 +00004217
4218# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004219# Check whether --enable-silent-rules was given.
4220if test "${enable_silent_rules+set}" = set; then :
4221 enableval=$enable_silent_rules;
4222fi
4223
cristyc0890a62012-07-19 00:18:20 +00004224case $enable_silent_rules in # (((
4225 yes) AM_DEFAULT_VERBOSITY=0;;
4226 no) AM_DEFAULT_VERBOSITY=1;;
4227 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004228esac
cristyc3fb77b2012-02-06 01:49:41 +00004229am_make=${MAKE-make}
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4231$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4232if ${am_cv_make_support_nested_variables+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234else
4235 if $as_echo 'TRUE=$(BAR$(V))
4236BAR0=false
4237BAR1=true
4238V=1
4239am__doit:
4240 @$(TRUE)
4241.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4242 am_cv_make_support_nested_variables=yes
4243else
4244 am_cv_make_support_nested_variables=no
4245fi
4246fi
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4248$as_echo "$am_cv_make_support_nested_variables" >&6; }
4249if test $am_cv_make_support_nested_variables = yes; then
4250 AM_V='$(V)'
4251 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4252else
4253 AM_V=$AM_DEFAULT_VERBOSITY
4254 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4255fi
cristy73bd4a52010-10-05 11:24:23 +00004256AM_BACKSLASH='\'
4257
cristy3ed852e2009-09-05 21:47:34 +00004258
4259MAGICK_LIB_VERSION="0x"
4260if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4261 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4262fi
4263MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4264if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4265 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4266fi
4267MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4268if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4269 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4270fi
4271MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4272
4273
4274# Definition used to define MagickLibVersionText in version.h
4275MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4276
4277
4278# Definition used to define MagickLibVersionNumber in version.h
4279MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4280
4281
4282# Regenerate config.status if ChangeLog or version.sh is updated.
4283CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4284
4285
4286PERLMAINCC=$CC
4287
4288MAGICK_CFLAGS=''
4289MAGICK_CPPFLAGS=$CPPFLAGS_USER
4290MAGICK_PCFLAGS=$CPPFLAGS_USER
4291MAGICK_LDFLAGS=''
4292MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004293MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004294
4295#
4296# Evaluate shell variable equivalents to Makefile directory variables
4297#
4298if test "x$prefix" = xNONE; then
4299 prefix=$ac_default_prefix
4300fi
4301# Let make expand exec_prefix.
4302if test "x$exec_prefix" = xNONE; then
4303 exec_prefix='${prefix}'
4304fi
4305
4306#
4307eval "eval PREFIX_DIR=${prefix}"
4308
4309eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4310
4311eval "eval BIN_DIR=$bindir"
4312
4313eval "eval SBIN_DIR=$sbindir"
4314
4315eval "eval LIBEXEC_DIR=$libexecdir"
4316
4317eval "eval DATA_DIR=$datadir"
4318
cristy4e65ec22012-04-08 01:33:27 +00004319eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004320
cristy3ed852e2009-09-05 21:47:34 +00004321eval "eval SYSCONF_DIR=$sysconfdir"
4322
4323eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4324
4325eval "eval LOCALSTATE_DIR=$localstatedir"
4326
4327eval "eval LIB_DIR=$libdir"
4328
4329eval "eval INCLUDE_DIR=$includedir"
4330
4331eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4332
4333eval "eval INFO_DIR=$infodir"
4334
4335eval "eval MAN_DIR=$mandir"
4336
4337
4338# Get full paths to source and build directories
4339srcdirfull="`cd $srcdir && pwd`"
4340builddir="`pwd`"
4341
4342#
4343# Compute variables useful for running uninstalled software.
4344#
4345MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4346MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4347MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4348MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4349DIRSEP=':'
4350case "${build_os}" in
4351 mingw* )
4352 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4353 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4354 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4355 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4356 DIRSEP=';'
4357 ;;
4358esac
4359case "${host_os}" in
4360 mingw* )
4361 DIRSEP=';'
4362 ;;
4363esac
4364
4365
4366
4367
4368
4369
cristya0b81c32010-01-22 02:54:33 +00004370
4371#
4372# Enable OS features.
4373#
cristy73bd4a52010-10-05 11:24:23 +00004374DEPDIR="${am__leading_dot}deps"
4375
4376ac_config_commands="$ac_config_commands depfiles"
4377
4378
4379am_make=${MAKE-make}
4380cat > confinc << 'END'
4381am__doit:
4382 @echo this is the am__doit target
4383.PHONY: am__doit
4384END
4385# If we don't find an include directive, just comment out the code.
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4387$as_echo_n "checking for style of include used by $am_make... " >&6; }
4388am__include="#"
4389am__quote=
4390_am_result=none
4391# First try GNU make style include.
4392echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004393# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004394case `$am_make -s -f confmf 2> /dev/null` in #(
4395*the\ am__doit\ target*)
4396 am__include=include
4397 am__quote=
4398 _am_result=GNU
4399 ;;
4400esac
4401# Now try BSD make style include.
4402if test "$am__include" = "#"; then
4403 echo '.include "confinc"' > confmf
4404 case `$am_make -s -f confmf 2> /dev/null` in #(
4405 *the\ am__doit\ target*)
4406 am__include=.include
4407 am__quote="\""
4408 _am_result=BSD
4409 ;;
4410 esac
4411fi
4412
4413
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4415$as_echo "$_am_result" >&6; }
4416rm -f confinc confmf
4417
4418# Check whether --enable-dependency-tracking was given.
4419if test "${enable_dependency_tracking+set}" = set; then :
4420 enableval=$enable_dependency_tracking;
4421fi
4422
4423if test "x$enable_dependency_tracking" != xno; then
4424 am_depcomp="$ac_aux_dir/depcomp"
4425 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004426 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004427fi
4428 if test "x$enable_dependency_tracking" != xno; then
4429 AMDEP_TRUE=
4430 AMDEP_FALSE='#'
4431else
4432 AMDEP_TRUE='#'
4433 AMDEP_FALSE=
4434fi
4435
4436
cristy3ed852e2009-09-05 21:47:34 +00004437ac_ext=c
4438ac_cpp='$CPP $CPPFLAGS'
4439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442if test -n "$ac_tool_prefix"; then
4443 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4444set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004446$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004447if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004448 $as_echo_n "(cached) " >&6
4449else
4450 if test -n "$CC"; then
4451 ac_cv_prog_CC="$CC" # Let the user override the test.
4452else
4453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004458 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004460 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004462 break 2
4463 fi
4464done
cristy8b350f62009-11-15 23:12:43 +00004465 done
cristy3ed852e2009-09-05 21:47:34 +00004466IFS=$as_save_IFS
4467
4468fi
4469fi
4470CC=$ac_cv_prog_CC
4471if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004473$as_echo "$CC" >&6; }
4474else
cristy8b350f62009-11-15 23:12:43 +00004475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004476$as_echo "no" >&6; }
4477fi
4478
4479
4480fi
4481if test -z "$ac_cv_prog_CC"; then
4482 ac_ct_CC=$CC
4483 # Extract the first word of "gcc", so it can be a program name with args.
4484set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004486$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004487if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004488 $as_echo_n "(cached) " >&6
4489else
4490 if test -n "$ac_ct_CC"; then
4491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4492else
4493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494for as_dir in $PATH
4495do
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004498 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004500 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004502 break 2
4503 fi
4504done
cristy8b350f62009-11-15 23:12:43 +00004505 done
cristy3ed852e2009-09-05 21:47:34 +00004506IFS=$as_save_IFS
4507
4508fi
4509fi
4510ac_ct_CC=$ac_cv_prog_ac_ct_CC
4511if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004513$as_echo "$ac_ct_CC" >&6; }
4514else
cristy8b350f62009-11-15 23:12:43 +00004515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004516$as_echo "no" >&6; }
4517fi
4518
4519 if test "x$ac_ct_CC" = x; then
4520 CC=""
4521 else
4522 case $cross_compiling:$ac_tool_warned in
4523yes:)
cristy8b350f62009-11-15 23:12:43 +00004524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4526ac_tool_warned=yes ;;
4527esac
4528 CC=$ac_ct_CC
4529 fi
4530else
4531 CC="$ac_cv_prog_CC"
4532fi
4533
4534if test -z "$CC"; then
4535 if test -n "$ac_tool_prefix"; then
4536 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4537set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004539$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004540if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004541 $as_echo_n "(cached) " >&6
4542else
4543 if test -n "$CC"; then
4544 ac_cv_prog_CC="$CC" # Let the user override the test.
4545else
4546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004551 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004553 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004555 break 2
4556 fi
4557done
cristy8b350f62009-11-15 23:12:43 +00004558 done
cristy3ed852e2009-09-05 21:47:34 +00004559IFS=$as_save_IFS
4560
4561fi
4562fi
4563CC=$ac_cv_prog_CC
4564if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004566$as_echo "$CC" >&6; }
4567else
cristy8b350f62009-11-15 23:12:43 +00004568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004569$as_echo "no" >&6; }
4570fi
4571
4572
4573 fi
4574fi
4575if test -z "$CC"; then
4576 # Extract the first word of "cc", so it can be a program name with args.
4577set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004579$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004580if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004581 $as_echo_n "(cached) " >&6
4582else
4583 if test -n "$CC"; then
4584 ac_cv_prog_CC="$CC" # Let the user override the test.
4585else
4586 ac_prog_rejected=no
4587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588for as_dir in $PATH
4589do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004592 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004594 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4595 ac_prog_rejected=yes
4596 continue
4597 fi
4598 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004600 break 2
4601 fi
4602done
cristy8b350f62009-11-15 23:12:43 +00004603 done
cristy3ed852e2009-09-05 21:47:34 +00004604IFS=$as_save_IFS
4605
4606if test $ac_prog_rejected = yes; then
4607 # We found a bogon in the path, so make sure we never use it.
4608 set dummy $ac_cv_prog_CC
4609 shift
4610 if test $# != 0; then
4611 # We chose a different compiler from the bogus one.
4612 # However, it has the same basename, so the bogon will be chosen
4613 # first if we set CC to just the basename; use the full file name.
4614 shift
4615 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4616 fi
4617fi
4618fi
4619fi
4620CC=$ac_cv_prog_CC
4621if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004623$as_echo "$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
4630fi
4631if test -z "$CC"; then
4632 if test -n "$ac_tool_prefix"; then
4633 for ac_prog in cl.exe
4634 do
4635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4636set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004639if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004640 $as_echo_n "(cached) " >&6
4641else
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4644else
4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004650 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004652 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004654 break 2
4655 fi
4656done
cristy8b350f62009-11-15 23:12:43 +00004657 done
cristy3ed852e2009-09-05 21:47:34 +00004658IFS=$as_save_IFS
4659
4660fi
4661fi
4662CC=$ac_cv_prog_CC
4663if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004665$as_echo "$CC" >&6; }
4666else
cristy8b350f62009-11-15 23:12:43 +00004667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004668$as_echo "no" >&6; }
4669fi
4670
4671
4672 test -n "$CC" && break
4673 done
4674fi
4675if test -z "$CC"; then
4676 ac_ct_CC=$CC
4677 for ac_prog in cl.exe
4678do
4679 # Extract the first word of "$ac_prog", so it can be a program name with args.
4680set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004683if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004684 $as_echo_n "(cached) " >&6
4685else
4686 if test -n "$ac_ct_CC"; then
4687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4688else
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004696 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004698 break 2
4699 fi
4700done
cristy8b350f62009-11-15 23:12:43 +00004701 done
cristy3ed852e2009-09-05 21:47:34 +00004702IFS=$as_save_IFS
4703
4704fi
4705fi
4706ac_ct_CC=$ac_cv_prog_ac_ct_CC
4707if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004709$as_echo "$ac_ct_CC" >&6; }
4710else
cristy8b350f62009-11-15 23:12:43 +00004711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004712$as_echo "no" >&6; }
4713fi
4714
4715
4716 test -n "$ac_ct_CC" && break
4717done
4718
4719 if test "x$ac_ct_CC" = x; then
4720 CC=""
4721 else
4722 case $cross_compiling:$ac_tool_warned in
4723yes:)
cristy8b350f62009-11-15 23:12:43 +00004724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726ac_tool_warned=yes ;;
4727esac
4728 CC=$ac_ct_CC
4729 fi
4730fi
4731
4732fi
4733
4734
cristy8b350f62009-11-15 23:12:43 +00004735test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004736$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004737as_fn_error $? "no acceptable C compiler found in \$PATH
4738See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004739
4740# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004741$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004742set X $ac_compile
4743ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004744for ac_option in --version -v -V -qversion; do
4745 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004746case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749esac
cristy8b350f62009-11-15 23:12:43 +00004750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4751$as_echo "$ac_try_echo"; } >&5
4752 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004753 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004754 if test -s conftest.err; then
4755 sed '10a\
4756... rest of stderr output deleted ...
4757 10q' conftest.err >conftest.er1
4758 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004759 fi
cristycd4c5312009-11-22 01:19:08 +00004760 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4762 test $ac_status = 0; }
4763done
cristy3ed852e2009-09-05 21:47:34 +00004764
cristy8b350f62009-11-15 23:12:43 +00004765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004766/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004767
cristy3ed852e2009-09-05 21:47:34 +00004768int
4769main ()
4770{
4771
4772 ;
4773 return 0;
4774}
4775_ACEOF
4776ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004777ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004778# Try to create an executable without -o first, disregard a.out.
4779# It will help us diagnose broken compilers, and finding out an intuition
4780# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4782$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004783ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4784
4785# The possible output files:
4786ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4787
4788ac_rmfiles=
4789for ac_file in $ac_files
4790do
4791 case $ac_file in
4792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4793 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4794 esac
4795done
4796rm -f $ac_rmfiles
4797
cristy8b350f62009-11-15 23:12:43 +00004798if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004799case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4802esac
cristy8b350f62009-11-15 23:12:43 +00004803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4804$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004805 (eval "$ac_link_default") 2>&5
4806 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4808 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004809 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4810# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4811# in a Makefile. We should not override ac_cv_exeext if it was cached,
4812# so that the user can short-circuit this test for compilers unknown to
4813# Autoconf.
4814for ac_file in $ac_files ''
4815do
4816 test -f "$ac_file" || continue
4817 case $ac_file in
4818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4819 ;;
4820 [ab].out )
4821 # We found the default executable, but exeext='' is most
4822 # certainly right.
4823 break;;
4824 *.* )
cristy8b350f62009-11-15 23:12:43 +00004825 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004826 then :; else
4827 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4828 fi
4829 # We set ac_cv_exeext here because the later test for it is not
4830 # safe: cross compilers may not add the suffix if given an `-o'
4831 # argument, so we may need to know it at that point already.
4832 # Even if this section looks crufty: it has the advantage of
4833 # actually working.
4834 break;;
4835 * )
4836 break;;
4837 esac
4838done
4839test "$ac_cv_exeext" = no && ac_cv_exeext=
4840
4841else
4842 ac_file=''
4843fi
cristy8b350f62009-11-15 23:12:43 +00004844if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846$as_echo "no" >&6; }
4847$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004848sed 's/^/| /' conftest.$ac_ext >&5
4849
cristy8b350f62009-11-15 23:12:43 +00004850{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004852as_fn_error 77 "C compiler cannot create executables
4853See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004854else
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4856$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004857fi
cristycd4c5312009-11-22 01:19:08 +00004858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4859$as_echo_n "checking for C compiler default output file name... " >&6; }
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4861$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004862ac_exeext=$ac_cv_exeext
4863
cristycd4c5312009-11-22 01:19:08 +00004864rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004865ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004867$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004868if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004869case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872esac
cristy8b350f62009-11-15 23:12:43 +00004873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4874$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004875 (eval "$ac_link") 2>&5
4876 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4878 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004879 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4880# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4881# work properly (i.e., refer to `conftest.exe'), while it won't with
4882# `rm'.
4883for ac_file in conftest.exe conftest conftest.*; do
4884 test -f "$ac_file" || continue
4885 case $ac_file in
4886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4887 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4888 break;;
4889 * ) break;;
4890 esac
4891done
4892else
cristy8b350f62009-11-15 23:12:43 +00004893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004895as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4896See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004897fi
cristycd4c5312009-11-22 01:19:08 +00004898rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004900$as_echo "$ac_cv_exeext" >&6; }
4901
4902rm -f conftest.$ac_ext
4903EXEEXT=$ac_cv_exeext
4904ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h. */
4907#include <stdio.h>
4908int
4909main ()
4910{
4911FILE *f = fopen ("conftest.out", "w");
4912 return ferror (f) || fclose (f) != 0;
4913
4914 ;
4915 return 0;
4916}
4917_ACEOF
4918ac_clean_files="$ac_clean_files conftest.out"
4919# Check that the compiler produces executables we can run. If not, either
4920# the compiler is broken, or we cross compile.
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4922$as_echo_n "checking whether we are cross compiling... " >&6; }
4923if test "$cross_compiling" != yes; then
4924 { { ac_try="$ac_link"
4925case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4928esac
4929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4930$as_echo "$ac_try_echo"; } >&5
4931 (eval "$ac_link") 2>&5
4932 ac_status=$?
4933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4934 test $ac_status = 0; }
4935 if { ac_try='./conftest$ac_cv_exeext'
4936 { { case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939esac
4940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4941$as_echo "$ac_try_echo"; } >&5
4942 (eval "$ac_try") 2>&5
4943 ac_status=$?
4944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4945 test $ac_status = 0; }; }; then
4946 cross_compiling=no
4947 else
4948 if test "$cross_compiling" = maybe; then
4949 cross_compiling=yes
4950 else
4951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004953as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004954If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004955See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004956 fi
4957 fi
4958fi
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4960$as_echo "$cross_compiling" >&6; }
4961
4962rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4963ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004965$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004966if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004967 $as_echo_n "(cached) " >&6
4968else
cristy8b350f62009-11-15 23:12:43 +00004969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004970/* end confdefs.h. */
4971
4972int
4973main ()
4974{
4975
4976 ;
4977 return 0;
4978}
4979_ACEOF
4980rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004981if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004982case "(($ac_try" in
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4985esac
cristy8b350f62009-11-15 23:12:43 +00004986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4987$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004988 (eval "$ac_compile") 2>&5
4989 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4991 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004992 for ac_file in conftest.o conftest.obj conftest.*; do
4993 test -f "$ac_file" || continue;
4994 case $ac_file in
4995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4996 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4997 break;;
4998 esac
4999done
5000else
5001 $as_echo "$as_me: failed program was:" >&5
5002sed 's/^/| /' conftest.$ac_ext >&5
5003
cristy8b350f62009-11-15 23:12:43 +00005004{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005006as_fn_error $? "cannot compute suffix of object files: cannot compile
5007See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005008fi
cristy3ed852e2009-09-05 21:47:34 +00005009rm -f conftest.$ac_cv_objext conftest.$ac_ext
5010fi
cristy8b350f62009-11-15 23:12:43 +00005011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005012$as_echo "$ac_cv_objext" >&6; }
5013OBJEXT=$ac_cv_objext
5014ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005016$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005017if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005018 $as_echo_n "(cached) " >&6
5019else
cristy8b350f62009-11-15 23:12:43 +00005020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005021/* end confdefs.h. */
5022
5023int
5024main ()
5025{
5026#ifndef __GNUC__
5027 choke me
5028#endif
5029
5030 ;
5031 return 0;
5032}
5033_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005034if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005035 ac_compiler_gnu=yes
5036else
cristy8b350f62009-11-15 23:12:43 +00005037 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005038fi
cristy3ed852e2009-09-05 21:47:34 +00005039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040ac_cv_c_compiler_gnu=$ac_compiler_gnu
5041
5042fi
cristy8b350f62009-11-15 23:12:43 +00005043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005044$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5045if test $ac_compiler_gnu = yes; then
5046 GCC=yes
5047else
5048 GCC=
5049fi
5050ac_test_CFLAGS=${CFLAGS+set}
5051ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005053$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005054if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005055 $as_echo_n "(cached) " >&6
5056else
5057 ac_save_c_werror_flag=$ac_c_werror_flag
5058 ac_c_werror_flag=yes
5059 ac_cv_prog_cc_g=no
5060 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005062/* end confdefs.h. */
5063
5064int
5065main ()
5066{
5067
5068 ;
5069 return 0;
5070}
5071_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005072if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005073 ac_cv_prog_cc_g=yes
5074else
cristy8b350f62009-11-15 23:12:43 +00005075 CFLAGS=""
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005077/* end confdefs.h. */
5078
5079int
5080main ()
5081{
5082
5083 ;
5084 return 0;
5085}
5086_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005087if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005088
cristy8b350f62009-11-15 23:12:43 +00005089else
5090 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005091 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005093/* end confdefs.h. */
5094
5095int
5096main ()
5097{
5098
5099 ;
5100 return 0;
5101}
5102_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005103if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005104 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005105fi
cristy3ed852e2009-09-05 21:47:34 +00005106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107fi
cristy3ed852e2009-09-05 21:47:34 +00005108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109fi
cristy3ed852e2009-09-05 21:47:34 +00005110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 ac_c_werror_flag=$ac_save_c_werror_flag
5112fi
cristy8b350f62009-11-15 23:12:43 +00005113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005114$as_echo "$ac_cv_prog_cc_g" >&6; }
5115if test "$ac_test_CFLAGS" = set; then
5116 CFLAGS=$ac_save_CFLAGS
5117elif test $ac_cv_prog_cc_g = yes; then
5118 if test "$GCC" = yes; then
5119 CFLAGS="-g -O2"
5120 else
5121 CFLAGS="-g"
5122 fi
5123else
5124 if test "$GCC" = yes; then
5125 CFLAGS="-O2"
5126 else
5127 CFLAGS=
5128 fi
5129fi
cristy8b350f62009-11-15 23:12:43 +00005130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005131$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005132if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005133 $as_echo_n "(cached) " >&6
5134else
5135 ac_cv_prog_cc_c89=no
5136ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005138/* end confdefs.h. */
5139#include <stdarg.h>
5140#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005141struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005142/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5143struct buf { int x; };
5144FILE * (*rcsopen) (struct buf *, struct stat *, int);
5145static char *e (p, i)
5146 char **p;
5147 int i;
5148{
5149 return p[i];
5150}
5151static char *f (char * (*g) (char **, int), char **p, ...)
5152{
5153 char *s;
5154 va_list v;
5155 va_start (v,p);
5156 s = g (p, va_arg (v,int));
5157 va_end (v);
5158 return s;
5159}
5160
5161/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5162 function prototypes and stuff, but not '\xHH' hex character constants.
5163 These don't provoke an error unfortunately, instead are silently treated
5164 as 'x'. The following induces an error, until -std is added to get
5165 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5166 array size at least. It's necessary to write '\x00'==0 to get something
5167 that's true only with -std. */
5168int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5169
5170/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5171 inside strings and character constants. */
5172#define FOO(x) 'x'
5173int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5174
5175int test (int i, double x);
5176struct s1 {int (*f) (int a);};
5177struct s2 {int (*f) (double a);};
5178int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5179int argc;
5180char **argv;
5181int
5182main ()
5183{
5184return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5185 ;
5186 return 0;
5187}
5188_ACEOF
5189for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5190 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5191do
5192 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005193 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005194 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005195fi
cristy3ed852e2009-09-05 21:47:34 +00005196rm -f core conftest.err conftest.$ac_objext
5197 test "x$ac_cv_prog_cc_c89" != "xno" && break
5198done
5199rm -f conftest.$ac_ext
5200CC=$ac_save_CC
5201
5202fi
5203# AC_CACHE_VAL
5204case "x$ac_cv_prog_cc_c89" in
5205 x)
cristy8b350f62009-11-15 23:12:43 +00005206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005207$as_echo "none needed" >&6; } ;;
5208 xno)
cristy8b350f62009-11-15 23:12:43 +00005209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005210$as_echo "unsupported" >&6; } ;;
5211 *)
5212 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005214$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5215esac
cristy8b350f62009-11-15 23:12:43 +00005216if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005217
cristy8b350f62009-11-15 23:12:43 +00005218fi
cristy3ed852e2009-09-05 21:47:34 +00005219
5220ac_ext=c
5221ac_cpp='$CPP $CPPFLAGS'
5222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005225
cristy73bd4a52010-10-05 11:24:23 +00005226depcc="$CC" am_compiler_list=
5227
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5229$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005230if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005231 $as_echo_n "(cached) " >&6
5232else
5233 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5234 # We make a subdir and do the tests there. Otherwise we can end up
5235 # making bogus files that we don't know about and never remove. For
5236 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005237 # making a dummy file named 'D' -- because '-MD' means "put the output
5238 # in D".
cristy7247bba2012-02-05 16:37:27 +00005239 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005240 mkdir conftest.dir
5241 # Copy depcomp to subdir because otherwise we won't find it if we're
5242 # using a relative directory.
5243 cp "$am_depcomp" conftest.dir
5244 cd conftest.dir
5245 # We will build objects and dependencies in a subdirectory because
5246 # it helps to detect inapplicable dependency modes. For instance
5247 # both Tru64's cc and ICC support -MD to output dependencies as a
5248 # side effect of compilation, but ICC will put the dependencies in
5249 # the current directory while Tru64 will put them in the object
5250 # directory.
5251 mkdir sub
5252
5253 am_cv_CC_dependencies_compiler_type=none
5254 if test "$am_compiler_list" = ""; then
5255 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5256 fi
5257 am__universal=false
5258 case " $depcc " in #(
5259 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5260 esac
5261
5262 for depmode in $am_compiler_list; do
5263 # Setup a source with many dependencies, because some compilers
5264 # like to wrap large dependency lists on column 80 (with \), and
5265 # we should not choose a depcomp mode which is confused by this.
5266 #
5267 # We need to recreate these files for each test, as the compiler may
5268 # overwrite some of them when testing with obscure command lines.
5269 # This happens at least with the AIX C compiler.
5270 : > sub/conftest.c
5271 for i in 1 2 3 4 5 6; do
5272 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005273 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5274 # Solaris 10 /bin/sh.
5275 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005276 done
5277 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5278
cristyc0890a62012-07-19 00:18:20 +00005279 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005280 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005281 # handle '-M -o', and we need to detect this. Also, some Intel
5282 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005283 am__obj=sub/conftest.${OBJEXT-o}
5284 am__minus_obj="-o $am__obj"
5285 case $depmode in
5286 gcc)
5287 # This depmode causes a compiler race in universal mode.
5288 test "$am__universal" = false || continue
5289 ;;
5290 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005291 # After this tag, mechanisms are not by side-effect, so they'll
5292 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005293 if test "x$enable_dependency_tracking" = xyes; then
5294 continue
5295 else
5296 break
5297 fi
5298 ;;
cristy7247bba2012-02-05 16:37:27 +00005299 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005300 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005301 # not run yet. These depmodes are late enough in the game, and
5302 # so weak that their functioning should not be impacted.
5303 am__obj=conftest.${OBJEXT-o}
5304 am__minus_obj=
5305 ;;
5306 none) break ;;
5307 esac
5308 if depmode=$depmode \
5309 source=sub/conftest.c object=$am__obj \
5310 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5311 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5312 >/dev/null 2>conftest.err &&
5313 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5314 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5315 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5316 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5317 # icc doesn't choke on unknown options, it will just issue warnings
5318 # or remarks (even with -Werror). So we grep stderr for any message
5319 # that says an option was ignored or not supported.
5320 # When given -MP, icc 7.0 and 7.1 complain thusly:
5321 # icc: Command line warning: ignoring option '-M'; no argument required
5322 # The diagnosis changed in icc 8.0:
5323 # icc: Command line remark: option '-MP' not supported
5324 if (grep 'ignoring option' conftest.err ||
5325 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5326 am_cv_CC_dependencies_compiler_type=$depmode
5327 break
5328 fi
5329 fi
5330 done
5331
5332 cd ..
5333 rm -rf conftest.dir
5334else
5335 am_cv_CC_dependencies_compiler_type=none
5336fi
5337
5338fi
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5340$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5341CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5342
5343 if
5344 test "x$enable_dependency_tracking" != xno \
5345 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5346 am__fastdepCC_TRUE=
5347 am__fastdepCC_FALSE='#'
5348else
5349 am__fastdepCC_TRUE='#'
5350 am__fastdepCC_FALSE=
5351fi
5352
5353
cristy3ed852e2009-09-05 21:47:34 +00005354
cristya0b81c32010-01-22 02:54:33 +00005355ac_ext=c
5356ac_cpp='$CPP $CPPFLAGS'
5357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359ac_compiler_gnu=$ac_cv_c_compiler_gnu
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5361$as_echo_n "checking how to run the C preprocessor... " >&6; }
5362# On Suns, sometimes $CPP names a directory.
5363if test -n "$CPP" && test -d "$CPP"; then
5364 CPP=
5365fi
5366if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005367 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005368 $as_echo_n "(cached) " >&6
5369else
5370 # Double quotes because CPP needs to be expanded
5371 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5372 do
5373 ac_preproc_ok=false
5374for ac_c_preproc_warn_flag in '' yes
5375do
5376 # Use a header file that comes with gcc, so configuring glibc
5377 # with a fresh cross-compiler works.
5378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5379 # <limits.h> exists even on freestanding compilers.
5380 # On the NeXT, cc -E runs the code through the compiler's parser,
5381 # not just through cpp. "Syntax error" is here to catch this case.
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h. */
5384#ifdef __STDC__
5385# include <limits.h>
5386#else
5387# include <assert.h>
5388#endif
5389 Syntax error
5390_ACEOF
5391if ac_fn_c_try_cpp "$LINENO"; then :
5392
5393else
5394 # Broken: fails on valid input.
5395continue
5396fi
cristyda16f162011-02-19 23:52:17 +00005397rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005398
5399 # OK, works on sane cases. Now check whether nonexistent headers
5400 # can be detected and how.
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402/* end confdefs.h. */
5403#include <ac_nonexistent.h>
5404_ACEOF
5405if ac_fn_c_try_cpp "$LINENO"; then :
5406 # Broken: success on invalid input.
5407continue
5408else
5409 # Passes both tests.
5410ac_preproc_ok=:
5411break
5412fi
cristyda16f162011-02-19 23:52:17 +00005413rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005414
5415done
5416# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005417rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005418if $ac_preproc_ok; then :
5419 break
5420fi
5421
5422 done
5423 ac_cv_prog_CPP=$CPP
5424
5425fi
5426 CPP=$ac_cv_prog_CPP
5427else
5428 ac_cv_prog_CPP=$CPP
5429fi
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5431$as_echo "$CPP" >&6; }
5432ac_preproc_ok=false
5433for ac_c_preproc_warn_flag in '' yes
5434do
5435 # Use a header file that comes with gcc, so configuring glibc
5436 # with a fresh cross-compiler works.
5437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5438 # <limits.h> exists even on freestanding compilers.
5439 # On the NeXT, cc -E runs the code through the compiler's parser,
5440 # not just through cpp. "Syntax error" is here to catch this case.
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442/* end confdefs.h. */
5443#ifdef __STDC__
5444# include <limits.h>
5445#else
5446# include <assert.h>
5447#endif
5448 Syntax error
5449_ACEOF
5450if ac_fn_c_try_cpp "$LINENO"; then :
5451
5452else
5453 # Broken: fails on valid input.
5454continue
5455fi
cristyda16f162011-02-19 23:52:17 +00005456rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005457
5458 # OK, works on sane cases. Now check whether nonexistent headers
5459 # can be detected and how.
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461/* end confdefs.h. */
5462#include <ac_nonexistent.h>
5463_ACEOF
5464if ac_fn_c_try_cpp "$LINENO"; then :
5465 # Broken: success on invalid input.
5466continue
5467else
5468 # Passes both tests.
5469ac_preproc_ok=:
5470break
5471fi
cristyda16f162011-02-19 23:52:17 +00005472rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005473
5474done
5475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005476rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005477if $ac_preproc_ok; then :
5478
5479else
5480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005482as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5483See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005484fi
5485
5486ac_ext=c
5487ac_cpp='$CPP $CPPFLAGS'
5488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5490ac_compiler_gnu=$ac_cv_c_compiler_gnu
5491
5492
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5494$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005495if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005496 $as_echo_n "(cached) " >&6
5497else
5498 if test -z "$GREP"; then
5499 ac_path_GREP_found=false
5500 # Loop through the user's path and test for each of PROGNAME-LIST
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5503do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_prog in grep ggrep; do
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005509 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005510# Check for GNU ac_path_GREP and select it if it is found.
5511 # Check for GNU $ac_path_GREP
5512case `"$ac_path_GREP" --version 2>&1` in
5513*GNU*)
5514 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5515*)
5516 ac_count=0
5517 $as_echo_n 0123456789 >"conftest.in"
5518 while :
5519 do
5520 cat "conftest.in" "conftest.in" >"conftest.tmp"
5521 mv "conftest.tmp" "conftest.in"
5522 cp "conftest.in" "conftest.nl"
5523 $as_echo 'GREP' >> "conftest.nl"
5524 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5526 as_fn_arith $ac_count + 1 && ac_count=$as_val
5527 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5528 # Best one so far, save it but keep looking for a better one
5529 ac_cv_path_GREP="$ac_path_GREP"
5530 ac_path_GREP_max=$ac_count
5531 fi
5532 # 10*(2^10) chars as input seems more than enough
5533 test $ac_count -gt 10 && break
5534 done
5535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5536esac
5537
5538 $ac_path_GREP_found && break 3
5539 done
5540 done
5541 done
5542IFS=$as_save_IFS
5543 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005544 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005545 fi
5546else
5547 ac_cv_path_GREP=$GREP
5548fi
5549
5550fi
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5552$as_echo "$ac_cv_path_GREP" >&6; }
5553 GREP="$ac_cv_path_GREP"
5554
5555
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5557$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005558if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005559 $as_echo_n "(cached) " >&6
5560else
5561 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5562 then ac_cv_path_EGREP="$GREP -E"
5563 else
5564 if test -z "$EGREP"; then
5565 ac_path_EGREP_found=false
5566 # Loop through the user's path and test for each of PROGNAME-LIST
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5569do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_prog in egrep; do
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005575 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005576# Check for GNU ac_path_EGREP and select it if it is found.
5577 # Check for GNU $ac_path_EGREP
5578case `"$ac_path_EGREP" --version 2>&1` in
5579*GNU*)
5580 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5581*)
5582 ac_count=0
5583 $as_echo_n 0123456789 >"conftest.in"
5584 while :
5585 do
5586 cat "conftest.in" "conftest.in" >"conftest.tmp"
5587 mv "conftest.tmp" "conftest.in"
5588 cp "conftest.in" "conftest.nl"
5589 $as_echo 'EGREP' >> "conftest.nl"
5590 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5592 as_fn_arith $ac_count + 1 && ac_count=$as_val
5593 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5594 # Best one so far, save it but keep looking for a better one
5595 ac_cv_path_EGREP="$ac_path_EGREP"
5596 ac_path_EGREP_max=$ac_count
5597 fi
5598 # 10*(2^10) chars as input seems more than enough
5599 test $ac_count -gt 10 && break
5600 done
5601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5602esac
5603
5604 $ac_path_EGREP_found && break 3
5605 done
5606 done
5607 done
5608IFS=$as_save_IFS
5609 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005610 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005611 fi
5612else
5613 ac_cv_path_EGREP=$EGREP
5614fi
5615
5616 fi
5617fi
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5619$as_echo "$ac_cv_path_EGREP" >&6; }
5620 EGREP="$ac_cv_path_EGREP"
5621
5622
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5624$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005625if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005626 $as_echo_n "(cached) " >&6
5627else
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629/* end confdefs.h. */
5630#include <stdlib.h>
5631#include <stdarg.h>
5632#include <string.h>
5633#include <float.h>
5634
5635int
5636main ()
5637{
5638
5639 ;
5640 return 0;
5641}
5642_ACEOF
5643if ac_fn_c_try_compile "$LINENO"; then :
5644 ac_cv_header_stdc=yes
5645else
5646 ac_cv_header_stdc=no
5647fi
5648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649
5650if test $ac_cv_header_stdc = yes; then
5651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h. */
5654#include <string.h>
5655
5656_ACEOF
5657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5658 $EGREP "memchr" >/dev/null 2>&1; then :
5659
5660else
5661 ac_cv_header_stdc=no
5662fi
5663rm -f conftest*
5664
5665fi
5666
5667if test $ac_cv_header_stdc = yes; then
5668 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h. */
5671#include <stdlib.h>
5672
5673_ACEOF
5674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5675 $EGREP "free" >/dev/null 2>&1; then :
5676
5677else
5678 ac_cv_header_stdc=no
5679fi
5680rm -f conftest*
5681
5682fi
5683
5684if test $ac_cv_header_stdc = yes; then
5685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5686 if test "$cross_compiling" = yes; then :
5687 :
5688else
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690/* end confdefs.h. */
5691#include <ctype.h>
5692#include <stdlib.h>
5693#if ((' ' & 0x0FF) == 0x020)
5694# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5695# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5696#else
5697# define ISLOWER(c) \
5698 (('a' <= (c) && (c) <= 'i') \
5699 || ('j' <= (c) && (c) <= 'r') \
5700 || ('s' <= (c) && (c) <= 'z'))
5701# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5702#endif
5703
5704#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5705int
5706main ()
5707{
5708 int i;
5709 for (i = 0; i < 256; i++)
5710 if (XOR (islower (i), ISLOWER (i))
5711 || toupper (i) != TOUPPER (i))
5712 return 2;
5713 return 0;
5714}
5715_ACEOF
5716if ac_fn_c_try_run "$LINENO"; then :
5717
5718else
5719 ac_cv_header_stdc=no
5720fi
5721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5722 conftest.$ac_objext conftest.beam conftest.$ac_ext
5723fi
5724
5725fi
5726fi
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5728$as_echo "$ac_cv_header_stdc" >&6; }
5729if test $ac_cv_header_stdc = yes; then
5730
5731$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5732
5733fi
5734
5735# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5736for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5737 inttypes.h stdint.h unistd.h
5738do :
5739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5740ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5741"
cristy98dddb52010-11-04 00:30:15 +00005742if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005743 cat >>confdefs.h <<_ACEOF
5744#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5745_ACEOF
5746
5747fi
5748
5749done
5750
5751
5752
5753 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 +00005754if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005755 MINIX=yes
5756else
5757 MINIX=
5758fi
5759
5760
5761 if test "$MINIX" = yes; then
5762
5763$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5764
5765
5766$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5767
5768
5769$as_echo "#define _MINIX 1" >>confdefs.h
5770
5771 fi
5772
5773
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5775$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005776if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005777 $as_echo_n "(cached) " >&6
5778else
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780/* end confdefs.h. */
5781
cristy14fefe52012-05-21 00:59:18 +00005782# define __EXTENSIONS__ 1
5783 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005784int
5785main ()
5786{
5787
5788 ;
5789 return 0;
5790}
5791_ACEOF
5792if ac_fn_c_try_compile "$LINENO"; then :
5793 ac_cv_safe_to_define___extensions__=yes
5794else
5795 ac_cv_safe_to_define___extensions__=no
5796fi
5797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798fi
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5800$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5801 test $ac_cv_safe_to_define___extensions__ = yes &&
5802 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5803
5804 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5805
5806 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5807
5808 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5809
5810 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5811
5812
5813
5814# Check for programs
5815ac_ext=c
5816ac_cpp='$CPP $CPPFLAGS'
5817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819ac_compiler_gnu=$ac_cv_c_compiler_gnu
5820if test -n "$ac_tool_prefix"; then
5821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5822set dummy ${ac_tool_prefix}gcc; ac_word=$2
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005825if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005826 $as_echo_n "(cached) " >&6
5827else
5828 if test -n "$CC"; then
5829 ac_cv_prog_CC="$CC" # Let the user override the test.
5830else
5831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832for as_dir in $PATH
5833do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 break 2
5841 fi
5842done
5843 done
5844IFS=$as_save_IFS
5845
5846fi
5847fi
5848CC=$ac_cv_prog_CC
5849if test -n "$CC"; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5851$as_echo "$CC" >&6; }
5852else
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854$as_echo "no" >&6; }
5855fi
5856
5857
5858fi
5859if test -z "$ac_cv_prog_CC"; then
5860 ac_ct_CC=$CC
5861 # Extract the first word of "gcc", so it can be a program name with args.
5862set dummy gcc; ac_word=$2
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005865if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005866 $as_echo_n "(cached) " >&6
5867else
5868 if test -n "$ac_ct_CC"; then
5869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5870else
5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005878 ac_cv_prog_ac_ct_CC="gcc"
5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5881 fi
5882done
5883 done
5884IFS=$as_save_IFS
5885
5886fi
5887fi
5888ac_ct_CC=$ac_cv_prog_ac_ct_CC
5889if test -n "$ac_ct_CC"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5891$as_echo "$ac_ct_CC" >&6; }
5892else
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894$as_echo "no" >&6; }
5895fi
5896
5897 if test "x$ac_ct_CC" = x; then
5898 CC=""
5899 else
5900 case $cross_compiling:$ac_tool_warned in
5901yes:)
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5904ac_tool_warned=yes ;;
5905esac
5906 CC=$ac_ct_CC
5907 fi
5908else
5909 CC="$ac_cv_prog_CC"
5910fi
5911
5912if test -z "$CC"; then
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5915set dummy ${ac_tool_prefix}cc; ac_word=$2
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005918if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005919 $as_echo_n "(cached) " >&6
5920else
5921 if test -n "$CC"; then
5922 ac_cv_prog_CC="$CC" # Let the user override the test.
5923else
5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005931 ac_cv_prog_CC="${ac_tool_prefix}cc"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935done
5936 done
5937IFS=$as_save_IFS
5938
5939fi
5940fi
5941CC=$ac_cv_prog_CC
5942if test -n "$CC"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5944$as_echo "$CC" >&6; }
5945else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947$as_echo "no" >&6; }
5948fi
5949
5950
5951 fi
5952fi
5953if test -z "$CC"; then
5954 # Extract the first word of "cc", so it can be a program name with args.
5955set dummy cc; ac_word=$2
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005958if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005959 $as_echo_n "(cached) " >&6
5960else
5961 if test -n "$CC"; then
5962 ac_cv_prog_CC="$CC" # Let the user override the test.
5963else
5964 ac_prog_rejected=no
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005972 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5973 ac_prog_rejected=yes
5974 continue
5975 fi
5976 ac_cv_prog_CC="cc"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980done
5981 done
5982IFS=$as_save_IFS
5983
5984if test $ac_prog_rejected = yes; then
5985 # We found a bogon in the path, so make sure we never use it.
5986 set dummy $ac_cv_prog_CC
5987 shift
5988 if test $# != 0; then
5989 # We chose a different compiler from the bogus one.
5990 # However, it has the same basename, so the bogon will be chosen
5991 # first if we set CC to just the basename; use the full file name.
5992 shift
5993 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5994 fi
5995fi
5996fi
5997fi
5998CC=$ac_cv_prog_CC
5999if test -n "$CC"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6001$as_echo "$CC" >&6; }
6002else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004$as_echo "no" >&6; }
6005fi
6006
6007
6008fi
6009if test -z "$CC"; then
6010 if test -n "$ac_tool_prefix"; then
6011 for ac_prog in cl.exe
6012 do
6013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6014set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006017if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006018 $as_echo_n "(cached) " >&6
6019else
6020 if test -n "$CC"; then
6021 ac_cv_prog_CC="$CC" # Let the user override the test.
6022else
6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006030 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034done
6035 done
6036IFS=$as_save_IFS
6037
6038fi
6039fi
6040CC=$ac_cv_prog_CC
6041if test -n "$CC"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6043$as_echo "$CC" >&6; }
6044else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046$as_echo "no" >&6; }
6047fi
6048
6049
6050 test -n "$CC" && break
6051 done
6052fi
6053if test -z "$CC"; then
6054 ac_ct_CC=$CC
6055 for ac_prog in cl.exe
6056do
6057 # Extract the first word of "$ac_prog", so it can be a program name with args.
6058set dummy $ac_prog; ac_word=$2
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006061if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006062 $as_echo_n "(cached) " >&6
6063else
6064 if test -n "$ac_ct_CC"; then
6065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6066else
6067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068for as_dir in $PATH
6069do
6070 IFS=$as_save_IFS
6071 test -z "$as_dir" && as_dir=.
6072 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006074 ac_cv_prog_ac_ct_CC="$ac_prog"
6075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 break 2
6077 fi
6078done
6079 done
6080IFS=$as_save_IFS
6081
6082fi
6083fi
6084ac_ct_CC=$ac_cv_prog_ac_ct_CC
6085if test -n "$ac_ct_CC"; then
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6087$as_echo "$ac_ct_CC" >&6; }
6088else
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090$as_echo "no" >&6; }
6091fi
6092
6093
6094 test -n "$ac_ct_CC" && break
6095done
6096
6097 if test "x$ac_ct_CC" = x; then
6098 CC=""
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101yes:)
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104ac_tool_warned=yes ;;
6105esac
6106 CC=$ac_ct_CC
6107 fi
6108fi
6109
6110fi
6111
6112
6113test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006115as_fn_error $? "no acceptable C compiler found in \$PATH
6116See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006117
6118# Provide some information about the compiler.
6119$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6120set X $ac_compile
6121ac_compiler=$2
6122for ac_option in --version -v -V -qversion; do
6123 { { ac_try="$ac_compiler $ac_option >&5"
6124case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127esac
6128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6129$as_echo "$ac_try_echo"; } >&5
6130 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6131 ac_status=$?
6132 if test -s conftest.err; then
6133 sed '10a\
6134... rest of stderr output deleted ...
6135 10q' conftest.err >conftest.er1
6136 cat conftest.er1 >&5
6137 fi
6138 rm -f conftest.er1 conftest.err
6139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6140 test $ac_status = 0; }
6141done
6142
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6144$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006145if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006146 $as_echo_n "(cached) " >&6
6147else
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149/* end confdefs.h. */
6150
6151int
6152main ()
6153{
6154#ifndef __GNUC__
6155 choke me
6156#endif
6157
6158 ;
6159 return 0;
6160}
6161_ACEOF
6162if ac_fn_c_try_compile "$LINENO"; then :
6163 ac_compiler_gnu=yes
6164else
6165 ac_compiler_gnu=no
6166fi
6167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168ac_cv_c_compiler_gnu=$ac_compiler_gnu
6169
6170fi
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6172$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6173if test $ac_compiler_gnu = yes; then
6174 GCC=yes
6175else
6176 GCC=
6177fi
6178ac_test_CFLAGS=${CFLAGS+set}
6179ac_save_CFLAGS=$CFLAGS
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6181$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006182if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006183 $as_echo_n "(cached) " >&6
6184else
6185 ac_save_c_werror_flag=$ac_c_werror_flag
6186 ac_c_werror_flag=yes
6187 ac_cv_prog_cc_g=no
6188 CFLAGS="-g"
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190/* end confdefs.h. */
6191
6192int
6193main ()
6194{
6195
6196 ;
6197 return 0;
6198}
6199_ACEOF
6200if ac_fn_c_try_compile "$LINENO"; then :
6201 ac_cv_prog_cc_g=yes
6202else
6203 CFLAGS=""
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205/* end confdefs.h. */
6206
6207int
6208main ()
6209{
6210
6211 ;
6212 return 0;
6213}
6214_ACEOF
6215if ac_fn_c_try_compile "$LINENO"; then :
6216
6217else
6218 ac_c_werror_flag=$ac_save_c_werror_flag
6219 CFLAGS="-g"
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221/* end confdefs.h. */
6222
6223int
6224main ()
6225{
6226
6227 ;
6228 return 0;
6229}
6230_ACEOF
6231if ac_fn_c_try_compile "$LINENO"; then :
6232 ac_cv_prog_cc_g=yes
6233fi
6234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235fi
6236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237fi
6238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 ac_c_werror_flag=$ac_save_c_werror_flag
6240fi
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6242$as_echo "$ac_cv_prog_cc_g" >&6; }
6243if test "$ac_test_CFLAGS" = set; then
6244 CFLAGS=$ac_save_CFLAGS
6245elif test $ac_cv_prog_cc_g = yes; then
6246 if test "$GCC" = yes; then
6247 CFLAGS="-g -O2"
6248 else
6249 CFLAGS="-g"
6250 fi
6251else
6252 if test "$GCC" = yes; then
6253 CFLAGS="-O2"
6254 else
6255 CFLAGS=
6256 fi
6257fi
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6259$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006260if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006261 $as_echo_n "(cached) " >&6
6262else
6263 ac_cv_prog_cc_c89=no
6264ac_save_CC=$CC
6265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266/* end confdefs.h. */
6267#include <stdarg.h>
6268#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006269struct stat;
cristya0b81c32010-01-22 02:54:33 +00006270/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6271struct buf { int x; };
6272FILE * (*rcsopen) (struct buf *, struct stat *, int);
6273static char *e (p, i)
6274 char **p;
6275 int i;
6276{
6277 return p[i];
6278}
6279static char *f (char * (*g) (char **, int), char **p, ...)
6280{
6281 char *s;
6282 va_list v;
6283 va_start (v,p);
6284 s = g (p, va_arg (v,int));
6285 va_end (v);
6286 return s;
6287}
6288
6289/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6290 function prototypes and stuff, but not '\xHH' hex character constants.
6291 These don't provoke an error unfortunately, instead are silently treated
6292 as 'x'. The following induces an error, until -std is added to get
6293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6294 array size at least. It's necessary to write '\x00'==0 to get something
6295 that's true only with -std. */
6296int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6297
6298/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6299 inside strings and character constants. */
6300#define FOO(x) 'x'
6301int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6302
6303int test (int i, double x);
6304struct s1 {int (*f) (int a);};
6305struct s2 {int (*f) (double a);};
6306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6307int argc;
6308char **argv;
6309int
6310main ()
6311{
6312return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6313 ;
6314 return 0;
6315}
6316_ACEOF
6317for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6319do
6320 CC="$ac_save_CC $ac_arg"
6321 if ac_fn_c_try_compile "$LINENO"; then :
6322 ac_cv_prog_cc_c89=$ac_arg
6323fi
6324rm -f core conftest.err conftest.$ac_objext
6325 test "x$ac_cv_prog_cc_c89" != "xno" && break
6326done
6327rm -f conftest.$ac_ext
6328CC=$ac_save_CC
6329
6330fi
6331# AC_CACHE_VAL
6332case "x$ac_cv_prog_cc_c89" in
6333 x)
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6335$as_echo "none needed" >&6; } ;;
6336 xno)
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6338$as_echo "unsupported" >&6; } ;;
6339 *)
6340 CC="$CC $ac_cv_prog_cc_c89"
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6342$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6343esac
6344if test "x$ac_cv_prog_cc_c89" != xno; then :
6345
6346fi
6347
6348ac_ext=c
6349ac_cpp='$CPP $CPPFLAGS'
6350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6352ac_compiler_gnu=$ac_cv_c_compiler_gnu
6353
cristy73bd4a52010-10-05 11:24:23 +00006354depcc="$CC" am_compiler_list=
6355
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6357$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006358if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006359 $as_echo_n "(cached) " >&6
6360else
6361 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6362 # We make a subdir and do the tests there. Otherwise we can end up
6363 # making bogus files that we don't know about and never remove. For
6364 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006365 # making a dummy file named 'D' -- because '-MD' means "put the output
6366 # in D".
cristy7247bba2012-02-05 16:37:27 +00006367 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006368 mkdir conftest.dir
6369 # Copy depcomp to subdir because otherwise we won't find it if we're
6370 # using a relative directory.
6371 cp "$am_depcomp" conftest.dir
6372 cd conftest.dir
6373 # We will build objects and dependencies in a subdirectory because
6374 # it helps to detect inapplicable dependency modes. For instance
6375 # both Tru64's cc and ICC support -MD to output dependencies as a
6376 # side effect of compilation, but ICC will put the dependencies in
6377 # the current directory while Tru64 will put them in the object
6378 # directory.
6379 mkdir sub
6380
6381 am_cv_CC_dependencies_compiler_type=none
6382 if test "$am_compiler_list" = ""; then
6383 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6384 fi
6385 am__universal=false
6386 case " $depcc " in #(
6387 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6388 esac
6389
6390 for depmode in $am_compiler_list; do
6391 # Setup a source with many dependencies, because some compilers
6392 # like to wrap large dependency lists on column 80 (with \), and
6393 # we should not choose a depcomp mode which is confused by this.
6394 #
6395 # We need to recreate these files for each test, as the compiler may
6396 # overwrite some of them when testing with obscure command lines.
6397 # This happens at least with the AIX C compiler.
6398 : > sub/conftest.c
6399 for i in 1 2 3 4 5 6; do
6400 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006401 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6402 # Solaris 10 /bin/sh.
6403 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006404 done
6405 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6406
cristyc0890a62012-07-19 00:18:20 +00006407 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006408 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006409 # handle '-M -o', and we need to detect this. Also, some Intel
6410 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006411 am__obj=sub/conftest.${OBJEXT-o}
6412 am__minus_obj="-o $am__obj"
6413 case $depmode in
6414 gcc)
6415 # This depmode causes a compiler race in universal mode.
6416 test "$am__universal" = false || continue
6417 ;;
6418 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006419 # After this tag, mechanisms are not by side-effect, so they'll
6420 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006421 if test "x$enable_dependency_tracking" = xyes; then
6422 continue
6423 else
6424 break
6425 fi
6426 ;;
cristy7247bba2012-02-05 16:37:27 +00006427 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006428 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006429 # not run yet. These depmodes are late enough in the game, and
6430 # so weak that their functioning should not be impacted.
6431 am__obj=conftest.${OBJEXT-o}
6432 am__minus_obj=
6433 ;;
6434 none) break ;;
6435 esac
6436 if depmode=$depmode \
6437 source=sub/conftest.c object=$am__obj \
6438 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6439 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6440 >/dev/null 2>conftest.err &&
6441 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6442 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6443 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6444 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6445 # icc doesn't choke on unknown options, it will just issue warnings
6446 # or remarks (even with -Werror). So we grep stderr for any message
6447 # that says an option was ignored or not supported.
6448 # When given -MP, icc 7.0 and 7.1 complain thusly:
6449 # icc: Command line warning: ignoring option '-M'; no argument required
6450 # The diagnosis changed in icc 8.0:
6451 # icc: Command line remark: option '-MP' not supported
6452 if (grep 'ignoring option' conftest.err ||
6453 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6454 am_cv_CC_dependencies_compiler_type=$depmode
6455 break
6456 fi
6457 fi
6458 done
6459
6460 cd ..
6461 rm -rf conftest.dir
6462else
6463 am_cv_CC_dependencies_compiler_type=none
6464fi
6465
6466fi
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6468$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6469CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6470
6471 if
6472 test "x$enable_dependency_tracking" != xno \
6473 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6474 am__fastdepCC_TRUE=
6475 am__fastdepCC_FALSE='#'
6476else
6477 am__fastdepCC_TRUE='#'
6478 am__fastdepCC_FALSE=
6479fi
6480
6481
cristy95646052009-11-28 23:05:30 +00006482ac_ext=cpp
6483ac_cpp='$CXXCPP $CPPFLAGS'
6484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6487if test -z "$CXX"; then
6488 if test -n "$CCC"; then
6489 CXX=$CCC
6490 else
6491 if test -n "$ac_tool_prefix"; then
6492 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6493 do
6494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6495set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006498if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006499 $as_echo_n "(cached) " >&6
6500else
6501 if test -n "$CXX"; then
6502 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6503else
6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505for as_dir in $PATH
6506do
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006511 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 break 2
6514 fi
6515done
6516 done
6517IFS=$as_save_IFS
6518
6519fi
6520fi
6521CXX=$ac_cv_prog_CXX
6522if test -n "$CXX"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6524$as_echo "$CXX" >&6; }
6525else
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527$as_echo "no" >&6; }
6528fi
6529
6530
6531 test -n "$CXX" && break
6532 done
6533fi
6534if test -z "$CXX"; then
6535 ac_ct_CXX=$CXX
6536 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6537do
6538 # Extract the first word of "$ac_prog", so it can be a program name with args.
6539set dummy $ac_prog; ac_word=$2
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006542if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006543 $as_echo_n "(cached) " >&6
6544else
6545 if test -n "$ac_ct_CXX"; then
6546 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6547else
6548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549for as_dir in $PATH
6550do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006555 ac_cv_prog_ac_ct_CXX="$ac_prog"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6558 fi
6559done
6560 done
6561IFS=$as_save_IFS
6562
6563fi
6564fi
6565ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6566if test -n "$ac_ct_CXX"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6568$as_echo "$ac_ct_CXX" >&6; }
6569else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571$as_echo "no" >&6; }
6572fi
6573
6574
6575 test -n "$ac_ct_CXX" && break
6576done
6577
6578 if test "x$ac_ct_CXX" = x; then
6579 CXX="g++"
6580 else
6581 case $cross_compiling:$ac_tool_warned in
6582yes:)
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585ac_tool_warned=yes ;;
6586esac
6587 CXX=$ac_ct_CXX
6588 fi
6589fi
6590
6591 fi
6592fi
6593# Provide some information about the compiler.
6594$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6595set X $ac_compile
6596ac_compiler=$2
6597for ac_option in --version -v -V -qversion; do
6598 { { ac_try="$ac_compiler $ac_option >&5"
6599case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6602esac
6603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6604$as_echo "$ac_try_echo"; } >&5
6605 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6606 ac_status=$?
6607 if test -s conftest.err; then
6608 sed '10a\
6609... rest of stderr output deleted ...
6610 10q' conftest.err >conftest.er1
6611 cat conftest.er1 >&5
6612 fi
6613 rm -f conftest.er1 conftest.err
6614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6615 test $ac_status = 0; }
6616done
6617
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6619$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006620if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006621 $as_echo_n "(cached) " >&6
6622else
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h. */
6625
6626int
6627main ()
6628{
6629#ifndef __GNUC__
6630 choke me
6631#endif
6632
6633 ;
6634 return 0;
6635}
6636_ACEOF
6637if ac_fn_cxx_try_compile "$LINENO"; then :
6638 ac_compiler_gnu=yes
6639else
6640 ac_compiler_gnu=no
6641fi
6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6644
6645fi
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6647$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6648if test $ac_compiler_gnu = yes; then
6649 GXX=yes
6650else
6651 GXX=
6652fi
6653ac_test_CXXFLAGS=${CXXFLAGS+set}
6654ac_save_CXXFLAGS=$CXXFLAGS
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6656$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006657if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006658 $as_echo_n "(cached) " >&6
6659else
6660 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6661 ac_cxx_werror_flag=yes
6662 ac_cv_prog_cxx_g=no
6663 CXXFLAGS="-g"
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665/* end confdefs.h. */
6666
6667int
6668main ()
6669{
6670
6671 ;
6672 return 0;
6673}
6674_ACEOF
6675if ac_fn_cxx_try_compile "$LINENO"; then :
6676 ac_cv_prog_cxx_g=yes
6677else
6678 CXXFLAGS=""
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680/* end confdefs.h. */
6681
6682int
6683main ()
6684{
6685
6686 ;
6687 return 0;
6688}
6689_ACEOF
6690if ac_fn_cxx_try_compile "$LINENO"; then :
6691
6692else
6693 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6694 CXXFLAGS="-g"
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696/* end confdefs.h. */
6697
6698int
6699main ()
6700{
6701
6702 ;
6703 return 0;
6704}
6705_ACEOF
6706if ac_fn_cxx_try_compile "$LINENO"; then :
6707 ac_cv_prog_cxx_g=yes
6708fi
6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710fi
6711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712fi
6713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6715fi
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6717$as_echo "$ac_cv_prog_cxx_g" >&6; }
6718if test "$ac_test_CXXFLAGS" = set; then
6719 CXXFLAGS=$ac_save_CXXFLAGS
6720elif test $ac_cv_prog_cxx_g = yes; then
6721 if test "$GXX" = yes; then
6722 CXXFLAGS="-g -O2"
6723 else
6724 CXXFLAGS="-g"
6725 fi
6726else
6727 if test "$GXX" = yes; then
6728 CXXFLAGS="-O2"
6729 else
6730 CXXFLAGS=
6731 fi
6732fi
6733ac_ext=c
6734ac_cpp='$CPP $CPPFLAGS'
6735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6737ac_compiler_gnu=$ac_cv_c_compiler_gnu
6738
cristy73bd4a52010-10-05 11:24:23 +00006739depcc="$CXX" am_compiler_list=
6740
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6742$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006743if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006744 $as_echo_n "(cached) " >&6
6745else
6746 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6747 # We make a subdir and do the tests there. Otherwise we can end up
6748 # making bogus files that we don't know about and never remove. For
6749 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006750 # making a dummy file named 'D' -- because '-MD' means "put the output
6751 # in D".
cristy7247bba2012-02-05 16:37:27 +00006752 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006753 mkdir conftest.dir
6754 # Copy depcomp to subdir because otherwise we won't find it if we're
6755 # using a relative directory.
6756 cp "$am_depcomp" conftest.dir
6757 cd conftest.dir
6758 # We will build objects and dependencies in a subdirectory because
6759 # it helps to detect inapplicable dependency modes. For instance
6760 # both Tru64's cc and ICC support -MD to output dependencies as a
6761 # side effect of compilation, but ICC will put the dependencies in
6762 # the current directory while Tru64 will put them in the object
6763 # directory.
6764 mkdir sub
6765
6766 am_cv_CXX_dependencies_compiler_type=none
6767 if test "$am_compiler_list" = ""; then
6768 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6769 fi
6770 am__universal=false
6771 case " $depcc " in #(
6772 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6773 esac
6774
6775 for depmode in $am_compiler_list; do
6776 # Setup a source with many dependencies, because some compilers
6777 # like to wrap large dependency lists on column 80 (with \), and
6778 # we should not choose a depcomp mode which is confused by this.
6779 #
6780 # We need to recreate these files for each test, as the compiler may
6781 # overwrite some of them when testing with obscure command lines.
6782 # This happens at least with the AIX C compiler.
6783 : > sub/conftest.c
6784 for i in 1 2 3 4 5 6; do
6785 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006786 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6787 # Solaris 10 /bin/sh.
6788 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006789 done
6790 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6791
cristyc0890a62012-07-19 00:18:20 +00006792 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006793 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006794 # handle '-M -o', and we need to detect this. Also, some Intel
6795 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006796 am__obj=sub/conftest.${OBJEXT-o}
6797 am__minus_obj="-o $am__obj"
6798 case $depmode in
6799 gcc)
6800 # This depmode causes a compiler race in universal mode.
6801 test "$am__universal" = false || continue
6802 ;;
6803 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006804 # After this tag, mechanisms are not by side-effect, so they'll
6805 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006806 if test "x$enable_dependency_tracking" = xyes; then
6807 continue
6808 else
6809 break
6810 fi
6811 ;;
cristy7247bba2012-02-05 16:37:27 +00006812 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006813 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006814 # not run yet. These depmodes are late enough in the game, and
6815 # so weak that their functioning should not be impacted.
6816 am__obj=conftest.${OBJEXT-o}
6817 am__minus_obj=
6818 ;;
6819 none) break ;;
6820 esac
6821 if depmode=$depmode \
6822 source=sub/conftest.c object=$am__obj \
6823 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6824 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6825 >/dev/null 2>conftest.err &&
6826 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6827 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6828 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6829 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6830 # icc doesn't choke on unknown options, it will just issue warnings
6831 # or remarks (even with -Werror). So we grep stderr for any message
6832 # that says an option was ignored or not supported.
6833 # When given -MP, icc 7.0 and 7.1 complain thusly:
6834 # icc: Command line warning: ignoring option '-M'; no argument required
6835 # The diagnosis changed in icc 8.0:
6836 # icc: Command line remark: option '-MP' not supported
6837 if (grep 'ignoring option' conftest.err ||
6838 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6839 am_cv_CXX_dependencies_compiler_type=$depmode
6840 break
6841 fi
6842 fi
6843 done
6844
6845 cd ..
6846 rm -rf conftest.dir
6847else
6848 am_cv_CXX_dependencies_compiler_type=none
6849fi
6850
6851fi
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6853$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6854CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6855
6856 if
6857 test "x$enable_dependency_tracking" != xno \
6858 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6859 am__fastdepCXX_TRUE=
6860 am__fastdepCXX_FALSE='#'
6861else
6862 am__fastdepCXX_TRUE='#'
6863 am__fastdepCXX_FALSE=
6864fi
6865
6866
cristy8b350f62009-11-15 23:12:43 +00006867 case $ac_cv_prog_cc_stdc in #(
6868 no) :
6869 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6870 *) :
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006872$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006873if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006874 $as_echo_n "(cached) " >&6
6875else
6876 ac_cv_prog_cc_c99=no
6877ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006879/* end confdefs.h. */
6880#include <stdarg.h>
6881#include <stdbool.h>
6882#include <stdlib.h>
6883#include <wchar.h>
6884#include <stdio.h>
6885
6886// Check varargs macros. These examples are taken from C99 6.10.3.5.
6887#define debug(...) fprintf (stderr, __VA_ARGS__)
6888#define showlist(...) puts (#__VA_ARGS__)
6889#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6890static void
6891test_varargs_macros (void)
6892{
6893 int x = 1234;
6894 int y = 5678;
6895 debug ("Flag");
6896 debug ("X = %d\n", x);
6897 showlist (The first, second, and third items.);
6898 report (x>y, "x is %d but y is %d", x, y);
6899}
6900
6901// Check long long types.
6902#define BIG64 18446744073709551615ull
6903#define BIG32 4294967295ul
6904#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6905#if !BIG_OK
6906 your preprocessor is broken;
6907#endif
6908#if BIG_OK
6909#else
6910 your preprocessor is broken;
6911#endif
6912static long long int bignum = -9223372036854775807LL;
6913static unsigned long long int ubignum = BIG64;
6914
6915struct incomplete_array
6916{
6917 int datasize;
6918 double data[];
6919};
6920
6921struct named_init {
6922 int number;
6923 const wchar_t *name;
6924 double average;
6925};
6926
6927typedef const char *ccp;
6928
6929static inline int
6930test_restrict (ccp restrict text)
6931{
6932 // See if C++-style comments work.
6933 // Iterate through items via the restricted pointer.
6934 // Also check for declarations in for loops.
6935 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6936 continue;
6937 return 0;
6938}
6939
6940// Check varargs and va_copy.
6941static void
6942test_varargs (const char *format, ...)
6943{
6944 va_list args;
6945 va_start (args, format);
6946 va_list args_copy;
6947 va_copy (args_copy, args);
6948
6949 const char *str;
6950 int number;
6951 float fnumber;
6952
6953 while (*format)
6954 {
6955 switch (*format++)
6956 {
6957 case 's': // string
6958 str = va_arg (args_copy, const char *);
6959 break;
6960 case 'd': // int
6961 number = va_arg (args_copy, int);
6962 break;
6963 case 'f': // float
6964 fnumber = va_arg (args_copy, double);
6965 break;
6966 default:
6967 break;
6968 }
6969 }
6970 va_end (args_copy);
6971 va_end (args);
6972}
6973
6974int
6975main ()
6976{
6977
6978 // Check bool.
6979 _Bool success = false;
6980
6981 // Check restrict.
6982 if (test_restrict ("String literal") == 0)
6983 success = true;
6984 char *restrict newvar = "Another string";
6985
6986 // Check varargs.
6987 test_varargs ("s, d' f .", "string", 65, 34.234);
6988 test_varargs_macros ();
6989
6990 // Check flexible array members.
6991 struct incomplete_array *ia =
6992 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6993 ia->datasize = 10;
6994 for (int i = 0; i < ia->datasize; ++i)
6995 ia->data[i] = i * 1.234;
6996
6997 // Check named initializers.
6998 struct named_init ni = {
6999 .number = 34,
7000 .name = L"Test wide string",
7001 .average = 543.34343,
7002 };
7003
7004 ni.number = 58;
7005
7006 int dynamic_array[ni.number];
7007 dynamic_array[ni.number - 1] = 543;
7008
7009 // work around unused variable warnings
7010 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7011 || dynamic_array[ni.number - 1] != 543);
7012
7013 ;
7014 return 0;
7015}
7016_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007017for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007018do
7019 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007020 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007021 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007022fi
cristy3ed852e2009-09-05 21:47:34 +00007023rm -f core conftest.err conftest.$ac_objext
7024 test "x$ac_cv_prog_cc_c99" != "xno" && break
7025done
7026rm -f conftest.$ac_ext
7027CC=$ac_save_CC
7028
7029fi
7030# AC_CACHE_VAL
7031case "x$ac_cv_prog_cc_c99" in
7032 x)
cristy8b350f62009-11-15 23:12:43 +00007033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007034$as_echo "none needed" >&6; } ;;
7035 xno)
cristy8b350f62009-11-15 23:12:43 +00007036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007037$as_echo "unsupported" >&6; } ;;
7038 *)
7039 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007041$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7042esac
cristy8b350f62009-11-15 23:12:43 +00007043if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007044 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7045else
cristy8b350f62009-11-15 23:12:43 +00007046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007047$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007048if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007049 $as_echo_n "(cached) " >&6
7050else
7051 ac_cv_prog_cc_c89=no
7052ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007054/* end confdefs.h. */
7055#include <stdarg.h>
7056#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007057struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007058/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7059struct buf { int x; };
7060FILE * (*rcsopen) (struct buf *, struct stat *, int);
7061static char *e (p, i)
7062 char **p;
7063 int i;
7064{
7065 return p[i];
7066}
7067static char *f (char * (*g) (char **, int), char **p, ...)
7068{
7069 char *s;
7070 va_list v;
7071 va_start (v,p);
7072 s = g (p, va_arg (v,int));
7073 va_end (v);
7074 return s;
7075}
7076
7077/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7078 function prototypes and stuff, but not '\xHH' hex character constants.
7079 These don't provoke an error unfortunately, instead are silently treated
7080 as 'x'. The following induces an error, until -std is added to get
7081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7082 array size at least. It's necessary to write '\x00'==0 to get something
7083 that's true only with -std. */
7084int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7085
7086/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7087 inside strings and character constants. */
7088#define FOO(x) 'x'
7089int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7090
7091int test (int i, double x);
7092struct s1 {int (*f) (int a);};
7093struct s2 {int (*f) (double a);};
7094int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7095int argc;
7096char **argv;
7097int
7098main ()
7099{
7100return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7101 ;
7102 return 0;
7103}
7104_ACEOF
7105for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7107do
7108 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007109 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007110 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007111fi
cristy3ed852e2009-09-05 21:47:34 +00007112rm -f core conftest.err conftest.$ac_objext
7113 test "x$ac_cv_prog_cc_c89" != "xno" && break
7114done
7115rm -f conftest.$ac_ext
7116CC=$ac_save_CC
7117
7118fi
7119# AC_CACHE_VAL
7120case "x$ac_cv_prog_cc_c89" in
7121 x)
cristy8b350f62009-11-15 23:12:43 +00007122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007123$as_echo "none needed" >&6; } ;;
7124 xno)
cristy8b350f62009-11-15 23:12:43 +00007125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007126$as_echo "unsupported" >&6; } ;;
7127 *)
7128 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007130$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7131esac
cristy8b350f62009-11-15 23:12:43 +00007132if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007133 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7134else
7135 ac_cv_prog_cc_stdc=no
7136fi
7137
cristy3ed852e2009-09-05 21:47:34 +00007138fi
cristy3ed852e2009-09-05 21:47:34 +00007139 ;;
7140esac
cristy8b350f62009-11-15 23:12:43 +00007141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007142$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007143 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007144 $as_echo_n "(cached) " >&6
7145fi
7146
cristy8b350f62009-11-15 23:12:43 +00007147 case $ac_cv_prog_cc_stdc in #(
7148 no) :
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7150$as_echo "unsupported" >&6; } ;; #(
7151 '') :
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7153$as_echo "none needed" >&6; } ;; #(
7154 *) :
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007156$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7157esac
7158
cristy3ed852e2009-09-05 21:47:34 +00007159ac_ext=c
7160ac_cpp='$CPP $CPPFLAGS'
7161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007165$as_echo_n "checking how to run the C preprocessor... " >&6; }
7166# On Suns, sometimes $CPP names a directory.
7167if test -n "$CPP" && test -d "$CPP"; then
7168 CPP=
7169fi
7170if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007171 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007172 $as_echo_n "(cached) " >&6
7173else
7174 # Double quotes because CPP needs to be expanded
7175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7176 do
7177 ac_preproc_ok=false
7178for ac_c_preproc_warn_flag in '' yes
7179do
7180 # Use a header file that comes with gcc, so configuring glibc
7181 # with a fresh cross-compiler works.
7182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7183 # <limits.h> exists even on freestanding compilers.
7184 # On the NeXT, cc -E runs the code through the compiler's parser,
7185 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007187/* end confdefs.h. */
7188#ifdef __STDC__
7189# include <limits.h>
7190#else
7191# include <assert.h>
7192#endif
7193 Syntax error
7194_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007195if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007196
cristy8b350f62009-11-15 23:12:43 +00007197else
cristy3ed852e2009-09-05 21:47:34 +00007198 # Broken: fails on valid input.
7199continue
7200fi
cristyda16f162011-02-19 23:52:17 +00007201rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007202
7203 # OK, works on sane cases. Now check whether nonexistent headers
7204 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007206/* end confdefs.h. */
7207#include <ac_nonexistent.h>
7208_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007209if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007210 # Broken: success on invalid input.
7211continue
7212else
cristy3ed852e2009-09-05 21:47:34 +00007213 # Passes both tests.
7214ac_preproc_ok=:
7215break
7216fi
cristyda16f162011-02-19 23:52:17 +00007217rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007218
7219done
7220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007221rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007222if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007223 break
7224fi
7225
7226 done
7227 ac_cv_prog_CPP=$CPP
7228
7229fi
7230 CPP=$ac_cv_prog_CPP
7231else
7232 ac_cv_prog_CPP=$CPP
7233fi
cristy8b350f62009-11-15 23:12:43 +00007234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007235$as_echo "$CPP" >&6; }
7236ac_preproc_ok=false
7237for ac_c_preproc_warn_flag in '' yes
7238do
7239 # Use a header file that comes with gcc, so configuring glibc
7240 # with a fresh cross-compiler works.
7241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7242 # <limits.h> exists even on freestanding compilers.
7243 # On the NeXT, cc -E runs the code through the compiler's parser,
7244 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007246/* end confdefs.h. */
7247#ifdef __STDC__
7248# include <limits.h>
7249#else
7250# include <assert.h>
7251#endif
7252 Syntax error
7253_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007254if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007255
cristy8b350f62009-11-15 23:12:43 +00007256else
cristy3ed852e2009-09-05 21:47:34 +00007257 # Broken: fails on valid input.
7258continue
7259fi
cristyda16f162011-02-19 23:52:17 +00007260rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007261
7262 # OK, works on sane cases. Now check whether nonexistent headers
7263 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007265/* end confdefs.h. */
7266#include <ac_nonexistent.h>
7267_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007268if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007269 # Broken: success on invalid input.
7270continue
7271else
cristy3ed852e2009-09-05 21:47:34 +00007272 # Passes both tests.
7273ac_preproc_ok=:
7274break
7275fi
cristyda16f162011-02-19 23:52:17 +00007276rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007277
7278done
7279# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007280rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007281if $ac_preproc_ok; then :
7282
cristy3ed852e2009-09-05 21:47:34 +00007283else
cristy8b350f62009-11-15 23:12:43 +00007284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007286as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7287See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007288fi
7289
7290ac_ext=c
7291ac_cpp='$CPP $CPPFLAGS'
7292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7294ac_compiler_gnu=$ac_cv_c_compiler_gnu
7295
cristy73bd4a52010-10-05 11:24:23 +00007296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7297$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007298if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007299 $as_echo_n "(cached) " >&6
7300else
7301 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7302 for ac_i in 1 2 3 4 5 6 7; do
7303 ac_script="$ac_script$as_nl$ac_script"
7304 done
7305 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7306 { ac_script=; unset ac_script;}
7307 if test -z "$SED"; then
7308 ac_path_SED_found=false
7309 # Loop through the user's path and test for each of PROGNAME-LIST
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_prog in sed gsed; do
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007318 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007319# Check for GNU ac_path_SED and select it if it is found.
7320 # Check for GNU $ac_path_SED
7321case `"$ac_path_SED" --version 2>&1` in
7322*GNU*)
7323 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7324*)
7325 ac_count=0
7326 $as_echo_n 0123456789 >"conftest.in"
7327 while :
7328 do
7329 cat "conftest.in" "conftest.in" >"conftest.tmp"
7330 mv "conftest.tmp" "conftest.in"
7331 cp "conftest.in" "conftest.nl"
7332 $as_echo '' >> "conftest.nl"
7333 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7335 as_fn_arith $ac_count + 1 && ac_count=$as_val
7336 if test $ac_count -gt ${ac_path_SED_max-0}; then
7337 # Best one so far, save it but keep looking for a better one
7338 ac_cv_path_SED="$ac_path_SED"
7339 ac_path_SED_max=$ac_count
7340 fi
7341 # 10*(2^10) chars as input seems more than enough
7342 test $ac_count -gt 10 && break
7343 done
7344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7345esac
7346
7347 $ac_path_SED_found && break 3
7348 done
7349 done
7350 done
7351IFS=$as_save_IFS
7352 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007353 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007354 fi
7355else
7356 ac_cv_path_SED=$SED
7357fi
7358
7359fi
7360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7361$as_echo "$ac_cv_path_SED" >&6; }
7362 SED="$ac_cv_path_SED"
7363 rm -f conftest.sed
7364
7365test -z "$SED" && SED=sed
7366Xsed="$SED -e 1s/^X//"
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7379$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007380if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007381 $as_echo_n "(cached) " >&6
7382else
7383 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7384 then ac_cv_path_FGREP="$GREP -F"
7385 else
7386 if test -z "$FGREP"; then
7387 ac_path_FGREP_found=false
7388 # Loop through the user's path and test for each of PROGNAME-LIST
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_prog in fgrep; do
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007397 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007398# Check for GNU ac_path_FGREP and select it if it is found.
7399 # Check for GNU $ac_path_FGREP
7400case `"$ac_path_FGREP" --version 2>&1` in
7401*GNU*)
7402 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7403*)
7404 ac_count=0
7405 $as_echo_n 0123456789 >"conftest.in"
7406 while :
7407 do
7408 cat "conftest.in" "conftest.in" >"conftest.tmp"
7409 mv "conftest.tmp" "conftest.in"
7410 cp "conftest.in" "conftest.nl"
7411 $as_echo 'FGREP' >> "conftest.nl"
7412 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7414 as_fn_arith $ac_count + 1 && ac_count=$as_val
7415 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7416 # Best one so far, save it but keep looking for a better one
7417 ac_cv_path_FGREP="$ac_path_FGREP"
7418 ac_path_FGREP_max=$ac_count
7419 fi
7420 # 10*(2^10) chars as input seems more than enough
7421 test $ac_count -gt 10 && break
7422 done
7423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7424esac
7425
7426 $ac_path_FGREP_found && break 3
7427 done
7428 done
7429 done
7430IFS=$as_save_IFS
7431 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007432 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007433 fi
7434else
7435 ac_cv_path_FGREP=$FGREP
7436fi
7437
7438 fi
7439fi
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7441$as_echo "$ac_cv_path_FGREP" >&6; }
7442 FGREP="$ac_cv_path_FGREP"
7443
7444
7445test -z "$GREP" && GREP=grep
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
cristy0c60a692010-11-04 01:09:47 +00007463ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7464ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7465ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7466
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7468$as_echo_n "checking how to print strings... " >&6; }
7469# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007470if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007471 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7472 ECHO='print -r --'
7473elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7474 ECHO='printf %s\n'
7475else
7476 # Use this function as a fallback that always works.
7477 func_fallback_echo ()
7478 {
7479 eval 'cat <<_LTECHO_EOF
7480$1
7481_LTECHO_EOF'
7482 }
7483 ECHO='func_fallback_echo'
7484fi
7485
7486# func_echo_all arg...
7487# Invoke $ECHO with all args, space-separated.
7488func_echo_all ()
7489{
7490 $ECHO ""
7491}
7492
7493case "$ECHO" in
7494 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7495$as_echo "printf" >&6; } ;;
7496 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7497$as_echo "print -r" >&6; } ;;
7498 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7499$as_echo "cat" >&6; } ;;
7500esac
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
cristy73bd4a52010-10-05 11:24:23 +00007515
7516
7517# Check whether --with-gnu-ld was given.
7518if test "${with_gnu_ld+set}" = set; then :
7519 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7520else
7521 with_gnu_ld=no
7522fi
7523
7524ac_prog=ld
7525if test "$GCC" = yes; then
7526 # Check if gcc -print-prog-name=ld gives a path.
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7528$as_echo_n "checking for ld used by $CC... " >&6; }
7529 case $host in
7530 *-*-mingw*)
7531 # gcc leaves a trailing carriage return which upsets mingw
7532 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7533 *)
7534 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7535 esac
7536 case $ac_prog in
7537 # Accept absolute paths.
7538 [\\/]* | ?:[\\/]*)
7539 re_direlt='/[^/][^/]*/\.\./'
7540 # Canonicalize the pathname of ld
7541 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7542 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7543 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7544 done
7545 test -z "$LD" && LD="$ac_prog"
7546 ;;
7547 "")
7548 # If it fails, then pretend we aren't using GCC.
7549 ac_prog=ld
7550 ;;
7551 *)
7552 # If it is relative, then search for the first ld in PATH.
7553 with_gnu_ld=unknown
7554 ;;
7555 esac
7556elif test "$with_gnu_ld" = yes; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7558$as_echo_n "checking for GNU ld... " >&6; }
7559else
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7561$as_echo_n "checking for non-GNU ld... " >&6; }
7562fi
cristyda16f162011-02-19 23:52:17 +00007563if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007564 $as_echo_n "(cached) " >&6
7565else
7566 if test -z "$LD"; then
7567 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7568 for ac_dir in $PATH; do
7569 IFS="$lt_save_ifs"
7570 test -z "$ac_dir" && ac_dir=.
7571 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7572 lt_cv_path_LD="$ac_dir/$ac_prog"
7573 # Check to see if the program is GNU ld. I'd rather use --version,
7574 # but apparently some variants of GNU ld only accept -v.
7575 # Break only if it was the GNU/non-GNU ld that we prefer.
7576 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7577 *GNU* | *'with BFD'*)
7578 test "$with_gnu_ld" != no && break
7579 ;;
7580 *)
7581 test "$with_gnu_ld" != yes && break
7582 ;;
7583 esac
7584 fi
7585 done
7586 IFS="$lt_save_ifs"
7587else
7588 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7589fi
7590fi
7591
7592LD="$lt_cv_path_LD"
7593if test -n "$LD"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7595$as_echo "$LD" >&6; }
7596else
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598$as_echo "no" >&6; }
7599fi
cristy98dddb52010-11-04 00:30:15 +00007600test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7602$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007603if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007604 $as_echo_n "(cached) " >&6
7605else
7606 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7607case `$LD -v 2>&1 </dev/null` in
7608*GNU* | *'with BFD'*)
7609 lt_cv_prog_gnu_ld=yes
7610 ;;
7611*)
7612 lt_cv_prog_gnu_ld=no
7613 ;;
7614esac
7615fi
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7617$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7618with_gnu_ld=$lt_cv_prog_gnu_ld
7619
7620
7621
7622
7623
7624
7625
7626
7627
cristy3ed852e2009-09-05 21:47:34 +00007628
cristy837d6dc2010-02-27 01:16:57 +00007629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7630$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007631if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007632 $as_echo_n "(cached) " >&6
7633else
7634 ac_cv_prog_cc_c99=no
7635ac_save_CC=$CC
7636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637/* end confdefs.h. */
7638#include <stdarg.h>
7639#include <stdbool.h>
7640#include <stdlib.h>
7641#include <wchar.h>
7642#include <stdio.h>
7643
7644// Check varargs macros. These examples are taken from C99 6.10.3.5.
7645#define debug(...) fprintf (stderr, __VA_ARGS__)
7646#define showlist(...) puts (#__VA_ARGS__)
7647#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7648static void
7649test_varargs_macros (void)
7650{
7651 int x = 1234;
7652 int y = 5678;
7653 debug ("Flag");
7654 debug ("X = %d\n", x);
7655 showlist (The first, second, and third items.);
7656 report (x>y, "x is %d but y is %d", x, y);
7657}
7658
7659// Check long long types.
7660#define BIG64 18446744073709551615ull
7661#define BIG32 4294967295ul
7662#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7663#if !BIG_OK
7664 your preprocessor is broken;
7665#endif
7666#if BIG_OK
7667#else
7668 your preprocessor is broken;
7669#endif
7670static long long int bignum = -9223372036854775807LL;
7671static unsigned long long int ubignum = BIG64;
7672
7673struct incomplete_array
7674{
7675 int datasize;
7676 double data[];
7677};
7678
7679struct named_init {
7680 int number;
7681 const wchar_t *name;
7682 double average;
7683};
7684
7685typedef const char *ccp;
7686
7687static inline int
7688test_restrict (ccp restrict text)
7689{
7690 // See if C++-style comments work.
7691 // Iterate through items via the restricted pointer.
7692 // Also check for declarations in for loops.
7693 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7694 continue;
7695 return 0;
7696}
7697
7698// Check varargs and va_copy.
7699static void
7700test_varargs (const char *format, ...)
7701{
7702 va_list args;
7703 va_start (args, format);
7704 va_list args_copy;
7705 va_copy (args_copy, args);
7706
7707 const char *str;
7708 int number;
7709 float fnumber;
7710
7711 while (*format)
7712 {
7713 switch (*format++)
7714 {
7715 case 's': // string
7716 str = va_arg (args_copy, const char *);
7717 break;
7718 case 'd': // int
7719 number = va_arg (args_copy, int);
7720 break;
7721 case 'f': // float
7722 fnumber = va_arg (args_copy, double);
7723 break;
7724 default:
7725 break;
7726 }
7727 }
7728 va_end (args_copy);
7729 va_end (args);
7730}
7731
7732int
7733main ()
7734{
7735
7736 // Check bool.
7737 _Bool success = false;
7738
7739 // Check restrict.
7740 if (test_restrict ("String literal") == 0)
7741 success = true;
7742 char *restrict newvar = "Another string";
7743
7744 // Check varargs.
7745 test_varargs ("s, d' f .", "string", 65, 34.234);
7746 test_varargs_macros ();
7747
7748 // Check flexible array members.
7749 struct incomplete_array *ia =
7750 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7751 ia->datasize = 10;
7752 for (int i = 0; i < ia->datasize; ++i)
7753 ia->data[i] = i * 1.234;
7754
7755 // Check named initializers.
7756 struct named_init ni = {
7757 .number = 34,
7758 .name = L"Test wide string",
7759 .average = 543.34343,
7760 };
7761
7762 ni.number = 58;
7763
7764 int dynamic_array[ni.number];
7765 dynamic_array[ni.number - 1] = 543;
7766
7767 // work around unused variable warnings
7768 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7769 || dynamic_array[ni.number - 1] != 543);
7770
7771 ;
7772 return 0;
7773}
7774_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007775for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007776do
7777 CC="$ac_save_CC $ac_arg"
7778 if ac_fn_c_try_compile "$LINENO"; then :
7779 ac_cv_prog_cc_c99=$ac_arg
7780fi
7781rm -f core conftest.err conftest.$ac_objext
7782 test "x$ac_cv_prog_cc_c99" != "xno" && break
7783done
7784rm -f conftest.$ac_ext
7785CC=$ac_save_CC
7786
7787fi
7788# AC_CACHE_VAL
7789case "x$ac_cv_prog_cc_c99" in
7790 x)
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7792$as_echo "none needed" >&6; } ;;
7793 xno)
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7795$as_echo "unsupported" >&6; } ;;
7796 *)
7797 CC="$CC $ac_cv_prog_cc_c99"
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7799$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7800esac
7801if test "x$ac_cv_prog_cc_c99" != xno; then :
7802
7803fi
7804
7805
cristy73bd4a52010-10-05 11:24:23 +00007806if test "x$CC" != xcc; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7808$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7809else
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7811$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7812fi
7813set dummy $CC; ac_cc=`$as_echo "$2" |
7814 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007815if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007816 $as_echo_n "(cached) " >&6
7817else
cristy73bd4a52010-10-05 11:24:23 +00007818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819/* end confdefs.h. */
7820
7821int
7822main ()
7823{
7824
7825 ;
7826 return 0;
7827}
7828_ACEOF
7829# Make sure it works both with $CC and with simple cc.
7830# We do the test twice because some compilers refuse to overwrite an
7831# existing .o file with -o, though they will create one.
7832ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7833rm -f conftest2.*
7834if { { case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837esac
7838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7839$as_echo "$ac_try_echo"; } >&5
7840 (eval "$ac_try") 2>&5
7841 ac_status=$?
7842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843 test $ac_status = 0; } &&
7844 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7847esac
7848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7849$as_echo "$ac_try_echo"; } >&5
7850 (eval "$ac_try") 2>&5
7851 ac_status=$?
7852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7853 test $ac_status = 0; };
7854then
7855 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7856 if test "x$CC" != xcc; then
7857 # Test first that cc exists at all.
7858 if { ac_try='cc -c conftest.$ac_ext >&5'
7859 { { case "(($ac_try" in
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7862esac
7863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7864$as_echo "$ac_try_echo"; } >&5
7865 (eval "$ac_try") 2>&5
7866 ac_status=$?
7867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7868 test $ac_status = 0; }; }; then
7869 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7870 rm -f conftest2.*
7871 if { { case "(($ac_try" in
7872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873 *) ac_try_echo=$ac_try;;
7874esac
7875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7876$as_echo "$ac_try_echo"; } >&5
7877 (eval "$ac_try") 2>&5
7878 ac_status=$?
7879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7880 test $ac_status = 0; } &&
7881 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883 *) ac_try_echo=$ac_try;;
7884esac
7885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7886$as_echo "$ac_try_echo"; } >&5
7887 (eval "$ac_try") 2>&5
7888 ac_status=$?
7889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7890 test $ac_status = 0; };
7891 then
7892 # cc works too.
7893 :
7894 else
7895 # cc exists but doesn't like -o.
7896 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7897 fi
7898 fi
7899 fi
7900else
7901 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7902fi
7903rm -f core conftest*
7904
7905fi
7906if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7908$as_echo "yes" >&6; }
7909else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911$as_echo "no" >&6; }
7912
7913$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7914
7915fi
7916
7917# FIXME: we rely on the cache variable name because
7918# there is no other way.
7919set dummy $CC
7920am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7921eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7922if test "$am_t" != yes; then
7923 # Losing compiler, so override with the script.
7924 # FIXME: It is wrong to rewrite CC.
7925 # But if we don't then we get into trouble of one sort or another.
7926 # A longer-term fix would be to have automake use am__CC in this case,
7927 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7928 CC="$am_aux_dir/compile $CC"
7929fi
7930
7931
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7933$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007934if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007935 $as_echo_n "(cached) " >&6
7936else
7937 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007938 ac_ext=c
7939ac_cpp='$CPP $CPPFLAGS'
7940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7942ac_compiler_gnu=$ac_cv_c_compiler_gnu
7943
7944 ac_save_CFLAGS="$CFLAGS"
7945for ac_arg in "-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" #
7946do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948/* end confdefs.h. */
7949
7950int
7951main ()
7952{
cristy24fc1fe2010-10-23 21:13:01 +00007953
cristy73bd4a52010-10-05 11:24:23 +00007954 ;
7955 return 0;
7956}
7957_ACEOF
7958if ac_fn_c_try_compile "$LINENO"; then :
7959 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7960fi
7961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962done
7963 CFLAGS="$ac_save_CFLAGS"
7964 ac_ext=c
7965ac_cpp='$CPP $CPPFLAGS'
7966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7968ac_compiler_gnu=$ac_cv_c_compiler_gnu
7969
7970
7971fi
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7973$as_echo "$ac_cv_cflags_warn_all" >&6; }
7974case ".$ac_cv_cflags_warn_all" in
7975 .ok|.ok,*) ;;
7976 .|.no|.no,*)
7977 ;;
7978 *)
7979 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7980 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7981 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7982 ac_status=$?
7983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7984 test $ac_status = 0; }
7985 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7986 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7987 ac_status=$?
7988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7989 test $ac_status = 0; }
7990 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7991 fi
7992 ;;
nicolas6237c462010-10-05 06:11:49 +00007993esac
cristy3ed852e2009-09-05 21:47:34 +00007994
cristy016e8b82012-12-26 12:11:06 +00007995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7996$as_echo_n "checking for C compiler vendor... " >&6; }
7997if ${ax_cv_c_compiler_vendor+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999else
8000 # note: don't check for gcc first since some other compilers define __GNUC__
8001 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8002 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8003 pathscale: __PATHCC__,__PATHSCALE__
8004 clang: __clang__
8005 gnu: __GNUC__
8006 sun: __SUNPRO_C,__SUNPRO_CC
8007 hp: __HP_cc,__HP_aCC
8008 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8009 borland: __BORLANDC__,__TURBOC__
8010 comeau: __COMO__
8011 cray: _CRAYC
8012 kai: __KCC
8013 lcc: __LCC__
8014 sgi: __sgi,sgi
8015 microsoft: _MSC_VER
8016 metrowerks: __MWERKS__
8017 watcom: __WATCOMC__
8018 portland: __PGI
8019 unknown: UNKNOWN"
8020 for ventest in $vendors; do
8021 case $ventest in
8022 *:) vendor=$ventest; continue ;;
8023 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8024 esac
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026/* end confdefs.h. */
8027
8028int
8029main ()
8030{
8031
8032 #if !($vencpp)
8033 thisisanerror;
8034 #endif
8035
8036 ;
8037 return 0;
8038}
8039_ACEOF
8040if ac_fn_c_try_compile "$LINENO"; then :
8041 break
8042fi
8043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 done
8045 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8046
8047fi
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8049$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8050
cristya0b81c32010-01-22 02:54:33 +00008051
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8053$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8054set x ${MAKE-make}
8055ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008056if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008057 $as_echo_n "(cached) " >&6
8058else
8059 cat >conftest.make <<\_ACEOF
8060SHELL = /bin/sh
8061all:
8062 @echo '@@@%%%=$(MAKE)=@@@%%%'
8063_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008064# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008065case `${MAKE-make} -f conftest.make 2>/dev/null` in
8066 *@@@%%%=?*=@@@%%%*)
8067 eval ac_cv_prog_make_${ac_make}_set=yes;;
8068 *)
8069 eval ac_cv_prog_make_${ac_make}_set=no;;
8070esac
8071rm -f conftest.make
8072fi
8073if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8075$as_echo "yes" >&6; }
8076 SET_MAKE=
8077else
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079$as_echo "no" >&6; }
8080 SET_MAKE="MAKE=${MAKE-make}"
8081fi
8082
cristy8b350f62009-11-15 23:12:43 +00008083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008084$as_echo_n "checking whether ln -s works... " >&6; }
8085LN_S=$as_ln_s
8086if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008088$as_echo "yes" >&6; }
8089else
cristy8b350f62009-11-15 23:12:43 +00008090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008091$as_echo "no, using $LN_S" >&6; }
8092fi
8093
cristybc556452012-08-17 19:44:03 +00008094for ac_prog in gawk mawk nawk awk
8095do
8096 # Extract the first word of "$ac_prog", so it can be a program name with args.
8097set dummy $ac_prog; ac_word=$2
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099$as_echo_n "checking for $ac_word... " >&6; }
8100if ${ac_cv_prog_AWK+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102else
8103 if test -n "$AWK"; then
8104 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8105else
8106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113 ac_cv_prog_AWK="$ac_prog"
8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 break 2
8116 fi
8117done
8118 done
8119IFS=$as_save_IFS
8120
8121fi
8122fi
8123AWK=$ac_cv_prog_AWK
8124if test -n "$AWK"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8126$as_echo "$AWK" >&6; }
8127else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129$as_echo "no" >&6; }
8130fi
8131
8132
8133 test -n "$AWK" && break
8134done
8135
cristy73bd4a52010-10-05 11:24:23 +00008136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8137$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8138
8139# Check whether --with-dmalloc was given.
8140if test "${with_dmalloc+set}" = set; then :
8141 withval=$with_dmalloc; if test "$withval" = yes; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8143$as_echo "yes" >&6; }
8144
8145$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8146
8147 LIBS="$LIBS -ldmalloc"
8148 LDFLAGS="$LDFLAGS -g"
8149else
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151$as_echo "no" >&6; }
8152fi
8153else
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155$as_echo "no" >&6; }
8156fi
8157
8158
8159
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8161$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008162if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008163 $as_echo_n "(cached) " >&6
8164else
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166/* end confdefs.h. */
8167#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008168 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008169 static void
8170 foo(void) {
8171 exit(1);
8172 }
8173
8174int
8175main ()
8176{
8177
8178 ;
8179 return 0;
8180}
8181_ACEOF
8182if ac_fn_c_try_compile "$LINENO"; then :
8183 ax_cv___attribute__=yes
8184else
8185 ax_cv___attribute__=no
8186
8187fi
8188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189
8190fi
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8192$as_echo "$ax_cv___attribute__" >&6; }
8193 if test "$ax_cv___attribute__" = "yes"; then
8194
8195$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8196
8197 fi
8198
8199
8200
cristy37110d62012-03-01 18:38:20 +00008201
8202
8203# Check whether --with-gcc-arch was given.
8204if test "${with_gcc_arch+set}" = set; then :
8205 withval=$with_gcc_arch; ax_gcc_arch=$withval
8206else
cristya32d1812012-03-02 19:24:21 +00008207 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008208fi
8209
8210
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8212$as_echo_n "checking for gcc architecture flag... " >&6; }
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8214$as_echo "" >&6; }
8215if ${ax_cv_gcc_archflag+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217else
8218
8219ax_cv_gcc_archflag="unknown"
8220
8221if test "$GCC" = yes; then
8222
8223if test "x$ax_gcc_arch" = xyes; then
8224ax_gcc_arch=""
8225if test "$cross_compiling" = no; then
8226case $host_cpu in
8227 i[3456]86*|x86_64*) # use cpuid codes
8228
8229ac_ext=c
8230ac_cpp='$CPP $CPPFLAGS'
8231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8233ac_compiler_gnu=$ac_cv_c_compiler_gnu
8234
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8236$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8237if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8238 $as_echo_n "(cached) " >&6
8239else
8240 if test "$cross_compiling" = yes; then :
8241 ax_cv_gcc_x86_cpuid_0=unknown
8242else
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244/* end confdefs.h. */
8245#include <stdio.h>
8246int
8247main ()
8248{
8249
8250 int op = 0, eax, ebx, ecx, edx;
8251 FILE *f;
8252 __asm__("cpuid"
8253 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8254 : "a" (op));
8255 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8256 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8257 fclose(f);
8258 return 0;
8259
8260 ;
8261 return 0;
8262}
8263_ACEOF
8264if ac_fn_c_try_run "$LINENO"; then :
8265 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8266else
8267 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8268fi
8269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8270 conftest.$ac_objext conftest.beam conftest.$ac_ext
8271fi
8272
8273fi
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8275$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8276ac_ext=c
8277ac_cpp='$CPP $CPPFLAGS'
8278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8280ac_compiler_gnu=$ac_cv_c_compiler_gnu
8281
8282
8283
8284ac_ext=c
8285ac_cpp='$CPP $CPPFLAGS'
8286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8288ac_compiler_gnu=$ac_cv_c_compiler_gnu
8289
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8291$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8292if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294else
8295 if test "$cross_compiling" = yes; then :
8296 ax_cv_gcc_x86_cpuid_1=unknown
8297else
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299/* end confdefs.h. */
8300#include <stdio.h>
8301int
8302main ()
8303{
8304
8305 int op = 1, eax, ebx, ecx, edx;
8306 FILE *f;
8307 __asm__("cpuid"
8308 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8309 : "a" (op));
8310 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8311 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8312 fclose(f);
8313 return 0;
8314
8315 ;
8316 return 0;
8317}
8318_ACEOF
8319if ac_fn_c_try_run "$LINENO"; then :
8320 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8321else
8322 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8323fi
8324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8325 conftest.$ac_objext conftest.beam conftest.$ac_ext
8326fi
8327
8328fi
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8330$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8331ac_ext=c
8332ac_cpp='$CPP $CPPFLAGS'
8333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8335ac_compiler_gnu=$ac_cv_c_compiler_gnu
8336
8337
8338 case $ax_cv_gcc_x86_cpuid_0 in
8339 *:756e6547:*:*) # Intel
8340 case $ax_cv_gcc_x86_cpuid_1 in
8341 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8342 *5??:*:*:*) ax_gcc_arch=pentium ;;
8343 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8344 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8345 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8346 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8347 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8348 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8349 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8350 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8351 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8352 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8353 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8354 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8355 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8356 case $host_cpu in
8357 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8358 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8359 esac ;;
8360 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8361 esac ;;
8362 *:68747541:*:*) # AMD
8363 case $ax_cv_gcc_x86_cpuid_1 in
8364 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8365 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8366 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8367 *60?:*:*:*) ax_gcc_arch=k7 ;;
8368 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8369 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8370 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8371 *6[68a]?:*:*:*)
8372
8373ac_ext=c
8374ac_cpp='$CPP $CPPFLAGS'
8375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8377ac_compiler_gnu=$ac_cv_c_compiler_gnu
8378
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8380$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8381if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8382 $as_echo_n "(cached) " >&6
8383else
8384 if test "$cross_compiling" = yes; then :
8385 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8386else
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388/* end confdefs.h. */
8389#include <stdio.h>
8390int
8391main ()
8392{
8393
8394 int op = 0x80000006, eax, ebx, ecx, edx;
8395 FILE *f;
8396 __asm__("cpuid"
8397 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8398 : "a" (op));
8399 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8400 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8401 fclose(f);
8402 return 0;
8403
8404 ;
8405 return 0;
8406}
8407_ACEOF
8408if ac_fn_c_try_run "$LINENO"; then :
8409 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8410else
8411 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8412fi
8413rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8414 conftest.$ac_objext conftest.beam conftest.$ac_ext
8415fi
8416
8417fi
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8419$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8420ac_ext=c
8421ac_cpp='$CPP $CPPFLAGS'
8422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8424ac_compiler_gnu=$ac_cv_c_compiler_gnu
8425
8426 # L2 cache size
8427 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8428 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8429 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8430 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8431 esac ;;
8432 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8433 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8434 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8435 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8436 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8437 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8438 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8439 esac ;;
8440 *:746e6543:*:*) # IDT
8441 case $ax_cv_gcc_x86_cpuid_1 in
8442 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8443 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8444 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8445 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8446 esac ;;
8447 esac
8448 if test x"$ax_gcc_arch" = x; then # fallback
8449 case $host_cpu in
8450 i586*) ax_gcc_arch=pentium ;;
8451 i686*) ax_gcc_arch=pentiumpro ;;
8452 esac
8453 fi
8454 ;;
8455
8456 sparc*)
8457 # Extract the first word of "prtdiag", so it can be a program name with args.
8458set dummy prtdiag; ac_word=$2
8459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8460$as_echo_n "checking for $ac_word... " >&6; }
8461if ${ac_cv_path_PRTDIAG+:} false; then :
8462 $as_echo_n "(cached) " >&6
8463else
8464 case $PRTDIAG in
8465 [\\/]* | ?:[\\/]*)
8466 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8467 ;;
8468 *)
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8471for as_dir in $as_dummy
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008477 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8480 fi
8481done
8482 done
8483IFS=$as_save_IFS
8484
8485 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8486 ;;
8487esac
8488fi
8489PRTDIAG=$ac_cv_path_PRTDIAG
8490if test -n "$PRTDIAG"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8492$as_echo "$PRTDIAG" >&6; }
8493else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495$as_echo "no" >&6; }
8496fi
8497
8498
8499 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`
8500 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8501 case $cputype in
8502 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8503 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8504 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8505 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8506 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8507 *cypress*) ax_gcc_arch=cypress ;;
8508 esac ;;
8509
8510 alphaev5) ax_gcc_arch=ev5 ;;
8511 alphaev56) ax_gcc_arch=ev56 ;;
8512 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8513 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8514 alphaev6) ax_gcc_arch=ev6 ;;
8515 alphaev67) ax_gcc_arch=ev67 ;;
8516 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8517 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8518 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8519 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8520
8521 powerpc*)
8522 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`
8523 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8524 case $cputype in
8525 *750*) ax_gcc_arch="750 G3" ;;
8526 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8527 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8528 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8529 *970*) ax_gcc_arch="970 G5 power4";;
8530 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8531 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8532 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8533 *) ax_gcc_arch=$cputype ;;
8534 esac
8535 ax_gcc_arch="$ax_gcc_arch powerpc"
8536 ;;
8537esac
8538fi # not cross-compiling
8539fi # guess arch
8540
8541if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8542for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008543 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008544 flags="-mtune=$arch"
8545 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8546 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8547 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8548 else
8549 flags="-march=$arch -mcpu=$arch -m$arch"
8550 fi
8551 for flag in $flags; do
8552 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8554$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8555if eval \${$as_CACHEVAR+:} false; then :
8556 $as_echo_n "(cached) " >&6
8557else
8558
8559 ax_check_save_flags=$CFLAGS
8560 CFLAGS="$CFLAGS $flag"
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562/* end confdefs.h. */
8563
8564int
8565main ()
8566{
8567
8568 ;
8569 return 0;
8570}
8571_ACEOF
8572if ac_fn_c_try_compile "$LINENO"; then :
8573 eval "$as_CACHEVAR=yes"
8574else
8575 eval "$as_CACHEVAR=no"
8576fi
8577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8578 CFLAGS=$ax_check_save_flags
8579fi
8580eval ac_res=\$$as_CACHEVAR
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8582$as_echo "$ac_res" >&6; }
8583if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8584 ax_cv_gcc_archflag=$flag; break
8585else
8586 :
8587fi
8588
8589 done
8590 test "x$ax_cv_gcc_archflag" = xunknown || break
8591done
8592fi
8593
8594fi # $GCC=yes
8595
8596fi
8597
8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8599$as_echo_n "checking for gcc architecture flag... " >&6; }
8600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8601$as_echo "$ax_cv_gcc_archflag" >&6; }
8602if test "x$ax_cv_gcc_archflag" = xunknown; then
8603 :
8604else
8605 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8606fi
8607
8608
8609
cristy73bd4a52010-10-05 11:24:23 +00008610if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8611 if test -n "$ac_tool_prefix"; then
8612 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8613set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008616if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008617 $as_echo_n "(cached) " >&6
8618else
8619 case $PKG_CONFIG in
8620 [\\/]* | ?:[\\/]*)
8621 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8622 ;;
8623 *)
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625for as_dir in $PATH
8626do
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008631 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 break 2
8634 fi
8635done
8636 done
8637IFS=$as_save_IFS
8638
8639 ;;
8640esac
8641fi
8642PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8643if test -n "$PKG_CONFIG"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8645$as_echo "$PKG_CONFIG" >&6; }
8646else
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648$as_echo "no" >&6; }
8649fi
8650
8651
8652fi
8653if test -z "$ac_cv_path_PKG_CONFIG"; then
8654 ac_pt_PKG_CONFIG=$PKG_CONFIG
8655 # Extract the first word of "pkg-config", so it can be a program name with args.
8656set dummy pkg-config; ac_word=$2
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008659if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008660 $as_echo_n "(cached) " >&6
8661else
8662 case $ac_pt_PKG_CONFIG in
8663 [\\/]* | ?:[\\/]*)
8664 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8665 ;;
8666 *)
8667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668for as_dir in $PATH
8669do
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
8672 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008674 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 break 2
8677 fi
8678done
8679 done
8680IFS=$as_save_IFS
8681
8682 ;;
8683esac
8684fi
8685ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8686if test -n "$ac_pt_PKG_CONFIG"; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8688$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8689else
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691$as_echo "no" >&6; }
8692fi
8693
8694 if test "x$ac_pt_PKG_CONFIG" = x; then
8695 PKG_CONFIG=""
8696 else
8697 case $cross_compiling:$ac_tool_warned in
8698yes:)
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8701ac_tool_warned=yes ;;
8702esac
8703 PKG_CONFIG=$ac_pt_PKG_CONFIG
8704 fi
8705else
8706 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8707fi
8708
8709fi
8710if test -n "$PKG_CONFIG"; then
8711 _pkg_min_version=0.9.0
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8713$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8714 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8716$as_echo "yes" >&6; }
8717 else
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719$as_echo "no" >&6; }
8720 PKG_CONFIG=""
8721 fi
8722
8723fi
cristy3ed852e2009-09-05 21:47:34 +00008724
cristy9b86f202012-11-28 21:55:35 +00008725# Check for linker script support
8726
8727 # Check whether --enable-ld-version-script was given.
8728if test "${enable_ld_version_script+set}" = set; then :
8729 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8730fi
8731
8732 if test -z "$have_ld_version_script"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8734$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8735 save_LDFLAGS="$LDFLAGS"
8736 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8737 cat > conftest.map <<EOF
8738foo
8739EOF
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h. */
8742
8743int
8744main ()
8745{
8746
8747 ;
8748 return 0;
8749}
8750_ACEOF
8751if ac_fn_c_try_link "$LINENO"; then :
8752 accepts_syntax_errors=yes
8753else
8754 accepts_syntax_errors=no
8755fi
8756rm -f core conftest.err conftest.$ac_objext \
8757 conftest$ac_exeext conftest.$ac_ext
8758 if test "$accepts_syntax_errors" = no; then
8759 cat > conftest.map <<EOF
8760VERS_1 {
8761 global: sym;
8762};
8763
8764VERS_2 {
8765 global: sym;
8766} VERS_1;
8767EOF
8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769/* end confdefs.h. */
8770
8771int
8772main ()
8773{
8774
8775 ;
8776 return 0;
8777}
8778_ACEOF
8779if ac_fn_c_try_link "$LINENO"; then :
8780 have_ld_version_script=yes
8781else
8782 have_ld_version_script=no
8783fi
8784rm -f core conftest.err conftest.$ac_objext \
8785 conftest$ac_exeext conftest.$ac_ext
8786 else
8787 have_ld_version_script=no
8788 fi
8789 rm -f conftest.map
8790 LDFLAGS="$save_LDFLAGS"
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8792$as_echo "$have_ld_version_script" >&6; }
8793 fi
8794 if test "$have_ld_version_script" = "yes"; then
8795 HAVE_LD_VERSION_SCRIPT_TRUE=
8796 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8797else
8798 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8799 HAVE_LD_VERSION_SCRIPT_FALSE=
8800fi
8801
8802
8803
cristy3ed852e2009-09-05 21:47:34 +00008804#
cristy3ed852e2009-09-05 21:47:34 +00008805# Enable run-time checking.
8806#
8807# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008808if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008809 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8810else
8811 enable_bounds_checking='no'
8812fi
8813
8814
8815if test "$enable_bounds_checking" = yes; then
8816
cristy8b350f62009-11-15 23:12:43 +00008817$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008818
8819fi
8820
8821#
8822# Tests for Windows
8823#
8824
8825
8826
8827GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008828native_win32_build='no'
8829cygwin_build='no'
8830case "${host_os}" in
8831 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008832 cygwin_build='yes'
8833 GDI32_LIBS='-lgdi32'
8834 ;;
8835 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008836 native_win32_build='yes'
8837 GDI32_LIBS='-lgdi32'
8838 ;;
8839esac
8840if test "${GDI32_LIBS}x" != 'x'; then
8841
cristy8b350f62009-11-15 23:12:43 +00008842$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008843
8844fi
8845
cristy73bd4a52010-10-05 11:24:23 +00008846 if test "${GDI32_LIBS}x" != 'x' ; then
8847 WINGDI32_DELEGATE_TRUE=
8848 WINGDI32_DELEGATE_FALSE='#'
8849else
8850 WINGDI32_DELEGATE_TRUE='#'
8851 WINGDI32_DELEGATE_FALSE=
8852fi
8853
8854 if test "${native_win32_build}" = 'yes' ; then
8855 WIN32_NATIVE_BUILD_TRUE=
8856 WIN32_NATIVE_BUILD_FALSE='#'
8857else
8858 WIN32_NATIVE_BUILD_TRUE='#'
8859 WIN32_NATIVE_BUILD_FALSE=
8860fi
8861
8862 if test "${cygwin_build}" = 'yes' ; then
8863 CYGWIN_BUILD_TRUE=
8864 CYGWIN_BUILD_FALSE='#'
8865else
8866 CYGWIN_BUILD_TRUE='#'
8867 CYGWIN_BUILD_FALSE=
8868fi
8869
8870 if test "x${CC}" = 'xcl.exe' ; then
8871 USING_CL_TRUE=
8872 USING_CL_FALSE='#'
8873else
8874 USING_CL_TRUE='#'
8875 USING_CL_FALSE=
8876fi
8877
cristy3ed852e2009-09-05 21:47:34 +00008878
8879WinPathScript="${srcdirfull}/winpath.sh"
8880
8881
8882#
8883# Compiler flags tweaks
8884#
8885if test "${GCC}" != "yes"; then
8886 case "${host}" in
8887 *-*-hpux* )
8888 # aCC: HP ANSI C++ B3910B A.03.34
8889 CFLAGS="${CFLAGS} -Wp,-H30000"
8890 if test -n "${CXXFLAGS}"; then
8891 CXXFLAGS='-AA'
8892 else
8893 CXXFLAGS="${CXXFLAGS} -AA"
8894 fi
8895 ;;
8896 *-dec-osf5.* )
8897 # Compaq alphaev68-dec-osf5.1 compiler
8898 if test -n "${CXXFLAGS}"; then
8899 CXXFLAGS='-std strict_ansi -noimplicit_include'
8900 else
8901 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8902 fi
8903 esac
8904fi
8905
8906# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008908$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008909if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008910 $as_echo_n "(cached) " >&6
8911else
8912
8913im_cv_ld_lazyload='none'
8914case "${host}" in
8915 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8916 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8917 im_cv_ld_lazyload='-Wl,-zlazyload'
8918 fi
8919 ;;
8920esac
8921
8922fi
cristy8b350f62009-11-15 23:12:43 +00008923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008924$as_echo "$im_cv_ld_lazyload" >&6; }
8925if test "${im_cv_ld_lazyload}" != 'none' ; then
8926 if test -z "${LDFLAGS}" ; then
8927 LDFLAGS="${im_cv_ld_lazyload}"
8928 else
8929 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8930 fi
8931fi
8932
8933case "$host" in
8934*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008935 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008936if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008937 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8938else
8939 build_osxuniversal=no
8940fi
8941
8942
8943 if test "${build_osxuniversal}" != no ; then
8944 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008945 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008946Please re-run configure with these options:
8947 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008948 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008949 fi
8950 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8951 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8952 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8953 fi
8954 ;;
8955esac
8956
cristy0151ae12011-10-28 16:32:29 +00008957#
8958# ARCH specific include directory
8959#
8960
cristy670aa3c2011-11-03 00:54:00 +00008961# Check whether --with-includearch-dir was given.
8962if test "${with_includearch_dir+set}" = set; then :
8963 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008964else
cristy670aa3c2011-11-03 00:54:00 +00008965 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008966fi
8967
8968
cristy670aa3c2011-11-03 00:54:00 +00008969eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008970
cristy0151ae12011-10-28 16:32:29 +00008971
8972#
8973# ARCH specific configuration directory
8974#
8975
cristy670aa3c2011-11-03 00:54:00 +00008976# Check whether --with-sharearch-dir was given.
8977if test "${with_sharearch_dir+set}" = set; then :
8978 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008979else
cristy408ebcd2011-11-14 01:36:57 +00008980 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008981fi
8982
8983
cristy670aa3c2011-11-03 00:54:00 +00008984eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008985
cristy0151ae12011-10-28 16:32:29 +00008986
8987#
cristy3ed852e2009-09-05 21:47:34 +00008988# Enable support for threads
8989
8990# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008991if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008992 withval=$with_threads; with_threads=$withval
8993else
8994 with_threads='yes'
8995fi
8996
8997
8998have_threads=no
8999if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009000
9001
cristy73bd4a52010-10-05 11:24:23 +00009002ac_ext=c
9003ac_cpp='$CPP $CPPFLAGS'
9004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9006ac_compiler_gnu=$ac_cv_c_compiler_gnu
9007
9008ax_pthread_ok=no
9009
9010# We used to check for pthread.h first, but this fails if pthread.h
9011# requires special compiler flags (e.g. on True64 or Sequent).
9012# It gets checked for in the link test anyway.
9013
9014# First of all, check if the user has set any of the PTHREAD_LIBS,
9015# etcetera environment variables, and if threads linking works using
9016# them:
9017if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9018 save_CFLAGS="$CFLAGS"
9019 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9020 save_LIBS="$LIBS"
9021 LIBS="$PTHREAD_LIBS $LIBS"
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9023$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025/* end confdefs.h. */
9026
9027/* Override any GCC internal prototype to avoid an error.
9028 Use char because int might match the return type of a GCC
9029 builtin and then its argument prototype would still apply. */
9030#ifdef __cplusplus
9031extern "C"
9032#endif
9033char pthread_join ();
9034int
9035main ()
9036{
9037return pthread_join ();
9038 ;
9039 return 0;
9040}
9041_ACEOF
9042if ac_fn_c_try_link "$LINENO"; then :
9043 ax_pthread_ok=yes
9044fi
9045rm -f core conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext conftest.$ac_ext
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9048$as_echo "$ax_pthread_ok" >&6; }
9049 if test x"$ax_pthread_ok" = xno; then
9050 PTHREAD_LIBS=""
9051 PTHREAD_CFLAGS=""
9052 fi
9053 LIBS="$save_LIBS"
9054 CFLAGS="$save_CFLAGS"
9055fi
9056
9057# We must check for the threads library under a number of different
9058# names; the ordering is very important because some systems
9059# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9060# libraries is broken (non-POSIX).
9061
9062# Create a list of thread flags to try. Items starting with a "-" are
9063# C compiler flags, and other items are library names, except for "none"
9064# which indicates that we try without any flags at all, and "pthread-config"
9065# which is a program returning the flags for the Pth emulation library.
9066
cristy18307f12011-12-30 01:20:16 +00009067ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009068
9069# The ordering *is* (sometimes) important. Some notes on the
9070# individual items follow:
9071
9072# pthreads: AIX (must check this before -lpthread)
9073# none: in case threads are in libc; should be tried before -Kthread and
9074# other compiler flags to prevent continual compiler warnings
9075# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9076# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9077# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9078# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9079# -pthreads: Solaris/gcc
9080# -mthreads: Mingw32/gcc, Lynx/gcc
9081# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9082# doesn't hurt to check since this sometimes defines pthreads too;
9083# also defines -D_REENTRANT)
9084# ... -mt is also the pthreads flag for HP/aCC
9085# pthread: Linux, etcetera
9086# --thread-safe: KAI C++
9087# pthread-config: use pthread-config program (for GNU Pth library)
9088
9089case "${host_cpu}-${host_os}" in
9090 *solaris*)
9091
9092 # On Solaris (at least, for some versions), libc contains stubbed
9093 # (non-functional) versions of the pthreads routines, so link-based
9094 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9095 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9096 # a function called by this macro, so we could check for that, but
9097 # who knows whether they'll stub that too in a future libc.) So,
9098 # we'll just look for -pthreads and -lpthread first:
9099
9100 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9101 ;;
9102
cristya316db12011-10-24 00:49:45 +00009103 *-darwin*)
9104 ax_pthread_flags="-pthread $ax_pthread_flags"
9105 ;;
cristy73bd4a52010-10-05 11:24:23 +00009106esac
9107
9108if test x"$ax_pthread_ok" = xno; then
9109for flag in $ax_pthread_flags; do
9110
9111 case $flag in
9112 none)
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9114$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9115 ;;
9116
9117 -*)
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9119$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9120 PTHREAD_CFLAGS="$flag"
9121 ;;
9122
cristya316db12011-10-24 00:49:45 +00009123 pthread-config)
9124 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009125set dummy pthread-config; ac_word=$2
9126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009128if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009129 $as_echo_n "(cached) " >&6
9130else
9131 if test -n "$ax_pthread_config"; then
9132 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9133else
9134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135for as_dir in $PATH
9136do
9137 IFS=$as_save_IFS
9138 test -z "$as_dir" && as_dir=.
9139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009141 ac_cv_prog_ax_pthread_config="yes"
9142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9143 break 2
9144 fi
9145done
9146 done
9147IFS=$as_save_IFS
9148
9149 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9150fi
9151fi
9152ax_pthread_config=$ac_cv_prog_ax_pthread_config
9153if test -n "$ax_pthread_config"; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9155$as_echo "$ax_pthread_config" >&6; }
9156else
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158$as_echo "no" >&6; }
9159fi
9160
9161
cristya316db12011-10-24 00:49:45 +00009162 if test x"$ax_pthread_config" = xno; then continue; fi
9163 PTHREAD_CFLAGS="`pthread-config --cflags`"
9164 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9165 ;;
cristy73bd4a52010-10-05 11:24:23 +00009166
9167 *)
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9169$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9170 PTHREAD_LIBS="-l$flag"
9171 ;;
9172 esac
9173
9174 save_LIBS="$LIBS"
9175 save_CFLAGS="$CFLAGS"
9176 LIBS="$PTHREAD_LIBS $LIBS"
9177 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9178
9179 # Check for various functions. We must include pthread.h,
9180 # since some functions may be macros. (On the Sequent, we
9181 # need a special flag -Kthread to make this header compile.)
9182 # We check for pthread_join because it is in -lpthread on IRIX
9183 # while pthread_create is in libc. We check for pthread_attr_init
9184 # due to DEC craziness with -lpthreads. We check for
9185 # pthread_cleanup_push because it is one of the few pthread
9186 # functions on Solaris that doesn't have a non-functional libc stub.
9187 # We try pthread_create on general principles.
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189/* end confdefs.h. */
9190#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009191 static void routine(void *a) { a = 0; }
9192 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009193int
9194main ()
9195{
9196pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009197 pthread_create(&th, 0, start_routine, 0);
9198 pthread_join(th, 0);
9199 pthread_attr_init(&attr);
9200 pthread_cleanup_push(routine, 0);
9201 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009202 ;
9203 return 0;
9204}
9205_ACEOF
9206if ac_fn_c_try_link "$LINENO"; then :
9207 ax_pthread_ok=yes
9208fi
9209rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211
9212 LIBS="$save_LIBS"
9213 CFLAGS="$save_CFLAGS"
9214
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9216$as_echo "$ax_pthread_ok" >&6; }
9217 if test "x$ax_pthread_ok" = xyes; then
9218 break;
9219 fi
9220
9221 PTHREAD_LIBS=""
9222 PTHREAD_CFLAGS=""
9223done
9224fi
9225
9226# Various other checks:
9227if test "x$ax_pthread_ok" = xyes; then
9228 save_LIBS="$LIBS"
9229 LIBS="$PTHREAD_LIBS $LIBS"
9230 save_CFLAGS="$CFLAGS"
9231 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9232
9233 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009235$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009236 attr_name=unknown
9237 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009239/* end confdefs.h. */
9240#include <pthread.h>
9241int
9242main ()
9243{
cristya316db12011-10-24 00:49:45 +00009244int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009245 ;
9246 return 0;
9247}
9248_ACEOF
9249if ac_fn_c_try_link "$LINENO"; then :
9250 attr_name=$attr; break
9251fi
9252rm -f core conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009254 done
cristy73bd4a52010-10-05 11:24:23 +00009255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9256$as_echo "$attr_name" >&6; }
9257 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9258
9259cat >>confdefs.h <<_ACEOF
9260#define PTHREAD_CREATE_JOINABLE $attr_name
9261_ACEOF
9262
9263 fi
9264
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9266$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9267 flag=no
9268 case "${host_cpu}-${host_os}" in
9269 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9270 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9271 esac
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9273$as_echo "${flag}" >&6; }
9274 if test "x$flag" != xno; then
9275 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9276 fi
9277
cristya316db12011-10-24 00:49:45 +00009278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9279$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9280if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9281 $as_echo_n "(cached) " >&6
9282else
9283
9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285/* end confdefs.h. */
9286
9287 #include <pthread.h>
9288int
9289main ()
9290{
9291int i = PTHREAD_PRIO_INHERIT;
9292 ;
9293 return 0;
9294}
9295_ACEOF
9296if ac_fn_c_try_link "$LINENO"; then :
9297 ax_cv_PTHREAD_PRIO_INHERIT=yes
9298else
9299 ax_cv_PTHREAD_PRIO_INHERIT=no
9300fi
9301rm -f core conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
9303
9304fi
9305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9306$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9307 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9308
9309$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9310
9311fi
9312
cristy73bd4a52010-10-05 11:24:23 +00009313 LIBS="$save_LIBS"
9314 CFLAGS="$save_CFLAGS"
9315
9316 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009317 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009318 for ac_prog in xlc_r cc_r
9319do
9320 # Extract the first word of "$ac_prog", so it can be a program name with args.
9321set dummy $ac_prog; ac_word=$2
9322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9323$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009324if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009325 $as_echo_n "(cached) " >&6
9326else
9327 if test -n "$PTHREAD_CC"; then
9328 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9329else
9330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331for as_dir in $PATH
9332do
9333 IFS=$as_save_IFS
9334 test -z "$as_dir" && as_dir=.
9335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009337 ac_cv_prog_PTHREAD_CC="$ac_prog"
9338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9339 break 2
9340 fi
9341done
9342 done
9343IFS=$as_save_IFS
9344
9345fi
9346fi
9347PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9348if test -n "$PTHREAD_CC"; then
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9350$as_echo "$PTHREAD_CC" >&6; }
9351else
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353$as_echo "no" >&6; }
9354fi
9355
9356
9357 test -n "$PTHREAD_CC" && break
9358done
9359test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9360
9361 else
9362 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009363 fi
cristy73bd4a52010-10-05 11:24:23 +00009364else
9365 PTHREAD_CC="$CC"
9366fi
9367
9368
9369
9370
9371
9372# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9373if test x"$ax_pthread_ok" = xyes; then
9374
9375$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9376
9377 :
9378else
9379 ax_pthread_ok=no
9380
9381fi
9382ac_ext=c
9383ac_cpp='$CPP $CPPFLAGS'
9384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9386ac_compiler_gnu=$ac_cv_c_compiler_gnu
9387
9388
cristy7acf8fb2010-09-23 19:58:53 +00009389 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009390 have_threads=yes
9391 DEF_THREAD="$PTHREAD_CFLAGS"
9392 CFLAGS="$CFLAGS $DEF_THREAD"
9393 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9394 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009395 { $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 +00009396$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9397 CC="$PTHREAD_CC"
9398 fi
cristy55bf91c2010-09-24 00:29:41 +00009399
9400$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9401
cristy3ed852e2009-09-05 21:47:34 +00009402 fi
9403fi
9404
9405# Enable support for OpenMP
9406if test "$have_threads" != 'yes'; then
9407 ac_cv_prog_c_openmp=unsupported
9408fi
9409
9410 OPENMP_CFLAGS=
9411 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009412if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009413 enableval=$enable_openmp;
9414fi
9415
9416 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009418$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009419if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009420 $as_echo_n "(cached) " >&6
9421else
cristy8b350f62009-11-15 23:12:43 +00009422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009424
9425#ifndef _OPENMP
9426 choke me
9427#endif
9428#include <omp.h>
9429int main () { return omp_get_num_threads (); }
9430
9431_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009432if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009433 ac_cv_prog_c_openmp='none needed'
9434else
cristy8b350f62009-11-15 23:12:43 +00009435 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009436 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9437 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009438 ac_save_CFLAGS=$CFLAGS
9439 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009442
9443#ifndef _OPENMP
9444 choke me
9445#endif
9446#include <omp.h>
9447int main () { return omp_get_num_threads (); }
9448
9449_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009450if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009451 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009452fi
cristy8b350f62009-11-15 23:12:43 +00009453rm -f core conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009455 CFLAGS=$ac_save_CFLAGS
9456 if test "$ac_cv_prog_c_openmp" != unsupported; then
9457 break
9458 fi
9459 done
9460fi
cristy8b350f62009-11-15 23:12:43 +00009461rm -f core conftest.err conftest.$ac_objext \
9462 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009463fi
cristy8b350f62009-11-15 23:12:43 +00009464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009465$as_echo "$ac_cv_prog_c_openmp" >&6; }
9466 case $ac_cv_prog_c_openmp in #(
9467 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009468 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009469 *)
cristy8b350f62009-11-15 23:12:43 +00009470 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009471 esac
9472 fi
9473
9474
9475CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9476MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9477
cristy391f1ce2010-09-09 17:23:28 +00009478if test "$enable_openmp" != no; then
9479 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9480 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9481 fi
9482fi
cristy3ed852e2009-09-05 21:47:34 +00009483
cristy736173a2009-09-20 21:18:22 +00009484# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009485
9486
cristy73bd4a52010-10-05 11:24:23 +00009487ac_ext=c
9488ac_cpp='$CPP $CPPFLAGS'
9489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9491ac_compiler_gnu=$ac_cv_c_compiler_gnu
9492
9493ax_pthread_ok=no
9494
9495# We used to check for pthread.h first, but this fails if pthread.h
9496# requires special compiler flags (e.g. on True64 or Sequent).
9497# It gets checked for in the link test anyway.
9498
9499# First of all, check if the user has set any of the PTHREAD_LIBS,
9500# etcetera environment variables, and if threads linking works using
9501# them:
9502if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9503 save_CFLAGS="$CFLAGS"
9504 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9505 save_LIBS="$LIBS"
9506 LIBS="$PTHREAD_LIBS $LIBS"
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9508$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510/* end confdefs.h. */
9511
9512/* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
9515#ifdef __cplusplus
9516extern "C"
9517#endif
9518char pthread_join ();
9519int
9520main ()
9521{
9522return pthread_join ();
9523 ;
9524 return 0;
9525}
9526_ACEOF
9527if ac_fn_c_try_link "$LINENO"; then :
9528 ax_pthread_ok=yes
9529fi
9530rm -f core conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9533$as_echo "$ax_pthread_ok" >&6; }
9534 if test x"$ax_pthread_ok" = xno; then
9535 PTHREAD_LIBS=""
9536 PTHREAD_CFLAGS=""
9537 fi
9538 LIBS="$save_LIBS"
9539 CFLAGS="$save_CFLAGS"
9540fi
9541
9542# We must check for the threads library under a number of different
9543# names; the ordering is very important because some systems
9544# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9545# libraries is broken (non-POSIX).
9546
9547# Create a list of thread flags to try. Items starting with a "-" are
9548# C compiler flags, and other items are library names, except for "none"
9549# which indicates that we try without any flags at all, and "pthread-config"
9550# which is a program returning the flags for the Pth emulation library.
9551
cristy18307f12011-12-30 01:20:16 +00009552ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009553
9554# The ordering *is* (sometimes) important. Some notes on the
9555# individual items follow:
9556
9557# pthreads: AIX (must check this before -lpthread)
9558# none: in case threads are in libc; should be tried before -Kthread and
9559# other compiler flags to prevent continual compiler warnings
9560# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9561# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9562# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9563# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9564# -pthreads: Solaris/gcc
9565# -mthreads: Mingw32/gcc, Lynx/gcc
9566# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9567# doesn't hurt to check since this sometimes defines pthreads too;
9568# also defines -D_REENTRANT)
9569# ... -mt is also the pthreads flag for HP/aCC
9570# pthread: Linux, etcetera
9571# --thread-safe: KAI C++
9572# pthread-config: use pthread-config program (for GNU Pth library)
9573
9574case "${host_cpu}-${host_os}" in
9575 *solaris*)
9576
9577 # On Solaris (at least, for some versions), libc contains stubbed
9578 # (non-functional) versions of the pthreads routines, so link-based
9579 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9580 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9581 # a function called by this macro, so we could check for that, but
9582 # who knows whether they'll stub that too in a future libc.) So,
9583 # we'll just look for -pthreads and -lpthread first:
9584
9585 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9586 ;;
9587
cristya316db12011-10-24 00:49:45 +00009588 *-darwin*)
9589 ax_pthread_flags="-pthread $ax_pthread_flags"
9590 ;;
cristy73bd4a52010-10-05 11:24:23 +00009591esac
9592
9593if test x"$ax_pthread_ok" = xno; then
9594for flag in $ax_pthread_flags; do
9595
9596 case $flag in
9597 none)
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9599$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9600 ;;
9601
9602 -*)
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9604$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9605 PTHREAD_CFLAGS="$flag"
9606 ;;
9607
cristya316db12011-10-24 00:49:45 +00009608 pthread-config)
9609 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009610set dummy pthread-config; ac_word=$2
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9612$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009613if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009614 $as_echo_n "(cached) " >&6
9615else
9616 if test -n "$ax_pthread_config"; then
9617 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9618else
9619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620for as_dir in $PATH
9621do
9622 IFS=$as_save_IFS
9623 test -z "$as_dir" && as_dir=.
9624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009626 ac_cv_prog_ax_pthread_config="yes"
9627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9628 break 2
9629 fi
9630done
9631 done
9632IFS=$as_save_IFS
9633
9634 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9635fi
9636fi
9637ax_pthread_config=$ac_cv_prog_ax_pthread_config
9638if test -n "$ax_pthread_config"; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9640$as_echo "$ax_pthread_config" >&6; }
9641else
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9643$as_echo "no" >&6; }
9644fi
9645
9646
cristya316db12011-10-24 00:49:45 +00009647 if test x"$ax_pthread_config" = xno; then continue; fi
9648 PTHREAD_CFLAGS="`pthread-config --cflags`"
9649 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9650 ;;
cristy73bd4a52010-10-05 11:24:23 +00009651
9652 *)
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9654$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9655 PTHREAD_LIBS="-l$flag"
9656 ;;
9657 esac
9658
9659 save_LIBS="$LIBS"
9660 save_CFLAGS="$CFLAGS"
9661 LIBS="$PTHREAD_LIBS $LIBS"
9662 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9663
9664 # Check for various functions. We must include pthread.h,
9665 # since some functions may be macros. (On the Sequent, we
9666 # need a special flag -Kthread to make this header compile.)
9667 # We check for pthread_join because it is in -lpthread on IRIX
9668 # while pthread_create is in libc. We check for pthread_attr_init
9669 # due to DEC craziness with -lpthreads. We check for
9670 # pthread_cleanup_push because it is one of the few pthread
9671 # functions on Solaris that doesn't have a non-functional libc stub.
9672 # We try pthread_create on general principles.
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674/* end confdefs.h. */
9675#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009676 static void routine(void *a) { a = 0; }
9677 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009678int
9679main ()
9680{
9681pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009682 pthread_create(&th, 0, start_routine, 0);
9683 pthread_join(th, 0);
9684 pthread_attr_init(&attr);
9685 pthread_cleanup_push(routine, 0);
9686 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009687 ;
9688 return 0;
9689}
9690_ACEOF
9691if ac_fn_c_try_link "$LINENO"; then :
9692 ax_pthread_ok=yes
9693fi
9694rm -f core conftest.err conftest.$ac_objext \
9695 conftest$ac_exeext conftest.$ac_ext
9696
9697 LIBS="$save_LIBS"
9698 CFLAGS="$save_CFLAGS"
9699
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9701$as_echo "$ax_pthread_ok" >&6; }
9702 if test "x$ax_pthread_ok" = xyes; then
9703 break;
9704 fi
9705
9706 PTHREAD_LIBS=""
9707 PTHREAD_CFLAGS=""
9708done
9709fi
9710
9711# Various other checks:
9712if test "x$ax_pthread_ok" = xyes; then
9713 save_LIBS="$LIBS"
9714 LIBS="$PTHREAD_LIBS $LIBS"
9715 save_CFLAGS="$CFLAGS"
9716 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9717
9718 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009720$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009721 attr_name=unknown
9722 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009724/* end confdefs.h. */
9725#include <pthread.h>
9726int
9727main ()
9728{
cristya316db12011-10-24 00:49:45 +00009729int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009730 ;
9731 return 0;
9732}
9733_ACEOF
9734if ac_fn_c_try_link "$LINENO"; then :
9735 attr_name=$attr; break
9736fi
9737rm -f core conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009739 done
cristy73bd4a52010-10-05 11:24:23 +00009740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9741$as_echo "$attr_name" >&6; }
9742 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9743
9744cat >>confdefs.h <<_ACEOF
9745#define PTHREAD_CREATE_JOINABLE $attr_name
9746_ACEOF
9747
9748 fi
9749
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9751$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9752 flag=no
9753 case "${host_cpu}-${host_os}" in
9754 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9755 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9756 esac
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9758$as_echo "${flag}" >&6; }
9759 if test "x$flag" != xno; then
9760 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9761 fi
9762
cristya316db12011-10-24 00:49:45 +00009763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9764$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9765if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9766 $as_echo_n "(cached) " >&6
9767else
9768
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770/* end confdefs.h. */
9771
9772 #include <pthread.h>
9773int
9774main ()
9775{
9776int i = PTHREAD_PRIO_INHERIT;
9777 ;
9778 return 0;
9779}
9780_ACEOF
9781if ac_fn_c_try_link "$LINENO"; then :
9782 ax_cv_PTHREAD_PRIO_INHERIT=yes
9783else
9784 ax_cv_PTHREAD_PRIO_INHERIT=no
9785fi
9786rm -f core conftest.err conftest.$ac_objext \
9787 conftest$ac_exeext conftest.$ac_ext
9788
9789fi
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9791$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9792 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9793
9794$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9795
9796fi
9797
cristy73bd4a52010-10-05 11:24:23 +00009798 LIBS="$save_LIBS"
9799 CFLAGS="$save_CFLAGS"
9800
9801 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009802 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009803 for ac_prog in xlc_r cc_r
9804do
9805 # Extract the first word of "$ac_prog", so it can be a program name with args.
9806set dummy $ac_prog; ac_word=$2
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009809if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009810 $as_echo_n "(cached) " >&6
9811else
9812 if test -n "$PTHREAD_CC"; then
9813 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9814else
9815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816for as_dir in $PATH
9817do
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
9820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009822 ac_cv_prog_PTHREAD_CC="$ac_prog"
9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9824 break 2
9825 fi
9826done
9827 done
9828IFS=$as_save_IFS
9829
9830fi
9831fi
9832PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9833if test -n "$PTHREAD_CC"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9835$as_echo "$PTHREAD_CC" >&6; }
9836else
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838$as_echo "no" >&6; }
9839fi
9840
9841
9842 test -n "$PTHREAD_CC" && break
9843done
9844test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9845
9846 else
9847 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009848 fi
cristy73bd4a52010-10-05 11:24:23 +00009849else
9850 PTHREAD_CC="$CC"
9851fi
9852
9853
9854
9855
9856
9857# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9858if test x"$ax_pthread_ok" = xyes; then
9859
9860$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9861
9862 :
9863else
9864 ax_pthread_ok=no
9865
9866fi
9867ac_ext=c
9868ac_cpp='$CPP $CPPFLAGS'
9869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9871ac_compiler_gnu=$ac_cv_c_compiler_gnu
9872
9873
9874
9875# Check whether --enable-opencl was given.
9876if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009877 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009878else
cristy48794642012-09-02 15:19:08 +00009879 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009880fi
9881
9882
cristy48794642012-09-02 15:19:08 +00009883if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009884 ac_ext=c
9885ac_cpp='$CPP $CPPFLAGS'
9886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9888ac_compiler_gnu=$ac_cv_c_compiler_gnu
9889
cristy75314cc2012-09-15 23:08:29 +00009890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9891$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9892if ${ax_cv_c_compiler_ms+:} false; then :
9893 $as_echo_n "(cached) " >&6
9894else
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896/* end confdefs.h. */
9897
9898int
9899main ()
9900{
9901#ifndef _MSC_VER
9902 choke me
9903#endif
9904
9905 ;
9906 return 0;
9907}
9908_ACEOF
9909if ac_fn_c_try_compile "$LINENO"; then :
9910 ax_compiler_ms=yes
9911else
9912 ax_compiler_ms=no
9913fi
9914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9915ax_cv_c_compiler_ms=$ax_compiler_ms
9916
9917fi
9918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9919$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009920 if test X$ax_compiler_ms = Xno; then :
9921 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9922fi
9923
9924 ax_save_CPPFLAGS=$CPPFLAGS
9925 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9926 for ac_header in CL/cl.h OpenCL/cl.h
9927do :
9928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9929ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009930if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009931 cat >>confdefs.h <<_ACEOF
9932#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9933_ACEOF
9934
9935fi
9936
9937done
9938
9939 CPPFLAGS=$ax_save_CPPFLAGS
9940
9941 for ac_header in windows.h
9942do :
9943 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009944if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009945 cat >>confdefs.h <<_ACEOF
9946#define HAVE_WINDOWS_H 1
9947_ACEOF
9948
9949fi
9950
9951done
9952
9953
9954
9955
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9957$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009958if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009959 $as_echo_n "(cached) " >&6
9960else
9961 ax_cv_check_cl_libcl=no
9962 case $host_cpu in
9963 x86_64) ax_check_cl_libdir=lib64 ;;
9964 *) ax_check_cl_libdir=lib ;;
9965 esac
9966 ax_save_CPPFLAGS=$CPPFLAGS
9967 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9968 ax_save_LIBS=$LIBS
9969 LIBS=""
9970 ax_check_libs="-lOpenCL -lCL -lclparser"
9971 for ax_lib in $ax_check_libs; do
9972 if test X$ax_compiler_ms = Xyes; then :
9973 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9974else
9975 ax_try_lib=$ax_lib
9976fi
9977 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979/* end confdefs.h. */
9980
9981 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9982 # include <windows.h>
9983 # endif
9984 # ifdef HAVE_CL_CL_H
9985 # include <CL/cl.h>
9986 # elif defined(HAVE_OPENCL_CL_H)
9987 # include <OpenCL/cl.h>
9988 # else
9989 # error no CL.h
9990 # endif
9991int
9992main ()
9993{
9994clCreateContextFromType(0,0,0,0,0)
9995 ;
9996 return 0;
9997}
9998_ACEOF
9999if ac_fn_c_try_link "$LINENO"; then :
10000 ax_cv_check_cl_libcl=$ax_try_lib; break
10001else
10002 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"
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004/* end confdefs.h. */
10005
10006 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10007 # include <windows.h>
10008 # endif
10009 # ifdef HAVE_CL_CL_H
10010 # include <CL/cl.h>
10011 # elif defined(HAVE_OPENCL_CL_H)
10012 # include <OpenCL/cl.h>
10013 # else
10014 # error no CL.h
10015 # endif
10016int
10017main ()
10018{
10019clCreateContextFromType(0,0,0,0,0)
10020 ;
10021 return 0;
10022}
10023_ACEOF
10024if ac_fn_c_try_link "$LINENO"; then :
10025 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10026else
cristy78c5a0c2010-12-04 20:00:59 +000010027 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 +000010028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029/* end confdefs.h. */
10030
10031 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10032 # include <windows.h>
10033 # endif
10034 # ifdef HAVE_CL_CL_H
10035 # include <CL/cl.h>
10036 # elif defined(HAVE_OPENCL_CL_H)
10037 # include <OpenCL/cl.h>
10038 # else
10039 # error no CL.h
10040 # endif
10041int
10042main ()
10043{
10044clCreateContextFromType(0,0,0,0,0)
10045 ;
10046 return 0;
10047}
10048_ACEOF
10049if ac_fn_c_try_link "$LINENO"; then :
10050 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10051fi
10052rm -f core conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10054fi
10055rm -f core conftest.err conftest.$ac_objext \
10056 conftest$ac_exeext conftest.$ac_ext
10057fi
10058rm -f core conftest.err conftest.$ac_objext \
10059 conftest$ac_exeext conftest.$ac_ext
10060 done
10061
cristyc3f8b8e2011-12-22 14:55:16 +000010062 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010063 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065/* end confdefs.h. */
10066
10067 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10068 # include <windows.h>
10069 # endif
10070 # ifdef HAVE_CL_CL_H
10071 # include <CL/cl.h>
10072 # elif defined(HAVE_OPENCL_CL_H)
10073 # include <OpenCL/cl.h>
10074 # else
10075 # error no CL.h
10076 # endif
10077int
10078main ()
10079{
10080clCreateContextFromType(0,0,0,0,0)
10081 ;
10082 return 0;
10083}
10084_ACEOF
10085if ac_fn_c_try_link "$LINENO"; then :
10086 ax_cv_check_cl_libcl=$LIBS
10087fi
10088rm -f core conftest.err conftest.$ac_objext \
10089 conftest$ac_exeext conftest.$ac_ext
10090fi
10091
10092 LIBS=$ax_save_LIBS
10093 CPPFLAGS=$ax_save_CPPFLAGS
10094fi
10095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10096$as_echo "$ax_cv_check_cl_libcl" >&6; }
10097
10098 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10099 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10100else
10101 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10102$as_echo "#define _OPENCL 1" >>confdefs.h
10103
10104fi
10105 ac_ext=c
10106ac_cpp='$CPP $CPPFLAGS'
10107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10109ac_compiler_gnu=$ac_cv_c_compiler_gnu
10110
10111fi
10112
10113
10114
10115
cristyc7083c12009-10-14 03:16:55 +000010116CFLAGS="$CL_CFLAGS $CFLAGS"
10117LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010118
cristy391f1ce2010-09-09 17:23:28 +000010119if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010120 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010121 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10122 fi
cristyfd9dcd42010-08-08 18:07:02 +000010123fi
cristy2e8b51d2009-10-17 18:26:15 +000010124
cristy3ed852e2009-09-05 21:47:34 +000010125########
10126#
10127# Check for large file support
10128#
10129########
10130# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010131if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010132 enableval=$enable_largefile;
10133fi
10134
10135if test "$enable_largefile" != no; then
10136
cristy8b350f62009-11-15 23:12:43 +000010137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010138$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010139if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010140 $as_echo_n "(cached) " >&6
10141else
10142 ac_cv_sys_largefile_CC=no
10143 if test "$GCC" != yes; then
10144 ac_save_CC=$CC
10145 while :; do
10146 # IRIX 6.2 and later do not support large files by default,
10147 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010149/* end confdefs.h. */
10150#include <sys/types.h>
10151 /* Check that off_t can represent 2**63 - 1 correctly.
10152 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10153 since some C++ compilers masquerading as C compilers
10154 incorrectly reject 9223372036854775807. */
10155#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10157 && LARGE_OFF_T % 2147483647 == 1)
10158 ? 1 : -1];
10159int
10160main ()
10161{
10162
10163 ;
10164 return 0;
10165}
10166_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010167 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010168 break
cristy3ed852e2009-09-05 21:47:34 +000010169fi
cristy3ed852e2009-09-05 21:47:34 +000010170rm -f core conftest.err conftest.$ac_objext
10171 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010172 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010173 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010174fi
cristy3ed852e2009-09-05 21:47:34 +000010175rm -f core conftest.err conftest.$ac_objext
10176 break
10177 done
10178 CC=$ac_save_CC
10179 rm -f conftest.$ac_ext
10180 fi
10181fi
cristy8b350f62009-11-15 23:12:43 +000010182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010183$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10184 if test "$ac_cv_sys_largefile_CC" != no; then
10185 CC=$CC$ac_cv_sys_largefile_CC
10186 fi
10187
cristy8b350f62009-11-15 23:12:43 +000010188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010189$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010190if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010191 $as_echo_n "(cached) " >&6
10192else
10193 while :; do
cristy8b350f62009-11-15 23:12:43 +000010194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010195/* end confdefs.h. */
10196#include <sys/types.h>
10197 /* Check that off_t can represent 2**63 - 1 correctly.
10198 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10199 since some C++ compilers masquerading as C compilers
10200 incorrectly reject 9223372036854775807. */
10201#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10202 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10203 && LARGE_OFF_T % 2147483647 == 1)
10204 ? 1 : -1];
10205int
10206main ()
10207{
10208
10209 ;
10210 return 0;
10211}
10212_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010213if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010214 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010215fi
cristy3ed852e2009-09-05 21:47:34 +000010216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010218/* end confdefs.h. */
10219#define _FILE_OFFSET_BITS 64
10220#include <sys/types.h>
10221 /* Check that off_t can represent 2**63 - 1 correctly.
10222 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10223 since some C++ compilers masquerading as C compilers
10224 incorrectly reject 9223372036854775807. */
10225#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10226 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10227 && LARGE_OFF_T % 2147483647 == 1)
10228 ? 1 : -1];
10229int
10230main ()
10231{
10232
10233 ;
10234 return 0;
10235}
10236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010237if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010238 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010239fi
cristy3ed852e2009-09-05 21:47:34 +000010240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10241 ac_cv_sys_file_offset_bits=unknown
10242 break
10243done
10244fi
cristy8b350f62009-11-15 23:12:43 +000010245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010246$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10247case $ac_cv_sys_file_offset_bits in #(
10248 no | unknown) ;;
10249 *)
10250cat >>confdefs.h <<_ACEOF
10251#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10252_ACEOF
10253;;
10254esac
10255rm -rf conftest*
10256 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010258$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010259if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010260 $as_echo_n "(cached) " >&6
10261else
10262 while :; do
cristy8b350f62009-11-15 23:12:43 +000010263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010264/* end confdefs.h. */
10265#include <sys/types.h>
10266 /* Check that off_t can represent 2**63 - 1 correctly.
10267 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10268 since some C++ compilers masquerading as C compilers
10269 incorrectly reject 9223372036854775807. */
10270#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10271 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10272 && LARGE_OFF_T % 2147483647 == 1)
10273 ? 1 : -1];
10274int
10275main ()
10276{
10277
10278 ;
10279 return 0;
10280}
10281_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010282if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010283 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010284fi
cristy3ed852e2009-09-05 21:47:34 +000010285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010287/* end confdefs.h. */
10288#define _LARGE_FILES 1
10289#include <sys/types.h>
10290 /* Check that off_t can represent 2**63 - 1 correctly.
10291 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10292 since some C++ compilers masquerading as C compilers
10293 incorrectly reject 9223372036854775807. */
10294#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10296 && LARGE_OFF_T % 2147483647 == 1)
10297 ? 1 : -1];
10298int
10299main ()
10300{
10301
10302 ;
10303 return 0;
10304}
10305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010306if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010307 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010308fi
cristy3ed852e2009-09-05 21:47:34 +000010309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10310 ac_cv_sys_large_files=unknown
10311 break
10312done
10313fi
cristy8b350f62009-11-15 23:12:43 +000010314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010315$as_echo "$ac_cv_sys_large_files" >&6; }
10316case $ac_cv_sys_large_files in #(
10317 no | unknown) ;;
10318 *)
10319cat >>confdefs.h <<_ACEOF
10320#define _LARGE_FILES $ac_cv_sys_large_files
10321_ACEOF
10322;;
10323esac
10324rm -rf conftest*
10325 fi
cristy14fefe52012-05-21 00:59:18 +000010326
10327
cristy3ed852e2009-09-05 21:47:34 +000010328fi
10329
cristy8b350f62009-11-15 23:12:43 +000010330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010331$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010332if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010333 $as_echo_n "(cached) " >&6
10334else
10335 while :; do
cristy8b350f62009-11-15 23:12:43 +000010336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010337/* end confdefs.h. */
10338#include <sys/types.h> /* for off_t */
10339 #include <stdio.h>
10340int
10341main ()
10342{
10343int (*fp) (FILE *, off_t, int) = fseeko;
10344 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10345 ;
10346 return 0;
10347}
10348_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010349if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010350 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010351fi
cristy8b350f62009-11-15 23:12:43 +000010352rm -f core conftest.err conftest.$ac_objext \
10353 conftest$ac_exeext conftest.$ac_ext
10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010355/* end confdefs.h. */
10356#define _LARGEFILE_SOURCE 1
10357#include <sys/types.h> /* for off_t */
10358 #include <stdio.h>
10359int
10360main ()
10361{
10362int (*fp) (FILE *, off_t, int) = fseeko;
10363 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10364 ;
10365 return 0;
10366}
10367_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010368if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010369 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010370fi
cristy8b350f62009-11-15 23:12:43 +000010371rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010373 ac_cv_sys_largefile_source=unknown
10374 break
10375done
10376fi
cristy8b350f62009-11-15 23:12:43 +000010377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010378$as_echo "$ac_cv_sys_largefile_source" >&6; }
10379case $ac_cv_sys_largefile_source in #(
10380 no | unknown) ;;
10381 *)
10382cat >>confdefs.h <<_ACEOF
10383#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10384_ACEOF
10385;;
10386esac
10387rm -rf conftest*
10388
10389# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10390# in glibc 2.1.3, but that breaks too many other things.
10391# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10392if test $ac_cv_sys_largefile_source != unknown; then
10393
cristy8b350f62009-11-15 23:12:43 +000010394$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010395
10396fi
10397
10398LFS_CPPFLAGS=''
10399if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010400 case $ac_cv_sys_file_offset_bits in
10401 no)
10402 # nothing to do here as the host supports LFS fine
10403 ;;
10404 unknown)
cristy8b350f62009-11-15 23:12:43 +000010405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010406$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010407 if test "$cross_compiling" = yes; then :
10408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010410as_fn_error $? "cannot run test program while cross compiling
10411See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010412else
cristy8b350f62009-11-15 23:12:43 +000010413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010415#include <unistd.h>
10416 main () {
10417 exit(!(sizeof(off_t) == 8));
10418 }
cristyda16f162011-02-19 23:52:17 +000010419int
10420main ()
10421{
10422
10423 ;
10424 return 0;
10425}
cristy3ed852e2009-09-05 21:47:34 +000010426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010427if ac_fn_c_try_run "$LINENO"; then :
10428 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010429
cristyad38abe2012-12-23 23:03:21 +000010430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10431$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010432else
cristyad38abe2012-12-23 23:03:21 +000010433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010435fi
cristy8b350f62009-11-15 23:12:43 +000010436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10437 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010438fi
10439
cristyc1e0cc12011-09-21 16:41:16 +000010440 ;;
10441 *)
10442 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10443 ;;
10444 esac
cristy3ed852e2009-09-05 21:47:34 +000010445 if test "$ac_cv_sys_large_files" != 'no'; then
10446 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10447 fi
10448 if test "$ac_cv_sys_largefile_source" != 'no'; then
10449 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10450 fi
10451fi
10452
10453
cristy3ed852e2009-09-05 21:47:34 +000010454# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010455enable_dlopen=yes
10456
10457
10458
10459case `pwd` in
10460 *\ * | *\ *)
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10462$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10463esac
10464
10465
10466
cristy99bd5232011-12-07 14:38:20 +000010467macro_version='2.4.2'
10468macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482ltmain="$ac_aux_dir/ltmain.sh"
10483
cristy0c60a692010-11-04 01:09:47 +000010484# Backslashify metacharacters that are still active within
10485# double-quoted strings.
10486sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10487
10488# Same as above, but do not quote variable references.
10489double_quote_subst='s/\(["`\\]\)/\\\1/g'
10490
10491# Sed substitution to delay expansion of an escaped shell variable in a
10492# double_quote_subst'ed string.
10493delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10494
10495# Sed substitution to delay expansion of an escaped single quote.
10496delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10497
10498# Sed substitution to avoid accidental globbing in evaled expressions
10499no_glob_subst='s/\*/\\\*/g'
10500
cristy73bd4a52010-10-05 11:24:23 +000010501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10502$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010503if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010504 $as_echo_n "(cached) " >&6
10505else
10506 if test -n "$NM"; then
10507 # Let the user override the test.
10508 lt_cv_path_NM="$NM"
10509else
10510 lt_nm_to_check="${ac_tool_prefix}nm"
10511 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10512 lt_nm_to_check="$lt_nm_to_check nm"
10513 fi
10514 for lt_tmp_nm in $lt_nm_to_check; do
10515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10516 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10517 IFS="$lt_save_ifs"
10518 test -z "$ac_dir" && ac_dir=.
10519 tmp_nm="$ac_dir/$lt_tmp_nm"
10520 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10521 # Check to see if the nm accepts a BSD-compat flag.
10522 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10523 # nm: unknown option "B" ignored
10524 # Tru64's nm complains that /dev/null is an invalid object file
10525 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10526 */dev/null* | *'Invalid file or object type'*)
10527 lt_cv_path_NM="$tmp_nm -B"
10528 break
10529 ;;
10530 *)
10531 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10532 */dev/null*)
10533 lt_cv_path_NM="$tmp_nm -p"
10534 break
10535 ;;
10536 *)
10537 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10538 continue # so that we can try to find one that supports BSD flags
10539 ;;
10540 esac
10541 ;;
10542 esac
10543 fi
10544 done
10545 IFS="$lt_save_ifs"
10546 done
10547 : ${lt_cv_path_NM=no}
10548fi
10549fi
10550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10551$as_echo "$lt_cv_path_NM" >&6; }
10552if test "$lt_cv_path_NM" != "no"; then
10553 NM="$lt_cv_path_NM"
10554else
10555 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010556 if test -n "$DUMPBIN"; then :
10557 # Let the user override the test.
10558 else
10559 if test -n "$ac_tool_prefix"; then
10560 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010561 do
10562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10563set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10565$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010566if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010567 $as_echo_n "(cached) " >&6
10568else
10569 if test -n "$DUMPBIN"; then
10570 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10571else
10572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573for as_dir in $PATH
10574do
10575 IFS=$as_save_IFS
10576 test -z "$as_dir" && as_dir=.
10577 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010579 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10581 break 2
10582 fi
10583done
10584 done
10585IFS=$as_save_IFS
10586
10587fi
10588fi
10589DUMPBIN=$ac_cv_prog_DUMPBIN
10590if test -n "$DUMPBIN"; then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10592$as_echo "$DUMPBIN" >&6; }
10593else
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595$as_echo "no" >&6; }
10596fi
10597
10598
10599 test -n "$DUMPBIN" && break
10600 done
10601fi
10602if test -z "$DUMPBIN"; then
10603 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010604 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010605do
10606 # Extract the first word of "$ac_prog", so it can be a program name with args.
10607set dummy $ac_prog; ac_word=$2
10608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10609$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010610if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010611 $as_echo_n "(cached) " >&6
10612else
10613 if test -n "$ac_ct_DUMPBIN"; then
10614 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10615else
10616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10617for as_dir in $PATH
10618do
10619 IFS=$as_save_IFS
10620 test -z "$as_dir" && as_dir=.
10621 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010623 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10625 break 2
10626 fi
10627done
10628 done
10629IFS=$as_save_IFS
10630
10631fi
10632fi
10633ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10634if test -n "$ac_ct_DUMPBIN"; then
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10636$as_echo "$ac_ct_DUMPBIN" >&6; }
10637else
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639$as_echo "no" >&6; }
10640fi
10641
10642
10643 test -n "$ac_ct_DUMPBIN" && break
10644done
10645
10646 if test "x$ac_ct_DUMPBIN" = x; then
10647 DUMPBIN=":"
10648 else
10649 case $cross_compiling:$ac_tool_warned in
10650yes:)
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10653ac_tool_warned=yes ;;
10654esac
10655 DUMPBIN=$ac_ct_DUMPBIN
10656 fi
10657fi
10658
cristy0c60a692010-11-04 01:09:47 +000010659 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10660 *COFF*)
10661 DUMPBIN="$DUMPBIN -symbols"
10662 ;;
10663 *)
10664 DUMPBIN=:
10665 ;;
10666 esac
10667 fi
cristy73bd4a52010-10-05 11:24:23 +000010668
10669 if test "$DUMPBIN" != ":"; then
10670 NM="$DUMPBIN"
10671 fi
10672fi
10673test -z "$NM" && NM=nm
10674
10675
10676
10677
10678
10679
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10681$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010682if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010683 $as_echo_n "(cached) " >&6
10684else
10685 lt_cv_nm_interface="BSD nm"
10686 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010687 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010688 (eval "$ac_compile" 2>conftest.err)
10689 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010690 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010691 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10692 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010693 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010694 cat conftest.out >&5
10695 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10696 lt_cv_nm_interface="MS dumpbin"
10697 fi
10698 rm -f conftest*
10699fi
10700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10701$as_echo "$lt_cv_nm_interface" >&6; }
10702
10703# find the maximum length of command line arguments
10704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10705$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010706if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010707 $as_echo_n "(cached) " >&6
10708else
10709 i=0
10710 teststring="ABCD"
10711
10712 case $build_os in
10713 msdosdjgpp*)
10714 # On DJGPP, this test can blow up pretty badly due to problems in libc
10715 # (any single argument exceeding 2000 bytes causes a buffer overrun
10716 # during glob expansion). Even if it were fixed, the result of this
10717 # check would be larger than it should be.
10718 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10719 ;;
10720
10721 gnu*)
10722 # Under GNU Hurd, this test is not required because there is
10723 # no limit to the length of command line arguments.
10724 # Libtool will interpret -1 as no limit whatsoever
10725 lt_cv_sys_max_cmd_len=-1;
10726 ;;
10727
10728 cygwin* | mingw* | cegcc*)
10729 # On Win9x/ME, this test blows up -- it succeeds, but takes
10730 # about 5 minutes as the teststring grows exponentially.
10731 # Worse, since 9x/ME are not pre-emptively multitasking,
10732 # you end up with a "frozen" computer, even though with patience
10733 # the test eventually succeeds (with a max line length of 256k).
10734 # Instead, let's just punt: use the minimum linelength reported by
10735 # all of the supported platforms: 8192 (on NT/2K/XP).
10736 lt_cv_sys_max_cmd_len=8192;
10737 ;;
10738
cristy0c60a692010-11-04 01:09:47 +000010739 mint*)
10740 # On MiNT this can take a long time and run out of memory.
10741 lt_cv_sys_max_cmd_len=8192;
10742 ;;
10743
cristy73bd4a52010-10-05 11:24:23 +000010744 amigaos*)
10745 # On AmigaOS with pdksh, this test takes hours, literally.
10746 # So we just punt and use a minimum line length of 8192.
10747 lt_cv_sys_max_cmd_len=8192;
10748 ;;
10749
10750 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10751 # This has been around since 386BSD, at least. Likely further.
10752 if test -x /sbin/sysctl; then
10753 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10754 elif test -x /usr/sbin/sysctl; then
10755 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10756 else
10757 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10758 fi
10759 # And add a safety zone
10760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10762 ;;
10763
10764 interix*)
10765 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10766 lt_cv_sys_max_cmd_len=196608
10767 ;;
10768
cristy99bd5232011-12-07 14:38:20 +000010769 os2*)
10770 # The test takes a long time on OS/2.
10771 lt_cv_sys_max_cmd_len=8192
10772 ;;
10773
cristy73bd4a52010-10-05 11:24:23 +000010774 osf*)
10775 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10776 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10777 # nice to cause kernel panics so lets avoid the loop below.
10778 # First set a reasonable default.
10779 lt_cv_sys_max_cmd_len=16384
10780 #
10781 if test -x /sbin/sysconfig; then
10782 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10783 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10784 esac
10785 fi
10786 ;;
10787 sco3.2v5*)
10788 lt_cv_sys_max_cmd_len=102400
10789 ;;
10790 sysv5* | sco5v6* | sysv4.2uw2*)
10791 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10792 if test -n "$kargmax"; then
10793 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10794 else
10795 lt_cv_sys_max_cmd_len=32768
10796 fi
10797 ;;
10798 *)
10799 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10800 if test -n "$lt_cv_sys_max_cmd_len"; then
10801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10803 else
10804 # Make teststring a little bigger before we do anything with it.
10805 # a 1K string should be a reasonable start.
10806 for i in 1 2 3 4 5 6 7 8 ; do
10807 teststring=$teststring$teststring
10808 done
10809 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10810 # If test is not a shell built-in, we'll probably end up computing a
10811 # maximum length that is only half of the actual maximum length, but
10812 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010813 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010814 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010815 test $i != 17 # 1/2 MB should be enough
10816 do
10817 i=`expr $i + 1`
10818 teststring=$teststring$teststring
10819 done
10820 # Only check the string length outside the loop.
10821 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10822 teststring=
10823 # Add a significant safety factor because C++ compilers can tack on
10824 # massive amounts of additional arguments before passing them to the
10825 # linker. It appears as though 1/2 is a usable value.
10826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10827 fi
10828 ;;
10829 esac
10830
10831fi
10832
10833if test -n $lt_cv_sys_max_cmd_len ; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10835$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10836else
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10838$as_echo "none" >&6; }
10839fi
10840max_cmd_len=$lt_cv_sys_max_cmd_len
10841
10842
10843
10844
10845
10846
10847: ${CP="cp -f"}
10848: ${MV="mv -f"}
10849: ${RM="rm -f"}
10850
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10852$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10853# Try some XSI features
10854xsi_shell=no
10855( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010856 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10857 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010858 && eval 'test $(( 1 + 1 )) -eq 2 \
10859 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10860 && xsi_shell=yes
10861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10862$as_echo "$xsi_shell" >&6; }
10863
10864
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10866$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10867lt_shell_append=no
10868( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10869 >/dev/null 2>&1 \
10870 && lt_shell_append=yes
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10872$as_echo "$lt_shell_append" >&6; }
10873
10874
10875if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10876 lt_unset=unset
10877else
10878 lt_unset=false
10879fi
10880
10881
10882
10883
10884
10885# test EBCDIC or ASCII
10886case `echo X|tr X '\101'` in
10887 A) # ASCII based system
10888 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10889 lt_SP2NL='tr \040 \012'
10890 lt_NL2SP='tr \015\012 \040\040'
10891 ;;
10892 *) # EBCDIC based system
10893 lt_SP2NL='tr \100 \n'
10894 lt_NL2SP='tr \r\n \100\100'
10895 ;;
10896esac
10897
10898
10899
10900
10901
10902
10903
10904
10905
cristyda16f162011-02-19 23:52:17 +000010906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10907$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10908if ${lt_cv_to_host_file_cmd+:} false; then :
10909 $as_echo_n "(cached) " >&6
10910else
10911 case $host in
10912 *-*-mingw* )
10913 case $build in
10914 *-*-mingw* ) # actually msys
10915 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10916 ;;
10917 *-*-cygwin* )
10918 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10919 ;;
10920 * ) # otherwise, assume *nix
10921 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10922 ;;
10923 esac
10924 ;;
10925 *-*-cygwin* )
10926 case $build in
10927 *-*-mingw* ) # actually msys
10928 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10929 ;;
10930 *-*-cygwin* )
10931 lt_cv_to_host_file_cmd=func_convert_file_noop
10932 ;;
10933 * ) # otherwise, assume *nix
10934 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10935 ;;
10936 esac
10937 ;;
10938 * ) # unhandled hosts (and "normal" native builds)
10939 lt_cv_to_host_file_cmd=func_convert_file_noop
10940 ;;
10941esac
10942
10943fi
10944
10945to_host_file_cmd=$lt_cv_to_host_file_cmd
10946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10947$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10948
10949
10950
10951
10952
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10954$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10955if ${lt_cv_to_tool_file_cmd+:} false; then :
10956 $as_echo_n "(cached) " >&6
10957else
10958 #assume ordinary cross tools, or native build.
10959lt_cv_to_tool_file_cmd=func_convert_file_noop
10960case $host in
10961 *-*-mingw* )
10962 case $build in
10963 *-*-mingw* ) # actually msys
10964 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10965 ;;
10966 esac
10967 ;;
10968esac
10969
10970fi
10971
10972to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10974$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10975
10976
10977
10978
10979
cristy73bd4a52010-10-05 11:24:23 +000010980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10981$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010982if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010983 $as_echo_n "(cached) " >&6
10984else
10985 lt_cv_ld_reload_flag='-r'
10986fi
10987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10988$as_echo "$lt_cv_ld_reload_flag" >&6; }
10989reload_flag=$lt_cv_ld_reload_flag
10990case $reload_flag in
10991"" | " "*) ;;
10992*) reload_flag=" $reload_flag" ;;
10993esac
10994reload_cmds='$LD$reload_flag -o $output$reload_objs'
10995case $host_os in
cristyda16f162011-02-19 23:52:17 +000010996 cygwin* | mingw* | pw32* | cegcc*)
10997 if test "$GCC" != yes; then
10998 reload_cmds=false
10999 fi
11000 ;;
cristy73bd4a52010-10-05 11:24:23 +000011001 darwin*)
11002 if test "$GCC" = yes; then
11003 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11004 else
11005 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11006 fi
11007 ;;
11008esac
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018if test -n "$ac_tool_prefix"; then
11019 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11020set dummy ${ac_tool_prefix}objdump; ac_word=$2
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011023if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011024 $as_echo_n "(cached) " >&6
11025else
11026 if test -n "$OBJDUMP"; then
11027 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11028else
11029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030for as_dir in $PATH
11031do
11032 IFS=$as_save_IFS
11033 test -z "$as_dir" && as_dir=.
11034 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011036 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038 break 2
11039 fi
11040done
11041 done
11042IFS=$as_save_IFS
11043
11044fi
11045fi
11046OBJDUMP=$ac_cv_prog_OBJDUMP
11047if test -n "$OBJDUMP"; then
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11049$as_echo "$OBJDUMP" >&6; }
11050else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052$as_echo "no" >&6; }
11053fi
11054
11055
11056fi
11057if test -z "$ac_cv_prog_OBJDUMP"; then
11058 ac_ct_OBJDUMP=$OBJDUMP
11059 # Extract the first word of "objdump", so it can be a program name with args.
11060set dummy objdump; ac_word=$2
11061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11062$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011063if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011064 $as_echo_n "(cached) " >&6
11065else
11066 if test -n "$ac_ct_OBJDUMP"; then
11067 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11068else
11069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070for as_dir in $PATH
11071do
11072 IFS=$as_save_IFS
11073 test -z "$as_dir" && as_dir=.
11074 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011076 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11078 break 2
11079 fi
11080done
11081 done
11082IFS=$as_save_IFS
11083
11084fi
11085fi
11086ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11087if test -n "$ac_ct_OBJDUMP"; then
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11089$as_echo "$ac_ct_OBJDUMP" >&6; }
11090else
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092$as_echo "no" >&6; }
11093fi
11094
11095 if test "x$ac_ct_OBJDUMP" = x; then
11096 OBJDUMP="false"
11097 else
11098 case $cross_compiling:$ac_tool_warned in
11099yes:)
11100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11102ac_tool_warned=yes ;;
11103esac
11104 OBJDUMP=$ac_ct_OBJDUMP
11105 fi
11106else
11107 OBJDUMP="$ac_cv_prog_OBJDUMP"
11108fi
11109
11110test -z "$OBJDUMP" && OBJDUMP=objdump
11111
11112
11113
11114
11115
11116
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11118$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011119if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011120 $as_echo_n "(cached) " >&6
11121else
11122 lt_cv_file_magic_cmd='$MAGIC_CMD'
11123lt_cv_file_magic_test_file=
11124lt_cv_deplibs_check_method='unknown'
11125# Need to set the preceding variable on all platforms that support
11126# interlibrary dependencies.
11127# 'none' -- dependencies not supported.
11128# `unknown' -- same as none, but documents that we really don't know.
11129# 'pass_all' -- all dependencies passed with no checks.
11130# 'test_compile' -- check by making test program.
11131# 'file_magic [[regex]]' -- check by looking for files in library path
11132# which responds to the $file_magic_cmd with a given extended regex.
11133# If you have `file' or equivalent on your system and you're not sure
11134# whether `pass_all' will *always* work, you probably want this one.
11135
11136case $host_os in
11137aix[4-9]*)
11138 lt_cv_deplibs_check_method=pass_all
11139 ;;
11140
11141beos*)
11142 lt_cv_deplibs_check_method=pass_all
11143 ;;
11144
11145bsdi[45]*)
11146 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11147 lt_cv_file_magic_cmd='/usr/bin/file -L'
11148 lt_cv_file_magic_test_file=/shlib/libc.so
11149 ;;
11150
11151cygwin*)
11152 # func_win32_libid is a shell function defined in ltmain.sh
11153 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11154 lt_cv_file_magic_cmd='func_win32_libid'
11155 ;;
11156
11157mingw* | pw32*)
11158 # Base MSYS/MinGW do not provide the 'file' command needed by
11159 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11160 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011161 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11162 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011163 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11164 lt_cv_file_magic_cmd='func_win32_libid'
11165 else
cristy0c60a692010-11-04 01:09:47 +000011166 # Keep this pattern in sync with the one in func_win32_libid.
11167 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 +000011168 lt_cv_file_magic_cmd='$OBJDUMP -f'
11169 fi
11170 ;;
11171
cristy0c60a692010-11-04 01:09:47 +000011172cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011173 # use the weaker test based on 'objdump'. See mingw*.
11174 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11175 lt_cv_file_magic_cmd='$OBJDUMP -f'
11176 ;;
11177
11178darwin* | rhapsody*)
11179 lt_cv_deplibs_check_method=pass_all
11180 ;;
11181
11182freebsd* | dragonfly*)
11183 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11184 case $host_cpu in
11185 i*86 )
11186 # Not sure whether the presence of OpenBSD here was a mistake.
11187 # Let's accept both of them until this is cleared up.
11188 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11189 lt_cv_file_magic_cmd=/usr/bin/file
11190 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11191 ;;
11192 esac
11193 else
11194 lt_cv_deplibs_check_method=pass_all
11195 fi
11196 ;;
11197
11198gnu*)
11199 lt_cv_deplibs_check_method=pass_all
11200 ;;
11201
cristy0c60a692010-11-04 01:09:47 +000011202haiku*)
11203 lt_cv_deplibs_check_method=pass_all
11204 ;;
11205
cristy73bd4a52010-10-05 11:24:23 +000011206hpux10.20* | hpux11*)
11207 lt_cv_file_magic_cmd=/usr/bin/file
11208 case $host_cpu in
11209 ia64*)
11210 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11211 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11212 ;;
11213 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011214 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 +000011215 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11216 ;;
11217 *)
cristy0c60a692010-11-04 01:09:47 +000011218 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 +000011219 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11220 ;;
11221 esac
11222 ;;
11223
11224interix[3-9]*)
11225 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11227 ;;
11228
11229irix5* | irix6* | nonstopux*)
11230 case $LD in
11231 *-32|*"-32 ") libmagic=32-bit;;
11232 *-n32|*"-n32 ") libmagic=N32;;
11233 *-64|*"-64 ") libmagic=64-bit;;
11234 *) libmagic=never-match;;
11235 esac
11236 lt_cv_deplibs_check_method=pass_all
11237 ;;
11238
cristy99bd5232011-12-07 14:38:20 +000011239# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011240linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011241 lt_cv_deplibs_check_method=pass_all
11242 ;;
11243
11244netbsd*)
11245 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11247 else
11248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11249 fi
11250 ;;
11251
11252newos6*)
11253 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11254 lt_cv_file_magic_cmd=/usr/bin/file
11255 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11256 ;;
11257
11258*nto* | *qnx*)
11259 lt_cv_deplibs_check_method=pass_all
11260 ;;
11261
11262openbsd*)
11263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11265 else
11266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11267 fi
11268 ;;
11269
11270osf3* | osf4* | osf5*)
11271 lt_cv_deplibs_check_method=pass_all
11272 ;;
11273
11274rdos*)
11275 lt_cv_deplibs_check_method=pass_all
11276 ;;
11277
11278solaris*)
11279 lt_cv_deplibs_check_method=pass_all
11280 ;;
11281
11282sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11283 lt_cv_deplibs_check_method=pass_all
11284 ;;
11285
11286sysv4 | sysv4.3*)
11287 case $host_vendor in
11288 motorola)
11289 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]'
11290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11291 ;;
11292 ncr)
11293 lt_cv_deplibs_check_method=pass_all
11294 ;;
11295 sequent)
11296 lt_cv_file_magic_cmd='/bin/file'
11297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11298 ;;
11299 sni)
11300 lt_cv_file_magic_cmd='/bin/file'
11301 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11302 lt_cv_file_magic_test_file=/lib/libc.so
11303 ;;
11304 siemens)
11305 lt_cv_deplibs_check_method=pass_all
11306 ;;
11307 pc)
11308 lt_cv_deplibs_check_method=pass_all
11309 ;;
11310 esac
11311 ;;
11312
11313tpf*)
11314 lt_cv_deplibs_check_method=pass_all
11315 ;;
11316esac
11317
11318fi
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11320$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011321
11322file_magic_glob=
11323want_nocaseglob=no
11324if test "$build" = "$host"; then
11325 case $host_os in
11326 mingw* | pw32*)
11327 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11328 want_nocaseglob=yes
11329 else
11330 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11331 fi
11332 ;;
11333 esac
11334fi
11335
cristy73bd4a52010-10-05 11:24:23 +000011336file_magic_cmd=$lt_cv_file_magic_cmd
11337deplibs_check_method=$lt_cv_deplibs_check_method
11338test -z "$deplibs_check_method" && deplibs_check_method=unknown
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
cristyda16f162011-02-19 23:52:17 +000011351
11352
11353
11354
11355
11356
11357
11358
11359
11360
cristy73bd4a52010-10-05 11:24:23 +000011361if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011362 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11363set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11365$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011366if ${ac_cv_prog_DLLTOOL+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368else
11369 if test -n "$DLLTOOL"; then
11370 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11371else
11372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373for as_dir in $PATH
11374do
11375 IFS=$as_save_IFS
11376 test -z "$as_dir" && as_dir=.
11377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011379 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11381 break 2
11382 fi
11383done
11384 done
11385IFS=$as_save_IFS
11386
11387fi
11388fi
11389DLLTOOL=$ac_cv_prog_DLLTOOL
11390if test -n "$DLLTOOL"; then
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11392$as_echo "$DLLTOOL" >&6; }
11393else
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395$as_echo "no" >&6; }
11396fi
11397
11398
11399fi
11400if test -z "$ac_cv_prog_DLLTOOL"; then
11401 ac_ct_DLLTOOL=$DLLTOOL
11402 # Extract the first word of "dlltool", so it can be a program name with args.
11403set dummy dlltool; ac_word=$2
11404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11405$as_echo_n "checking for $ac_word... " >&6; }
11406if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11407 $as_echo_n "(cached) " >&6
11408else
11409 if test -n "$ac_ct_DLLTOOL"; then
11410 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11411else
11412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11413for as_dir in $PATH
11414do
11415 IFS=$as_save_IFS
11416 test -z "$as_dir" && as_dir=.
11417 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011419 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11421 break 2
11422 fi
11423done
11424 done
11425IFS=$as_save_IFS
11426
11427fi
11428fi
11429ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11430if test -n "$ac_ct_DLLTOOL"; then
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11432$as_echo "$ac_ct_DLLTOOL" >&6; }
11433else
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11435$as_echo "no" >&6; }
11436fi
11437
11438 if test "x$ac_ct_DLLTOOL" = x; then
11439 DLLTOOL="false"
11440 else
11441 case $cross_compiling:$ac_tool_warned in
11442yes:)
11443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11445ac_tool_warned=yes ;;
11446esac
11447 DLLTOOL=$ac_ct_DLLTOOL
11448 fi
11449else
11450 DLLTOOL="$ac_cv_prog_DLLTOOL"
11451fi
11452
11453test -z "$DLLTOOL" && DLLTOOL=dlltool
11454
11455
11456
11457
11458
11459
11460
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11462$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11463if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11464 $as_echo_n "(cached) " >&6
11465else
11466 lt_cv_sharedlib_from_linklib_cmd='unknown'
11467
11468case $host_os in
11469cygwin* | mingw* | pw32* | cegcc*)
11470 # two different shell functions defined in ltmain.sh
11471 # decide which to use based on capabilities of $DLLTOOL
11472 case `$DLLTOOL --help 2>&1` in
11473 *--identify-strict*)
11474 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11475 ;;
11476 *)
11477 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11478 ;;
11479 esac
11480 ;;
11481*)
11482 # fallback: assume linklib IS sharedlib
11483 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11484 ;;
11485esac
11486
11487fi
11488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11489$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11490sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11491test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11492
11493
11494
11495
11496
11497
11498
11499if test -n "$ac_tool_prefix"; then
11500 for ac_prog in ar
11501 do
11502 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11503set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505$as_echo_n "checking for $ac_word... " >&6; }
11506if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011507 $as_echo_n "(cached) " >&6
11508else
11509 if test -n "$AR"; then
11510 ac_cv_prog_AR="$AR" # Let the user override the test.
11511else
11512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513for as_dir in $PATH
11514do
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
11517 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011519 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11521 break 2
11522 fi
11523done
11524 done
11525IFS=$as_save_IFS
11526
11527fi
11528fi
11529AR=$ac_cv_prog_AR
11530if test -n "$AR"; then
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11532$as_echo "$AR" >&6; }
11533else
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535$as_echo "no" >&6; }
11536fi
11537
11538
cristyda16f162011-02-19 23:52:17 +000011539 test -n "$AR" && break
11540 done
cristy73bd4a52010-10-05 11:24:23 +000011541fi
cristyda16f162011-02-19 23:52:17 +000011542if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011543 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011544 for ac_prog in ar
11545do
11546 # Extract the first word of "$ac_prog", so it can be a program name with args.
11547set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011550if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011551 $as_echo_n "(cached) " >&6
11552else
11553 if test -n "$ac_ct_AR"; then
11554 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11555else
11556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557for as_dir in $PATH
11558do
11559 IFS=$as_save_IFS
11560 test -z "$as_dir" && as_dir=.
11561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011563 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11565 break 2
11566 fi
11567done
11568 done
11569IFS=$as_save_IFS
11570
11571fi
11572fi
11573ac_ct_AR=$ac_cv_prog_ac_ct_AR
11574if test -n "$ac_ct_AR"; then
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11576$as_echo "$ac_ct_AR" >&6; }
11577else
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579$as_echo "no" >&6; }
11580fi
11581
cristyda16f162011-02-19 23:52:17 +000011582
11583 test -n "$ac_ct_AR" && break
11584done
11585
cristy73bd4a52010-10-05 11:24:23 +000011586 if test "x$ac_ct_AR" = x; then
11587 AR="false"
11588 else
11589 case $cross_compiling:$ac_tool_warned in
11590yes:)
11591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11593ac_tool_warned=yes ;;
11594esac
11595 AR=$ac_ct_AR
11596 fi
cristy73bd4a52010-10-05 11:24:23 +000011597fi
11598
cristyda16f162011-02-19 23:52:17 +000011599: ${AR=ar}
11600: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
cristyda16f162011-02-19 23:52:17 +000011612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11613$as_echo_n "checking for archiver @FILE support... " >&6; }
11614if ${lt_cv_ar_at_file+:} false; then :
11615 $as_echo_n "(cached) " >&6
11616else
11617 lt_cv_ar_at_file=no
11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619/* end confdefs.h. */
11620
11621int
11622main ()
11623{
11624
11625 ;
11626 return 0;
11627}
11628_ACEOF
11629if ac_fn_c_try_compile "$LINENO"; then :
11630 echo conftest.$ac_objext > conftest.lst
11631 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11633 (eval $lt_ar_try) 2>&5
11634 ac_status=$?
11635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11636 test $ac_status = 0; }
11637 if test "$ac_status" -eq 0; then
11638 # Ensure the archiver fails upon bogus file names.
11639 rm -f conftest.$ac_objext libconftest.a
11640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11641 (eval $lt_ar_try) 2>&5
11642 ac_status=$?
11643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11644 test $ac_status = 0; }
11645 if test "$ac_status" -ne 0; then
11646 lt_cv_ar_at_file=@
11647 fi
11648 fi
11649 rm -f conftest.* libconftest.a
11650
11651fi
11652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11653
11654fi
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11656$as_echo "$lt_cv_ar_at_file" >&6; }
11657
11658if test "x$lt_cv_ar_at_file" = xno; then
11659 archiver_list_spec=
11660else
11661 archiver_list_spec=$lt_cv_ar_at_file
11662fi
11663
11664
11665
11666
11667
11668
11669
cristy73bd4a52010-10-05 11:24:23 +000011670if test -n "$ac_tool_prefix"; then
11671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11672set dummy ${ac_tool_prefix}strip; ac_word=$2
11673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011675if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011676 $as_echo_n "(cached) " >&6
11677else
11678 if test -n "$STRIP"; then
11679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11680else
11681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682for as_dir in $PATH
11683do
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 break 2
11691 fi
11692done
11693 done
11694IFS=$as_save_IFS
11695
11696fi
11697fi
11698STRIP=$ac_cv_prog_STRIP
11699if test -n "$STRIP"; then
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11701$as_echo "$STRIP" >&6; }
11702else
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704$as_echo "no" >&6; }
11705fi
11706
11707
11708fi
11709if test -z "$ac_cv_prog_STRIP"; then
11710 ac_ct_STRIP=$STRIP
11711 # Extract the first word of "strip", so it can be a program name with args.
11712set dummy strip; ac_word=$2
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11714$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011715if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011716 $as_echo_n "(cached) " >&6
11717else
11718 if test -n "$ac_ct_STRIP"; then
11719 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11720else
11721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722for as_dir in $PATH
11723do
11724 IFS=$as_save_IFS
11725 test -z "$as_dir" && as_dir=.
11726 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011728 ac_cv_prog_ac_ct_STRIP="strip"
11729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11730 break 2
11731 fi
11732done
11733 done
11734IFS=$as_save_IFS
11735
11736fi
11737fi
11738ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11739if test -n "$ac_ct_STRIP"; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11741$as_echo "$ac_ct_STRIP" >&6; }
11742else
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744$as_echo "no" >&6; }
11745fi
11746
11747 if test "x$ac_ct_STRIP" = x; then
11748 STRIP=":"
11749 else
11750 case $cross_compiling:$ac_tool_warned in
11751yes:)
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11754ac_tool_warned=yes ;;
11755esac
11756 STRIP=$ac_ct_STRIP
11757 fi
11758else
11759 STRIP="$ac_cv_prog_STRIP"
11760fi
11761
11762test -z "$STRIP" && STRIP=:
11763
11764
11765
11766
11767
11768
11769if test -n "$ac_tool_prefix"; then
11770 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11771set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011774if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011775 $as_echo_n "(cached) " >&6
11776else
11777 if test -n "$RANLIB"; then
11778 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11779else
11780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11781for as_dir in $PATH
11782do
11783 IFS=$as_save_IFS
11784 test -z "$as_dir" && as_dir=.
11785 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011787 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11789 break 2
11790 fi
11791done
11792 done
11793IFS=$as_save_IFS
11794
11795fi
11796fi
11797RANLIB=$ac_cv_prog_RANLIB
11798if test -n "$RANLIB"; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11800$as_echo "$RANLIB" >&6; }
11801else
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803$as_echo "no" >&6; }
11804fi
11805
11806
11807fi
11808if test -z "$ac_cv_prog_RANLIB"; then
11809 ac_ct_RANLIB=$RANLIB
11810 # Extract the first word of "ranlib", so it can be a program name with args.
11811set dummy ranlib; ac_word=$2
11812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011814if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011815 $as_echo_n "(cached) " >&6
11816else
11817 if test -n "$ac_ct_RANLIB"; then
11818 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11819else
11820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821for as_dir in $PATH
11822do
11823 IFS=$as_save_IFS
11824 test -z "$as_dir" && as_dir=.
11825 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011827 ac_cv_prog_ac_ct_RANLIB="ranlib"
11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11829 break 2
11830 fi
11831done
11832 done
11833IFS=$as_save_IFS
11834
11835fi
11836fi
11837ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11838if test -n "$ac_ct_RANLIB"; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11840$as_echo "$ac_ct_RANLIB" >&6; }
11841else
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843$as_echo "no" >&6; }
11844fi
11845
11846 if test "x$ac_ct_RANLIB" = x; then
11847 RANLIB=":"
11848 else
11849 case $cross_compiling:$ac_tool_warned in
11850yes:)
11851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11853ac_tool_warned=yes ;;
11854esac
11855 RANLIB=$ac_ct_RANLIB
11856 fi
11857else
11858 RANLIB="$ac_cv_prog_RANLIB"
11859fi
11860
11861test -z "$RANLIB" && RANLIB=:
11862
11863
11864
11865
11866
11867
11868# Determine commands to create old-style static archives.
11869old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11870old_postinstall_cmds='chmod 644 $oldlib'
11871old_postuninstall_cmds=
11872
11873if test -n "$RANLIB"; then
11874 case $host_os in
11875 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011876 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011877 ;;
11878 *)
cristy99bd5232011-12-07 14:38:20 +000011879 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011880 ;;
11881 esac
cristy99bd5232011-12-07 14:38:20 +000011882 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011883fi
11884
cristy0c60a692010-11-04 01:09:47 +000011885case $host_os in
11886 darwin*)
11887 lock_old_archive_extraction=yes ;;
11888 *)
11889 lock_old_archive_extraction=no ;;
11890esac
11891
11892
11893
11894
11895
11896
cristy73bd4a52010-10-05 11:24:23 +000011897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930# If no C compiler was specified, use CC.
11931LTCC=${LTCC-"$CC"}
11932
11933# If no C compiler flags were specified, use CFLAGS.
11934LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11935
11936# Allow CC to be a program name with arguments.
11937compiler=$CC
11938
11939
11940# Check for command to grab the raw symbol name followed by C symbol from nm.
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11942$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011943if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011944 $as_echo_n "(cached) " >&6
11945else
11946
11947# These are sane defaults that work on at least a few old systems.
11948# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11949
11950# Character class describing NM global symbol codes.
11951symcode='[BCDEGRST]'
11952
11953# Regexp to match symbols that can be accessed directly from C.
11954sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11955
11956# Define system-specific variables.
11957case $host_os in
11958aix*)
11959 symcode='[BCDT]'
11960 ;;
11961cygwin* | mingw* | pw32* | cegcc*)
11962 symcode='[ABCDGISTW]'
11963 ;;
11964hpux*)
11965 if test "$host_cpu" = ia64; then
11966 symcode='[ABCDEGRST]'
11967 fi
11968 ;;
11969irix* | nonstopux*)
11970 symcode='[BCDEGRST]'
11971 ;;
11972osf*)
11973 symcode='[BCDEGQRST]'
11974 ;;
11975solaris*)
11976 symcode='[BDRT]'
11977 ;;
11978sco3.2v5*)
11979 symcode='[DT]'
11980 ;;
11981sysv4.2uw2*)
11982 symcode='[DT]'
11983 ;;
11984sysv5* | sco5v6* | unixware* | OpenUNIX*)
11985 symcode='[ABDT]'
11986 ;;
11987sysv4)
11988 symcode='[DFNSTU]'
11989 ;;
11990esac
11991
11992# If we're using GNU nm, then use its standard symbol codes.
11993case `$NM -V 2>&1` in
11994*GNU* | *'with BFD'*)
11995 symcode='[ABCDGIRSTW]' ;;
11996esac
11997
11998# Transform an extracted symbol line into a proper C declaration.
11999# Some systems (esp. on ia64) link data and code symbols differently,
12000# so use this general approach.
12001lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12002
12003# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012004lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12005lt_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 +000012006
12007# Handle CRLF in mingw tool chain
12008opt_cr=
12009case $build_os in
12010mingw*)
12011 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12012 ;;
12013esac
12014
12015# Try without a prefix underscore, then with it.
12016for ac_symprfx in "" "_"; do
12017
12018 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12019 symxfrm="\\1 $ac_symprfx\\2 \\2"
12020
12021 # Write the raw and C identifiers.
12022 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12023 # Fake it for dumpbin and say T for any non-static function
12024 # and D for any global variable.
12025 # Also find C++ and __fastcall symbols from MSVC++,
12026 # which start with @ or ?.
12027 lt_cv_sys_global_symbol_pipe="$AWK '"\
12028" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012029" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012030" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12031" \$ 0!~/External *\|/{next};"\
12032" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12033" {if(hide[section]) next};"\
12034" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12035" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12036" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12037" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12038" ' prfx=^$ac_symprfx"
12039 else
12040 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12041 fi
cristyda16f162011-02-19 23:52:17 +000012042 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012043
12044 # Check to see that the pipe works correctly.
12045 pipe_works=no
12046
12047 rm -f conftest*
12048 cat > conftest.$ac_ext <<_LT_EOF
12049#ifdef __cplusplus
12050extern "C" {
12051#endif
12052char nm_test_var;
12053void nm_test_func(void);
12054void nm_test_func(void){}
12055#ifdef __cplusplus
12056}
12057#endif
12058int main(){nm_test_var='a';nm_test_func();return(0);}
12059_LT_EOF
12060
12061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12062 (eval $ac_compile) 2>&5
12063 ac_status=$?
12064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12065 test $ac_status = 0; }; then
12066 # Now try to grab the symbols.
12067 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12069 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012070 ac_status=$?
12071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12072 test $ac_status = 0; } && test -s "$nlist"; then
12073 # Try sorting and uniquifying the output.
12074 if sort "$nlist" | uniq > "$nlist"T; then
12075 mv -f "$nlist"T "$nlist"
12076 else
12077 rm -f "$nlist"T
12078 fi
12079
12080 # Make sure that we snagged all the symbols we need.
12081 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12082 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12083 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012084/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12085#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12086/* DATA imports from DLLs on WIN32 con't be const, because runtime
12087 relocations are performed -- see ld's documentation on pseudo-relocs. */
12088# define LT_DLSYM_CONST
12089#elif defined(__osf__)
12090/* This system does not cope well with relocations in const data. */
12091# define LT_DLSYM_CONST
12092#else
12093# define LT_DLSYM_CONST const
12094#endif
12095
cristy73bd4a52010-10-05 11:24:23 +000012096#ifdef __cplusplus
12097extern "C" {
12098#endif
12099
12100_LT_EOF
12101 # Now generate the symbol file.
12102 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12103
12104 cat <<_LT_EOF >> conftest.$ac_ext
12105
12106/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012107LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012108 const char *name;
12109 void *address;
12110}
12111lt__PROGRAM__LTX_preloaded_symbols[] =
12112{
12113 { "@PROGRAM@", (void *) 0 },
12114_LT_EOF
12115 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12116 cat <<\_LT_EOF >> conftest.$ac_ext
12117 {0, (void *) 0}
12118};
12119
12120/* This works around a problem in FreeBSD linker */
12121#ifdef FREEBSD_WORKAROUND
12122static const void *lt_preloaded_setup() {
12123 return lt__PROGRAM__LTX_preloaded_symbols;
12124}
12125#endif
12126
12127#ifdef __cplusplus
12128}
12129#endif
12130_LT_EOF
12131 # Now try linking the two files.
12132 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012133 lt_globsym_save_LIBS=$LIBS
12134 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012135 LIBS="conftstm.$ac_objext"
12136 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12138 (eval $ac_link) 2>&5
12139 ac_status=$?
12140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12141 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12142 pipe_works=yes
12143 fi
cristyda16f162011-02-19 23:52:17 +000012144 LIBS=$lt_globsym_save_LIBS
12145 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012146 else
12147 echo "cannot find nm_test_func in $nlist" >&5
12148 fi
12149 else
12150 echo "cannot find nm_test_var in $nlist" >&5
12151 fi
12152 else
12153 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12154 fi
12155 else
12156 echo "$progname: failed program was:" >&5
12157 cat conftest.$ac_ext >&5
12158 fi
12159 rm -rf conftest* conftst*
12160
12161 # Do not use the global_symbol_pipe unless it works.
12162 if test "$pipe_works" = yes; then
12163 break
12164 else
12165 lt_cv_sys_global_symbol_pipe=
12166 fi
12167done
12168
12169fi
12170
12171if test -z "$lt_cv_sys_global_symbol_pipe"; then
12172 lt_cv_sys_global_symbol_to_cdecl=
12173fi
12174if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12176$as_echo "failed" >&6; }
12177else
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12179$as_echo "ok" >&6; }
12180fi
12181
cristyda16f162011-02-19 23:52:17 +000012182# Response file support.
12183if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12184 nm_file_list_spec='@'
12185elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12186 nm_file_list_spec='@'
12187fi
cristy73bd4a52010-10-05 11:24:23 +000012188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
cristyda16f162011-02-19 23:52:17 +000012209
12210
12211
12212
12213
12214
12215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12216$as_echo_n "checking for sysroot... " >&6; }
12217
12218# Check whether --with-sysroot was given.
12219if test "${with_sysroot+set}" = set; then :
12220 withval=$with_sysroot;
12221else
12222 with_sysroot=no
12223fi
12224
12225
12226lt_sysroot=
12227case ${with_sysroot} in #(
12228 yes)
12229 if test "$GCC" = yes; then
12230 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12231 fi
12232 ;; #(
12233 /*)
12234 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12235 ;; #(
12236 no|'')
12237 ;; #(
12238 *)
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12240$as_echo "${with_sysroot}" >&6; }
12241 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12242 ;;
12243esac
12244
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12246$as_echo "${lt_sysroot:-no}" >&6; }
12247
12248
12249
12250
12251
cristy73bd4a52010-10-05 11:24:23 +000012252# Check whether --enable-libtool-lock was given.
12253if test "${enable_libtool_lock+set}" = set; then :
12254 enableval=$enable_libtool_lock;
12255fi
12256
12257test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12258
12259# Some flags need to be propagated to the compiler or linker for good
12260# libtool support.
12261case $host in
12262ia64-*-hpux*)
12263 # Find out which ABI we are using.
12264 echo 'int i;' > conftest.$ac_ext
12265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12266 (eval $ac_compile) 2>&5
12267 ac_status=$?
12268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12269 test $ac_status = 0; }; then
12270 case `/usr/bin/file conftest.$ac_objext` in
12271 *ELF-32*)
12272 HPUX_IA64_MODE="32"
12273 ;;
12274 *ELF-64*)
12275 HPUX_IA64_MODE="64"
12276 ;;
12277 esac
12278 fi
12279 rm -rf conftest*
12280 ;;
12281*-*-irix6*)
12282 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012283 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12285 (eval $ac_compile) 2>&5
12286 ac_status=$?
12287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12288 test $ac_status = 0; }; then
12289 if test "$lt_cv_prog_gnu_ld" = yes; then
12290 case `/usr/bin/file conftest.$ac_objext` in
12291 *32-bit*)
12292 LD="${LD-ld} -melf32bsmip"
12293 ;;
12294 *N32*)
12295 LD="${LD-ld} -melf32bmipn32"
12296 ;;
12297 *64-bit*)
12298 LD="${LD-ld} -melf64bmip"
12299 ;;
12300 esac
12301 else
12302 case `/usr/bin/file conftest.$ac_objext` in
12303 *32-bit*)
12304 LD="${LD-ld} -32"
12305 ;;
12306 *N32*)
12307 LD="${LD-ld} -n32"
12308 ;;
12309 *64-bit*)
12310 LD="${LD-ld} -64"
12311 ;;
12312 esac
12313 fi
12314 fi
12315 rm -rf conftest*
12316 ;;
12317
12318x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12319s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12320 # Find out which ABI we are using.
12321 echo 'int i;' > conftest.$ac_ext
12322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12323 (eval $ac_compile) 2>&5
12324 ac_status=$?
12325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12326 test $ac_status = 0; }; then
12327 case `/usr/bin/file conftest.o` in
12328 *32-bit*)
12329 case $host in
12330 x86_64-*kfreebsd*-gnu)
12331 LD="${LD-ld} -m elf_i386_fbsd"
12332 ;;
12333 x86_64-*linux*)
12334 LD="${LD-ld} -m elf_i386"
12335 ;;
12336 ppc64-*linux*|powerpc64-*linux*)
12337 LD="${LD-ld} -m elf32ppclinux"
12338 ;;
12339 s390x-*linux*)
12340 LD="${LD-ld} -m elf_s390"
12341 ;;
12342 sparc64-*linux*)
12343 LD="${LD-ld} -m elf32_sparc"
12344 ;;
12345 esac
12346 ;;
12347 *64-bit*)
12348 case $host in
12349 x86_64-*kfreebsd*-gnu)
12350 LD="${LD-ld} -m elf_x86_64_fbsd"
12351 ;;
12352 x86_64-*linux*)
12353 LD="${LD-ld} -m elf_x86_64"
12354 ;;
12355 ppc*-*linux*|powerpc*-*linux*)
12356 LD="${LD-ld} -m elf64ppc"
12357 ;;
12358 s390*-*linux*|s390*-*tpf*)
12359 LD="${LD-ld} -m elf64_s390"
12360 ;;
12361 sparc*-*linux*)
12362 LD="${LD-ld} -m elf64_sparc"
12363 ;;
12364 esac
12365 ;;
12366 esac
12367 fi
12368 rm -rf conftest*
12369 ;;
12370
12371*-*-sco3.2v5*)
12372 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12373 SAVE_CFLAGS="$CFLAGS"
12374 CFLAGS="$CFLAGS -belf"
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12376$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012377if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012378 $as_echo_n "(cached) " >&6
12379else
12380 ac_ext=c
12381ac_cpp='$CPP $CPPFLAGS'
12382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12384ac_compiler_gnu=$ac_cv_c_compiler_gnu
12385
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387/* end confdefs.h. */
12388
12389int
12390main ()
12391{
12392
12393 ;
12394 return 0;
12395}
12396_ACEOF
12397if ac_fn_c_try_link "$LINENO"; then :
12398 lt_cv_cc_needs_belf=yes
12399else
12400 lt_cv_cc_needs_belf=no
12401fi
12402rm -f core conftest.err conftest.$ac_objext \
12403 conftest$ac_exeext conftest.$ac_ext
12404 ac_ext=c
12405ac_cpp='$CPP $CPPFLAGS'
12406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12408ac_compiler_gnu=$ac_cv_c_compiler_gnu
12409
12410fi
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12412$as_echo "$lt_cv_cc_needs_belf" >&6; }
12413 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12414 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12415 CFLAGS="$SAVE_CFLAGS"
12416 fi
12417 ;;
cristy99bd5232011-12-07 14:38:20 +000012418*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012419 # Find out which ABI we are using.
12420 echo 'int i;' > conftest.$ac_ext
12421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12422 (eval $ac_compile) 2>&5
12423 ac_status=$?
12424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12425 test $ac_status = 0; }; then
12426 case `/usr/bin/file conftest.o` in
12427 *64-bit*)
12428 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012429 yes*)
12430 case $host in
12431 i?86-*-solaris*)
12432 LD="${LD-ld} -m elf_x86_64"
12433 ;;
12434 sparc*-*-solaris*)
12435 LD="${LD-ld} -m elf64_sparc"
12436 ;;
12437 esac
12438 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12439 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12440 LD="${LD-ld}_sol2"
12441 fi
12442 ;;
cristy73bd4a52010-10-05 11:24:23 +000012443 *)
12444 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12445 LD="${LD-ld} -64"
12446 fi
12447 ;;
12448 esac
12449 ;;
12450 esac
12451 fi
12452 rm -rf conftest*
12453 ;;
12454esac
12455
12456need_locks="$enable_libtool_lock"
12457
cristyda16f162011-02-19 23:52:17 +000012458if test -n "$ac_tool_prefix"; then
12459 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12460set dummy ${ac_tool_prefix}mt; ac_word=$2
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12462$as_echo_n "checking for $ac_word... " >&6; }
12463if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12464 $as_echo_n "(cached) " >&6
12465else
12466 if test -n "$MANIFEST_TOOL"; then
12467 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12468else
12469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12470for as_dir in $PATH
12471do
12472 IFS=$as_save_IFS
12473 test -z "$as_dir" && as_dir=.
12474 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012476 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12478 break 2
12479 fi
12480done
12481 done
12482IFS=$as_save_IFS
12483
12484fi
12485fi
12486MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12487if test -n "$MANIFEST_TOOL"; then
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12489$as_echo "$MANIFEST_TOOL" >&6; }
12490else
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492$as_echo "no" >&6; }
12493fi
12494
12495
12496fi
12497if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12498 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12499 # Extract the first word of "mt", so it can be a program name with args.
12500set dummy mt; ac_word=$2
12501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12502$as_echo_n "checking for $ac_word... " >&6; }
12503if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12504 $as_echo_n "(cached) " >&6
12505else
12506 if test -n "$ac_ct_MANIFEST_TOOL"; then
12507 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12508else
12509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510for as_dir in $PATH
12511do
12512 IFS=$as_save_IFS
12513 test -z "$as_dir" && as_dir=.
12514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012516 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12518 break 2
12519 fi
12520done
12521 done
12522IFS=$as_save_IFS
12523
12524fi
12525fi
12526ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12527if test -n "$ac_ct_MANIFEST_TOOL"; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12529$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12530else
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532$as_echo "no" >&6; }
12533fi
12534
12535 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12536 MANIFEST_TOOL=":"
12537 else
12538 case $cross_compiling:$ac_tool_warned in
12539yes:)
12540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12542ac_tool_warned=yes ;;
12543esac
12544 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12545 fi
12546else
12547 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12548fi
12549
12550test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12552$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12553if ${lt_cv_path_mainfest_tool+:} false; then :
12554 $as_echo_n "(cached) " >&6
12555else
12556 lt_cv_path_mainfest_tool=no
12557 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12558 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12559 cat conftest.err >&5
12560 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12561 lt_cv_path_mainfest_tool=yes
12562 fi
12563 rm -f conftest*
12564fi
12565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12566$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12567if test "x$lt_cv_path_mainfest_tool" != xyes; then
12568 MANIFEST_TOOL=:
12569fi
12570
12571
12572
12573
12574
cristy73bd4a52010-10-05 11:24:23 +000012575
12576 case $host_os in
12577 rhapsody* | darwin*)
12578 if test -n "$ac_tool_prefix"; then
12579 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12580set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12582$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012583if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012584 $as_echo_n "(cached) " >&6
12585else
12586 if test -n "$DSYMUTIL"; then
12587 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12588else
12589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590for as_dir in $PATH
12591do
12592 IFS=$as_save_IFS
12593 test -z "$as_dir" && as_dir=.
12594 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012596 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598 break 2
12599 fi
12600done
12601 done
12602IFS=$as_save_IFS
12603
12604fi
12605fi
12606DSYMUTIL=$ac_cv_prog_DSYMUTIL
12607if test -n "$DSYMUTIL"; then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12609$as_echo "$DSYMUTIL" >&6; }
12610else
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612$as_echo "no" >&6; }
12613fi
12614
12615
12616fi
12617if test -z "$ac_cv_prog_DSYMUTIL"; then
12618 ac_ct_DSYMUTIL=$DSYMUTIL
12619 # Extract the first word of "dsymutil", so it can be a program name with args.
12620set dummy dsymutil; ac_word=$2
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012623if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012624 $as_echo_n "(cached) " >&6
12625else
12626 if test -n "$ac_ct_DSYMUTIL"; then
12627 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12628else
12629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630for as_dir in $PATH
12631do
12632 IFS=$as_save_IFS
12633 test -z "$as_dir" && as_dir=.
12634 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012636 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638 break 2
12639 fi
12640done
12641 done
12642IFS=$as_save_IFS
12643
12644fi
12645fi
12646ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12647if test -n "$ac_ct_DSYMUTIL"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12649$as_echo "$ac_ct_DSYMUTIL" >&6; }
12650else
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652$as_echo "no" >&6; }
12653fi
12654
12655 if test "x$ac_ct_DSYMUTIL" = x; then
12656 DSYMUTIL=":"
12657 else
12658 case $cross_compiling:$ac_tool_warned in
12659yes:)
12660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12662ac_tool_warned=yes ;;
12663esac
12664 DSYMUTIL=$ac_ct_DSYMUTIL
12665 fi
12666else
12667 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12668fi
12669
12670 if test -n "$ac_tool_prefix"; then
12671 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12672set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12674$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012675if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012676 $as_echo_n "(cached) " >&6
12677else
12678 if test -n "$NMEDIT"; then
12679 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12680else
12681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12682for as_dir in $PATH
12683do
12684 IFS=$as_save_IFS
12685 test -z "$as_dir" && as_dir=.
12686 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012688 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12690 break 2
12691 fi
12692done
12693 done
12694IFS=$as_save_IFS
12695
12696fi
12697fi
12698NMEDIT=$ac_cv_prog_NMEDIT
12699if test -n "$NMEDIT"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12701$as_echo "$NMEDIT" >&6; }
12702else
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704$as_echo "no" >&6; }
12705fi
12706
12707
12708fi
12709if test -z "$ac_cv_prog_NMEDIT"; then
12710 ac_ct_NMEDIT=$NMEDIT
12711 # Extract the first word of "nmedit", so it can be a program name with args.
12712set dummy nmedit; ac_word=$2
12713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12714$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012715if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012716 $as_echo_n "(cached) " >&6
12717else
12718 if test -n "$ac_ct_NMEDIT"; then
12719 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12720else
12721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12722for as_dir in $PATH
12723do
12724 IFS=$as_save_IFS
12725 test -z "$as_dir" && as_dir=.
12726 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012728 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12730 break 2
12731 fi
12732done
12733 done
12734IFS=$as_save_IFS
12735
12736fi
12737fi
12738ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12739if test -n "$ac_ct_NMEDIT"; then
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12741$as_echo "$ac_ct_NMEDIT" >&6; }
12742else
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12744$as_echo "no" >&6; }
12745fi
12746
12747 if test "x$ac_ct_NMEDIT" = x; then
12748 NMEDIT=":"
12749 else
12750 case $cross_compiling:$ac_tool_warned in
12751yes:)
12752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12754ac_tool_warned=yes ;;
12755esac
12756 NMEDIT=$ac_ct_NMEDIT
12757 fi
12758else
12759 NMEDIT="$ac_cv_prog_NMEDIT"
12760fi
12761
12762 if test -n "$ac_tool_prefix"; then
12763 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12764set dummy ${ac_tool_prefix}lipo; ac_word=$2
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012767if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012768 $as_echo_n "(cached) " >&6
12769else
12770 if test -n "$LIPO"; then
12771 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12772else
12773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774for as_dir in $PATH
12775do
12776 IFS=$as_save_IFS
12777 test -z "$as_dir" && as_dir=.
12778 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012780 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12782 break 2
12783 fi
12784done
12785 done
12786IFS=$as_save_IFS
12787
12788fi
12789fi
12790LIPO=$ac_cv_prog_LIPO
12791if test -n "$LIPO"; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12793$as_echo "$LIPO" >&6; }
12794else
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796$as_echo "no" >&6; }
12797fi
12798
12799
12800fi
12801if test -z "$ac_cv_prog_LIPO"; then
12802 ac_ct_LIPO=$LIPO
12803 # Extract the first word of "lipo", so it can be a program name with args.
12804set dummy lipo; ac_word=$2
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012807if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012808 $as_echo_n "(cached) " >&6
12809else
12810 if test -n "$ac_ct_LIPO"; then
12811 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12812else
12813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814for as_dir in $PATH
12815do
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012820 ac_cv_prog_ac_ct_LIPO="lipo"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12823 fi
12824done
12825 done
12826IFS=$as_save_IFS
12827
12828fi
12829fi
12830ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12831if test -n "$ac_ct_LIPO"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12833$as_echo "$ac_ct_LIPO" >&6; }
12834else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836$as_echo "no" >&6; }
12837fi
12838
12839 if test "x$ac_ct_LIPO" = x; then
12840 LIPO=":"
12841 else
12842 case $cross_compiling:$ac_tool_warned in
12843yes:)
12844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12846ac_tool_warned=yes ;;
12847esac
12848 LIPO=$ac_ct_LIPO
12849 fi
12850else
12851 LIPO="$ac_cv_prog_LIPO"
12852fi
12853
12854 if test -n "$ac_tool_prefix"; then
12855 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12856set dummy ${ac_tool_prefix}otool; ac_word=$2
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12858$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012859if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012860 $as_echo_n "(cached) " >&6
12861else
12862 if test -n "$OTOOL"; then
12863 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12864else
12865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866for as_dir in $PATH
12867do
12868 IFS=$as_save_IFS
12869 test -z "$as_dir" && as_dir=.
12870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012872 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12874 break 2
12875 fi
12876done
12877 done
12878IFS=$as_save_IFS
12879
12880fi
12881fi
12882OTOOL=$ac_cv_prog_OTOOL
12883if test -n "$OTOOL"; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12885$as_echo "$OTOOL" >&6; }
12886else
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888$as_echo "no" >&6; }
12889fi
12890
12891
12892fi
12893if test -z "$ac_cv_prog_OTOOL"; then
12894 ac_ct_OTOOL=$OTOOL
12895 # Extract the first word of "otool", so it can be a program name with args.
12896set dummy otool; ac_word=$2
12897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012899if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012900 $as_echo_n "(cached) " >&6
12901else
12902 if test -n "$ac_ct_OTOOL"; then
12903 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12904else
12905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906for as_dir in $PATH
12907do
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012912 ac_cv_prog_ac_ct_OTOOL="otool"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12915 fi
12916done
12917 done
12918IFS=$as_save_IFS
12919
12920fi
12921fi
12922ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12923if test -n "$ac_ct_OTOOL"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12925$as_echo "$ac_ct_OTOOL" >&6; }
12926else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928$as_echo "no" >&6; }
12929fi
12930
12931 if test "x$ac_ct_OTOOL" = x; then
12932 OTOOL=":"
12933 else
12934 case $cross_compiling:$ac_tool_warned in
12935yes:)
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12938ac_tool_warned=yes ;;
12939esac
12940 OTOOL=$ac_ct_OTOOL
12941 fi
12942else
12943 OTOOL="$ac_cv_prog_OTOOL"
12944fi
12945
12946 if test -n "$ac_tool_prefix"; then
12947 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12948set dummy ${ac_tool_prefix}otool64; ac_word=$2
12949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12950$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012951if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012952 $as_echo_n "(cached) " >&6
12953else
12954 if test -n "$OTOOL64"; then
12955 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12956else
12957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12958for as_dir in $PATH
12959do
12960 IFS=$as_save_IFS
12961 test -z "$as_dir" && as_dir=.
12962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012964 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12966 break 2
12967 fi
12968done
12969 done
12970IFS=$as_save_IFS
12971
12972fi
12973fi
12974OTOOL64=$ac_cv_prog_OTOOL64
12975if test -n "$OTOOL64"; then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12977$as_echo "$OTOOL64" >&6; }
12978else
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980$as_echo "no" >&6; }
12981fi
12982
12983
12984fi
12985if test -z "$ac_cv_prog_OTOOL64"; then
12986 ac_ct_OTOOL64=$OTOOL64
12987 # Extract the first word of "otool64", so it can be a program name with args.
12988set dummy otool64; ac_word=$2
12989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012991if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012992 $as_echo_n "(cached) " >&6
12993else
12994 if test -n "$ac_ct_OTOOL64"; then
12995 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12996else
12997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998for as_dir in $PATH
12999do
13000 IFS=$as_save_IFS
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013004 ac_cv_prog_ac_ct_OTOOL64="otool64"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 break 2
13007 fi
13008done
13009 done
13010IFS=$as_save_IFS
13011
13012fi
13013fi
13014ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13015if test -n "$ac_ct_OTOOL64"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13017$as_echo "$ac_ct_OTOOL64" >&6; }
13018else
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020$as_echo "no" >&6; }
13021fi
13022
13023 if test "x$ac_ct_OTOOL64" = x; then
13024 OTOOL64=":"
13025 else
13026 case $cross_compiling:$ac_tool_warned in
13027yes:)
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13030ac_tool_warned=yes ;;
13031esac
13032 OTOOL64=$ac_ct_OTOOL64
13033 fi
13034else
13035 OTOOL64="$ac_cv_prog_OTOOL64"
13036fi
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13065$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013066if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013067 $as_echo_n "(cached) " >&6
13068else
13069 lt_cv_apple_cc_single_mod=no
13070 if test -z "${LT_MULTI_MODULE}"; then
13071 # By default we will add the -single_module flag. You can override
13072 # by either setting the environment variable LT_MULTI_MODULE
13073 # non-empty at configure time, or by adding -multi_module to the
13074 # link flags.
13075 rm -rf libconftest.dylib*
13076 echo "int foo(void){return 1;}" > conftest.c
13077 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13078-dynamiclib -Wl,-single_module conftest.c" >&5
13079 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13080 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13081 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013082 # If there is a non-empty error log, and "single_module"
13083 # appears in it, assume the flag caused a linker warning
13084 if test -s conftest.err && $GREP single_module conftest.err; then
13085 cat conftest.err >&5
13086 # Otherwise, if the output was created with a 0 exit code from
13087 # the compiler, it worked.
13088 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013089 lt_cv_apple_cc_single_mod=yes
13090 else
13091 cat conftest.err >&5
13092 fi
13093 rm -rf libconftest.dylib*
13094 rm -f conftest.*
13095 fi
13096fi
13097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13098$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013099
cristy73bd4a52010-10-05 11:24:23 +000013100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13101$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013102if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013103 $as_echo_n "(cached) " >&6
13104else
13105 lt_cv_ld_exported_symbols_list=no
13106 save_LDFLAGS=$LDFLAGS
13107 echo "_main" > conftest.sym
13108 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110/* end confdefs.h. */
13111
13112int
13113main ()
13114{
13115
13116 ;
13117 return 0;
13118}
13119_ACEOF
13120if ac_fn_c_try_link "$LINENO"; then :
13121 lt_cv_ld_exported_symbols_list=yes
13122else
13123 lt_cv_ld_exported_symbols_list=no
13124fi
13125rm -f core conftest.err conftest.$ac_objext \
13126 conftest$ac_exeext conftest.$ac_ext
13127 LDFLAGS="$save_LDFLAGS"
13128
13129fi
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13131$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013132
cristy0c60a692010-11-04 01:09:47 +000013133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13134$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013135if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013136 $as_echo_n "(cached) " >&6
13137else
13138 lt_cv_ld_force_load=no
13139 cat > conftest.c << _LT_EOF
13140int forced_loaded() { return 2;}
13141_LT_EOF
13142 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13143 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13144 echo "$AR cru libconftest.a conftest.o" >&5
13145 $AR cru libconftest.a conftest.o 2>&5
13146 echo "$RANLIB libconftest.a" >&5
13147 $RANLIB libconftest.a 2>&5
13148 cat > conftest.c << _LT_EOF
13149int main() { return 0;}
13150_LT_EOF
13151 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13152 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13153 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013154 if test -s conftest.err && $GREP force_load conftest.err; then
13155 cat conftest.err >&5
13156 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013157 lt_cv_ld_force_load=yes
13158 else
13159 cat conftest.err >&5
13160 fi
13161 rm -f conftest.err libconftest.a conftest conftest.c
13162 rm -rf conftest.dSYM
13163
13164fi
13165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13166$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013167 case $host_os in
13168 rhapsody* | darwin1.[012])
13169 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13170 darwin1.*)
13171 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13172 darwin*) # darwin 5.x on
13173 # if running on 10.5 or later, the deployment target defaults
13174 # to the OS version, if on x86, and 10.4, the deployment
13175 # target defaults to 10.4. Don't you love it?
13176 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13177 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13178 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13179 10.[012]*)
13180 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13181 10.*)
13182 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13183 esac
13184 ;;
13185 esac
13186 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13187 _lt_dar_single_mod='$single_module'
13188 fi
13189 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13190 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13191 else
13192 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13193 fi
cristy0c60a692010-11-04 01:09:47 +000013194 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013195 _lt_dsymutil='~$DSYMUTIL $lib || :'
13196 else
13197 _lt_dsymutil=
13198 fi
13199 ;;
13200 esac
13201
13202for ac_header in dlfcn.h
13203do :
13204 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13205"
cristyda16f162011-02-19 23:52:17 +000013206if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013207 cat >>confdefs.h <<_ACEOF
13208#define HAVE_DLFCN_H 1
13209_ACEOF
13210
13211fi
13212
13213done
13214
13215
13216
cristy73bd4a52010-10-05 11:24:23 +000013217
cristyda16f162011-02-19 23:52:17 +000013218func_stripname_cnf ()
13219{
13220 case ${2} in
13221 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13222 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13223 esac
13224} # func_stripname_cnf
13225
13226
13227
cristy73bd4a52010-10-05 11:24:23 +000013228
13229
13230# Set options
13231enable_win32_dll=yes
13232
13233case $host in
cristy0c60a692010-11-04 01:09:47 +000013234*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013235 if test -n "$ac_tool_prefix"; then
13236 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13237set dummy ${ac_tool_prefix}as; ac_word=$2
13238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13239$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013240if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013241 $as_echo_n "(cached) " >&6
13242else
13243 if test -n "$AS"; then
13244 ac_cv_prog_AS="$AS" # Let the user override the test.
13245else
13246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247for as_dir in $PATH
13248do
13249 IFS=$as_save_IFS
13250 test -z "$as_dir" && as_dir=.
13251 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013253 ac_cv_prog_AS="${ac_tool_prefix}as"
13254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13255 break 2
13256 fi
13257done
13258 done
13259IFS=$as_save_IFS
13260
13261fi
13262fi
13263AS=$ac_cv_prog_AS
13264if test -n "$AS"; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13266$as_echo "$AS" >&6; }
13267else
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269$as_echo "no" >&6; }
13270fi
13271
13272
13273fi
13274if test -z "$ac_cv_prog_AS"; then
13275 ac_ct_AS=$AS
13276 # Extract the first word of "as", so it can be a program name with args.
13277set dummy as; ac_word=$2
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13279$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013280if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013281 $as_echo_n "(cached) " >&6
13282else
13283 if test -n "$ac_ct_AS"; then
13284 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13285else
13286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287for as_dir in $PATH
13288do
13289 IFS=$as_save_IFS
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013293 ac_cv_prog_ac_ct_AS="as"
13294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13295 break 2
13296 fi
13297done
13298 done
13299IFS=$as_save_IFS
13300
13301fi
13302fi
13303ac_ct_AS=$ac_cv_prog_ac_ct_AS
13304if test -n "$ac_ct_AS"; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13306$as_echo "$ac_ct_AS" >&6; }
13307else
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309$as_echo "no" >&6; }
13310fi
13311
13312 if test "x$ac_ct_AS" = x; then
13313 AS="false"
13314 else
13315 case $cross_compiling:$ac_tool_warned in
13316yes:)
13317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13319ac_tool_warned=yes ;;
13320esac
13321 AS=$ac_ct_AS
13322 fi
13323else
13324 AS="$ac_cv_prog_AS"
13325fi
13326
13327 if test -n "$ac_tool_prefix"; then
13328 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13329set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13331$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013332if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013333 $as_echo_n "(cached) " >&6
13334else
13335 if test -n "$DLLTOOL"; then
13336 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13337else
13338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339for as_dir in $PATH
13340do
13341 IFS=$as_save_IFS
13342 test -z "$as_dir" && as_dir=.
13343 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013345 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13347 break 2
13348 fi
13349done
13350 done
13351IFS=$as_save_IFS
13352
13353fi
13354fi
13355DLLTOOL=$ac_cv_prog_DLLTOOL
13356if test -n "$DLLTOOL"; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13358$as_echo "$DLLTOOL" >&6; }
13359else
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361$as_echo "no" >&6; }
13362fi
13363
13364
13365fi
13366if test -z "$ac_cv_prog_DLLTOOL"; then
13367 ac_ct_DLLTOOL=$DLLTOOL
13368 # Extract the first word of "dlltool", so it can be a program name with args.
13369set dummy dlltool; ac_word=$2
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13371$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013372if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013373 $as_echo_n "(cached) " >&6
13374else
13375 if test -n "$ac_ct_DLLTOOL"; then
13376 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13377else
13378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13379for as_dir in $PATH
13380do
13381 IFS=$as_save_IFS
13382 test -z "$as_dir" && as_dir=.
13383 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013385 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13387 break 2
13388 fi
13389done
13390 done
13391IFS=$as_save_IFS
13392
13393fi
13394fi
13395ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13396if test -n "$ac_ct_DLLTOOL"; then
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13398$as_echo "$ac_ct_DLLTOOL" >&6; }
13399else
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401$as_echo "no" >&6; }
13402fi
13403
13404 if test "x$ac_ct_DLLTOOL" = x; then
13405 DLLTOOL="false"
13406 else
13407 case $cross_compiling:$ac_tool_warned in
13408yes:)
13409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13411ac_tool_warned=yes ;;
13412esac
13413 DLLTOOL=$ac_ct_DLLTOOL
13414 fi
13415else
13416 DLLTOOL="$ac_cv_prog_DLLTOOL"
13417fi
13418
13419 if test -n "$ac_tool_prefix"; then
13420 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13421set dummy ${ac_tool_prefix}objdump; ac_word=$2
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13423$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013424if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013425 $as_echo_n "(cached) " >&6
13426else
13427 if test -n "$OBJDUMP"; then
13428 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13429else
13430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431for as_dir in $PATH
13432do
13433 IFS=$as_save_IFS
13434 test -z "$as_dir" && as_dir=.
13435 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013437 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13439 break 2
13440 fi
13441done
13442 done
13443IFS=$as_save_IFS
13444
13445fi
13446fi
13447OBJDUMP=$ac_cv_prog_OBJDUMP
13448if test -n "$OBJDUMP"; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13450$as_echo "$OBJDUMP" >&6; }
13451else
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453$as_echo "no" >&6; }
13454fi
13455
13456
13457fi
13458if test -z "$ac_cv_prog_OBJDUMP"; then
13459 ac_ct_OBJDUMP=$OBJDUMP
13460 # Extract the first word of "objdump", so it can be a program name with args.
13461set dummy objdump; ac_word=$2
13462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13463$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013464if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013465 $as_echo_n "(cached) " >&6
13466else
13467 if test -n "$ac_ct_OBJDUMP"; then
13468 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13469else
13470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471for as_dir in $PATH
13472do
13473 IFS=$as_save_IFS
13474 test -z "$as_dir" && as_dir=.
13475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013477 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13479 break 2
13480 fi
13481done
13482 done
13483IFS=$as_save_IFS
13484
13485fi
13486fi
13487ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13488if test -n "$ac_ct_OBJDUMP"; then
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13490$as_echo "$ac_ct_OBJDUMP" >&6; }
13491else
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493$as_echo "no" >&6; }
13494fi
13495
13496 if test "x$ac_ct_OBJDUMP" = x; then
13497 OBJDUMP="false"
13498 else
13499 case $cross_compiling:$ac_tool_warned in
13500yes:)
13501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13503ac_tool_warned=yes ;;
13504esac
13505 OBJDUMP=$ac_ct_OBJDUMP
13506 fi
13507else
13508 OBJDUMP="$ac_cv_prog_OBJDUMP"
13509fi
13510
13511 ;;
13512esac
13513
13514test -z "$AS" && AS=as
13515
13516
13517
13518
13519
13520test -z "$DLLTOOL" && DLLTOOL=dlltool
13521
13522
13523
13524
13525
13526test -z "$OBJDUMP" && OBJDUMP=objdump
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536 # Check whether --enable-shared was given.
13537if test "${enable_shared+set}" = set; then :
13538 enableval=$enable_shared; p=${PACKAGE-default}
13539 case $enableval in
13540 yes) enable_shared=yes ;;
13541 no) enable_shared=no ;;
13542 *)
13543 enable_shared=no
13544 # Look at the argument we got. We use all the common list separators.
13545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13546 for pkg in $enableval; do
13547 IFS="$lt_save_ifs"
13548 if test "X$pkg" = "X$p"; then
13549 enable_shared=yes
13550 fi
13551 done
13552 IFS="$lt_save_ifs"
13553 ;;
13554 esac
13555else
13556 enable_shared=yes
13557fi
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567 # Check whether --enable-static was given.
13568if test "${enable_static+set}" = set; then :
13569 enableval=$enable_static; p=${PACKAGE-default}
13570 case $enableval in
13571 yes) enable_static=yes ;;
13572 no) enable_static=no ;;
13573 *)
13574 enable_static=no
13575 # Look at the argument we got. We use all the common list separators.
13576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13577 for pkg in $enableval; do
13578 IFS="$lt_save_ifs"
13579 if test "X$pkg" = "X$p"; then
13580 enable_static=yes
13581 fi
13582 done
13583 IFS="$lt_save_ifs"
13584 ;;
13585 esac
13586else
13587 enable_static=yes
13588fi
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599# Check whether --with-pic was given.
13600if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013601 withval=$with_pic; lt_p=${PACKAGE-default}
13602 case $withval in
13603 yes|no) pic_mode=$withval ;;
13604 *)
13605 pic_mode=default
13606 # Look at the argument we got. We use all the common list separators.
13607 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13608 for lt_pkg in $withval; do
13609 IFS="$lt_save_ifs"
13610 if test "X$lt_pkg" = "X$lt_p"; then
13611 pic_mode=yes
13612 fi
13613 done
13614 IFS="$lt_save_ifs"
13615 ;;
13616 esac
cristy73bd4a52010-10-05 11:24:23 +000013617else
13618 pic_mode=default
13619fi
13620
13621
13622test -z "$pic_mode" && pic_mode=default
13623
13624
13625
13626
13627
13628
13629
13630 # Check whether --enable-fast-install was given.
13631if test "${enable_fast_install+set}" = set; then :
13632 enableval=$enable_fast_install; p=${PACKAGE-default}
13633 case $enableval in
13634 yes) enable_fast_install=yes ;;
13635 no) enable_fast_install=no ;;
13636 *)
13637 enable_fast_install=no
13638 # Look at the argument we got. We use all the common list separators.
13639 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13640 for pkg in $enableval; do
13641 IFS="$lt_save_ifs"
13642 if test "X$pkg" = "X$p"; then
13643 enable_fast_install=yes
13644 fi
13645 done
13646 IFS="$lt_save_ifs"
13647 ;;
13648 esac
13649else
13650 enable_fast_install=yes
13651fi
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663# This can be used to rebuild libtool when needed
13664LIBTOOL_DEPS="$ltmain"
13665
13666# Always use our own libtool.
13667LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
cristy0c60a692010-11-04 01:09:47 +000013693
cristy99bd5232011-12-07 14:38:20 +000013694
13695
13696
13697
cristy73bd4a52010-10-05 11:24:23 +000013698test -z "$LN_S" && LN_S="ln -s"
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713if test -n "${ZSH_VERSION+set}" ; then
13714 setopt NO_GLOB_SUBST
13715fi
13716
13717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13718$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013719if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013720 $as_echo_n "(cached) " >&6
13721else
13722 rm -f .libs 2>/dev/null
13723mkdir .libs 2>/dev/null
13724if test -d .libs; then
13725 lt_cv_objdir=.libs
13726else
13727 # MS-DOS does not allow filenames that begin with a dot.
13728 lt_cv_objdir=_libs
13729fi
13730rmdir .libs 2>/dev/null
13731fi
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13733$as_echo "$lt_cv_objdir" >&6; }
13734objdir=$lt_cv_objdir
13735
13736
13737
13738
13739
13740cat >>confdefs.h <<_ACEOF
13741#define LT_OBJDIR "$lt_cv_objdir/"
13742_ACEOF
13743
13744
13745
13746
cristy73bd4a52010-10-05 11:24:23 +000013747case $host_os in
13748aix3*)
13749 # AIX sometimes has problems with the GCC collect2 program. For some
13750 # reason, if we set the COLLECT_NAMES environment variable, the problems
13751 # vanish in a puff of smoke.
13752 if test "X${COLLECT_NAMES+set}" != Xset; then
13753 COLLECT_NAMES=
13754 export COLLECT_NAMES
13755 fi
13756 ;;
13757esac
13758
cristy73bd4a52010-10-05 11:24:23 +000013759# Global variables:
13760ofile=libtool
13761can_build_shared=yes
13762
13763# All known linkers require a `.a' archive for static linking (except MSVC,
13764# which needs '.lib').
13765libext=a
13766
13767with_gnu_ld="$lt_cv_prog_gnu_ld"
13768
13769old_CC="$CC"
13770old_CFLAGS="$CFLAGS"
13771
13772# Set sane defaults for various variables
13773test -z "$CC" && CC=cc
13774test -z "$LTCC" && LTCC=$CC
13775test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13776test -z "$LD" && LD=ld
13777test -z "$ac_objext" && ac_objext=o
13778
13779for cc_temp in $compiler""; do
13780 case $cc_temp in
13781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13783 \-*) ;;
13784 *) break;;
13785 esac
13786done
cristy0c60a692010-11-04 01:09:47 +000013787cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013788
13789
13790# Only perform the check for file, if the check method requires it
13791test -z "$MAGIC_CMD" && MAGIC_CMD=file
13792case $deplibs_check_method in
13793file_magic*)
13794 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13796$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013797if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013798 $as_echo_n "(cached) " >&6
13799else
13800 case $MAGIC_CMD in
13801[\\/*] | ?:[\\/]*)
13802 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13803 ;;
13804*)
13805 lt_save_MAGIC_CMD="$MAGIC_CMD"
13806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13807 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13808 for ac_dir in $ac_dummy; do
13809 IFS="$lt_save_ifs"
13810 test -z "$ac_dir" && ac_dir=.
13811 if test -f $ac_dir/${ac_tool_prefix}file; then
13812 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13813 if test -n "$file_magic_test_file"; then
13814 case $deplibs_check_method in
13815 "file_magic "*)
13816 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13819 $EGREP "$file_magic_regex" > /dev/null; then
13820 :
13821 else
13822 cat <<_LT_EOF 1>&2
13823
13824*** Warning: the command libtool uses to detect shared libraries,
13825*** $file_magic_cmd, produces output that libtool cannot recognize.
13826*** The result is that libtool may fail to recognize shared libraries
13827*** as such. This will affect the creation of libtool libraries that
13828*** depend on shared libraries, but programs linked with such libtool
13829*** libraries will work regardless of this problem. Nevertheless, you
13830*** may want to report the problem to your system manager and/or to
13831*** bug-libtool@gnu.org
13832
13833_LT_EOF
13834 fi ;;
13835 esac
13836 fi
13837 break
13838 fi
13839 done
13840 IFS="$lt_save_ifs"
13841 MAGIC_CMD="$lt_save_MAGIC_CMD"
13842 ;;
13843esac
13844fi
13845
13846MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13847if test -n "$MAGIC_CMD"; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13849$as_echo "$MAGIC_CMD" >&6; }
13850else
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852$as_echo "no" >&6; }
13853fi
13854
13855
13856
13857
13858
13859if test -z "$lt_cv_path_MAGIC_CMD"; then
13860 if test -n "$ac_tool_prefix"; then
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13862$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013863if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013864 $as_echo_n "(cached) " >&6
13865else
13866 case $MAGIC_CMD in
13867[\\/*] | ?:[\\/]*)
13868 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13869 ;;
13870*)
13871 lt_save_MAGIC_CMD="$MAGIC_CMD"
13872 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13873 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13874 for ac_dir in $ac_dummy; do
13875 IFS="$lt_save_ifs"
13876 test -z "$ac_dir" && ac_dir=.
13877 if test -f $ac_dir/file; then
13878 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13879 if test -n "$file_magic_test_file"; then
13880 case $deplibs_check_method in
13881 "file_magic "*)
13882 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13884 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13885 $EGREP "$file_magic_regex" > /dev/null; then
13886 :
13887 else
13888 cat <<_LT_EOF 1>&2
13889
13890*** Warning: the command libtool uses to detect shared libraries,
13891*** $file_magic_cmd, produces output that libtool cannot recognize.
13892*** The result is that libtool may fail to recognize shared libraries
13893*** as such. This will affect the creation of libtool libraries that
13894*** depend on shared libraries, but programs linked with such libtool
13895*** libraries will work regardless of this problem. Nevertheless, you
13896*** may want to report the problem to your system manager and/or to
13897*** bug-libtool@gnu.org
13898
13899_LT_EOF
13900 fi ;;
13901 esac
13902 fi
13903 break
13904 fi
13905 done
13906 IFS="$lt_save_ifs"
13907 MAGIC_CMD="$lt_save_MAGIC_CMD"
13908 ;;
13909esac
13910fi
13911
13912MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13913if test -n "$MAGIC_CMD"; then
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13915$as_echo "$MAGIC_CMD" >&6; }
13916else
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13918$as_echo "no" >&6; }
13919fi
13920
13921
13922 else
13923 MAGIC_CMD=:
13924 fi
13925fi
13926
13927 fi
13928 ;;
13929esac
13930
13931# Use C for the default configuration in the libtool script
13932
13933lt_save_CC="$CC"
13934ac_ext=c
13935ac_cpp='$CPP $CPPFLAGS'
13936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13938ac_compiler_gnu=$ac_cv_c_compiler_gnu
13939
13940
13941# Source file extension for C test sources.
13942ac_ext=c
13943
13944# Object file extension for compiled C test sources.
13945objext=o
13946objext=$objext
13947
13948# Code to be used in simple compile tests
13949lt_simple_compile_test_code="int some_variable = 0;"
13950
13951# Code to be used in simple link tests
13952lt_simple_link_test_code='int main(){return(0);}'
13953
13954
13955
13956
13957
13958
13959
13960# If no C compiler was specified, use CC.
13961LTCC=${LTCC-"$CC"}
13962
13963# If no C compiler flags were specified, use CFLAGS.
13964LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13965
13966# Allow CC to be a program name with arguments.
13967compiler=$CC
13968
13969# Save the default compiler, since it gets overwritten when the other
13970# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13971compiler_DEFAULT=$CC
13972
13973# save warnings/boilerplate of simple test code
13974ac_outfile=conftest.$ac_objext
13975echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13976eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13977_lt_compiler_boilerplate=`cat conftest.err`
13978$RM conftest*
13979
13980ac_outfile=conftest.$ac_objext
13981echo "$lt_simple_link_test_code" >conftest.$ac_ext
13982eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13983_lt_linker_boilerplate=`cat conftest.err`
13984$RM -r conftest*
13985
13986
13987## CAVEAT EMPTOR:
13988## There is no encapsulation within the following macros, do not change
13989## the running order or otherwise move them around unless you know exactly
13990## what you are doing...
13991if test -n "$compiler"; then
13992
13993lt_prog_compiler_no_builtin_flag=
13994
13995if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013996 case $cc_basename in
13997 nvcc*)
13998 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13999 *)
14000 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14001 esac
cristy73bd4a52010-10-05 11:24:23 +000014002
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14004$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014005if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014006 $as_echo_n "(cached) " >&6
14007else
14008 lt_cv_prog_compiler_rtti_exceptions=no
14009 ac_outfile=conftest.$ac_objext
14010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14011 lt_compiler_flag="-fno-rtti -fno-exceptions"
14012 # Insert the option either (1) after the last *FLAGS variable, or
14013 # (2) before a word containing "conftest.", or (3) at the end.
14014 # Note that $ac_compile itself does not contain backslashes and begins
14015 # with a dollar sign (not a hyphen), so the echo should work correctly.
14016 # The option is referenced via a variable to avoid confusing sed.
14017 lt_compile=`echo "$ac_compile" | $SED \
14018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14020 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014021 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014022 (eval "$lt_compile" 2>conftest.err)
14023 ac_status=$?
14024 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014026 if (exit $ac_status) && test -s "$ac_outfile"; then
14027 # The compiler can only warn and ignore the option if not recognized
14028 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14031 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14032 lt_cv_prog_compiler_rtti_exceptions=yes
14033 fi
14034 fi
14035 $RM conftest*
14036
14037fi
14038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14039$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14040
14041if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14042 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14043else
14044 :
14045fi
14046
14047fi
14048
14049
14050
14051
14052
14053
14054 lt_prog_compiler_wl=
14055lt_prog_compiler_pic=
14056lt_prog_compiler_static=
14057
cristy73bd4a52010-10-05 11:24:23 +000014058
14059 if test "$GCC" = yes; then
14060 lt_prog_compiler_wl='-Wl,'
14061 lt_prog_compiler_static='-static'
14062
14063 case $host_os in
14064 aix*)
14065 # All AIX code is PIC.
14066 if test "$host_cpu" = ia64; then
14067 # AIX 5 now supports IA64 processor
14068 lt_prog_compiler_static='-Bstatic'
14069 fi
14070 ;;
14071
14072 amigaos*)
14073 case $host_cpu in
14074 powerpc)
14075 # see comment about AmigaOS4 .so support
14076 lt_prog_compiler_pic='-fPIC'
14077 ;;
14078 m68k)
14079 # FIXME: we need at least 68020 code to build shared libraries, but
14080 # adding the `-m68020' flag to GCC prevents building anything better,
14081 # like `-m68040'.
14082 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14083 ;;
14084 esac
14085 ;;
14086
14087 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14088 # PIC is the default for these OSes.
14089 ;;
14090
14091 mingw* | cygwin* | pw32* | os2* | cegcc*)
14092 # This hack is so that the source file can tell whether it is being
14093 # built for inclusion in a dll (and should export symbols for example).
14094 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14095 # (--disable-auto-import) libraries
14096 lt_prog_compiler_pic='-DDLL_EXPORT'
14097 ;;
14098
14099 darwin* | rhapsody*)
14100 # PIC is the default on this platform
14101 # Common symbols not allowed in MH_DYLIB files
14102 lt_prog_compiler_pic='-fno-common'
14103 ;;
14104
cristy0c60a692010-11-04 01:09:47 +000014105 haiku*)
14106 # PIC is the default for Haiku.
14107 # The "-static" flag exists, but is broken.
14108 lt_prog_compiler_static=
14109 ;;
14110
cristy73bd4a52010-10-05 11:24:23 +000014111 hpux*)
14112 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14113 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14114 # sets the default TLS model and affects inlining.
14115 case $host_cpu in
14116 hppa*64*)
14117 # +Z the default
14118 ;;
14119 *)
14120 lt_prog_compiler_pic='-fPIC'
14121 ;;
14122 esac
14123 ;;
14124
14125 interix[3-9]*)
14126 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14127 # Instead, we relocate shared libraries at runtime.
14128 ;;
14129
14130 msdosdjgpp*)
14131 # Just because we use GCC doesn't mean we suddenly get shared libraries
14132 # on systems that don't support them.
14133 lt_prog_compiler_can_build_shared=no
14134 enable_shared=no
14135 ;;
14136
14137 *nto* | *qnx*)
14138 # QNX uses GNU C++, but need to define -shared option too, otherwise
14139 # it will coredump.
14140 lt_prog_compiler_pic='-fPIC -shared'
14141 ;;
14142
14143 sysv4*MP*)
14144 if test -d /usr/nec; then
14145 lt_prog_compiler_pic=-Kconform_pic
14146 fi
14147 ;;
14148
14149 *)
14150 lt_prog_compiler_pic='-fPIC'
14151 ;;
14152 esac
cristy0c60a692010-11-04 01:09:47 +000014153
14154 case $cc_basename in
14155 nvcc*) # Cuda Compiler Driver 2.2
14156 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014157 if test -n "$lt_prog_compiler_pic"; then
14158 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14159 fi
cristy0c60a692010-11-04 01:09:47 +000014160 ;;
14161 esac
cristy73bd4a52010-10-05 11:24:23 +000014162 else
14163 # PORTME Check for flag to pass linker flags through the system compiler.
14164 case $host_os in
14165 aix*)
14166 lt_prog_compiler_wl='-Wl,'
14167 if test "$host_cpu" = ia64; then
14168 # AIX 5 now supports IA64 processor
14169 lt_prog_compiler_static='-Bstatic'
14170 else
14171 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14172 fi
14173 ;;
14174
14175 mingw* | cygwin* | pw32* | os2* | cegcc*)
14176 # This hack is so that the source file can tell whether it is being
14177 # built for inclusion in a dll (and should export symbols for example).
14178 lt_prog_compiler_pic='-DDLL_EXPORT'
14179 ;;
14180
14181 hpux9* | hpux10* | hpux11*)
14182 lt_prog_compiler_wl='-Wl,'
14183 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14184 # not for PA HP-UX.
14185 case $host_cpu in
14186 hppa*64*|ia64*)
14187 # +Z the default
14188 ;;
14189 *)
14190 lt_prog_compiler_pic='+Z'
14191 ;;
14192 esac
14193 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14194 lt_prog_compiler_static='${wl}-a ${wl}archive'
14195 ;;
14196
14197 irix5* | irix6* | nonstopux*)
14198 lt_prog_compiler_wl='-Wl,'
14199 # PIC (with -KPIC) is the default.
14200 lt_prog_compiler_static='-non_shared'
14201 ;;
14202
cristy0c60a692010-11-04 01:09:47 +000014203 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014204 case $cc_basename in
14205 # old Intel for x86_64 which still supported -KPIC.
14206 ecc*)
14207 lt_prog_compiler_wl='-Wl,'
14208 lt_prog_compiler_pic='-KPIC'
14209 lt_prog_compiler_static='-static'
14210 ;;
14211 # icc used to be incompatible with GCC.
14212 # ICC 10 doesn't accept -KPIC any more.
14213 icc* | ifort*)
14214 lt_prog_compiler_wl='-Wl,'
14215 lt_prog_compiler_pic='-fPIC'
14216 lt_prog_compiler_static='-static'
14217 ;;
14218 # Lahey Fortran 8.1.
14219 lf95*)
14220 lt_prog_compiler_wl='-Wl,'
14221 lt_prog_compiler_pic='--shared'
14222 lt_prog_compiler_static='--static'
14223 ;;
cristyda16f162011-02-19 23:52:17 +000014224 nagfor*)
14225 # NAG Fortran compiler
14226 lt_prog_compiler_wl='-Wl,-Wl,,'
14227 lt_prog_compiler_pic='-PIC'
14228 lt_prog_compiler_static='-Bstatic'
14229 ;;
cristy0c60a692010-11-04 01:09:47 +000014230 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014231 # Portland Group compilers (*not* the Pentium gcc compiler,
14232 # which looks to be a dead project)
14233 lt_prog_compiler_wl='-Wl,'
14234 lt_prog_compiler_pic='-fpic'
14235 lt_prog_compiler_static='-Bstatic'
14236 ;;
14237 ccc*)
14238 lt_prog_compiler_wl='-Wl,'
14239 # All Alpha code is PIC.
14240 lt_prog_compiler_static='-non_shared'
14241 ;;
cristy0c60a692010-11-04 01:09:47 +000014242 xl* | bgxl* | bgf* | mpixl*)
14243 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014244 lt_prog_compiler_wl='-Wl,'
14245 lt_prog_compiler_pic='-qpic'
14246 lt_prog_compiler_static='-qstaticlink'
14247 ;;
14248 *)
14249 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014250 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014251 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14252 lt_prog_compiler_pic='-KPIC'
14253 lt_prog_compiler_static='-Bstatic'
14254 lt_prog_compiler_wl=''
14255 ;;
cristy99bd5232011-12-07 14:38:20 +000014256 *Sun\ F* | *Sun*Fortran*)
14257 lt_prog_compiler_pic='-KPIC'
14258 lt_prog_compiler_static='-Bstatic'
14259 lt_prog_compiler_wl='-Qoption ld '
14260 ;;
cristy73bd4a52010-10-05 11:24:23 +000014261 *Sun\ C*)
14262 # Sun C 5.9
14263 lt_prog_compiler_pic='-KPIC'
14264 lt_prog_compiler_static='-Bstatic'
14265 lt_prog_compiler_wl='-Wl,'
14266 ;;
cristy99bd5232011-12-07 14:38:20 +000014267 *Intel*\ [CF]*Compiler*)
14268 lt_prog_compiler_wl='-Wl,'
14269 lt_prog_compiler_pic='-fPIC'
14270 lt_prog_compiler_static='-static'
14271 ;;
14272 *Portland\ Group*)
14273 lt_prog_compiler_wl='-Wl,'
14274 lt_prog_compiler_pic='-fpic'
14275 lt_prog_compiler_static='-Bstatic'
14276 ;;
cristy73bd4a52010-10-05 11:24:23 +000014277 esac
14278 ;;
14279 esac
14280 ;;
14281
14282 newsos6)
14283 lt_prog_compiler_pic='-KPIC'
14284 lt_prog_compiler_static='-Bstatic'
14285 ;;
14286
14287 *nto* | *qnx*)
14288 # QNX uses GNU C++, but need to define -shared option too, otherwise
14289 # it will coredump.
14290 lt_prog_compiler_pic='-fPIC -shared'
14291 ;;
14292
14293 osf3* | osf4* | osf5*)
14294 lt_prog_compiler_wl='-Wl,'
14295 # All OSF/1 code is PIC.
14296 lt_prog_compiler_static='-non_shared'
14297 ;;
14298
14299 rdos*)
14300 lt_prog_compiler_static='-non_shared'
14301 ;;
14302
14303 solaris*)
14304 lt_prog_compiler_pic='-KPIC'
14305 lt_prog_compiler_static='-Bstatic'
14306 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014307 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014308 lt_prog_compiler_wl='-Qoption ld ';;
14309 *)
14310 lt_prog_compiler_wl='-Wl,';;
14311 esac
14312 ;;
14313
14314 sunos4*)
14315 lt_prog_compiler_wl='-Qoption ld '
14316 lt_prog_compiler_pic='-PIC'
14317 lt_prog_compiler_static='-Bstatic'
14318 ;;
14319
14320 sysv4 | sysv4.2uw2* | sysv4.3*)
14321 lt_prog_compiler_wl='-Wl,'
14322 lt_prog_compiler_pic='-KPIC'
14323 lt_prog_compiler_static='-Bstatic'
14324 ;;
14325
14326 sysv4*MP*)
14327 if test -d /usr/nec ;then
14328 lt_prog_compiler_pic='-Kconform_pic'
14329 lt_prog_compiler_static='-Bstatic'
14330 fi
14331 ;;
14332
14333 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14334 lt_prog_compiler_wl='-Wl,'
14335 lt_prog_compiler_pic='-KPIC'
14336 lt_prog_compiler_static='-Bstatic'
14337 ;;
14338
14339 unicos*)
14340 lt_prog_compiler_wl='-Wl,'
14341 lt_prog_compiler_can_build_shared=no
14342 ;;
14343
14344 uts4*)
14345 lt_prog_compiler_pic='-pic'
14346 lt_prog_compiler_static='-Bstatic'
14347 ;;
14348
14349 *)
14350 lt_prog_compiler_can_build_shared=no
14351 ;;
14352 esac
14353 fi
14354
14355case $host_os in
14356 # For platforms which do not support PIC, -DPIC is meaningless:
14357 *djgpp*)
14358 lt_prog_compiler_pic=
14359 ;;
14360 *)
14361 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14362 ;;
14363esac
cristy73bd4a52010-10-05 11:24:23 +000014364
cristyda16f162011-02-19 23:52:17 +000014365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14366$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14367if ${lt_cv_prog_compiler_pic+:} false; then :
14368 $as_echo_n "(cached) " >&6
14369else
14370 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14371fi
14372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14373$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14374lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014375
14376#
14377# Check to make sure the PIC flag actually works.
14378#
14379if test -n "$lt_prog_compiler_pic"; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14381$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014382if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014383 $as_echo_n "(cached) " >&6
14384else
14385 lt_cv_prog_compiler_pic_works=no
14386 ac_outfile=conftest.$ac_objext
14387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14388 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14389 # Insert the option either (1) after the last *FLAGS variable, or
14390 # (2) before a word containing "conftest.", or (3) at the end.
14391 # Note that $ac_compile itself does not contain backslashes and begins
14392 # with a dollar sign (not a hyphen), so the echo should work correctly.
14393 # The option is referenced via a variable to avoid confusing sed.
14394 lt_compile=`echo "$ac_compile" | $SED \
14395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14397 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014399 (eval "$lt_compile" 2>conftest.err)
14400 ac_status=$?
14401 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014403 if (exit $ac_status) && test -s "$ac_outfile"; then
14404 # The compiler can only warn and ignore the option if not recognized
14405 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14409 lt_cv_prog_compiler_pic_works=yes
14410 fi
14411 fi
14412 $RM conftest*
14413
14414fi
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14416$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14417
14418if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14419 case $lt_prog_compiler_pic in
14420 "" | " "*) ;;
14421 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14422 esac
14423else
14424 lt_prog_compiler_pic=
14425 lt_prog_compiler_can_build_shared=no
14426fi
14427
14428fi
14429
14430
14431
14432
14433
14434
cristyda16f162011-02-19 23:52:17 +000014435
14436
14437
14438
14439
cristy73bd4a52010-10-05 11:24:23 +000014440#
14441# Check to make sure the static flag actually works.
14442#
14443wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14445$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014446if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014447 $as_echo_n "(cached) " >&6
14448else
14449 lt_cv_prog_compiler_static_works=no
14450 save_LDFLAGS="$LDFLAGS"
14451 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14452 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14453 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14454 # The linker can only warn and ignore the option if not recognized
14455 # So say no if there are warnings
14456 if test -s conftest.err; then
14457 # Append any errors to the config.log.
14458 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014459 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14461 if diff conftest.exp conftest.er2 >/dev/null; then
14462 lt_cv_prog_compiler_static_works=yes
14463 fi
14464 else
14465 lt_cv_prog_compiler_static_works=yes
14466 fi
14467 fi
14468 $RM -r conftest*
14469 LDFLAGS="$save_LDFLAGS"
14470
14471fi
14472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14473$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14474
14475if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14476 :
14477else
14478 lt_prog_compiler_static=
14479fi
14480
14481
14482
14483
14484
14485
14486
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14488$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014489if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014490 $as_echo_n "(cached) " >&6
14491else
14492 lt_cv_prog_compiler_c_o=no
14493 $RM -r conftest 2>/dev/null
14494 mkdir conftest
14495 cd conftest
14496 mkdir out
14497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14498
14499 lt_compiler_flag="-o out/conftest2.$ac_objext"
14500 # Insert the option either (1) after the last *FLAGS variable, or
14501 # (2) before a word containing "conftest.", or (3) at the end.
14502 # Note that $ac_compile itself does not contain backslashes and begins
14503 # with a dollar sign (not a hyphen), so the echo should work correctly.
14504 lt_compile=`echo "$ac_compile" | $SED \
14505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14507 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014508 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014509 (eval "$lt_compile" 2>out/conftest.err)
14510 ac_status=$?
14511 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14514 then
14515 # The compiler can only warn and ignore the option if not recognized
14516 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014517 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14520 lt_cv_prog_compiler_c_o=yes
14521 fi
14522 fi
14523 chmod u+w . 2>&5
14524 $RM conftest*
14525 # SGI C++ compiler will create directory out/ii_files/ for
14526 # template instantiation
14527 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14528 $RM out/* && rmdir out
14529 cd ..
14530 $RM -r conftest
14531 $RM conftest*
14532
14533fi
14534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14535$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14536
14537
14538
14539
14540
14541
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14543$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014544if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014545 $as_echo_n "(cached) " >&6
14546else
14547 lt_cv_prog_compiler_c_o=no
14548 $RM -r conftest 2>/dev/null
14549 mkdir conftest
14550 cd conftest
14551 mkdir out
14552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14553
14554 lt_compiler_flag="-o out/conftest2.$ac_objext"
14555 # Insert the option either (1) after the last *FLAGS variable, or
14556 # (2) before a word containing "conftest.", or (3) at the end.
14557 # Note that $ac_compile itself does not contain backslashes and begins
14558 # with a dollar sign (not a hyphen), so the echo should work correctly.
14559 lt_compile=`echo "$ac_compile" | $SED \
14560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14562 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014564 (eval "$lt_compile" 2>out/conftest.err)
14565 ac_status=$?
14566 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14569 then
14570 # The compiler can only warn and ignore the option if not recognized
14571 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14575 lt_cv_prog_compiler_c_o=yes
14576 fi
14577 fi
14578 chmod u+w . 2>&5
14579 $RM conftest*
14580 # SGI C++ compiler will create directory out/ii_files/ for
14581 # template instantiation
14582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14583 $RM out/* && rmdir out
14584 cd ..
14585 $RM -r conftest
14586 $RM conftest*
14587
14588fi
14589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14590$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14591
14592
14593
14594
14595hard_links="nottested"
14596if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14597 # do not overwrite the value of need_locks provided by the user
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14599$as_echo_n "checking if we can lock with hard links... " >&6; }
14600 hard_links=yes
14601 $RM conftest*
14602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14603 touch conftest.a
14604 ln conftest.a conftest.b 2>&5 || hard_links=no
14605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14607$as_echo "$hard_links" >&6; }
14608 if test "$hard_links" = no; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14610$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14611 need_locks=warn
14612 fi
14613else
14614 need_locks=no
14615fi
14616
14617
14618
14619
14620
14621
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14623$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14624
14625 runpath_var=
14626 allow_undefined_flag=
14627 always_export_symbols=no
14628 archive_cmds=
14629 archive_expsym_cmds=
14630 compiler_needs_object=no
14631 enable_shared_with_static_runtimes=no
14632 export_dynamic_flag_spec=
14633 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14634 hardcode_automatic=no
14635 hardcode_direct=no
14636 hardcode_direct_absolute=no
14637 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014638 hardcode_libdir_separator=
14639 hardcode_minus_L=no
14640 hardcode_shlibpath_var=unsupported
14641 inherit_rpath=no
14642 link_all_deplibs=unknown
14643 module_cmds=
14644 module_expsym_cmds=
14645 old_archive_from_new_cmds=
14646 old_archive_from_expsyms_cmds=
14647 thread_safe_flag_spec=
14648 whole_archive_flag_spec=
14649 # include_expsyms should be a list of space-separated symbols to be *always*
14650 # included in the symbol list
14651 include_expsyms=
14652 # exclude_expsyms can be an extended regexp of symbols to exclude
14653 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14654 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14655 # as well as any symbol that contains `d'.
14656 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14657 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14658 # platforms (ab)use it in PIC code, but their linkers get confused if
14659 # the symbol is explicitly referenced. Since portable code cannot
14660 # rely on this symbol name, it's probably fine to never include it in
14661 # preloaded symbol tables.
14662 # Exclude shared library initialization/finalization symbols.
14663 extract_expsyms_cmds=
14664
14665 case $host_os in
14666 cygwin* | mingw* | pw32* | cegcc*)
14667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14668 # When not using gcc, we currently assume that we are using
14669 # Microsoft Visual C++.
14670 if test "$GCC" != yes; then
14671 with_gnu_ld=no
14672 fi
14673 ;;
14674 interix*)
14675 # we just hope/assume this is gcc and not c89 (= MSVC++)
14676 with_gnu_ld=yes
14677 ;;
14678 openbsd*)
14679 with_gnu_ld=no
14680 ;;
14681 esac
14682
14683 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014684
14685 # On some targets, GNU ld is compatible enough with the native linker
14686 # that we're better off using the native interface for both.
14687 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014688 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014689 case $host_os in
14690 aix*)
14691 # The AIX port of GNU ld has always aspired to compatibility
14692 # with the native linker. However, as the warning in the GNU ld
14693 # block says, versions before 2.19.5* couldn't really create working
14694 # shared libraries, regardless of the interface used.
14695 case `$LD -v 2>&1` in
14696 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14697 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14698 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14699 *)
14700 lt_use_gnu_ld_interface=yes
14701 ;;
14702 esac
14703 ;;
14704 *)
14705 lt_use_gnu_ld_interface=yes
14706 ;;
14707 esac
14708 fi
14709
14710 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014711 # If archive_cmds runs LD, not CC, wlarc should be empty
14712 wlarc='${wl}'
14713
14714 # Set some defaults for GNU ld with shared library support. These
14715 # are reset later if shared libraries are not supported. Putting them
14716 # here allows them to be overridden if necessary.
14717 runpath_var=LD_RUN_PATH
14718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14719 export_dynamic_flag_spec='${wl}--export-dynamic'
14720 # ancient GNU ld didn't support --whole-archive et. al.
14721 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14722 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14723 else
14724 whole_archive_flag_spec=
14725 fi
14726 supports_anon_versioning=no
14727 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014728 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014729 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14730 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14731 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14732 *\ 2.11.*) ;; # other 2.11 versions
14733 *) supports_anon_versioning=yes ;;
14734 esac
14735
14736 # See if GNU ld supports shared libraries.
14737 case $host_os in
14738 aix[3-9]*)
14739 # On AIX/PPC, the GNU linker is very broken
14740 if test "$host_cpu" != ia64; then
14741 ld_shlibs=no
14742 cat <<_LT_EOF 1>&2
14743
cristy0c60a692010-11-04 01:09:47 +000014744*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014745*** to be unable to reliably create shared libraries on AIX.
14746*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014747*** really care for shared libraries, you may want to install binutils
14748*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14749*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014750
14751_LT_EOF
14752 fi
14753 ;;
14754
14755 amigaos*)
14756 case $host_cpu in
14757 powerpc)
14758 # see comment about AmigaOS4 .so support
14759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14760 archive_expsym_cmds=''
14761 ;;
14762 m68k)
14763 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)'
14764 hardcode_libdir_flag_spec='-L$libdir'
14765 hardcode_minus_L=yes
14766 ;;
14767 esac
14768 ;;
14769
14770 beos*)
14771 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14772 allow_undefined_flag=unsupported
14773 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14774 # support --undefined. This deserves some investigation. FIXME
14775 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14776 else
14777 ld_shlibs=no
14778 fi
14779 ;;
14780
14781 cygwin* | mingw* | pw32* | cegcc*)
14782 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14783 # as there is no search path for DLLs.
14784 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014785 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014786 allow_undefined_flag=unsupported
14787 always_export_symbols=no
14788 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014789 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'
14790 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 +000014791
14792 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14794 # If the export-symbols file already is a .def file (1st line
14795 # is EXPORTS), use it as is; otherwise, prepend...
14796 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14797 cp $export_symbols $output_objdir/$soname.def;
14798 else
14799 echo EXPORTS > $output_objdir/$soname.def;
14800 cat $export_symbols >> $output_objdir/$soname.def;
14801 fi~
14802 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14803 else
14804 ld_shlibs=no
14805 fi
14806 ;;
14807
cristy0c60a692010-11-04 01:09:47 +000014808 haiku*)
14809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14810 link_all_deplibs=yes
14811 ;;
14812
cristy73bd4a52010-10-05 11:24:23 +000014813 interix[3-9]*)
14814 hardcode_direct=no
14815 hardcode_shlibpath_var=no
14816 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14817 export_dynamic_flag_spec='${wl}-E'
14818 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14819 # Instead, shared libraries are loaded at an image base (0x10000000 by
14820 # default) and relocated if they conflict, which is a slow very memory
14821 # consuming and fragmenting process. To avoid this, we pick a random,
14822 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14823 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14824 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14825 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'
14826 ;;
14827
cristy0c60a692010-11-04 01:09:47 +000014828 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014829 tmp_diet=no
14830 if test "$host_os" = linux-dietlibc; then
14831 case $cc_basename in
14832 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14833 esac
14834 fi
14835 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14836 && test "$tmp_diet" = no
14837 then
cristyda16f162011-02-19 23:52:17 +000014838 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014839 tmp_sharedflag='-shared'
14840 case $cc_basename,$host_cpu in
14841 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014842 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 +000014843 tmp_addflag=' $pic_flag'
14844 ;;
cristy0c60a692010-11-04 01:09:47 +000014845 pgf77* | pgf90* | pgf95* | pgfortran*)
14846 # Portland Group f77 and f90 compilers
14847 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 +000014848 tmp_addflag=' $pic_flag -Mnomain' ;;
14849 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14850 tmp_addflag=' -i_dynamic' ;;
14851 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14852 tmp_addflag=' -i_dynamic -nofor_main' ;;
14853 ifc* | ifort*) # Intel Fortran compiler
14854 tmp_addflag=' -nofor_main' ;;
14855 lf95*) # Lahey Fortran 8.1
14856 whole_archive_flag_spec=
14857 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014858 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014859 tmp_sharedflag='-qmkshrobj'
14860 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014861 nvcc*) # Cuda Compiler Driver 2.2
14862 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'
14863 compiler_needs_object=yes
14864 ;;
cristy73bd4a52010-10-05 11:24:23 +000014865 esac
14866 case `$CC -V 2>&1 | sed 5q` in
14867 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014868 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 +000014869 compiler_needs_object=yes
14870 tmp_sharedflag='-G' ;;
14871 *Sun\ F*) # Sun Fortran 8.3
14872 tmp_sharedflag='-G' ;;
14873 esac
14874 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14875
14876 if test "x$supports_anon_versioning" = xyes; then
14877 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14878 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14879 echo "local: *; };" >> $output_objdir/$libname.ver~
14880 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14881 fi
14882
14883 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014884 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014885 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14886 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014888 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014889 if test "x$supports_anon_versioning" = xyes; then
14890 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14892 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014893 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014894 fi
14895 ;;
14896 esac
14897 else
14898 ld_shlibs=no
14899 fi
14900 ;;
14901
14902 netbsd*)
14903 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14904 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14905 wlarc=
14906 else
cristyda16f162011-02-19 23:52:17 +000014907 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14908 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 +000014909 fi
14910 ;;
14911
14912 solaris*)
14913 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14914 ld_shlibs=no
14915 cat <<_LT_EOF 1>&2
14916
14917*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14918*** create shared libraries on Solaris systems. Therefore, libtool
14919*** is disabling shared libraries support. We urge you to upgrade GNU
14920*** binutils to release 2.9.1 or newer. Another option is to modify
14921*** your PATH or compiler configuration so that the native linker is
14922*** used, and then restart.
14923
14924_LT_EOF
14925 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014926 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14927 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 +000014928 else
14929 ld_shlibs=no
14930 fi
14931 ;;
14932
14933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14934 case `$LD -v 2>&1` in
14935 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14936 ld_shlibs=no
14937 cat <<_LT_EOF 1>&2
14938
14939*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14940*** reliably create shared libraries on SCO systems. Therefore, libtool
14941*** is disabling shared libraries support. We urge you to upgrade GNU
14942*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14943*** your PATH or compiler configuration so that the native linker is
14944*** used, and then restart.
14945
14946_LT_EOF
14947 ;;
14948 *)
14949 # For security reasons, it is highly recommended that you always
14950 # use absolute paths for naming shared libraries, and exclude the
14951 # DT_RUNPATH tag from executables and libraries. But doing so
14952 # requires that you compile everything twice, which is a pain.
14953 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14956 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14957 else
14958 ld_shlibs=no
14959 fi
14960 ;;
14961 esac
14962 ;;
14963
14964 sunos4*)
14965 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14966 wlarc=
14967 hardcode_direct=yes
14968 hardcode_shlibpath_var=no
14969 ;;
14970
14971 *)
14972 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014973 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14974 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 +000014975 else
14976 ld_shlibs=no
14977 fi
14978 ;;
14979 esac
14980
14981 if test "$ld_shlibs" = no; then
14982 runpath_var=
14983 hardcode_libdir_flag_spec=
14984 export_dynamic_flag_spec=
14985 whole_archive_flag_spec=
14986 fi
14987 else
14988 # PORTME fill in a description of your system's linker (not GNU ld)
14989 case $host_os in
14990 aix3*)
14991 allow_undefined_flag=unsupported
14992 always_export_symbols=yes
14993 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'
14994 # Note: this linker hardcodes the directories in LIBPATH if there
14995 # are no directories specified by -L.
14996 hardcode_minus_L=yes
14997 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14998 # Neither direct hardcoding nor static linking is supported with a
14999 # broken collect2.
15000 hardcode_direct=unsupported
15001 fi
15002 ;;
15003
15004 aix[4-9]*)
15005 if test "$host_cpu" = ia64; then
15006 # On IA64, the linker does run time linking by default, so we don't
15007 # have to do anything special.
15008 aix_use_runtimelinking=no
15009 exp_sym_flag='-Bexport'
15010 no_entry_flag=""
15011 else
15012 # If we're using GNU nm, then we don't want the "-C" option.
15013 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015014 # Also, AIX nm treats weak defined symbols like other global
15015 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015016 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015017 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 +000015018 else
15019 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'
15020 fi
15021 aix_use_runtimelinking=no
15022
15023 # Test if we are trying to use run time linking or normal
15024 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15025 # need to do runtime linking.
15026 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15027 for ld_flag in $LDFLAGS; do
15028 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15029 aix_use_runtimelinking=yes
15030 break
15031 fi
15032 done
15033 ;;
15034 esac
15035
15036 exp_sym_flag='-bexport'
15037 no_entry_flag='-bnoentry'
15038 fi
15039
15040 # When large executables or shared objects are built, AIX ld can
15041 # have problems creating the table of contents. If linking a library
15042 # or program results in "error TOC overflow" add -mminimal-toc to
15043 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15044 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15045
15046 archive_cmds=''
15047 hardcode_direct=yes
15048 hardcode_direct_absolute=yes
15049 hardcode_libdir_separator=':'
15050 link_all_deplibs=yes
15051 file_list_spec='${wl}-f,'
15052
15053 if test "$GCC" = yes; then
15054 case $host_os in aix4.[012]|aix4.[012].*)
15055 # We only want to do this on AIX 4.2 and lower, the check
15056 # below for broken collect2 doesn't work under 4.3+
15057 collect2name=`${CC} -print-prog-name=collect2`
15058 if test -f "$collect2name" &&
15059 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15060 then
15061 # We have reworked collect2
15062 :
15063 else
15064 # We have old collect2
15065 hardcode_direct=unsupported
15066 # It fails to find uninstalled libraries when the uninstalled
15067 # path is not listed in the libpath. Setting hardcode_minus_L
15068 # to unsupported forces relinking
15069 hardcode_minus_L=yes
15070 hardcode_libdir_flag_spec='-L$libdir'
15071 hardcode_libdir_separator=
15072 fi
15073 ;;
15074 esac
15075 shared_flag='-shared'
15076 if test "$aix_use_runtimelinking" = yes; then
15077 shared_flag="$shared_flag "'${wl}-G'
15078 fi
15079 else
15080 # not using gcc
15081 if test "$host_cpu" = ia64; then
15082 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15083 # chokes on -Wl,-G. The following line is correct:
15084 shared_flag='-G'
15085 else
15086 if test "$aix_use_runtimelinking" = yes; then
15087 shared_flag='${wl}-G'
15088 else
15089 shared_flag='${wl}-bM:SRE'
15090 fi
15091 fi
15092 fi
15093
15094 export_dynamic_flag_spec='${wl}-bexpall'
15095 # It seems that -bexpall does not export symbols beginning with
15096 # underscore (_), so it is better to generate a list of symbols to export.
15097 always_export_symbols=yes
15098 if test "$aix_use_runtimelinking" = yes; then
15099 # Warning - without using the other runtime loading flags (-brtl),
15100 # -berok will link without error, but may produce a broken library.
15101 allow_undefined_flag='-berok'
15102 # Determine the default libpath from the value encoded in an
15103 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015104 if test "${lt_cv_aix_libpath+set}" = set; then
15105 aix_libpath=$lt_cv_aix_libpath
15106else
15107 if ${lt_cv_aix_libpath_+:} false; then :
15108 $as_echo_n "(cached) " >&6
15109else
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015111/* end confdefs.h. */
15112
15113int
15114main ()
15115{
15116
15117 ;
15118 return 0;
15119}
15120_ACEOF
15121if ac_fn_c_try_link "$LINENO"; then :
15122
cristyda16f162011-02-19 23:52:17 +000015123 lt_aix_libpath_sed='
15124 /Import File Strings/,/^$/ {
15125 /^0/ {
15126 s/^0 *\([^ ]*\) *$/\1/
15127 p
15128 }
15129 }'
15130 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15131 # Check for a 64-bit object if we didn't find anything.
15132 if test -z "$lt_cv_aix_libpath_"; then
15133 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15134 fi
cristy73bd4a52010-10-05 11:24:23 +000015135fi
15136rm -f core conftest.err conftest.$ac_objext \
15137 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015138 if test -z "$lt_cv_aix_libpath_"; then
15139 lt_cv_aix_libpath_="/usr/lib:/lib"
15140 fi
15141
15142fi
15143
15144 aix_libpath=$lt_cv_aix_libpath_
15145fi
cristy73bd4a52010-10-05 11:24:23 +000015146
15147 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015148 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 +000015149 else
15150 if test "$host_cpu" = ia64; then
15151 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15152 allow_undefined_flag="-z nodefs"
15153 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"
15154 else
15155 # Determine the default libpath from the value encoded in an
15156 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015157 if test "${lt_cv_aix_libpath+set}" = set; then
15158 aix_libpath=$lt_cv_aix_libpath
15159else
15160 if ${lt_cv_aix_libpath_+:} false; then :
15161 $as_echo_n "(cached) " >&6
15162else
15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015164/* end confdefs.h. */
15165
15166int
15167main ()
15168{
15169
15170 ;
15171 return 0;
15172}
15173_ACEOF
15174if ac_fn_c_try_link "$LINENO"; then :
15175
cristyda16f162011-02-19 23:52:17 +000015176 lt_aix_libpath_sed='
15177 /Import File Strings/,/^$/ {
15178 /^0/ {
15179 s/^0 *\([^ ]*\) *$/\1/
15180 p
15181 }
15182 }'
15183 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15184 # Check for a 64-bit object if we didn't find anything.
15185 if test -z "$lt_cv_aix_libpath_"; then
15186 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15187 fi
cristy73bd4a52010-10-05 11:24:23 +000015188fi
15189rm -f core conftest.err conftest.$ac_objext \
15190 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015191 if test -z "$lt_cv_aix_libpath_"; then
15192 lt_cv_aix_libpath_="/usr/lib:/lib"
15193 fi
15194
15195fi
15196
15197 aix_libpath=$lt_cv_aix_libpath_
15198fi
cristy73bd4a52010-10-05 11:24:23 +000015199
15200 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15201 # Warning - without using the other run time loading flags,
15202 # -berok will link without error, but may produce a broken library.
15203 no_undefined_flag=' ${wl}-bernotok'
15204 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015205 if test "$with_gnu_ld" = yes; then
15206 # We only use this code for GNU lds that support --whole-archive.
15207 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15208 else
15209 # Exported symbols can be pulled into shared objects from archives
15210 whole_archive_flag_spec='$convenience'
15211 fi
cristy73bd4a52010-10-05 11:24:23 +000015212 archive_cmds_need_lc=yes
15213 # This is similar to how AIX traditionally builds its shared libraries.
15214 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'
15215 fi
15216 fi
15217 ;;
15218
15219 amigaos*)
15220 case $host_cpu in
15221 powerpc)
15222 # see comment about AmigaOS4 .so support
15223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15224 archive_expsym_cmds=''
15225 ;;
15226 m68k)
15227 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)'
15228 hardcode_libdir_flag_spec='-L$libdir'
15229 hardcode_minus_L=yes
15230 ;;
15231 esac
15232 ;;
15233
15234 bsdi[45]*)
15235 export_dynamic_flag_spec=-rdynamic
15236 ;;
15237
15238 cygwin* | mingw* | pw32* | cegcc*)
15239 # When not using gcc, we currently assume that we are using
15240 # Microsoft Visual C++.
15241 # hardcode_libdir_flag_spec is actually meaningless, as there is
15242 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015243 case $cc_basename in
15244 cl*)
15245 # Native MSVC
15246 hardcode_libdir_flag_spec=' '
15247 allow_undefined_flag=unsupported
15248 always_export_symbols=yes
15249 file_list_spec='@'
15250 # Tell ltmain to make .lib files, not .a files.
15251 libext=lib
15252 # Tell ltmain to make .dll files, not .so files.
15253 shrext_cmds=".dll"
15254 # FIXME: Setting linknames here is a bad hack.
15255 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15256 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15257 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15258 else
15259 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15260 fi~
15261 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15262 linknames='
15263 # The linker will not automatically build a static lib if we build a DLL.
15264 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15265 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015266 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015267 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15268 # Don't use ranlib
15269 old_postinstall_cmds='chmod 644 $oldlib'
15270 postlink_cmds='lt_outputfile="@OUTPUT@"~
15271 lt_tool_outputfile="@TOOL_OUTPUT@"~
15272 case $lt_outputfile in
15273 *.exe|*.EXE) ;;
15274 *)
15275 lt_outputfile="$lt_outputfile.exe"
15276 lt_tool_outputfile="$lt_tool_outputfile.exe"
15277 ;;
15278 esac~
15279 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15280 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15281 $RM "$lt_outputfile.manifest";
15282 fi'
15283 ;;
15284 *)
15285 # Assume MSVC wrapper
15286 hardcode_libdir_flag_spec=' '
15287 allow_undefined_flag=unsupported
15288 # Tell ltmain to make .lib files, not .a files.
15289 libext=lib
15290 # Tell ltmain to make .dll files, not .so files.
15291 shrext_cmds=".dll"
15292 # FIXME: Setting linknames here is a bad hack.
15293 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15294 # The linker will automatically build a .lib file if we build a DLL.
15295 old_archive_from_new_cmds='true'
15296 # FIXME: Should let the user specify the lib program.
15297 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15298 enable_shared_with_static_runtimes=yes
15299 ;;
15300 esac
cristy73bd4a52010-10-05 11:24:23 +000015301 ;;
15302
15303 darwin* | rhapsody*)
15304
15305
15306 archive_cmds_need_lc=no
15307 hardcode_direct=no
15308 hardcode_automatic=yes
15309 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015310 if test "$lt_cv_ld_force_load" = "yes"; then
15311 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 +000015312
cristy0c60a692010-11-04 01:09:47 +000015313 else
15314 whole_archive_flag_spec=''
15315 fi
cristy73bd4a52010-10-05 11:24:23 +000015316 link_all_deplibs=yes
15317 allow_undefined_flag="$_lt_dar_allow_undefined"
15318 case $cc_basename in
15319 ifort*) _lt_dar_can_shared=yes ;;
15320 *) _lt_dar_can_shared=$GCC ;;
15321 esac
15322 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015323 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015324 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15325 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15326 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}"
15327 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}"
15328
15329 else
15330 ld_shlibs=no
15331 fi
15332
15333 ;;
15334
15335 dgux*)
15336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15337 hardcode_libdir_flag_spec='-L$libdir'
15338 hardcode_shlibpath_var=no
15339 ;;
15340
cristy73bd4a52010-10-05 11:24:23 +000015341 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15342 # support. Future versions do this automatically, but an explicit c++rt0.o
15343 # does not break anything, and helps significantly (at the cost of a little
15344 # extra space).
15345 freebsd2.2*)
15346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15347 hardcode_libdir_flag_spec='-R$libdir'
15348 hardcode_direct=yes
15349 hardcode_shlibpath_var=no
15350 ;;
15351
15352 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015353 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15355 hardcode_direct=yes
15356 hardcode_minus_L=yes
15357 hardcode_shlibpath_var=no
15358 ;;
15359
15360 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15361 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015363 hardcode_libdir_flag_spec='-R$libdir'
15364 hardcode_direct=yes
15365 hardcode_shlibpath_var=no
15366 ;;
15367
15368 hpux9*)
15369 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015370 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 +000015371 else
15372 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'
15373 fi
15374 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15375 hardcode_libdir_separator=:
15376 hardcode_direct=yes
15377
15378 # hardcode_minus_L: Not really in the search PATH,
15379 # but as the default location of the library.
15380 hardcode_minus_L=yes
15381 export_dynamic_flag_spec='${wl}-E'
15382 ;;
15383
15384 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015385 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015386 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 +000015387 else
15388 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15389 fi
15390 if test "$with_gnu_ld" = no; then
15391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015392 hardcode_libdir_separator=:
15393 hardcode_direct=yes
15394 hardcode_direct_absolute=yes
15395 export_dynamic_flag_spec='${wl}-E'
15396 # hardcode_minus_L: Not really in the search PATH,
15397 # but as the default location of the library.
15398 hardcode_minus_L=yes
15399 fi
15400 ;;
15401
15402 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015403 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015404 case $host_cpu in
15405 hppa*64*)
15406 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15407 ;;
15408 ia64*)
cristyda16f162011-02-19 23:52:17 +000015409 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015410 ;;
15411 *)
cristyda16f162011-02-19 23:52:17 +000015412 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 +000015413 ;;
15414 esac
15415 else
15416 case $host_cpu in
15417 hppa*64*)
15418 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15419 ;;
15420 ia64*)
15421 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15422 ;;
15423 *)
cristy0c60a692010-11-04 01:09:47 +000015424
15425 # Older versions of the 11.00 compiler do not understand -b yet
15426 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15428$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015429if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015430 $as_echo_n "(cached) " >&6
15431else
15432 lt_cv_prog_compiler__b=no
15433 save_LDFLAGS="$LDFLAGS"
15434 LDFLAGS="$LDFLAGS -b"
15435 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15437 # The linker can only warn and ignore the option if not recognized
15438 # So say no if there are warnings
15439 if test -s conftest.err; then
15440 # Append any errors to the config.log.
15441 cat conftest.err 1>&5
15442 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15444 if diff conftest.exp conftest.er2 >/dev/null; then
15445 lt_cv_prog_compiler__b=yes
15446 fi
15447 else
15448 lt_cv_prog_compiler__b=yes
15449 fi
15450 fi
15451 $RM -r conftest*
15452 LDFLAGS="$save_LDFLAGS"
15453
15454fi
15455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15456$as_echo "$lt_cv_prog_compiler__b" >&6; }
15457
15458if test x"$lt_cv_prog_compiler__b" = xyes; then
15459 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15460else
15461 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15462fi
15463
cristy73bd4a52010-10-05 11:24:23 +000015464 ;;
15465 esac
15466 fi
15467 if test "$with_gnu_ld" = no; then
15468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15469 hardcode_libdir_separator=:
15470
15471 case $host_cpu in
15472 hppa*64*|ia64*)
15473 hardcode_direct=no
15474 hardcode_shlibpath_var=no
15475 ;;
15476 *)
15477 hardcode_direct=yes
15478 hardcode_direct_absolute=yes
15479 export_dynamic_flag_spec='${wl}-E'
15480
15481 # hardcode_minus_L: Not really in the search PATH,
15482 # but as the default location of the library.
15483 hardcode_minus_L=yes
15484 ;;
15485 esac
15486 fi
15487 ;;
15488
15489 irix5* | irix6* | nonstopux*)
15490 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015491 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 +000015492 # Try to use the -exported_symbol ld option, if it does not
15493 # work, assume that -exports_file does not work either and
15494 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015495 # This should be the same for all languages, so no per-tag cache variable.
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15497$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15498if ${lt_cv_irix_exported_symbol+:} false; then :
15499 $as_echo_n "(cached) " >&6
15500else
15501 save_LDFLAGS="$LDFLAGS"
15502 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015504/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015505int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015506_ACEOF
15507if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015508 lt_cv_irix_exported_symbol=yes
15509else
15510 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015511fi
15512rm -f core conftest.err conftest.$ac_objext \
15513 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015514 LDFLAGS="$save_LDFLAGS"
15515fi
15516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15517$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15518 if test "$lt_cv_irix_exported_symbol" = yes; then
15519 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'
15520 fi
cristy73bd4a52010-10-05 11:24:23 +000015521 else
cristy0c60a692010-11-04 01:09:47 +000015522 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'
15523 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 +000015524 fi
15525 archive_cmds_need_lc='no'
15526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15527 hardcode_libdir_separator=:
15528 inherit_rpath=yes
15529 link_all_deplibs=yes
15530 ;;
15531
15532 netbsd*)
15533 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15535 else
15536 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15537 fi
15538 hardcode_libdir_flag_spec='-R$libdir'
15539 hardcode_direct=yes
15540 hardcode_shlibpath_var=no
15541 ;;
15542
15543 newsos6)
15544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15545 hardcode_direct=yes
15546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15547 hardcode_libdir_separator=:
15548 hardcode_shlibpath_var=no
15549 ;;
15550
15551 *nto* | *qnx*)
15552 ;;
15553
15554 openbsd*)
15555 if test -f /usr/libexec/ld.so; then
15556 hardcode_direct=yes
15557 hardcode_shlibpath_var=no
15558 hardcode_direct_absolute=yes
15559 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15561 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15562 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15563 export_dynamic_flag_spec='${wl}-E'
15564 else
15565 case $host_os in
15566 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15568 hardcode_libdir_flag_spec='-R$libdir'
15569 ;;
15570 *)
15571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15573 ;;
15574 esac
15575 fi
15576 else
15577 ld_shlibs=no
15578 fi
15579 ;;
15580
15581 os2*)
15582 hardcode_libdir_flag_spec='-L$libdir'
15583 hardcode_minus_L=yes
15584 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015585 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 +000015586 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15587 ;;
15588
15589 osf3*)
15590 if test "$GCC" = yes; then
15591 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015592 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 +000015593 else
15594 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015595 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 +000015596 fi
15597 archive_cmds_need_lc='no'
15598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15599 hardcode_libdir_separator=:
15600 ;;
15601
15602 osf4* | osf5*) # as osf3* with the addition of -msym flag
15603 if test "$GCC" = yes; then
15604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015605 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 +000015606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15607 else
15608 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015609 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 +000015610 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 +000015611 $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 +000015612
15613 # Both c and cxx compiler support -rpath directly
15614 hardcode_libdir_flag_spec='-rpath $libdir'
15615 fi
15616 archive_cmds_need_lc='no'
15617 hardcode_libdir_separator=:
15618 ;;
15619
15620 solaris*)
15621 no_undefined_flag=' -z defs'
15622 if test "$GCC" = yes; then
15623 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015624 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 +000015625 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 +000015626 $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 +000015627 else
15628 case `$CC -V 2>&1` in
15629 *"Compilers 5.0"*)
15630 wlarc=''
15631 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15633 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15634 ;;
15635 *)
15636 wlarc='${wl}'
15637 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15639 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15640 ;;
15641 esac
15642 fi
15643 hardcode_libdir_flag_spec='-R$libdir'
15644 hardcode_shlibpath_var=no
15645 case $host_os in
15646 solaris2.[0-5] | solaris2.[0-5].*) ;;
15647 *)
15648 # The compiler driver will combine and reorder linker options,
15649 # but understands `-z linker_flag'. GCC discards it without `$wl',
15650 # but is careful enough not to reorder.
15651 # Supported since Solaris 2.6 (maybe 2.5.1?)
15652 if test "$GCC" = yes; then
15653 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15654 else
15655 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15656 fi
15657 ;;
15658 esac
15659 link_all_deplibs=yes
15660 ;;
15661
15662 sunos4*)
15663 if test "x$host_vendor" = xsequent; then
15664 # Use $CC to link under sequent, because it throws in some extra .o
15665 # files that make .init and .fini sections work.
15666 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15667 else
15668 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15669 fi
15670 hardcode_libdir_flag_spec='-L$libdir'
15671 hardcode_direct=yes
15672 hardcode_minus_L=yes
15673 hardcode_shlibpath_var=no
15674 ;;
15675
15676 sysv4)
15677 case $host_vendor in
15678 sni)
15679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680 hardcode_direct=yes # is this really true???
15681 ;;
15682 siemens)
15683 ## LD is ld it makes a PLAMLIB
15684 ## CC just makes a GrossModule.
15685 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15686 reload_cmds='$CC -r -o $output$reload_objs'
15687 hardcode_direct=no
15688 ;;
15689 motorola)
15690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15691 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15692 ;;
15693 esac
15694 runpath_var='LD_RUN_PATH'
15695 hardcode_shlibpath_var=no
15696 ;;
15697
15698 sysv4.3*)
15699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700 hardcode_shlibpath_var=no
15701 export_dynamic_flag_spec='-Bexport'
15702 ;;
15703
15704 sysv4*MP*)
15705 if test -d /usr/nec; then
15706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707 hardcode_shlibpath_var=no
15708 runpath_var=LD_RUN_PATH
15709 hardcode_runpath_var=yes
15710 ld_shlibs=yes
15711 fi
15712 ;;
15713
15714 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15715 no_undefined_flag='${wl}-z,text'
15716 archive_cmds_need_lc=no
15717 hardcode_shlibpath_var=no
15718 runpath_var='LD_RUN_PATH'
15719
15720 if test "$GCC" = yes; then
15721 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15722 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723 else
15724 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15725 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15726 fi
15727 ;;
15728
15729 sysv5* | sco3.2v5* | sco5v6*)
15730 # Note: We can NOT use -z defs as we might desire, because we do not
15731 # link with -lc, and that would cause any symbols used from libc to
15732 # always be unresolved, which means just about no library would
15733 # ever link correctly. If we're not using GNU ld we use -z text
15734 # though, which does catch some bad symbols but isn't as heavy-handed
15735 # as -z defs.
15736 no_undefined_flag='${wl}-z,text'
15737 allow_undefined_flag='${wl}-z,nodefs'
15738 archive_cmds_need_lc=no
15739 hardcode_shlibpath_var=no
15740 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15741 hardcode_libdir_separator=':'
15742 link_all_deplibs=yes
15743 export_dynamic_flag_spec='${wl}-Bexport'
15744 runpath_var='LD_RUN_PATH'
15745
15746 if test "$GCC" = yes; then
15747 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15748 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15749 else
15750 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15751 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15752 fi
15753 ;;
15754
15755 uts4*)
15756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757 hardcode_libdir_flag_spec='-L$libdir'
15758 hardcode_shlibpath_var=no
15759 ;;
15760
15761 *)
15762 ld_shlibs=no
15763 ;;
15764 esac
15765
15766 if test x$host_vendor = xsni; then
15767 case $host in
15768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15769 export_dynamic_flag_spec='${wl}-Blargedynsym'
15770 ;;
15771 esac
15772 fi
15773 fi
15774
15775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15776$as_echo "$ld_shlibs" >&6; }
15777test "$ld_shlibs" = no && can_build_shared=no
15778
15779with_gnu_ld=$with_gnu_ld
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795#
15796# Do we need to explicitly link libc?
15797#
15798case "x$archive_cmds_need_lc" in
15799x|xyes)
15800 # Assume -lc should be added
15801 archive_cmds_need_lc=yes
15802
15803 if test "$enable_shared" = yes && test "$GCC" = yes; then
15804 case $archive_cmds in
15805 *'~'*)
15806 # FIXME: we may have to deal with multi-command sequences.
15807 ;;
15808 '$CC '*)
15809 # Test whether the compiler implicitly links with -lc since on some
15810 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15811 # to ld, don't add -lc before -lgcc.
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15813$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015814if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015815 $as_echo_n "(cached) " >&6
15816else
15817 $RM conftest*
15818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015819
cristy0c60a692010-11-04 01:09:47 +000015820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015821 (eval $ac_compile) 2>&5
15822 ac_status=$?
15823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15824 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015825 soname=conftest
15826 lib=conftest
15827 libobjs=conftest.$ac_objext
15828 deplibs=
15829 wl=$lt_prog_compiler_wl
15830 pic_flag=$lt_prog_compiler_pic
15831 compiler_flags=-v
15832 linker_flags=-v
15833 verstring=
15834 output_objdir=.
15835 libname=conftest
15836 lt_save_allow_undefined_flag=$allow_undefined_flag
15837 allow_undefined_flag=
15838 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 +000015839 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15840 ac_status=$?
15841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15842 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015843 then
15844 lt_cv_archive_cmds_need_lc=no
15845 else
15846 lt_cv_archive_cmds_need_lc=yes
15847 fi
15848 allow_undefined_flag=$lt_save_allow_undefined_flag
15849 else
15850 cat conftest.err 1>&5
15851 fi
15852 $RM conftest*
15853
15854fi
15855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15856$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15857 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015858 ;;
15859 esac
15860 fi
15861 ;;
15862esac
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
cristy73bd4a52010-10-05 11:24:23 +000016015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16016$as_echo_n "checking dynamic linker characteristics... " >&6; }
16017
16018if test "$GCC" = yes; then
16019 case $host_os in
16020 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16021 *) lt_awk_arg="/^libraries:/" ;;
16022 esac
cristy0c60a692010-11-04 01:09:47 +000016023 case $host_os in
16024 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16025 *) lt_sed_strip_eq="s,=/,/,g" ;;
16026 esac
16027 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16028 case $lt_search_path_spec in
16029 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016030 # if the path contains ";" then we assume it to be the separator
16031 # otherwise default to the standard path separator (i.e. ":") - it is
16032 # assumed that no part of a normal pathname contains ";" but that should
16033 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016034 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16035 ;;
16036 *)
16037 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16038 ;;
16039 esac
cristy73bd4a52010-10-05 11:24:23 +000016040 # Ok, now we have the path, separated by spaces, we can step through it
16041 # and add multilib dir if necessary.
16042 lt_tmp_lt_search_path_spec=
16043 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16044 for lt_sys_path in $lt_search_path_spec; do
16045 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16046 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16047 else
16048 test -d "$lt_sys_path" && \
16049 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16050 fi
16051 done
cristy0c60a692010-11-04 01:09:47 +000016052 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016053BEGIN {RS=" "; FS="/|\n";} {
16054 lt_foo="";
16055 lt_count=0;
16056 for (lt_i = NF; lt_i > 0; lt_i--) {
16057 if ($lt_i != "" && $lt_i != ".") {
16058 if ($lt_i == "..") {
16059 lt_count++;
16060 } else {
16061 if (lt_count == 0) {
16062 lt_foo="/" $lt_i lt_foo;
16063 } else {
16064 lt_count--;
16065 }
16066 }
16067 }
16068 }
16069 if (lt_foo != "") { lt_freq[lt_foo]++; }
16070 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16071}'`
cristy0c60a692010-11-04 01:09:47 +000016072 # AWK program above erroneously prepends '/' to C:/dos/paths
16073 # for these hosts.
16074 case $host_os in
16075 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16076 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16077 esac
16078 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016079else
16080 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16081fi
16082library_names_spec=
16083libname_spec='lib$name'
16084soname_spec=
16085shrext_cmds=".so"
16086postinstall_cmds=
16087postuninstall_cmds=
16088finish_cmds=
16089finish_eval=
16090shlibpath_var=
16091shlibpath_overrides_runpath=unknown
16092version_type=none
16093dynamic_linker="$host_os ld.so"
16094sys_lib_dlsearch_path_spec="/lib /usr/lib"
16095need_lib_prefix=unknown
16096hardcode_into_libs=no
16097
16098# when you set need_version to no, make sure it does not cause -set_version
16099# flags to be left without arguments
16100need_version=unknown
16101
16102case $host_os in
16103aix3*)
cristy99bd5232011-12-07 14:38:20 +000016104 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16106 shlibpath_var=LIBPATH
16107
16108 # AIX 3 has no versioning support, so we append a major version to the name.
16109 soname_spec='${libname}${release}${shared_ext}$major'
16110 ;;
16111
16112aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016113 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016114 need_lib_prefix=no
16115 need_version=no
16116 hardcode_into_libs=yes
16117 if test "$host_cpu" = ia64; then
16118 # AIX 5 supports IA64
16119 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16120 shlibpath_var=LD_LIBRARY_PATH
16121 else
16122 # With GCC up to 2.95.x, collect2 would create an import file
16123 # for dependence libraries. The import file would start with
16124 # the line `#! .'. This would cause the generated library to
16125 # depend on `.', always an invalid library. This was fixed in
16126 # development snapshots of GCC prior to 3.0.
16127 case $host_os in
16128 aix4 | aix4.[01] | aix4.[01].*)
16129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16130 echo ' yes '
16131 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16132 :
16133 else
16134 can_build_shared=no
16135 fi
16136 ;;
16137 esac
16138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16139 # soname into executable. Probably we can add versioning support to
16140 # collect2, so additional links can be useful in future.
16141 if test "$aix_use_runtimelinking" = yes; then
16142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16143 # instead of lib<name>.a to let people know that these are not
16144 # typical AIX shared libraries.
16145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16146 else
16147 # We preserve .a as extension for shared libraries through AIX4.2
16148 # and later when we are not doing run time linking.
16149 library_names_spec='${libname}${release}.a $libname.a'
16150 soname_spec='${libname}${release}${shared_ext}$major'
16151 fi
16152 shlibpath_var=LIBPATH
16153 fi
16154 ;;
16155
16156amigaos*)
16157 case $host_cpu in
16158 powerpc)
16159 # Since July 2007 AmigaOS4 officially supports .so libraries.
16160 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16162 ;;
16163 m68k)
16164 library_names_spec='$libname.ixlibrary $libname.a'
16165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016166 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 +000016167 ;;
16168 esac
16169 ;;
16170
16171beos*)
16172 library_names_spec='${libname}${shared_ext}'
16173 dynamic_linker="$host_os ld.so"
16174 shlibpath_var=LIBRARY_PATH
16175 ;;
16176
16177bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016178 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016179 need_version=no
16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16181 soname_spec='${libname}${release}${shared_ext}$major'
16182 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16183 shlibpath_var=LD_LIBRARY_PATH
16184 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16185 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16186 # the default ld.so.conf also contains /usr/contrib/lib and
16187 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16188 # libtool to hard-code these into programs
16189 ;;
16190
16191cygwin* | mingw* | pw32* | cegcc*)
16192 version_type=windows
16193 shrext_cmds=".dll"
16194 need_version=no
16195 need_lib_prefix=no
16196
cristyda16f162011-02-19 23:52:17 +000016197 case $GCC,$cc_basename in
16198 yes,*)
16199 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016200 library_names_spec='$libname.dll.a'
16201 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16202 postinstall_cmds='base_file=`basename \${file}`~
16203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16204 dldir=$destdir/`dirname \$dlpath`~
16205 test -d \$dldir || mkdir -p \$dldir~
16206 $install_prog $dir/$dlname \$dldir/$dlname~
16207 chmod a+x \$dldir/$dlname~
16208 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16209 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16210 fi'
16211 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16212 dlpath=$dir/\$dldll~
16213 $RM \$dlpath'
16214 shlibpath_overrides_runpath=yes
16215
16216 case $host_os in
16217 cygwin*)
16218 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16219 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016220
16221 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016222 ;;
16223 mingw* | cegcc*)
16224 # MinGW DLLs use traditional 'lib' prefix
16225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016226 ;;
16227 pw32*)
16228 # pw32 DLLs use 'pw' prefix rather than 'lib'
16229 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16230 ;;
16231 esac
cristyda16f162011-02-19 23:52:17 +000016232 dynamic_linker='Win32 ld.exe'
16233 ;;
16234
16235 *,cl*)
16236 # Native MSVC
16237 libname_spec='$name'
16238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16239 library_names_spec='${libname}.dll.lib'
16240
16241 case $build_os in
16242 mingw*)
16243 sys_lib_search_path_spec=
16244 lt_save_ifs=$IFS
16245 IFS=';'
16246 for lt_path in $LIB
16247 do
16248 IFS=$lt_save_ifs
16249 # Let DOS variable expansion print the short 8.3 style file name.
16250 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16251 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16252 done
16253 IFS=$lt_save_ifs
16254 # Convert to MSYS style.
16255 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16256 ;;
16257 cygwin*)
16258 # Convert to unix form, then to dos form, then back to unix form
16259 # but this time dos style (no spaces!) so that the unix form looks
16260 # like /cygdrive/c/PROGRA~1:/cygdr...
16261 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16262 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16263 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16264 ;;
16265 *)
16266 sys_lib_search_path_spec="$LIB"
16267 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16268 # It is most probably a Windows format PATH.
16269 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16270 else
16271 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16272 fi
16273 # FIXME: find the short name or the path components, as spaces are
16274 # common. (e.g. "Program Files" -> "PROGRA~1")
16275 ;;
16276 esac
16277
16278 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16279 postinstall_cmds='base_file=`basename \${file}`~
16280 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16281 dldir=$destdir/`dirname \$dlpath`~
16282 test -d \$dldir || mkdir -p \$dldir~
16283 $install_prog $dir/$dlname \$dldir/$dlname'
16284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16285 dlpath=$dir/\$dldll~
16286 $RM \$dlpath'
16287 shlibpath_overrides_runpath=yes
16288 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016289 ;;
16290
16291 *)
cristyda16f162011-02-19 23:52:17 +000016292 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016293 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016294 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016295 ;;
16296 esac
cristy73bd4a52010-10-05 11:24:23 +000016297 # FIXME: first we should search . and the directory the executable is in
16298 shlibpath_var=PATH
16299 ;;
16300
16301darwin* | rhapsody*)
16302 dynamic_linker="$host_os dyld"
16303 version_type=darwin
16304 need_lib_prefix=no
16305 need_version=no
16306 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16307 soname_spec='${libname}${release}${major}$shared_ext'
16308 shlibpath_overrides_runpath=yes
16309 shlibpath_var=DYLD_LIBRARY_PATH
16310 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16311
16312 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16313 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16314 ;;
16315
16316dgux*)
cristy99bd5232011-12-07 14:38:20 +000016317 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016318 need_lib_prefix=no
16319 need_version=no
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16321 soname_spec='${libname}${release}${shared_ext}$major'
16322 shlibpath_var=LD_LIBRARY_PATH
16323 ;;
16324
cristy73bd4a52010-10-05 11:24:23 +000016325freebsd* | dragonfly*)
16326 # DragonFly does not have aout. When/if they implement a new
16327 # versioning mechanism, adjust this.
16328 if test -x /usr/bin/objformat; then
16329 objformat=`/usr/bin/objformat`
16330 else
16331 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016332 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016333 *) objformat=elf ;;
16334 esac
16335 fi
16336 version_type=freebsd-$objformat
16337 case $version_type in
16338 freebsd-elf*)
16339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16340 need_version=no
16341 need_lib_prefix=no
16342 ;;
16343 freebsd-*)
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16345 need_version=yes
16346 ;;
16347 esac
16348 shlibpath_var=LD_LIBRARY_PATH
16349 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016350 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016351 shlibpath_overrides_runpath=yes
16352 ;;
16353 freebsd3.[01]* | freebsdelf3.[01]*)
16354 shlibpath_overrides_runpath=yes
16355 hardcode_into_libs=yes
16356 ;;
16357 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16358 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16359 shlibpath_overrides_runpath=no
16360 hardcode_into_libs=yes
16361 ;;
16362 *) # from 4.6 on, and DragonFly
16363 shlibpath_overrides_runpath=yes
16364 hardcode_into_libs=yes
16365 ;;
16366 esac
16367 ;;
16368
16369gnu*)
cristy99bd5232011-12-07 14:38:20 +000016370 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016371 need_lib_prefix=no
16372 need_version=no
16373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16374 soname_spec='${libname}${release}${shared_ext}$major'
16375 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016376 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016377 hardcode_into_libs=yes
16378 ;;
16379
cristy0c60a692010-11-04 01:09:47 +000016380haiku*)
cristy99bd5232011-12-07 14:38:20 +000016381 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016382 need_lib_prefix=no
16383 need_version=no
16384 dynamic_linker="$host_os runtime_loader"
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16386 soname_spec='${libname}${release}${shared_ext}$major'
16387 shlibpath_var=LIBRARY_PATH
16388 shlibpath_overrides_runpath=yes
16389 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16390 hardcode_into_libs=yes
16391 ;;
16392
cristy73bd4a52010-10-05 11:24:23 +000016393hpux9* | hpux10* | hpux11*)
16394 # Give a soname corresponding to the major version so that dld.sl refuses to
16395 # link against other versions.
16396 version_type=sunos
16397 need_lib_prefix=no
16398 need_version=no
16399 case $host_cpu in
16400 ia64*)
16401 shrext_cmds='.so'
16402 hardcode_into_libs=yes
16403 dynamic_linker="$host_os dld.so"
16404 shlibpath_var=LD_LIBRARY_PATH
16405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407 soname_spec='${libname}${release}${shared_ext}$major'
16408 if test "X$HPUX_IA64_MODE" = X32; then
16409 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16410 else
16411 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16412 fi
16413 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16414 ;;
16415 hppa*64*)
16416 shrext_cmds='.sl'
16417 hardcode_into_libs=yes
16418 dynamic_linker="$host_os dld.sl"
16419 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16420 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422 soname_spec='${libname}${release}${shared_ext}$major'
16423 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16424 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16425 ;;
16426 *)
16427 shrext_cmds='.sl'
16428 dynamic_linker="$host_os dld.sl"
16429 shlibpath_var=SHLIB_PATH
16430 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432 soname_spec='${libname}${release}${shared_ext}$major'
16433 ;;
16434 esac
cristy0c60a692010-11-04 01:09:47 +000016435 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016436 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016437 # or fails outright, so override atomically:
16438 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016439 ;;
16440
16441interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016442 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016443 need_lib_prefix=no
16444 need_version=no
16445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16446 soname_spec='${libname}${release}${shared_ext}$major'
16447 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16448 shlibpath_var=LD_LIBRARY_PATH
16449 shlibpath_overrides_runpath=no
16450 hardcode_into_libs=yes
16451 ;;
16452
16453irix5* | irix6* | nonstopux*)
16454 case $host_os in
16455 nonstopux*) version_type=nonstopux ;;
16456 *)
16457 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016458 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016459 else
16460 version_type=irix
16461 fi ;;
16462 esac
16463 need_lib_prefix=no
16464 need_version=no
16465 soname_spec='${libname}${release}${shared_ext}$major'
16466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16467 case $host_os in
16468 irix5* | nonstopux*)
16469 libsuff= shlibsuff=
16470 ;;
16471 *)
16472 case $LD in # libtool.m4 will add one of these switches to LD
16473 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16474 libsuff= shlibsuff= libmagic=32-bit;;
16475 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16476 libsuff=32 shlibsuff=N32 libmagic=N32;;
16477 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16478 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16479 *) libsuff= shlibsuff= libmagic=never-match;;
16480 esac
16481 ;;
16482 esac
16483 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16484 shlibpath_overrides_runpath=no
16485 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16486 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16487 hardcode_into_libs=yes
16488 ;;
16489
16490# No shared lib support for Linux oldld, aout, or coff.
16491linux*oldld* | linux*aout* | linux*coff*)
16492 dynamic_linker=no
16493 ;;
16494
cristy99bd5232011-12-07 14:38:20 +000016495# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016496linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016497 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016498 need_lib_prefix=no
16499 need_version=no
16500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16501 soname_spec='${libname}${release}${shared_ext}$major'
16502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16503 shlibpath_var=LD_LIBRARY_PATH
16504 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016505
cristy73bd4a52010-10-05 11:24:23 +000016506 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016507 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016508 $as_echo_n "(cached) " >&6
16509else
16510 lt_cv_shlibpath_overrides_runpath=no
16511 save_LDFLAGS=$LDFLAGS
16512 save_libdir=$libdir
16513 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16514 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016516/* end confdefs.h. */
16517
16518int
16519main ()
16520{
16521
16522 ;
16523 return 0;
16524}
16525_ACEOF
16526if ac_fn_c_try_link "$LINENO"; then :
16527 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016528 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016529fi
16530fi
16531rm -f core conftest.err conftest.$ac_objext \
16532 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016533 LDFLAGS=$save_LDFLAGS
16534 libdir=$save_libdir
16535
16536fi
16537
16538 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016539
16540 # This implies no fast_install, which is unacceptable.
16541 # Some rework will be needed to allow for fast_install
16542 # before this can be enabled.
16543 hardcode_into_libs=yes
16544
16545 # Add ABI-specific directories to the system library path.
16546 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16547
16548 # Append ld.so.conf contents to the search path
16549 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016550 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 +000016551 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016552
cristy73bd4a52010-10-05 11:24:23 +000016553 fi
16554
16555 # We used to test for /lib/ld.so.1 and disable shared libraries on
16556 # powerpc, because MkLinux only supported shared libraries with the
16557 # GNU dynamic linker. Since this was broken with cross compilers,
16558 # most powerpc-linux boxes support dynamic linking these days and
16559 # people can always --disable-shared, the test was removed, and we
16560 # assume the GNU/Linux dynamic linker is in use.
16561 dynamic_linker='GNU/Linux ld.so'
16562 ;;
16563
16564netbsd*)
16565 version_type=sunos
16566 need_lib_prefix=no
16567 need_version=no
16568 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16571 dynamic_linker='NetBSD (a.out) ld.so'
16572 else
16573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16574 soname_spec='${libname}${release}${shared_ext}$major'
16575 dynamic_linker='NetBSD ld.elf_so'
16576 fi
16577 shlibpath_var=LD_LIBRARY_PATH
16578 shlibpath_overrides_runpath=yes
16579 hardcode_into_libs=yes
16580 ;;
16581
16582newsos6)
cristy99bd5232011-12-07 14:38:20 +000016583 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16585 shlibpath_var=LD_LIBRARY_PATH
16586 shlibpath_overrides_runpath=yes
16587 ;;
16588
16589*nto* | *qnx*)
16590 version_type=qnx
16591 need_lib_prefix=no
16592 need_version=no
16593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16594 soname_spec='${libname}${release}${shared_ext}$major'
16595 shlibpath_var=LD_LIBRARY_PATH
16596 shlibpath_overrides_runpath=no
16597 hardcode_into_libs=yes
16598 dynamic_linker='ldqnx.so'
16599 ;;
16600
16601openbsd*)
16602 version_type=sunos
16603 sys_lib_dlsearch_path_spec="/usr/lib"
16604 need_lib_prefix=no
16605 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16606 case $host_os in
16607 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16608 *) need_version=no ;;
16609 esac
16610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16612 shlibpath_var=LD_LIBRARY_PATH
16613 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16614 case $host_os in
16615 openbsd2.[89] | openbsd2.[89].*)
16616 shlibpath_overrides_runpath=no
16617 ;;
16618 *)
16619 shlibpath_overrides_runpath=yes
16620 ;;
16621 esac
16622 else
16623 shlibpath_overrides_runpath=yes
16624 fi
16625 ;;
16626
16627os2*)
16628 libname_spec='$name'
16629 shrext_cmds=".dll"
16630 need_lib_prefix=no
16631 library_names_spec='$libname${shared_ext} $libname.a'
16632 dynamic_linker='OS/2 ld.exe'
16633 shlibpath_var=LIBPATH
16634 ;;
16635
16636osf3* | osf4* | osf5*)
16637 version_type=osf
16638 need_lib_prefix=no
16639 need_version=no
16640 soname_spec='${libname}${release}${shared_ext}$major'
16641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16642 shlibpath_var=LD_LIBRARY_PATH
16643 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16644 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16645 ;;
16646
16647rdos*)
16648 dynamic_linker=no
16649 ;;
16650
16651solaris*)
cristy99bd5232011-12-07 14:38:20 +000016652 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016653 need_lib_prefix=no
16654 need_version=no
16655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16656 soname_spec='${libname}${release}${shared_ext}$major'
16657 shlibpath_var=LD_LIBRARY_PATH
16658 shlibpath_overrides_runpath=yes
16659 hardcode_into_libs=yes
16660 # ldd complains unless libraries are executable
16661 postinstall_cmds='chmod +x $lib'
16662 ;;
16663
16664sunos4*)
16665 version_type=sunos
16666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16667 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16668 shlibpath_var=LD_LIBRARY_PATH
16669 shlibpath_overrides_runpath=yes
16670 if test "$with_gnu_ld" = yes; then
16671 need_lib_prefix=no
16672 fi
16673 need_version=yes
16674 ;;
16675
16676sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016677 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16679 soname_spec='${libname}${release}${shared_ext}$major'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 case $host_vendor in
16682 sni)
16683 shlibpath_overrides_runpath=no
16684 need_lib_prefix=no
16685 runpath_var=LD_RUN_PATH
16686 ;;
16687 siemens)
16688 need_lib_prefix=no
16689 ;;
16690 motorola)
16691 need_lib_prefix=no
16692 need_version=no
16693 shlibpath_overrides_runpath=no
16694 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16695 ;;
16696 esac
16697 ;;
16698
16699sysv4*MP*)
16700 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016701 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016702 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16703 soname_spec='$libname${shared_ext}.$major'
16704 shlibpath_var=LD_LIBRARY_PATH
16705 fi
16706 ;;
16707
16708sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16709 version_type=freebsd-elf
16710 need_lib_prefix=no
16711 need_version=no
16712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16713 soname_spec='${libname}${release}${shared_ext}$major'
16714 shlibpath_var=LD_LIBRARY_PATH
16715 shlibpath_overrides_runpath=yes
16716 hardcode_into_libs=yes
16717 if test "$with_gnu_ld" = yes; then
16718 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16719 else
16720 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16721 case $host_os in
16722 sco3.2v5*)
16723 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16724 ;;
16725 esac
16726 fi
16727 sys_lib_dlsearch_path_spec='/usr/lib'
16728 ;;
16729
16730tpf*)
16731 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016732 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016733 need_lib_prefix=no
16734 need_version=no
16735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16736 shlibpath_var=LD_LIBRARY_PATH
16737 shlibpath_overrides_runpath=no
16738 hardcode_into_libs=yes
16739 ;;
16740
16741uts4*)
cristy99bd5232011-12-07 14:38:20 +000016742 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16744 soname_spec='${libname}${release}${shared_ext}$major'
16745 shlibpath_var=LD_LIBRARY_PATH
16746 ;;
16747
16748*)
16749 dynamic_linker=no
16750 ;;
16751esac
16752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16753$as_echo "$dynamic_linker" >&6; }
16754test "$dynamic_linker" = no && can_build_shared=no
16755
16756variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16757if test "$GCC" = yes; then
16758 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16759fi
16760
16761if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16762 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16763fi
16764if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16765 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16766fi
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
cristy0c60a692010-11-04 01:09:47 +000016854
16855
16856
16857
16858
cristy73bd4a52010-10-05 11:24:23 +000016859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16860$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16861hardcode_action=
16862if test -n "$hardcode_libdir_flag_spec" ||
16863 test -n "$runpath_var" ||
16864 test "X$hardcode_automatic" = "Xyes" ; then
16865
16866 # We can hardcode non-existent directories.
16867 if test "$hardcode_direct" != no &&
16868 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16869 # have to relink, otherwise we might link with an installed library
16870 # when we should be linking with a yet-to-be-installed one
16871 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16872 test "$hardcode_minus_L" != no; then
16873 # Linking always hardcodes the temporary library directory.
16874 hardcode_action=relink
16875 else
16876 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16877 hardcode_action=immediate
16878 fi
16879else
16880 # We cannot hardcode anything, or else we can only hardcode existing
16881 # directories.
16882 hardcode_action=unsupported
16883fi
16884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16885$as_echo "$hardcode_action" >&6; }
16886
16887if test "$hardcode_action" = relink ||
16888 test "$inherit_rpath" = yes; then
16889 # Fast installation is not supported
16890 enable_fast_install=no
16891elif test "$shlibpath_overrides_runpath" = yes ||
16892 test "$enable_shared" = no; then
16893 # Fast installation is not necessary
16894 enable_fast_install=needless
16895fi
16896
16897
16898
16899
16900
16901
16902 if test "x$enable_dlopen" != xyes; then
16903 enable_dlopen=unknown
16904 enable_dlopen_self=unknown
16905 enable_dlopen_self_static=unknown
16906else
16907 lt_cv_dlopen=no
16908 lt_cv_dlopen_libs=
16909
16910 case $host_os in
16911 beos*)
16912 lt_cv_dlopen="load_add_on"
16913 lt_cv_dlopen_libs=
16914 lt_cv_dlopen_self=yes
16915 ;;
16916
16917 mingw* | pw32* | cegcc*)
16918 lt_cv_dlopen="LoadLibrary"
16919 lt_cv_dlopen_libs=
16920 ;;
16921
16922 cygwin*)
16923 lt_cv_dlopen="dlopen"
16924 lt_cv_dlopen_libs=
16925 ;;
16926
16927 darwin*)
16928 # if libdl is installed we need to link against it
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16930$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016931if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016932 $as_echo_n "(cached) " >&6
16933else
16934 ac_check_lib_save_LIBS=$LIBS
16935LIBS="-ldl $LIBS"
16936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937/* end confdefs.h. */
16938
16939/* Override any GCC internal prototype to avoid an error.
16940 Use char because int might match the return type of a GCC
16941 builtin and then its argument prototype would still apply. */
16942#ifdef __cplusplus
16943extern "C"
16944#endif
16945char dlopen ();
16946int
16947main ()
16948{
16949return dlopen ();
16950 ;
16951 return 0;
16952}
16953_ACEOF
16954if ac_fn_c_try_link "$LINENO"; then :
16955 ac_cv_lib_dl_dlopen=yes
16956else
16957 ac_cv_lib_dl_dlopen=no
16958fi
16959rm -f core conftest.err conftest.$ac_objext \
16960 conftest$ac_exeext conftest.$ac_ext
16961LIBS=$ac_check_lib_save_LIBS
16962fi
16963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16964$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016965if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016966 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16967else
16968
16969 lt_cv_dlopen="dyld"
16970 lt_cv_dlopen_libs=
16971 lt_cv_dlopen_self=yes
16972
16973fi
16974
16975 ;;
16976
16977 *)
16978 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016979if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016980 lt_cv_dlopen="shl_load"
16981else
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16983$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016984if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016985 $as_echo_n "(cached) " >&6
16986else
16987 ac_check_lib_save_LIBS=$LIBS
16988LIBS="-ldld $LIBS"
16989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16990/* end confdefs.h. */
16991
16992/* Override any GCC internal prototype to avoid an error.
16993 Use char because int might match the return type of a GCC
16994 builtin and then its argument prototype would still apply. */
16995#ifdef __cplusplus
16996extern "C"
16997#endif
16998char shl_load ();
16999int
17000main ()
17001{
17002return shl_load ();
17003 ;
17004 return 0;
17005}
17006_ACEOF
17007if ac_fn_c_try_link "$LINENO"; then :
17008 ac_cv_lib_dld_shl_load=yes
17009else
17010 ac_cv_lib_dld_shl_load=no
17011fi
17012rm -f core conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17014LIBS=$ac_check_lib_save_LIBS
17015fi
17016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17017$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017018if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017019 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17020else
17021 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017022if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017023 lt_cv_dlopen="dlopen"
17024else
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17026$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017027if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017028 $as_echo_n "(cached) " >&6
17029else
17030 ac_check_lib_save_LIBS=$LIBS
17031LIBS="-ldl $LIBS"
17032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033/* end confdefs.h. */
17034
17035/* Override any GCC internal prototype to avoid an error.
17036 Use char because int might match the return type of a GCC
17037 builtin and then its argument prototype would still apply. */
17038#ifdef __cplusplus
17039extern "C"
17040#endif
17041char dlopen ();
17042int
17043main ()
17044{
17045return dlopen ();
17046 ;
17047 return 0;
17048}
17049_ACEOF
17050if ac_fn_c_try_link "$LINENO"; then :
17051 ac_cv_lib_dl_dlopen=yes
17052else
17053 ac_cv_lib_dl_dlopen=no
17054fi
17055rm -f core conftest.err conftest.$ac_objext \
17056 conftest$ac_exeext conftest.$ac_ext
17057LIBS=$ac_check_lib_save_LIBS
17058fi
17059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17060$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017061if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017062 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17063else
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17065$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017066if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017067 $as_echo_n "(cached) " >&6
17068else
17069 ac_check_lib_save_LIBS=$LIBS
17070LIBS="-lsvld $LIBS"
17071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072/* end confdefs.h. */
17073
17074/* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17077#ifdef __cplusplus
17078extern "C"
17079#endif
17080char dlopen ();
17081int
17082main ()
17083{
17084return dlopen ();
17085 ;
17086 return 0;
17087}
17088_ACEOF
17089if ac_fn_c_try_link "$LINENO"; then :
17090 ac_cv_lib_svld_dlopen=yes
17091else
17092 ac_cv_lib_svld_dlopen=no
17093fi
17094rm -f core conftest.err conftest.$ac_objext \
17095 conftest$ac_exeext conftest.$ac_ext
17096LIBS=$ac_check_lib_save_LIBS
17097fi
17098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17099$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017100if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17102else
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17104$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017105if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017106 $as_echo_n "(cached) " >&6
17107else
17108 ac_check_lib_save_LIBS=$LIBS
17109LIBS="-ldld $LIBS"
17110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17111/* end confdefs.h. */
17112
17113/* Override any GCC internal prototype to avoid an error.
17114 Use char because int might match the return type of a GCC
17115 builtin and then its argument prototype would still apply. */
17116#ifdef __cplusplus
17117extern "C"
17118#endif
17119char dld_link ();
17120int
17121main ()
17122{
17123return dld_link ();
17124 ;
17125 return 0;
17126}
17127_ACEOF
17128if ac_fn_c_try_link "$LINENO"; then :
17129 ac_cv_lib_dld_dld_link=yes
17130else
17131 ac_cv_lib_dld_dld_link=no
17132fi
17133rm -f core conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
17135LIBS=$ac_check_lib_save_LIBS
17136fi
17137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17138$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017139if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017140 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17141fi
17142
17143
17144fi
17145
17146
17147fi
17148
17149
17150fi
17151
17152
17153fi
17154
17155
17156fi
17157
17158 ;;
17159 esac
17160
17161 if test "x$lt_cv_dlopen" != xno; then
17162 enable_dlopen=yes
17163 else
17164 enable_dlopen=no
17165 fi
17166
17167 case $lt_cv_dlopen in
17168 dlopen)
17169 save_CPPFLAGS="$CPPFLAGS"
17170 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17171
17172 save_LDFLAGS="$LDFLAGS"
17173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17174
17175 save_LIBS="$LIBS"
17176 LIBS="$lt_cv_dlopen_libs $LIBS"
17177
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17179$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017180if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017181 $as_echo_n "(cached) " >&6
17182else
17183 if test "$cross_compiling" = yes; then :
17184 lt_cv_dlopen_self=cross
17185else
17186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17187 lt_status=$lt_dlunknown
17188 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017189#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017190#include "confdefs.h"
17191
17192#if HAVE_DLFCN_H
17193#include <dlfcn.h>
17194#endif
17195
17196#include <stdio.h>
17197
17198#ifdef RTLD_GLOBAL
17199# define LT_DLGLOBAL RTLD_GLOBAL
17200#else
17201# ifdef DL_GLOBAL
17202# define LT_DLGLOBAL DL_GLOBAL
17203# else
17204# define LT_DLGLOBAL 0
17205# endif
17206#endif
17207
17208/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17209 find out it does not work in some platform. */
17210#ifndef LT_DLLAZY_OR_NOW
17211# ifdef RTLD_LAZY
17212# define LT_DLLAZY_OR_NOW RTLD_LAZY
17213# else
17214# ifdef DL_LAZY
17215# define LT_DLLAZY_OR_NOW DL_LAZY
17216# else
17217# ifdef RTLD_NOW
17218# define LT_DLLAZY_OR_NOW RTLD_NOW
17219# else
17220# ifdef DL_NOW
17221# define LT_DLLAZY_OR_NOW DL_NOW
17222# else
17223# define LT_DLLAZY_OR_NOW 0
17224# endif
17225# endif
17226# endif
17227# endif
17228#endif
17229
cristy0c60a692010-11-04 01:09:47 +000017230/* When -fvisbility=hidden is used, assume the code has been annotated
17231 correspondingly for the symbols needed. */
17232#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017233int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017234#endif
17235
cristyda16f162011-02-19 23:52:17 +000017236int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017237int main ()
17238{
17239 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17240 int status = $lt_dlunknown;
17241
17242 if (self)
17243 {
17244 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017245 else
17246 {
17247 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17248 else puts (dlerror ());
17249 }
cristy73bd4a52010-10-05 11:24:23 +000017250 /* dlclose (self); */
17251 }
17252 else
17253 puts (dlerror ());
17254
17255 return status;
17256}
17257_LT_EOF
17258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17259 (eval $ac_link) 2>&5
17260 ac_status=$?
17261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17262 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17263 (./conftest; exit; ) >&5 2>/dev/null
17264 lt_status=$?
17265 case x$lt_status in
17266 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17267 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17268 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17269 esac
17270 else :
17271 # compilation failed
17272 lt_cv_dlopen_self=no
17273 fi
17274fi
17275rm -fr conftest*
17276
17277
17278fi
17279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17280$as_echo "$lt_cv_dlopen_self" >&6; }
17281
17282 if test "x$lt_cv_dlopen_self" = xyes; then
17283 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17285$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017286if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017287 $as_echo_n "(cached) " >&6
17288else
17289 if test "$cross_compiling" = yes; then :
17290 lt_cv_dlopen_self_static=cross
17291else
17292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17293 lt_status=$lt_dlunknown
17294 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017295#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017296#include "confdefs.h"
17297
17298#if HAVE_DLFCN_H
17299#include <dlfcn.h>
17300#endif
17301
17302#include <stdio.h>
17303
17304#ifdef RTLD_GLOBAL
17305# define LT_DLGLOBAL RTLD_GLOBAL
17306#else
17307# ifdef DL_GLOBAL
17308# define LT_DLGLOBAL DL_GLOBAL
17309# else
17310# define LT_DLGLOBAL 0
17311# endif
17312#endif
17313
17314/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17315 find out it does not work in some platform. */
17316#ifndef LT_DLLAZY_OR_NOW
17317# ifdef RTLD_LAZY
17318# define LT_DLLAZY_OR_NOW RTLD_LAZY
17319# else
17320# ifdef DL_LAZY
17321# define LT_DLLAZY_OR_NOW DL_LAZY
17322# else
17323# ifdef RTLD_NOW
17324# define LT_DLLAZY_OR_NOW RTLD_NOW
17325# else
17326# ifdef DL_NOW
17327# define LT_DLLAZY_OR_NOW DL_NOW
17328# else
17329# define LT_DLLAZY_OR_NOW 0
17330# endif
17331# endif
17332# endif
17333# endif
17334#endif
17335
cristy0c60a692010-11-04 01:09:47 +000017336/* When -fvisbility=hidden is used, assume the code has been annotated
17337 correspondingly for the symbols needed. */
17338#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017339int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017340#endif
17341
cristyda16f162011-02-19 23:52:17 +000017342int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017343int main ()
17344{
17345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17346 int status = $lt_dlunknown;
17347
17348 if (self)
17349 {
17350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017351 else
17352 {
17353 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17354 else puts (dlerror ());
17355 }
cristy73bd4a52010-10-05 11:24:23 +000017356 /* dlclose (self); */
17357 }
17358 else
17359 puts (dlerror ());
17360
17361 return status;
17362}
17363_LT_EOF
17364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17365 (eval $ac_link) 2>&5
17366 ac_status=$?
17367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17368 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17369 (./conftest; exit; ) >&5 2>/dev/null
17370 lt_status=$?
17371 case x$lt_status in
17372 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17373 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17374 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17375 esac
17376 else :
17377 # compilation failed
17378 lt_cv_dlopen_self_static=no
17379 fi
17380fi
17381rm -fr conftest*
17382
17383
17384fi
17385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17386$as_echo "$lt_cv_dlopen_self_static" >&6; }
17387 fi
17388
17389 CPPFLAGS="$save_CPPFLAGS"
17390 LDFLAGS="$save_LDFLAGS"
17391 LIBS="$save_LIBS"
17392 ;;
17393 esac
17394
17395 case $lt_cv_dlopen_self in
17396 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17397 *) enable_dlopen_self=unknown ;;
17398 esac
17399
17400 case $lt_cv_dlopen_self_static in
17401 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17402 *) enable_dlopen_self_static=unknown ;;
17403 esac
17404fi
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422striplib=
17423old_striplib=
17424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17425$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17426if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17427 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17428 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17430$as_echo "yes" >&6; }
17431else
17432# FIXME - insert some real tests, host_os isn't really good enough
17433 case $host_os in
17434 darwin*)
17435 if test -n "$STRIP" ; then
17436 striplib="$STRIP -x"
17437 old_striplib="$STRIP -S"
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17439$as_echo "yes" >&6; }
17440 else
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17442$as_echo "no" >&6; }
17443 fi
17444 ;;
17445 *)
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17447$as_echo "no" >&6; }
17448 ;;
17449 esac
17450fi
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463 # Report which library types will actually be built
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17465$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17467$as_echo "$can_build_shared" >&6; }
17468
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17470$as_echo_n "checking whether to build shared libraries... " >&6; }
17471 test "$can_build_shared" = "no" && enable_shared=no
17472
17473 # On AIX, shared libraries and static libraries use the same namespace, and
17474 # are all built from PIC.
17475 case $host_os in
17476 aix3*)
17477 test "$enable_shared" = yes && enable_static=no
17478 if test -n "$RANLIB"; then
17479 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17480 postinstall_cmds='$RANLIB $lib'
17481 fi
17482 ;;
17483
17484 aix[4-9]*)
17485 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17486 test "$enable_shared" = yes && enable_static=no
17487 fi
17488 ;;
17489 esac
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17491$as_echo "$enable_shared" >&6; }
17492
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17494$as_echo_n "checking whether to build static libraries... " >&6; }
17495 # Make sure either enable_shared or enable_static is yes.
17496 test "$enable_shared" = yes || enable_static=yes
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17498$as_echo "$enable_static" >&6; }
17499
17500
17501
17502
17503fi
17504ac_ext=c
17505ac_cpp='$CPP $CPPFLAGS'
17506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17508ac_compiler_gnu=$ac_cv_c_compiler_gnu
17509
17510CC="$lt_save_CC"
17511
cristy0c60a692010-11-04 01:09:47 +000017512 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17513 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17514 (test "X$CXX" != "Xg++"))) ; then
17515 ac_ext=cpp
17516ac_cpp='$CXXCPP $CPPFLAGS'
17517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17521$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17522if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017523 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017524 $as_echo_n "(cached) " >&6
17525else
17526 # Double quotes because CXXCPP needs to be expanded
17527 for CXXCPP in "$CXX -E" "/lib/cpp"
17528 do
17529 ac_preproc_ok=false
17530for ac_cxx_preproc_warn_flag in '' yes
17531do
17532 # Use a header file that comes with gcc, so configuring glibc
17533 # with a fresh cross-compiler works.
17534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17535 # <limits.h> exists even on freestanding compilers.
17536 # On the NeXT, cc -E runs the code through the compiler's parser,
17537 # not just through cpp. "Syntax error" is here to catch this case.
17538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539/* end confdefs.h. */
17540#ifdef __STDC__
17541# include <limits.h>
17542#else
17543# include <assert.h>
17544#endif
17545 Syntax error
17546_ACEOF
17547if ac_fn_cxx_try_cpp "$LINENO"; then :
17548
17549else
17550 # Broken: fails on valid input.
17551continue
17552fi
cristyda16f162011-02-19 23:52:17 +000017553rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017554
17555 # OK, works on sane cases. Now check whether nonexistent headers
17556 # can be detected and how.
17557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17558/* end confdefs.h. */
17559#include <ac_nonexistent.h>
17560_ACEOF
17561if ac_fn_cxx_try_cpp "$LINENO"; then :
17562 # Broken: success on invalid input.
17563continue
17564else
17565 # Passes both tests.
17566ac_preproc_ok=:
17567break
17568fi
cristyda16f162011-02-19 23:52:17 +000017569rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017570
17571done
17572# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017573rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017574if $ac_preproc_ok; then :
17575 break
17576fi
17577
17578 done
17579 ac_cv_prog_CXXCPP=$CXXCPP
17580
17581fi
17582 CXXCPP=$ac_cv_prog_CXXCPP
17583else
17584 ac_cv_prog_CXXCPP=$CXXCPP
17585fi
17586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17587$as_echo "$CXXCPP" >&6; }
17588ac_preproc_ok=false
17589for ac_cxx_preproc_warn_flag in '' yes
17590do
17591 # Use a header file that comes with gcc, so configuring glibc
17592 # with a fresh cross-compiler works.
17593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17594 # <limits.h> exists even on freestanding compilers.
17595 # On the NeXT, cc -E runs the code through the compiler's parser,
17596 # not just through cpp. "Syntax error" is here to catch this case.
17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17598/* end confdefs.h. */
17599#ifdef __STDC__
17600# include <limits.h>
17601#else
17602# include <assert.h>
17603#endif
17604 Syntax error
17605_ACEOF
17606if ac_fn_cxx_try_cpp "$LINENO"; then :
17607
17608else
17609 # Broken: fails on valid input.
17610continue
17611fi
cristyda16f162011-02-19 23:52:17 +000017612rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017613
17614 # OK, works on sane cases. Now check whether nonexistent headers
17615 # can be detected and how.
17616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617/* end confdefs.h. */
17618#include <ac_nonexistent.h>
17619_ACEOF
17620if ac_fn_cxx_try_cpp "$LINENO"; then :
17621 # Broken: success on invalid input.
17622continue
17623else
17624 # Passes both tests.
17625ac_preproc_ok=:
17626break
17627fi
cristyda16f162011-02-19 23:52:17 +000017628rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017629
17630done
17631# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017632rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017633if $ac_preproc_ok; then :
17634
17635else
17636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17638as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17639See \`config.log' for more details" "$LINENO" 5; }
17640fi
17641
17642ac_ext=c
17643ac_cpp='$CPP $CPPFLAGS'
17644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17646ac_compiler_gnu=$ac_cv_c_compiler_gnu
17647
17648else
17649 _lt_caught_CXX_error=yes
17650fi
cristy73bd4a52010-10-05 11:24:23 +000017651
17652ac_ext=cpp
17653ac_cpp='$CXXCPP $CPPFLAGS'
17654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17657
17658archive_cmds_need_lc_CXX=no
17659allow_undefined_flag_CXX=
17660always_export_symbols_CXX=no
17661archive_expsym_cmds_CXX=
17662compiler_needs_object_CXX=no
17663export_dynamic_flag_spec_CXX=
17664hardcode_direct_CXX=no
17665hardcode_direct_absolute_CXX=no
17666hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017667hardcode_libdir_separator_CXX=
17668hardcode_minus_L_CXX=no
17669hardcode_shlibpath_var_CXX=unsupported
17670hardcode_automatic_CXX=no
17671inherit_rpath_CXX=no
17672module_cmds_CXX=
17673module_expsym_cmds_CXX=
17674link_all_deplibs_CXX=unknown
17675old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017676reload_flag_CXX=$reload_flag
17677reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017678no_undefined_flag_CXX=
17679whole_archive_flag_spec_CXX=
17680enable_shared_with_static_runtimes_CXX=no
17681
17682# Source file extension for C++ test sources.
17683ac_ext=cpp
17684
17685# Object file extension for compiled C++ test sources.
17686objext=o
17687objext_CXX=$objext
17688
17689# No sense in running all these tests if we already determined that
17690# the CXX compiler isn't working. Some variables (like enable_shared)
17691# are currently assumed to apply to all compilers on this platform,
17692# and will be corrupted by setting them based on a non-working compiler.
17693if test "$_lt_caught_CXX_error" != yes; then
17694 # Code to be used in simple compile tests
17695 lt_simple_compile_test_code="int some_variable = 0;"
17696
17697 # Code to be used in simple link tests
17698 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17699
17700 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17701
17702
17703
17704
17705
17706
17707# If no C compiler was specified, use CC.
17708LTCC=${LTCC-"$CC"}
17709
17710# If no C compiler flags were specified, use CFLAGS.
17711LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17712
17713# Allow CC to be a program name with arguments.
17714compiler=$CC
17715
17716
17717 # save warnings/boilerplate of simple test code
17718 ac_outfile=conftest.$ac_objext
17719echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17720eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17721_lt_compiler_boilerplate=`cat conftest.err`
17722$RM conftest*
17723
17724 ac_outfile=conftest.$ac_objext
17725echo "$lt_simple_link_test_code" >conftest.$ac_ext
17726eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17727_lt_linker_boilerplate=`cat conftest.err`
17728$RM -r conftest*
17729
17730
17731 # Allow CC to be a program name with arguments.
17732 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017733 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017734 lt_save_LD=$LD
17735 lt_save_GCC=$GCC
17736 GCC=$GXX
17737 lt_save_with_gnu_ld=$with_gnu_ld
17738 lt_save_path_LD=$lt_cv_path_LD
17739 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17740 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17741 else
17742 $as_unset lt_cv_prog_gnu_ld
17743 fi
17744 if test -n "${lt_cv_path_LDCXX+set}"; then
17745 lt_cv_path_LD=$lt_cv_path_LDCXX
17746 else
17747 $as_unset lt_cv_path_LD
17748 fi
17749 test -z "${LDCXX+set}" || LD=$LDCXX
17750 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017751 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017752 compiler=$CC
17753 compiler_CXX=$CC
17754 for cc_temp in $compiler""; do
17755 case $cc_temp in
17756 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17757 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17758 \-*) ;;
17759 *) break;;
17760 esac
17761done
cristy0c60a692010-11-04 01:09:47 +000017762cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017763
17764
17765 if test -n "$compiler"; then
17766 # We don't want -fno-exception when compiling C++ code, so set the
17767 # no_builtin_flag separately
17768 if test "$GXX" = yes; then
17769 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17770 else
17771 lt_prog_compiler_no_builtin_flag_CXX=
17772 fi
17773
17774 if test "$GXX" = yes; then
17775 # Set up default GNU C++ configuration
17776
17777
17778
17779# Check whether --with-gnu-ld was given.
17780if test "${with_gnu_ld+set}" = set; then :
17781 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17782else
17783 with_gnu_ld=no
17784fi
17785
17786ac_prog=ld
17787if test "$GCC" = yes; then
17788 # Check if gcc -print-prog-name=ld gives a path.
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17790$as_echo_n "checking for ld used by $CC... " >&6; }
17791 case $host in
17792 *-*-mingw*)
17793 # gcc leaves a trailing carriage return which upsets mingw
17794 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17795 *)
17796 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17797 esac
17798 case $ac_prog in
17799 # Accept absolute paths.
17800 [\\/]* | ?:[\\/]*)
17801 re_direlt='/[^/][^/]*/\.\./'
17802 # Canonicalize the pathname of ld
17803 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17804 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17805 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17806 done
17807 test -z "$LD" && LD="$ac_prog"
17808 ;;
17809 "")
17810 # If it fails, then pretend we aren't using GCC.
17811 ac_prog=ld
17812 ;;
17813 *)
17814 # If it is relative, then search for the first ld in PATH.
17815 with_gnu_ld=unknown
17816 ;;
17817 esac
17818elif test "$with_gnu_ld" = yes; then
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17820$as_echo_n "checking for GNU ld... " >&6; }
17821else
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17823$as_echo_n "checking for non-GNU ld... " >&6; }
17824fi
cristyda16f162011-02-19 23:52:17 +000017825if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017826 $as_echo_n "(cached) " >&6
17827else
17828 if test -z "$LD"; then
17829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17830 for ac_dir in $PATH; do
17831 IFS="$lt_save_ifs"
17832 test -z "$ac_dir" && ac_dir=.
17833 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17834 lt_cv_path_LD="$ac_dir/$ac_prog"
17835 # Check to see if the program is GNU ld. I'd rather use --version,
17836 # but apparently some variants of GNU ld only accept -v.
17837 # Break only if it was the GNU/non-GNU ld that we prefer.
17838 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17839 *GNU* | *'with BFD'*)
17840 test "$with_gnu_ld" != no && break
17841 ;;
17842 *)
17843 test "$with_gnu_ld" != yes && break
17844 ;;
17845 esac
17846 fi
17847 done
17848 IFS="$lt_save_ifs"
17849else
17850 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17851fi
17852fi
17853
17854LD="$lt_cv_path_LD"
17855if test -n "$LD"; then
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17857$as_echo "$LD" >&6; }
17858else
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17860$as_echo "no" >&6; }
17861fi
cristy98dddb52010-11-04 00:30:15 +000017862test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17864$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017865if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017866 $as_echo_n "(cached) " >&6
17867else
17868 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17869case `$LD -v 2>&1 </dev/null` in
17870*GNU* | *'with BFD'*)
17871 lt_cv_prog_gnu_ld=yes
17872 ;;
17873*)
17874 lt_cv_prog_gnu_ld=no
17875 ;;
17876esac
17877fi
17878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17879$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17880with_gnu_ld=$lt_cv_prog_gnu_ld
17881
17882
17883
17884
17885
17886
17887
17888 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17889 # archiving commands below assume that GNU ld is being used.
17890 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017891 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17892 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 +000017893
17894 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17895 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17896
17897 # If archive_cmds runs LD, not CC, wlarc should be empty
17898 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17899 # investigate it a little bit more. (MM)
17900 wlarc='${wl}'
17901
17902 # ancient GNU ld didn't support --whole-archive et. al.
17903 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17904 $GREP 'no-whole-archive' > /dev/null; then
17905 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17906 else
17907 whole_archive_flag_spec_CXX=
17908 fi
17909 else
17910 with_gnu_ld=no
17911 wlarc=
17912
17913 # A generic and very simple default shared library creation
17914 # command for GNU C++ for the case where it uses the native
17915 # linker, instead of GNU ld. If possible, this setting should
17916 # overridden to take advantage of the native linker features on
17917 # the platform it is being used on.
17918 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17919 fi
17920
17921 # Commands to make compiler produce verbose output that lists
17922 # what "hidden" libraries, object files and flags are used when
17923 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017924 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017925
17926 else
17927 GXX=no
17928 with_gnu_ld=no
17929 wlarc=
17930 fi
17931
17932 # PORTME: fill in a description of your system's C++ link characteristics
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17934$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17935 ld_shlibs_CXX=yes
17936 case $host_os in
17937 aix3*)
17938 # FIXME: insert proper C++ library support
17939 ld_shlibs_CXX=no
17940 ;;
17941 aix[4-9]*)
17942 if test "$host_cpu" = ia64; then
17943 # On IA64, the linker does run time linking by default, so we don't
17944 # have to do anything special.
17945 aix_use_runtimelinking=no
17946 exp_sym_flag='-Bexport'
17947 no_entry_flag=""
17948 else
17949 aix_use_runtimelinking=no
17950
17951 # Test if we are trying to use run time linking or normal
17952 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17953 # need to do runtime linking.
17954 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17955 for ld_flag in $LDFLAGS; do
17956 case $ld_flag in
17957 *-brtl*)
17958 aix_use_runtimelinking=yes
17959 break
17960 ;;
17961 esac
17962 done
17963 ;;
17964 esac
17965
17966 exp_sym_flag='-bexport'
17967 no_entry_flag='-bnoentry'
17968 fi
17969
17970 # When large executables or shared objects are built, AIX ld can
17971 # have problems creating the table of contents. If linking a library
17972 # or program results in "error TOC overflow" add -mminimal-toc to
17973 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17974 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17975
17976 archive_cmds_CXX=''
17977 hardcode_direct_CXX=yes
17978 hardcode_direct_absolute_CXX=yes
17979 hardcode_libdir_separator_CXX=':'
17980 link_all_deplibs_CXX=yes
17981 file_list_spec_CXX='${wl}-f,'
17982
17983 if test "$GXX" = yes; then
17984 case $host_os in aix4.[012]|aix4.[012].*)
17985 # We only want to do this on AIX 4.2 and lower, the check
17986 # below for broken collect2 doesn't work under 4.3+
17987 collect2name=`${CC} -print-prog-name=collect2`
17988 if test -f "$collect2name" &&
17989 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17990 then
17991 # We have reworked collect2
17992 :
17993 else
17994 # We have old collect2
17995 hardcode_direct_CXX=unsupported
17996 # It fails to find uninstalled libraries when the uninstalled
17997 # path is not listed in the libpath. Setting hardcode_minus_L
17998 # to unsupported forces relinking
17999 hardcode_minus_L_CXX=yes
18000 hardcode_libdir_flag_spec_CXX='-L$libdir'
18001 hardcode_libdir_separator_CXX=
18002 fi
18003 esac
18004 shared_flag='-shared'
18005 if test "$aix_use_runtimelinking" = yes; then
18006 shared_flag="$shared_flag "'${wl}-G'
18007 fi
18008 else
18009 # not using gcc
18010 if test "$host_cpu" = ia64; then
18011 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18012 # chokes on -Wl,-G. The following line is correct:
18013 shared_flag='-G'
18014 else
18015 if test "$aix_use_runtimelinking" = yes; then
18016 shared_flag='${wl}-G'
18017 else
18018 shared_flag='${wl}-bM:SRE'
18019 fi
18020 fi
18021 fi
18022
18023 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18024 # It seems that -bexpall does not export symbols beginning with
18025 # underscore (_), so it is better to generate a list of symbols to
18026 # export.
18027 always_export_symbols_CXX=yes
18028 if test "$aix_use_runtimelinking" = yes; then
18029 # Warning - without using the other runtime loading flags (-brtl),
18030 # -berok will link without error, but may produce a broken library.
18031 allow_undefined_flag_CXX='-berok'
18032 # Determine the default libpath from the value encoded in an empty
18033 # executable.
cristyda16f162011-02-19 23:52:17 +000018034 if test "${lt_cv_aix_libpath+set}" = set; then
18035 aix_libpath=$lt_cv_aix_libpath
18036else
18037 if ${lt_cv_aix_libpath__CXX+:} false; then :
18038 $as_echo_n "(cached) " >&6
18039else
18040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018041/* end confdefs.h. */
18042
18043int
18044main ()
18045{
18046
18047 ;
18048 return 0;
18049}
18050_ACEOF
18051if ac_fn_cxx_try_link "$LINENO"; then :
18052
cristyda16f162011-02-19 23:52:17 +000018053 lt_aix_libpath_sed='
18054 /Import File Strings/,/^$/ {
18055 /^0/ {
18056 s/^0 *\([^ ]*\) *$/\1/
18057 p
18058 }
18059 }'
18060 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18061 # Check for a 64-bit object if we didn't find anything.
18062 if test -z "$lt_cv_aix_libpath__CXX"; then
18063 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18064 fi
cristy73bd4a52010-10-05 11:24:23 +000018065fi
18066rm -f core conftest.err conftest.$ac_objext \
18067 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018068 if test -z "$lt_cv_aix_libpath__CXX"; then
18069 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18070 fi
18071
18072fi
18073
18074 aix_libpath=$lt_cv_aix_libpath__CXX
18075fi
cristy73bd4a52010-10-05 11:24:23 +000018076
18077 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18078
cristy0c60a692010-11-04 01:09:47 +000018079 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 +000018080 else
18081 if test "$host_cpu" = ia64; then
18082 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18083 allow_undefined_flag_CXX="-z nodefs"
18084 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"
18085 else
18086 # Determine the default libpath from the value encoded in an
18087 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018088 if test "${lt_cv_aix_libpath+set}" = set; then
18089 aix_libpath=$lt_cv_aix_libpath
18090else
18091 if ${lt_cv_aix_libpath__CXX+:} false; then :
18092 $as_echo_n "(cached) " >&6
18093else
18094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018095/* end confdefs.h. */
18096
18097int
18098main ()
18099{
18100
18101 ;
18102 return 0;
18103}
18104_ACEOF
18105if ac_fn_cxx_try_link "$LINENO"; then :
18106
cristyda16f162011-02-19 23:52:17 +000018107 lt_aix_libpath_sed='
18108 /Import File Strings/,/^$/ {
18109 /^0/ {
18110 s/^0 *\([^ ]*\) *$/\1/
18111 p
18112 }
18113 }'
18114 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18115 # Check for a 64-bit object if we didn't find anything.
18116 if test -z "$lt_cv_aix_libpath__CXX"; then
18117 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18118 fi
cristy73bd4a52010-10-05 11:24:23 +000018119fi
18120rm -f core conftest.err conftest.$ac_objext \
18121 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018122 if test -z "$lt_cv_aix_libpath__CXX"; then
18123 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18124 fi
18125
18126fi
18127
18128 aix_libpath=$lt_cv_aix_libpath__CXX
18129fi
cristy73bd4a52010-10-05 11:24:23 +000018130
18131 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18132 # Warning - without using the other run time loading flags,
18133 # -berok will link without error, but may produce a broken library.
18134 no_undefined_flag_CXX=' ${wl}-bernotok'
18135 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018136 if test "$with_gnu_ld" = yes; then
18137 # We only use this code for GNU lds that support --whole-archive.
18138 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18139 else
18140 # Exported symbols can be pulled into shared objects from archives
18141 whole_archive_flag_spec_CXX='$convenience'
18142 fi
cristy73bd4a52010-10-05 11:24:23 +000018143 archive_cmds_need_lc_CXX=yes
18144 # This is similar to how AIX traditionally builds its shared
18145 # libraries.
18146 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'
18147 fi
18148 fi
18149 ;;
18150
18151 beos*)
18152 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18153 allow_undefined_flag_CXX=unsupported
18154 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18155 # support --undefined. This deserves some investigation. FIXME
18156 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18157 else
18158 ld_shlibs_CXX=no
18159 fi
18160 ;;
18161
18162 chorus*)
18163 case $cc_basename in
18164 *)
18165 # FIXME: insert proper C++ library support
18166 ld_shlibs_CXX=no
18167 ;;
18168 esac
18169 ;;
18170
18171 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018172 case $GXX,$cc_basename in
18173 ,cl* | no,cl*)
18174 # Native MSVC
18175 # hardcode_libdir_flag_spec is actually meaningless, as there is
18176 # no search path for DLLs.
18177 hardcode_libdir_flag_spec_CXX=' '
18178 allow_undefined_flag_CXX=unsupported
18179 always_export_symbols_CXX=yes
18180 file_list_spec_CXX='@'
18181 # Tell ltmain to make .lib files, not .a files.
18182 libext=lib
18183 # Tell ltmain to make .dll files, not .so files.
18184 shrext_cmds=".dll"
18185 # FIXME: Setting linknames here is a bad hack.
18186 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18187 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18188 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18189 else
18190 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18191 fi~
18192 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18193 linknames='
18194 # The linker will not automatically build a static lib if we build a DLL.
18195 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18196 enable_shared_with_static_runtimes_CXX=yes
18197 # Don't use ranlib
18198 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18199 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18200 lt_tool_outputfile="@TOOL_OUTPUT@"~
18201 case $lt_outputfile in
18202 *.exe|*.EXE) ;;
18203 *)
18204 lt_outputfile="$lt_outputfile.exe"
18205 lt_tool_outputfile="$lt_tool_outputfile.exe"
18206 ;;
18207 esac~
18208 func_to_tool_file "$lt_outputfile"~
18209 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18210 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18211 $RM "$lt_outputfile.manifest";
18212 fi'
18213 ;;
18214 *)
18215 # g++
18216 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18217 # as there is no search path for DLLs.
18218 hardcode_libdir_flag_spec_CXX='-L$libdir'
18219 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18220 allow_undefined_flag_CXX=unsupported
18221 always_export_symbols_CXX=no
18222 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018223
cristyda16f162011-02-19 23:52:17 +000018224 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18225 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'
18226 # If the export-symbols file already is a .def file (1st line
18227 # is EXPORTS), use it as is; otherwise, prepend...
18228 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18229 cp $export_symbols $output_objdir/$soname.def;
18230 else
18231 echo EXPORTS > $output_objdir/$soname.def;
18232 cat $export_symbols >> $output_objdir/$soname.def;
18233 fi~
18234 $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'
18235 else
18236 ld_shlibs_CXX=no
18237 fi
18238 ;;
18239 esac
18240 ;;
cristy73bd4a52010-10-05 11:24:23 +000018241 darwin* | rhapsody*)
18242
18243
18244 archive_cmds_need_lc_CXX=no
18245 hardcode_direct_CXX=no
18246 hardcode_automatic_CXX=yes
18247 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018248 if test "$lt_cv_ld_force_load" = "yes"; then
18249 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 +000018250
cristy0c60a692010-11-04 01:09:47 +000018251 else
18252 whole_archive_flag_spec_CXX=''
18253 fi
cristy73bd4a52010-10-05 11:24:23 +000018254 link_all_deplibs_CXX=yes
18255 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18256 case $cc_basename in
18257 ifort*) _lt_dar_can_shared=yes ;;
18258 *) _lt_dar_can_shared=$GCC ;;
18259 esac
18260 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018261 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018262 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}"
18263 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18264 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}"
18265 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}"
18266 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18267 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}"
18268 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}"
18269 fi
18270
18271 else
18272 ld_shlibs_CXX=no
18273 fi
18274
18275 ;;
18276
18277 dgux*)
18278 case $cc_basename in
18279 ec++*)
18280 # FIXME: insert proper C++ library support
18281 ld_shlibs_CXX=no
18282 ;;
18283 ghcx*)
18284 # Green Hills C++ Compiler
18285 # FIXME: insert proper C++ library support
18286 ld_shlibs_CXX=no
18287 ;;
18288 *)
18289 # FIXME: insert proper C++ library support
18290 ld_shlibs_CXX=no
18291 ;;
18292 esac
18293 ;;
18294
cristy99bd5232011-12-07 14:38:20 +000018295 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018296 # C++ shared libraries reported to be fairly broken before
18297 # switch to ELF
18298 ld_shlibs_CXX=no
18299 ;;
18300
18301 freebsd-elf*)
18302 archive_cmds_need_lc_CXX=no
18303 ;;
18304
18305 freebsd* | dragonfly*)
18306 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18307 # conventions
18308 ld_shlibs_CXX=yes
18309 ;;
18310
18311 gnu*)
18312 ;;
18313
cristy0c60a692010-11-04 01:09:47 +000018314 haiku*)
18315 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18316 link_all_deplibs_CXX=yes
18317 ;;
18318
cristy73bd4a52010-10-05 11:24:23 +000018319 hpux9*)
18320 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18321 hardcode_libdir_separator_CXX=:
18322 export_dynamic_flag_spec_CXX='${wl}-E'
18323 hardcode_direct_CXX=yes
18324 hardcode_minus_L_CXX=yes # Not in the search PATH,
18325 # but as the default
18326 # location of the library.
18327
18328 case $cc_basename in
18329 CC*)
18330 # FIXME: insert proper C++ library support
18331 ld_shlibs_CXX=no
18332 ;;
18333 aCC*)
18334 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'
18335 # Commands to make compiler produce verbose output that lists
18336 # what "hidden" libraries, object files and flags are used when
18337 # linking a shared library.
18338 #
18339 # There doesn't appear to be a way to prevent this compiler from
18340 # explicitly linking system object files so we need to strip them
18341 # from the output so that they don't get included in the library
18342 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018343 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 +000018344 ;;
18345 *)
18346 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018347 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 +000018348 else
18349 # FIXME: insert proper C++ library support
18350 ld_shlibs_CXX=no
18351 fi
18352 ;;
18353 esac
18354 ;;
18355
18356 hpux10*|hpux11*)
18357 if test $with_gnu_ld = no; then
18358 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18359 hardcode_libdir_separator_CXX=:
18360
18361 case $host_cpu in
18362 hppa*64*|ia64*)
18363 ;;
18364 *)
18365 export_dynamic_flag_spec_CXX='${wl}-E'
18366 ;;
18367 esac
18368 fi
18369 case $host_cpu in
18370 hppa*64*|ia64*)
18371 hardcode_direct_CXX=no
18372 hardcode_shlibpath_var_CXX=no
18373 ;;
18374 *)
18375 hardcode_direct_CXX=yes
18376 hardcode_direct_absolute_CXX=yes
18377 hardcode_minus_L_CXX=yes # Not in the search PATH,
18378 # but as the default
18379 # location of the library.
18380 ;;
18381 esac
18382
18383 case $cc_basename in
18384 CC*)
18385 # FIXME: insert proper C++ library support
18386 ld_shlibs_CXX=no
18387 ;;
18388 aCC*)
18389 case $host_cpu in
18390 hppa*64*)
18391 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18392 ;;
18393 ia64*)
18394 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18395 ;;
18396 *)
18397 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18398 ;;
18399 esac
18400 # Commands to make compiler produce verbose output that lists
18401 # what "hidden" libraries, object files and flags are used when
18402 # linking a shared library.
18403 #
18404 # There doesn't appear to be a way to prevent this compiler from
18405 # explicitly linking system object files so we need to strip them
18406 # from the output so that they don't get included in the library
18407 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018408 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 +000018409 ;;
18410 *)
18411 if test "$GXX" = yes; then
18412 if test $with_gnu_ld = no; then
18413 case $host_cpu in
18414 hppa*64*)
18415 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18416 ;;
18417 ia64*)
cristyda16f162011-02-19 23:52:17 +000018418 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 +000018419 ;;
18420 *)
cristyda16f162011-02-19 23:52:17 +000018421 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 +000018422 ;;
18423 esac
18424 fi
18425 else
18426 # FIXME: insert proper C++ library support
18427 ld_shlibs_CXX=no
18428 fi
18429 ;;
18430 esac
18431 ;;
18432
18433 interix[3-9]*)
18434 hardcode_direct_CXX=no
18435 hardcode_shlibpath_var_CXX=no
18436 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18437 export_dynamic_flag_spec_CXX='${wl}-E'
18438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18439 # Instead, shared libraries are loaded at an image base (0x10000000 by
18440 # default) and relocated if they conflict, which is a slow very memory
18441 # consuming and fragmenting process. To avoid this, we pick a random,
18442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18443 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18444 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'
18445 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'
18446 ;;
18447 irix5* | irix6*)
18448 case $cc_basename in
18449 CC*)
18450 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018451 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 +000018452
18453 # Archives containing C++ object files must be created using
18454 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18455 # necessary to make sure instantiated templates are included
18456 # in the archive.
18457 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18458 ;;
18459 *)
18460 if test "$GXX" = yes; then
18461 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018462 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 +000018463 else
cristyda16f162011-02-19 23:52:17 +000018464 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 +000018465 fi
18466 fi
18467 link_all_deplibs_CXX=yes
18468 ;;
18469 esac
18470 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18471 hardcode_libdir_separator_CXX=:
18472 inherit_rpath_CXX=yes
18473 ;;
18474
cristy0c60a692010-11-04 01:09:47 +000018475 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018476 case $cc_basename in
18477 KCC*)
18478 # Kuck and Associates, Inc. (KAI) C++ Compiler
18479
18480 # KCC will only create a shared library if the output file
18481 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18482 # to its proper name (with version) after linking.
18483 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'
18484 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'
18485 # Commands to make compiler produce verbose output that lists
18486 # what "hidden" libraries, object files and flags are used when
18487 # linking a shared library.
18488 #
18489 # There doesn't appear to be a way to prevent this compiler from
18490 # explicitly linking system object files so we need to strip them
18491 # from the output so that they don't get included in the library
18492 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018493 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 +000018494
18495 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18496 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18497
18498 # Archives containing C++ object files must be created using
18499 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18500 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18501 ;;
18502 icpc* | ecpc* )
18503 # Intel C++
18504 with_gnu_ld=yes
18505 # version 8.0 and above of icpc choke on multiply defined symbols
18506 # if we add $predep_objects and $postdep_objects, however 7.1 and
18507 # earlier do not add the objects themselves.
18508 case `$CC -V 2>&1` in
18509 *"Version 7."*)
18510 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18511 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'
18512 ;;
18513 *) # Version 8.0 or newer
18514 tmp_idyn=
18515 case $host_cpu in
18516 ia64*) tmp_idyn=' -i_dynamic';;
18517 esac
18518 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18519 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'
18520 ;;
18521 esac
18522 archive_cmds_need_lc_CXX=no
18523 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18524 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18525 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18526 ;;
18527 pgCC* | pgcpp*)
18528 # Portland Group C++ compiler
18529 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018530 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018531 prelink_cmds_CXX='tpldir=Template.dir~
18532 rm -rf $tpldir~
18533 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018534 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018535 old_archive_cmds_CXX='tpldir=Template.dir~
18536 rm -rf $tpldir~
18537 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018538 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018539 $RANLIB $oldlib'
18540 archive_cmds_CXX='tpldir=Template.dir~
18541 rm -rf $tpldir~
18542 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018543 $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 +000018544 archive_expsym_cmds_CXX='tpldir=Template.dir~
18545 rm -rf $tpldir~
18546 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018547 $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 +000018548 ;;
cristy0c60a692010-11-04 01:09:47 +000018549 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018550 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18551 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'
18552 ;;
18553 esac
18554
18555 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18556 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018557 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 +000018558 ;;
18559 cxx*)
18560 # Compaq C++
18561 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18562 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'
18563
18564 runpath_var=LD_RUN_PATH
18565 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18566 hardcode_libdir_separator_CXX=:
18567
18568 # Commands to make compiler produce verbose output that lists
18569 # what "hidden" libraries, object files and flags are used when
18570 # linking a shared library.
18571 #
18572 # There doesn't appear to be a way to prevent this compiler from
18573 # explicitly linking system object files so we need to strip them
18574 # from the output so that they don't get included in the library
18575 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018576 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 +000018577 ;;
cristy0c60a692010-11-04 01:09:47 +000018578 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018579 # IBM XL 8.0 on PPC, with GNU ld
18580 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18581 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18582 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18583 if test "x$supports_anon_versioning" = xyes; then
18584 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18585 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18586 echo "local: *; };" >> $output_objdir/$libname.ver~
18587 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18588 fi
18589 ;;
18590 *)
18591 case `$CC -V 2>&1 | sed 5q` in
18592 *Sun\ C*)
18593 # Sun C++ 5.9
18594 no_undefined_flag_CXX=' -zdefs'
18595 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18596 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'
18597 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018598 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 +000018599 compiler_needs_object_CXX=yes
18600
18601 # Not sure whether something based on
18602 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18603 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018604 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018605
18606 # Archives containing C++ object files must be created using
18607 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18608 # necessary to make sure instantiated templates are included
18609 # in the archive.
18610 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18611 ;;
18612 esac
18613 ;;
18614 esac
18615 ;;
18616
18617 lynxos*)
18618 # FIXME: insert proper C++ library support
18619 ld_shlibs_CXX=no
18620 ;;
18621
18622 m88k*)
18623 # FIXME: insert proper C++ library support
18624 ld_shlibs_CXX=no
18625 ;;
18626
18627 mvs*)
18628 case $cc_basename in
18629 cxx*)
18630 # FIXME: insert proper C++ library support
18631 ld_shlibs_CXX=no
18632 ;;
18633 *)
18634 # FIXME: insert proper C++ library support
18635 ld_shlibs_CXX=no
18636 ;;
18637 esac
18638 ;;
18639
18640 netbsd*)
18641 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18642 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18643 wlarc=
18644 hardcode_libdir_flag_spec_CXX='-R$libdir'
18645 hardcode_direct_CXX=yes
18646 hardcode_shlibpath_var_CXX=no
18647 fi
18648 # Workaround some broken pre-1.5 toolchains
18649 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18650 ;;
18651
18652 *nto* | *qnx*)
18653 ld_shlibs_CXX=yes
18654 ;;
18655
18656 openbsd2*)
18657 # C++ shared libraries are fairly broken
18658 ld_shlibs_CXX=no
18659 ;;
18660
18661 openbsd*)
18662 if test -f /usr/libexec/ld.so; then
18663 hardcode_direct_CXX=yes
18664 hardcode_shlibpath_var_CXX=no
18665 hardcode_direct_absolute_CXX=yes
18666 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18667 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18668 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18669 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18670 export_dynamic_flag_spec_CXX='${wl}-E'
18671 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18672 fi
cristy0c60a692010-11-04 01:09:47 +000018673 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018674 else
18675 ld_shlibs_CXX=no
18676 fi
18677 ;;
18678
18679 osf3* | osf4* | osf5*)
18680 case $cc_basename in
18681 KCC*)
18682 # Kuck and Associates, Inc. (KAI) C++ Compiler
18683
18684 # KCC will only create a shared library if the output file
18685 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18686 # to its proper name (with version) after linking.
18687 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'
18688
18689 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18690 hardcode_libdir_separator_CXX=:
18691
18692 # Archives containing C++ object files must be created using
18693 # the KAI C++ compiler.
18694 case $host in
18695 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18696 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18697 esac
18698 ;;
18699 RCC*)
18700 # Rational C++ 2.4.1
18701 # FIXME: insert proper C++ library support
18702 ld_shlibs_CXX=no
18703 ;;
18704 cxx*)
18705 case $host in
18706 osf3*)
18707 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018708 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 +000018709 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18710 ;;
18711 *)
18712 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018713 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 +000018714 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18715 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018716 $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 +000018717 $RM $lib.exp'
18718 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18719 ;;
18720 esac
18721
18722 hardcode_libdir_separator_CXX=:
18723
18724 # Commands to make compiler produce verbose output that lists
18725 # what "hidden" libraries, object files and flags are used when
18726 # linking a shared library.
18727 #
18728 # There doesn't appear to be a way to prevent this compiler from
18729 # explicitly linking system object files so we need to strip them
18730 # from the output so that they don't get included in the library
18731 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018732 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 +000018733 ;;
18734 *)
18735 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18736 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18737 case $host in
18738 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018739 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 +000018740 ;;
18741 *)
cristyda16f162011-02-19 23:52:17 +000018742 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 +000018743 ;;
18744 esac
18745
18746 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18747 hardcode_libdir_separator_CXX=:
18748
18749 # Commands to make compiler produce verbose output that lists
18750 # what "hidden" libraries, object files and flags are used when
18751 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018753
18754 else
18755 # FIXME: insert proper C++ library support
18756 ld_shlibs_CXX=no
18757 fi
18758 ;;
18759 esac
18760 ;;
18761
18762 psos*)
18763 # FIXME: insert proper C++ library support
18764 ld_shlibs_CXX=no
18765 ;;
18766
18767 sunos4*)
18768 case $cc_basename in
18769 CC*)
18770 # Sun C++ 4.x
18771 # FIXME: insert proper C++ library support
18772 ld_shlibs_CXX=no
18773 ;;
18774 lcc*)
18775 # Lucid
18776 # FIXME: insert proper C++ library support
18777 ld_shlibs_CXX=no
18778 ;;
18779 *)
18780 # FIXME: insert proper C++ library support
18781 ld_shlibs_CXX=no
18782 ;;
18783 esac
18784 ;;
18785
18786 solaris*)
18787 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018788 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018789 # Sun C++ 4.2, 5.x and Centerline C++
18790 archive_cmds_need_lc_CXX=yes
18791 no_undefined_flag_CXX=' -zdefs'
18792 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18793 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18794 $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'
18795
18796 hardcode_libdir_flag_spec_CXX='-R$libdir'
18797 hardcode_shlibpath_var_CXX=no
18798 case $host_os in
18799 solaris2.[0-5] | solaris2.[0-5].*) ;;
18800 *)
18801 # The compiler driver will combine and reorder linker options,
18802 # but understands `-z linker_flag'.
18803 # Supported since Solaris 2.6 (maybe 2.5.1?)
18804 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18805 ;;
18806 esac
18807 link_all_deplibs_CXX=yes
18808
cristy0c60a692010-11-04 01:09:47 +000018809 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018810
18811 # Archives containing C++ object files must be created using
18812 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18813 # necessary to make sure instantiated templates are included
18814 # in the archive.
18815 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18816 ;;
18817 gcx*)
18818 # Green Hills C++ Compiler
18819 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18820
18821 # The C++ compiler must be used to create the archive.
18822 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18823 ;;
18824 *)
18825 # GNU C++ compiler with Solaris linker
18826 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18827 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18828 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018829 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 +000018830 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 +000018831 $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 +000018832
18833 # Commands to make compiler produce verbose output that lists
18834 # what "hidden" libraries, object files and flags are used when
18835 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018837 else
18838 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18839 # platform.
18840 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18841 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18842 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18843
18844 # Commands to make compiler produce verbose output that lists
18845 # what "hidden" libraries, object files and flags are used when
18846 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018847 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018848 fi
18849
18850 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18851 case $host_os in
18852 solaris2.[0-5] | solaris2.[0-5].*) ;;
18853 *)
18854 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18855 ;;
18856 esac
18857 fi
18858 ;;
18859 esac
18860 ;;
18861
18862 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18863 no_undefined_flag_CXX='${wl}-z,text'
18864 archive_cmds_need_lc_CXX=no
18865 hardcode_shlibpath_var_CXX=no
18866 runpath_var='LD_RUN_PATH'
18867
18868 case $cc_basename in
18869 CC*)
18870 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18871 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18872 ;;
18873 *)
18874 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18875 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18876 ;;
18877 esac
18878 ;;
18879
18880 sysv5* | sco3.2v5* | sco5v6*)
18881 # Note: We can NOT use -z defs as we might desire, because we do not
18882 # link with -lc, and that would cause any symbols used from libc to
18883 # always be unresolved, which means just about no library would
18884 # ever link correctly. If we're not using GNU ld we use -z text
18885 # though, which does catch some bad symbols but isn't as heavy-handed
18886 # as -z defs.
18887 no_undefined_flag_CXX='${wl}-z,text'
18888 allow_undefined_flag_CXX='${wl}-z,nodefs'
18889 archive_cmds_need_lc_CXX=no
18890 hardcode_shlibpath_var_CXX=no
18891 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18892 hardcode_libdir_separator_CXX=':'
18893 link_all_deplibs_CXX=yes
18894 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18895 runpath_var='LD_RUN_PATH'
18896
18897 case $cc_basename in
18898 CC*)
18899 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18900 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 +000018901 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18902 '"$old_archive_cmds_CXX"
18903 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18904 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018905 ;;
18906 *)
18907 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18908 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18909 ;;
18910 esac
18911 ;;
18912
18913 tandem*)
18914 case $cc_basename in
18915 NCC*)
18916 # NonStop-UX NCC 3.20
18917 # FIXME: insert proper C++ library support
18918 ld_shlibs_CXX=no
18919 ;;
18920 *)
18921 # FIXME: insert proper C++ library support
18922 ld_shlibs_CXX=no
18923 ;;
18924 esac
18925 ;;
18926
18927 vxworks*)
18928 # FIXME: insert proper C++ library support
18929 ld_shlibs_CXX=no
18930 ;;
18931
18932 *)
18933 # FIXME: insert proper C++ library support
18934 ld_shlibs_CXX=no
18935 ;;
18936 esac
18937
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18939$as_echo "$ld_shlibs_CXX" >&6; }
18940 test "$ld_shlibs_CXX" = no && can_build_shared=no
18941
18942 GCC_CXX="$GXX"
18943 LD_CXX="$LD"
18944
18945 ## CAVEAT EMPTOR:
18946 ## There is no encapsulation within the following macros, do not change
18947 ## the running order or otherwise move them around unless you know exactly
18948 ## what you are doing...
18949 # Dependencies to place before and after the object being linked:
18950predep_objects_CXX=
18951postdep_objects_CXX=
18952predeps_CXX=
18953postdeps_CXX=
18954compiler_lib_search_path_CXX=
18955
18956cat > conftest.$ac_ext <<_LT_EOF
18957class Foo
18958{
18959public:
18960 Foo (void) { a = 0; }
18961private:
18962 int a;
18963};
18964_LT_EOF
18965
cristyda16f162011-02-19 23:52:17 +000018966
18967_lt_libdeps_save_CFLAGS=$CFLAGS
18968case "$CC $CFLAGS " in #(
18969*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18970*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018971*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018972esac
18973
cristy73bd4a52010-10-05 11:24:23 +000018974if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18975 (eval $ac_compile) 2>&5
18976 ac_status=$?
18977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18978 test $ac_status = 0; }; then
18979 # Parse the compiler output and extract the necessary
18980 # objects, libraries and library flags.
18981
18982 # Sentinel used to keep track of whether or not we are before
18983 # the conftest object file.
18984 pre_test_object_deps_done=no
18985
18986 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018987 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018988
18989 -L* | -R* | -l*)
18990 # Some compilers place space between "-{L,R}" and the path.
18991 # Remove the space.
18992 if test $p = "-L" ||
18993 test $p = "-R"; then
18994 prev=$p
18995 continue
cristy73bd4a52010-10-05 11:24:23 +000018996 fi
18997
cristyda16f162011-02-19 23:52:17 +000018998 # Expand the sysroot to ease extracting the directories later.
18999 if test -z "$prev"; then
19000 case $p in
19001 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19002 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19003 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19004 esac
19005 fi
19006 case $p in
19007 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19008 esac
cristy73bd4a52010-10-05 11:24:23 +000019009 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019010 case ${prev} in
19011 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019012 # Internal compiler library paths should come after those
19013 # provided the user. The postdeps already come after the
19014 # user supplied libs so there is no need to process them.
19015 if test -z "$compiler_lib_search_path_CXX"; then
19016 compiler_lib_search_path_CXX="${prev}${p}"
19017 else
19018 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19019 fi
19020 ;;
19021 # The "-l" case would never come before the object being
19022 # linked, so don't bother handling this case.
19023 esac
19024 else
19025 if test -z "$postdeps_CXX"; then
19026 postdeps_CXX="${prev}${p}"
19027 else
19028 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19029 fi
19030 fi
cristyda16f162011-02-19 23:52:17 +000019031 prev=
cristy73bd4a52010-10-05 11:24:23 +000019032 ;;
19033
cristyda16f162011-02-19 23:52:17 +000019034 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019035 *.$objext)
19036 # This assumes that the test object file only shows up
19037 # once in the compiler output.
19038 if test "$p" = "conftest.$objext"; then
19039 pre_test_object_deps_done=yes
19040 continue
19041 fi
19042
19043 if test "$pre_test_object_deps_done" = no; then
19044 if test -z "$predep_objects_CXX"; then
19045 predep_objects_CXX="$p"
19046 else
19047 predep_objects_CXX="$predep_objects_CXX $p"
19048 fi
19049 else
19050 if test -z "$postdep_objects_CXX"; then
19051 postdep_objects_CXX="$p"
19052 else
19053 postdep_objects_CXX="$postdep_objects_CXX $p"
19054 fi
19055 fi
19056 ;;
19057
19058 *) ;; # Ignore the rest.
19059
19060 esac
19061 done
19062
19063 # Clean up.
19064 rm -f a.out a.exe
19065else
19066 echo "libtool.m4: error: problem compiling CXX test program"
19067fi
19068
19069$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019070CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019071
19072# PORTME: override above test on systems where it is broken
19073case $host_os in
19074interix[3-9]*)
19075 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19076 # hack all around it, let's just trust "g++" to DTRT.
19077 predep_objects_CXX=
19078 postdep_objects_CXX=
19079 postdeps_CXX=
19080 ;;
19081
19082linux*)
19083 case `$CC -V 2>&1 | sed 5q` in
19084 *Sun\ C*)
19085 # Sun C++ 5.9
19086
19087 # The more standards-conforming stlport4 library is
19088 # incompatible with the Cstd library. Avoid specifying
19089 # it if it's in CXXFLAGS. Ignore libCrun as
19090 # -library=stlport4 depends on it.
19091 case " $CXX $CXXFLAGS " in
19092 *" -library=stlport4 "*)
19093 solaris_use_stlport4=yes
19094 ;;
19095 esac
19096
19097 if test "$solaris_use_stlport4" != yes; then
19098 postdeps_CXX='-library=Cstd -library=Crun'
19099 fi
19100 ;;
19101 esac
19102 ;;
19103
19104solaris*)
19105 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019106 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019107 # The more standards-conforming stlport4 library is
19108 # incompatible with the Cstd library. Avoid specifying
19109 # it if it's in CXXFLAGS. Ignore libCrun as
19110 # -library=stlport4 depends on it.
19111 case " $CXX $CXXFLAGS " in
19112 *" -library=stlport4 "*)
19113 solaris_use_stlport4=yes
19114 ;;
19115 esac
19116
19117 # Adding this requires a known-good setup of shared libraries for
19118 # Sun compiler versions before 5.6, else PIC objects from an old
19119 # archive will be linked into the output, leading to subtle bugs.
19120 if test "$solaris_use_stlport4" != yes; then
19121 postdeps_CXX='-library=Cstd -library=Crun'
19122 fi
19123 ;;
19124 esac
19125 ;;
19126esac
19127
19128
19129case " $postdeps_CXX " in
19130*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19131esac
19132 compiler_lib_search_dirs_CXX=
19133if test -n "${compiler_lib_search_path_CXX}"; then
19134 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19135fi
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167 lt_prog_compiler_wl_CXX=
19168lt_prog_compiler_pic_CXX=
19169lt_prog_compiler_static_CXX=
19170
cristy73bd4a52010-10-05 11:24:23 +000019171
19172 # C++ specific cases for pic, static, wl, etc.
19173 if test "$GXX" = yes; then
19174 lt_prog_compiler_wl_CXX='-Wl,'
19175 lt_prog_compiler_static_CXX='-static'
19176
19177 case $host_os in
19178 aix*)
19179 # All AIX code is PIC.
19180 if test "$host_cpu" = ia64; then
19181 # AIX 5 now supports IA64 processor
19182 lt_prog_compiler_static_CXX='-Bstatic'
19183 fi
19184 ;;
19185
19186 amigaos*)
19187 case $host_cpu in
19188 powerpc)
19189 # see comment about AmigaOS4 .so support
19190 lt_prog_compiler_pic_CXX='-fPIC'
19191 ;;
19192 m68k)
19193 # FIXME: we need at least 68020 code to build shared libraries, but
19194 # adding the `-m68020' flag to GCC prevents building anything better,
19195 # like `-m68040'.
19196 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19197 ;;
19198 esac
19199 ;;
19200
19201 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19202 # PIC is the default for these OSes.
19203 ;;
19204 mingw* | cygwin* | os2* | pw32* | cegcc*)
19205 # This hack is so that the source file can tell whether it is being
19206 # built for inclusion in a dll (and should export symbols for example).
19207 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19208 # (--disable-auto-import) libraries
19209 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19210 ;;
19211 darwin* | rhapsody*)
19212 # PIC is the default on this platform
19213 # Common symbols not allowed in MH_DYLIB files
19214 lt_prog_compiler_pic_CXX='-fno-common'
19215 ;;
19216 *djgpp*)
19217 # DJGPP does not support shared libraries at all
19218 lt_prog_compiler_pic_CXX=
19219 ;;
cristy0c60a692010-11-04 01:09:47 +000019220 haiku*)
19221 # PIC is the default for Haiku.
19222 # The "-static" flag exists, but is broken.
19223 lt_prog_compiler_static_CXX=
19224 ;;
cristy73bd4a52010-10-05 11:24:23 +000019225 interix[3-9]*)
19226 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19227 # Instead, we relocate shared libraries at runtime.
19228 ;;
19229 sysv4*MP*)
19230 if test -d /usr/nec; then
19231 lt_prog_compiler_pic_CXX=-Kconform_pic
19232 fi
19233 ;;
19234 hpux*)
19235 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19236 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19237 # sets the default TLS model and affects inlining.
19238 case $host_cpu in
19239 hppa*64*)
19240 ;;
19241 *)
19242 lt_prog_compiler_pic_CXX='-fPIC'
19243 ;;
19244 esac
19245 ;;
19246 *qnx* | *nto*)
19247 # QNX uses GNU C++, but need to define -shared option too, otherwise
19248 # it will coredump.
19249 lt_prog_compiler_pic_CXX='-fPIC -shared'
19250 ;;
19251 *)
19252 lt_prog_compiler_pic_CXX='-fPIC'
19253 ;;
19254 esac
19255 else
19256 case $host_os in
19257 aix[4-9]*)
19258 # All AIX code is PIC.
19259 if test "$host_cpu" = ia64; then
19260 # AIX 5 now supports IA64 processor
19261 lt_prog_compiler_static_CXX='-Bstatic'
19262 else
19263 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19264 fi
19265 ;;
19266 chorus*)
19267 case $cc_basename in
19268 cxch68*)
19269 # Green Hills C++ Compiler
19270 # _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"
19271 ;;
19272 esac
19273 ;;
cristyda16f162011-02-19 23:52:17 +000019274 mingw* | cygwin* | os2* | pw32* | cegcc*)
19275 # This hack is so that the source file can tell whether it is being
19276 # built for inclusion in a dll (and should export symbols for example).
19277 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19278 ;;
cristy73bd4a52010-10-05 11:24:23 +000019279 dgux*)
19280 case $cc_basename in
19281 ec++*)
19282 lt_prog_compiler_pic_CXX='-KPIC'
19283 ;;
19284 ghcx*)
19285 # Green Hills C++ Compiler
19286 lt_prog_compiler_pic_CXX='-pic'
19287 ;;
19288 *)
19289 ;;
19290 esac
19291 ;;
19292 freebsd* | dragonfly*)
19293 # FreeBSD uses GNU C++
19294 ;;
19295 hpux9* | hpux10* | hpux11*)
19296 case $cc_basename in
19297 CC*)
19298 lt_prog_compiler_wl_CXX='-Wl,'
19299 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19300 if test "$host_cpu" != ia64; then
19301 lt_prog_compiler_pic_CXX='+Z'
19302 fi
19303 ;;
19304 aCC*)
19305 lt_prog_compiler_wl_CXX='-Wl,'
19306 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19307 case $host_cpu in
19308 hppa*64*|ia64*)
19309 # +Z the default
19310 ;;
19311 *)
19312 lt_prog_compiler_pic_CXX='+Z'
19313 ;;
19314 esac
19315 ;;
19316 *)
19317 ;;
19318 esac
19319 ;;
19320 interix*)
19321 # This is c89, which is MS Visual C++ (no shared libs)
19322 # Anyone wants to do a port?
19323 ;;
19324 irix5* | irix6* | nonstopux*)
19325 case $cc_basename in
19326 CC*)
19327 lt_prog_compiler_wl_CXX='-Wl,'
19328 lt_prog_compiler_static_CXX='-non_shared'
19329 # CC pic flag -KPIC is the default.
19330 ;;
19331 *)
19332 ;;
19333 esac
19334 ;;
cristy0c60a692010-11-04 01:09:47 +000019335 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019336 case $cc_basename in
19337 KCC*)
19338 # KAI C++ Compiler
19339 lt_prog_compiler_wl_CXX='--backend -Wl,'
19340 lt_prog_compiler_pic_CXX='-fPIC'
19341 ;;
19342 ecpc* )
19343 # old Intel C++ for x86_64 which still supported -KPIC.
19344 lt_prog_compiler_wl_CXX='-Wl,'
19345 lt_prog_compiler_pic_CXX='-KPIC'
19346 lt_prog_compiler_static_CXX='-static'
19347 ;;
19348 icpc* )
19349 # Intel C++, used to be incompatible with GCC.
19350 # ICC 10 doesn't accept -KPIC any more.
19351 lt_prog_compiler_wl_CXX='-Wl,'
19352 lt_prog_compiler_pic_CXX='-fPIC'
19353 lt_prog_compiler_static_CXX='-static'
19354 ;;
19355 pgCC* | pgcpp*)
19356 # Portland Group C++ compiler
19357 lt_prog_compiler_wl_CXX='-Wl,'
19358 lt_prog_compiler_pic_CXX='-fpic'
19359 lt_prog_compiler_static_CXX='-Bstatic'
19360 ;;
19361 cxx*)
19362 # Compaq C++
19363 # Make sure the PIC flag is empty. It appears that all Alpha
19364 # Linux and Compaq Tru64 Unix objects are PIC.
19365 lt_prog_compiler_pic_CXX=
19366 lt_prog_compiler_static_CXX='-non_shared'
19367 ;;
cristy0c60a692010-11-04 01:09:47 +000019368 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19369 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019370 lt_prog_compiler_wl_CXX='-Wl,'
19371 lt_prog_compiler_pic_CXX='-qpic'
19372 lt_prog_compiler_static_CXX='-qstaticlink'
19373 ;;
19374 *)
19375 case `$CC -V 2>&1 | sed 5q` in
19376 *Sun\ C*)
19377 # Sun C++ 5.9
19378 lt_prog_compiler_pic_CXX='-KPIC'
19379 lt_prog_compiler_static_CXX='-Bstatic'
19380 lt_prog_compiler_wl_CXX='-Qoption ld '
19381 ;;
19382 esac
19383 ;;
19384 esac
19385 ;;
19386 lynxos*)
19387 ;;
19388 m88k*)
19389 ;;
19390 mvs*)
19391 case $cc_basename in
19392 cxx*)
19393 lt_prog_compiler_pic_CXX='-W c,exportall'
19394 ;;
19395 *)
19396 ;;
19397 esac
19398 ;;
19399 netbsd*)
19400 ;;
19401 *qnx* | *nto*)
19402 # QNX uses GNU C++, but need to define -shared option too, otherwise
19403 # it will coredump.
19404 lt_prog_compiler_pic_CXX='-fPIC -shared'
19405 ;;
19406 osf3* | osf4* | osf5*)
19407 case $cc_basename in
19408 KCC*)
19409 lt_prog_compiler_wl_CXX='--backend -Wl,'
19410 ;;
19411 RCC*)
19412 # Rational C++ 2.4.1
19413 lt_prog_compiler_pic_CXX='-pic'
19414 ;;
19415 cxx*)
19416 # Digital/Compaq C++
19417 lt_prog_compiler_wl_CXX='-Wl,'
19418 # Make sure the PIC flag is empty. It appears that all Alpha
19419 # Linux and Compaq Tru64 Unix objects are PIC.
19420 lt_prog_compiler_pic_CXX=
19421 lt_prog_compiler_static_CXX='-non_shared'
19422 ;;
19423 *)
19424 ;;
19425 esac
19426 ;;
19427 psos*)
19428 ;;
19429 solaris*)
19430 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019431 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019432 # Sun C++ 4.2, 5.x and Centerline C++
19433 lt_prog_compiler_pic_CXX='-KPIC'
19434 lt_prog_compiler_static_CXX='-Bstatic'
19435 lt_prog_compiler_wl_CXX='-Qoption ld '
19436 ;;
19437 gcx*)
19438 # Green Hills C++ Compiler
19439 lt_prog_compiler_pic_CXX='-PIC'
19440 ;;
19441 *)
19442 ;;
19443 esac
19444 ;;
19445 sunos4*)
19446 case $cc_basename in
19447 CC*)
19448 # Sun C++ 4.x
19449 lt_prog_compiler_pic_CXX='-pic'
19450 lt_prog_compiler_static_CXX='-Bstatic'
19451 ;;
19452 lcc*)
19453 # Lucid
19454 lt_prog_compiler_pic_CXX='-pic'
19455 ;;
19456 *)
19457 ;;
19458 esac
19459 ;;
19460 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19461 case $cc_basename in
19462 CC*)
19463 lt_prog_compiler_wl_CXX='-Wl,'
19464 lt_prog_compiler_pic_CXX='-KPIC'
19465 lt_prog_compiler_static_CXX='-Bstatic'
19466 ;;
19467 esac
19468 ;;
19469 tandem*)
19470 case $cc_basename in
19471 NCC*)
19472 # NonStop-UX NCC 3.20
19473 lt_prog_compiler_pic_CXX='-KPIC'
19474 ;;
19475 *)
19476 ;;
19477 esac
19478 ;;
19479 vxworks*)
19480 ;;
19481 *)
19482 lt_prog_compiler_can_build_shared_CXX=no
19483 ;;
19484 esac
19485 fi
19486
19487case $host_os in
19488 # For platforms which do not support PIC, -DPIC is meaningless:
19489 *djgpp*)
19490 lt_prog_compiler_pic_CXX=
19491 ;;
19492 *)
19493 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19494 ;;
19495esac
cristy73bd4a52010-10-05 11:24:23 +000019496
cristyda16f162011-02-19 23:52:17 +000019497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19498$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19499if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19500 $as_echo_n "(cached) " >&6
19501else
19502 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19503fi
19504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19505$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19506lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019507
19508#
19509# Check to make sure the PIC flag actually works.
19510#
19511if test -n "$lt_prog_compiler_pic_CXX"; then
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19513$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019514if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019515 $as_echo_n "(cached) " >&6
19516else
19517 lt_cv_prog_compiler_pic_works_CXX=no
19518 ac_outfile=conftest.$ac_objext
19519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19520 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19521 # Insert the option either (1) after the last *FLAGS variable, or
19522 # (2) before a word containing "conftest.", or (3) at the end.
19523 # Note that $ac_compile itself does not contain backslashes and begins
19524 # with a dollar sign (not a hyphen), so the echo should work correctly.
19525 # The option is referenced via a variable to avoid confusing sed.
19526 lt_compile=`echo "$ac_compile" | $SED \
19527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19529 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019530 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019531 (eval "$lt_compile" 2>conftest.err)
19532 ac_status=$?
19533 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019535 if (exit $ac_status) && test -s "$ac_outfile"; then
19536 # The compiler can only warn and ignore the option if not recognized
19537 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19541 lt_cv_prog_compiler_pic_works_CXX=yes
19542 fi
19543 fi
19544 $RM conftest*
19545
19546fi
19547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19548$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19549
19550if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19551 case $lt_prog_compiler_pic_CXX in
19552 "" | " "*) ;;
19553 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19554 esac
19555else
19556 lt_prog_compiler_pic_CXX=
19557 lt_prog_compiler_can_build_shared_CXX=no
19558fi
19559
19560fi
19561
19562
19563
cristyda16f162011-02-19 23:52:17 +000019564
19565
cristy73bd4a52010-10-05 11:24:23 +000019566#
19567# Check to make sure the static flag actually works.
19568#
19569wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19571$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019572if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019573 $as_echo_n "(cached) " >&6
19574else
19575 lt_cv_prog_compiler_static_works_CXX=no
19576 save_LDFLAGS="$LDFLAGS"
19577 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19578 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19579 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19580 # The linker can only warn and ignore the option if not recognized
19581 # So say no if there are warnings
19582 if test -s conftest.err; then
19583 # Append any errors to the config.log.
19584 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019585 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19587 if diff conftest.exp conftest.er2 >/dev/null; then
19588 lt_cv_prog_compiler_static_works_CXX=yes
19589 fi
19590 else
19591 lt_cv_prog_compiler_static_works_CXX=yes
19592 fi
19593 fi
19594 $RM -r conftest*
19595 LDFLAGS="$save_LDFLAGS"
19596
19597fi
19598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19599$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19600
19601if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19602 :
19603else
19604 lt_prog_compiler_static_CXX=
19605fi
19606
19607
19608
19609
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19611$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019612if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019613 $as_echo_n "(cached) " >&6
19614else
19615 lt_cv_prog_compiler_c_o_CXX=no
19616 $RM -r conftest 2>/dev/null
19617 mkdir conftest
19618 cd conftest
19619 mkdir out
19620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19621
19622 lt_compiler_flag="-o out/conftest2.$ac_objext"
19623 # Insert the option either (1) after the last *FLAGS variable, or
19624 # (2) before a word containing "conftest.", or (3) at the end.
19625 # Note that $ac_compile itself does not contain backslashes and begins
19626 # with a dollar sign (not a hyphen), so the echo should work correctly.
19627 lt_compile=`echo "$ac_compile" | $SED \
19628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19630 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019631 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019632 (eval "$lt_compile" 2>out/conftest.err)
19633 ac_status=$?
19634 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019636 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19637 then
19638 # The compiler can only warn and ignore the option if not recognized
19639 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019641 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19642 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19643 lt_cv_prog_compiler_c_o_CXX=yes
19644 fi
19645 fi
19646 chmod u+w . 2>&5
19647 $RM conftest*
19648 # SGI C++ compiler will create directory out/ii_files/ for
19649 # template instantiation
19650 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19651 $RM out/* && rmdir out
19652 cd ..
19653 $RM -r conftest
19654 $RM conftest*
19655
19656fi
19657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19658$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19659
19660
19661
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19663$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019664if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019665 $as_echo_n "(cached) " >&6
19666else
19667 lt_cv_prog_compiler_c_o_CXX=no
19668 $RM -r conftest 2>/dev/null
19669 mkdir conftest
19670 cd conftest
19671 mkdir out
19672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19673
19674 lt_compiler_flag="-o out/conftest2.$ac_objext"
19675 # Insert the option either (1) after the last *FLAGS variable, or
19676 # (2) before a word containing "conftest.", or (3) at the end.
19677 # Note that $ac_compile itself does not contain backslashes and begins
19678 # with a dollar sign (not a hyphen), so the echo should work correctly.
19679 lt_compile=`echo "$ac_compile" | $SED \
19680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19682 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019684 (eval "$lt_compile" 2>out/conftest.err)
19685 ac_status=$?
19686 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019688 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19689 then
19690 # The compiler can only warn and ignore the option if not recognized
19691 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019692 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019693 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19694 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19695 lt_cv_prog_compiler_c_o_CXX=yes
19696 fi
19697 fi
19698 chmod u+w . 2>&5
19699 $RM conftest*
19700 # SGI C++ compiler will create directory out/ii_files/ for
19701 # template instantiation
19702 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19703 $RM out/* && rmdir out
19704 cd ..
19705 $RM -r conftest
19706 $RM conftest*
19707
19708fi
19709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19710$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19711
19712
19713
19714
19715hard_links="nottested"
19716if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19717 # do not overwrite the value of need_locks provided by the user
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19719$as_echo_n "checking if we can lock with hard links... " >&6; }
19720 hard_links=yes
19721 $RM conftest*
19722 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19723 touch conftest.a
19724 ln conftest.a conftest.b 2>&5 || hard_links=no
19725 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19727$as_echo "$hard_links" >&6; }
19728 if test "$hard_links" = no; then
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19730$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19731 need_locks=warn
19732 fi
19733else
19734 need_locks=no
19735fi
19736
19737
19738
19739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19740$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19741
19742 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019743 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019744 case $host_os in
19745 aix[4-9]*)
19746 # If we're using GNU nm, then we don't want the "-C" option.
19747 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019748 # Also, AIX nm treats weak defined symbols like other global defined
19749 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019750 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019751 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 +000019752 else
19753 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'
19754 fi
19755 ;;
19756 pw32*)
19757 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019758 ;;
cristy73bd4a52010-10-05 11:24:23 +000019759 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019760 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019761 cl*)
19762 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19763 ;;
cristyda16f162011-02-19 23:52:17 +000019764 *)
19765 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'
19766 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19767 ;;
19768 esac
19769 ;;
cristy73bd4a52010-10-05 11:24:23 +000019770 *)
19771 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019772 ;;
cristy73bd4a52010-10-05 11:24:23 +000019773 esac
cristy73bd4a52010-10-05 11:24:23 +000019774
19775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19776$as_echo "$ld_shlibs_CXX" >&6; }
19777test "$ld_shlibs_CXX" = no && can_build_shared=no
19778
19779with_gnu_ld_CXX=$with_gnu_ld
19780
19781
19782
19783
19784
19785
19786#
19787# Do we need to explicitly link libc?
19788#
19789case "x$archive_cmds_need_lc_CXX" in
19790x|xyes)
19791 # Assume -lc should be added
19792 archive_cmds_need_lc_CXX=yes
19793
19794 if test "$enable_shared" = yes && test "$GCC" = yes; then
19795 case $archive_cmds_CXX in
19796 *'~'*)
19797 # FIXME: we may have to deal with multi-command sequences.
19798 ;;
19799 '$CC '*)
19800 # Test whether the compiler implicitly links with -lc since on some
19801 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19802 # to ld, don't add -lc before -lgcc.
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19804$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019805if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019806 $as_echo_n "(cached) " >&6
19807else
19808 $RM conftest*
19809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019810
cristy0c60a692010-11-04 01:09:47 +000019811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019812 (eval $ac_compile) 2>&5
19813 ac_status=$?
19814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19815 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019816 soname=conftest
19817 lib=conftest
19818 libobjs=conftest.$ac_objext
19819 deplibs=
19820 wl=$lt_prog_compiler_wl_CXX
19821 pic_flag=$lt_prog_compiler_pic_CXX
19822 compiler_flags=-v
19823 linker_flags=-v
19824 verstring=
19825 output_objdir=.
19826 libname=conftest
19827 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19828 allow_undefined_flag_CXX=
19829 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 +000019830 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19831 ac_status=$?
19832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19833 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019834 then
19835 lt_cv_archive_cmds_need_lc_CXX=no
19836 else
19837 lt_cv_archive_cmds_need_lc_CXX=yes
19838 fi
19839 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19840 else
19841 cat conftest.err 1>&5
19842 fi
19843 $RM conftest*
19844
19845fi
19846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19847$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19848 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019849 ;;
19850 esac
19851 fi
19852 ;;
19853esac
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
cristy73bd4a52010-10-05 11:24:23 +000019916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19917$as_echo_n "checking dynamic linker characteristics... " >&6; }
19918
19919library_names_spec=
19920libname_spec='lib$name'
19921soname_spec=
19922shrext_cmds=".so"
19923postinstall_cmds=
19924postuninstall_cmds=
19925finish_cmds=
19926finish_eval=
19927shlibpath_var=
19928shlibpath_overrides_runpath=unknown
19929version_type=none
19930dynamic_linker="$host_os ld.so"
19931sys_lib_dlsearch_path_spec="/lib /usr/lib"
19932need_lib_prefix=unknown
19933hardcode_into_libs=no
19934
19935# when you set need_version to no, make sure it does not cause -set_version
19936# flags to be left without arguments
19937need_version=unknown
19938
19939case $host_os in
19940aix3*)
cristy99bd5232011-12-07 14:38:20 +000019941 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19943 shlibpath_var=LIBPATH
19944
19945 # AIX 3 has no versioning support, so we append a major version to the name.
19946 soname_spec='${libname}${release}${shared_ext}$major'
19947 ;;
19948
19949aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019950 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019951 need_lib_prefix=no
19952 need_version=no
19953 hardcode_into_libs=yes
19954 if test "$host_cpu" = ia64; then
19955 # AIX 5 supports IA64
19956 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19957 shlibpath_var=LD_LIBRARY_PATH
19958 else
19959 # With GCC up to 2.95.x, collect2 would create an import file
19960 # for dependence libraries. The import file would start with
19961 # the line `#! .'. This would cause the generated library to
19962 # depend on `.', always an invalid library. This was fixed in
19963 # development snapshots of GCC prior to 3.0.
19964 case $host_os in
19965 aix4 | aix4.[01] | aix4.[01].*)
19966 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19967 echo ' yes '
19968 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19969 :
19970 else
19971 can_build_shared=no
19972 fi
19973 ;;
19974 esac
19975 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19976 # soname into executable. Probably we can add versioning support to
19977 # collect2, so additional links can be useful in future.
19978 if test "$aix_use_runtimelinking" = yes; then
19979 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19980 # instead of lib<name>.a to let people know that these are not
19981 # typical AIX shared libraries.
19982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19983 else
19984 # We preserve .a as extension for shared libraries through AIX4.2
19985 # and later when we are not doing run time linking.
19986 library_names_spec='${libname}${release}.a $libname.a'
19987 soname_spec='${libname}${release}${shared_ext}$major'
19988 fi
19989 shlibpath_var=LIBPATH
19990 fi
19991 ;;
19992
19993amigaos*)
19994 case $host_cpu in
19995 powerpc)
19996 # Since July 2007 AmigaOS4 officially supports .so libraries.
19997 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19999 ;;
20000 m68k)
20001 library_names_spec='$libname.ixlibrary $libname.a'
20002 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020003 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 +000020004 ;;
20005 esac
20006 ;;
20007
20008beos*)
20009 library_names_spec='${libname}${shared_ext}'
20010 dynamic_linker="$host_os ld.so"
20011 shlibpath_var=LIBRARY_PATH
20012 ;;
20013
20014bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020015 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020016 need_version=no
20017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20018 soname_spec='${libname}${release}${shared_ext}$major'
20019 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20020 shlibpath_var=LD_LIBRARY_PATH
20021 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20022 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20023 # the default ld.so.conf also contains /usr/contrib/lib and
20024 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20025 # libtool to hard-code these into programs
20026 ;;
20027
20028cygwin* | mingw* | pw32* | cegcc*)
20029 version_type=windows
20030 shrext_cmds=".dll"
20031 need_version=no
20032 need_lib_prefix=no
20033
cristyda16f162011-02-19 23:52:17 +000020034 case $GCC,$cc_basename in
20035 yes,*)
20036 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020037 library_names_spec='$libname.dll.a'
20038 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20039 postinstall_cmds='base_file=`basename \${file}`~
20040 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20041 dldir=$destdir/`dirname \$dlpath`~
20042 test -d \$dldir || mkdir -p \$dldir~
20043 $install_prog $dir/$dlname \$dldir/$dlname~
20044 chmod a+x \$dldir/$dlname~
20045 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20046 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20047 fi'
20048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20049 dlpath=$dir/\$dldll~
20050 $RM \$dlpath'
20051 shlibpath_overrides_runpath=yes
20052
20053 case $host_os in
20054 cygwin*)
20055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20056 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020057
cristy73bd4a52010-10-05 11:24:23 +000020058 ;;
20059 mingw* | cegcc*)
20060 # MinGW DLLs use traditional 'lib' prefix
20061 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020062 ;;
20063 pw32*)
20064 # pw32 DLLs use 'pw' prefix rather than 'lib'
20065 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20066 ;;
20067 esac
cristyda16f162011-02-19 23:52:17 +000020068 dynamic_linker='Win32 ld.exe'
20069 ;;
20070
20071 *,cl*)
20072 # Native MSVC
20073 libname_spec='$name'
20074 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20075 library_names_spec='${libname}.dll.lib'
20076
20077 case $build_os in
20078 mingw*)
20079 sys_lib_search_path_spec=
20080 lt_save_ifs=$IFS
20081 IFS=';'
20082 for lt_path in $LIB
20083 do
20084 IFS=$lt_save_ifs
20085 # Let DOS variable expansion print the short 8.3 style file name.
20086 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20087 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20088 done
20089 IFS=$lt_save_ifs
20090 # Convert to MSYS style.
20091 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20092 ;;
20093 cygwin*)
20094 # Convert to unix form, then to dos form, then back to unix form
20095 # but this time dos style (no spaces!) so that the unix form looks
20096 # like /cygdrive/c/PROGRA~1:/cygdr...
20097 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20098 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20099 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20100 ;;
20101 *)
20102 sys_lib_search_path_spec="$LIB"
20103 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20104 # It is most probably a Windows format PATH.
20105 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20106 else
20107 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20108 fi
20109 # FIXME: find the short name or the path components, as spaces are
20110 # common. (e.g. "Program Files" -> "PROGRA~1")
20111 ;;
20112 esac
20113
20114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20115 postinstall_cmds='base_file=`basename \${file}`~
20116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20117 dldir=$destdir/`dirname \$dlpath`~
20118 test -d \$dldir || mkdir -p \$dldir~
20119 $install_prog $dir/$dlname \$dldir/$dlname'
20120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20121 dlpath=$dir/\$dldll~
20122 $RM \$dlpath'
20123 shlibpath_overrides_runpath=yes
20124 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020125 ;;
20126
20127 *)
cristyda16f162011-02-19 23:52:17 +000020128 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020129 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020130 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020131 ;;
20132 esac
cristy73bd4a52010-10-05 11:24:23 +000020133 # FIXME: first we should search . and the directory the executable is in
20134 shlibpath_var=PATH
20135 ;;
20136
20137darwin* | rhapsody*)
20138 dynamic_linker="$host_os dyld"
20139 version_type=darwin
20140 need_lib_prefix=no
20141 need_version=no
20142 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20143 soname_spec='${libname}${release}${major}$shared_ext'
20144 shlibpath_overrides_runpath=yes
20145 shlibpath_var=DYLD_LIBRARY_PATH
20146 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20147
20148 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20149 ;;
20150
20151dgux*)
cristy99bd5232011-12-07 14:38:20 +000020152 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020153 need_lib_prefix=no
20154 need_version=no
20155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20156 soname_spec='${libname}${release}${shared_ext}$major'
20157 shlibpath_var=LD_LIBRARY_PATH
20158 ;;
20159
cristy73bd4a52010-10-05 11:24:23 +000020160freebsd* | dragonfly*)
20161 # DragonFly does not have aout. When/if they implement a new
20162 # versioning mechanism, adjust this.
20163 if test -x /usr/bin/objformat; then
20164 objformat=`/usr/bin/objformat`
20165 else
20166 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020167 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020168 *) objformat=elf ;;
20169 esac
20170 fi
20171 version_type=freebsd-$objformat
20172 case $version_type in
20173 freebsd-elf*)
20174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20175 need_version=no
20176 need_lib_prefix=no
20177 ;;
20178 freebsd-*)
20179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20180 need_version=yes
20181 ;;
20182 esac
20183 shlibpath_var=LD_LIBRARY_PATH
20184 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020185 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020186 shlibpath_overrides_runpath=yes
20187 ;;
20188 freebsd3.[01]* | freebsdelf3.[01]*)
20189 shlibpath_overrides_runpath=yes
20190 hardcode_into_libs=yes
20191 ;;
20192 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20193 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20194 shlibpath_overrides_runpath=no
20195 hardcode_into_libs=yes
20196 ;;
20197 *) # from 4.6 on, and DragonFly
20198 shlibpath_overrides_runpath=yes
20199 hardcode_into_libs=yes
20200 ;;
20201 esac
20202 ;;
20203
20204gnu*)
cristy99bd5232011-12-07 14:38:20 +000020205 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020206 need_lib_prefix=no
20207 need_version=no
20208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20209 soname_spec='${libname}${release}${shared_ext}$major'
20210 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020211 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020212 hardcode_into_libs=yes
20213 ;;
20214
cristy0c60a692010-11-04 01:09:47 +000020215haiku*)
cristy99bd5232011-12-07 14:38:20 +000020216 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020217 need_lib_prefix=no
20218 need_version=no
20219 dynamic_linker="$host_os runtime_loader"
20220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20221 soname_spec='${libname}${release}${shared_ext}$major'
20222 shlibpath_var=LIBRARY_PATH
20223 shlibpath_overrides_runpath=yes
20224 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20225 hardcode_into_libs=yes
20226 ;;
20227
cristy73bd4a52010-10-05 11:24:23 +000020228hpux9* | hpux10* | hpux11*)
20229 # Give a soname corresponding to the major version so that dld.sl refuses to
20230 # link against other versions.
20231 version_type=sunos
20232 need_lib_prefix=no
20233 need_version=no
20234 case $host_cpu in
20235 ia64*)
20236 shrext_cmds='.so'
20237 hardcode_into_libs=yes
20238 dynamic_linker="$host_os dld.so"
20239 shlibpath_var=LD_LIBRARY_PATH
20240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20242 soname_spec='${libname}${release}${shared_ext}$major'
20243 if test "X$HPUX_IA64_MODE" = X32; then
20244 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20245 else
20246 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20247 fi
20248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20249 ;;
20250 hppa*64*)
20251 shrext_cmds='.sl'
20252 hardcode_into_libs=yes
20253 dynamic_linker="$host_os dld.sl"
20254 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20257 soname_spec='${libname}${release}${shared_ext}$major'
20258 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20260 ;;
20261 *)
20262 shrext_cmds='.sl'
20263 dynamic_linker="$host_os dld.sl"
20264 shlibpath_var=SHLIB_PATH
20265 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20267 soname_spec='${libname}${release}${shared_ext}$major'
20268 ;;
20269 esac
cristy0c60a692010-11-04 01:09:47 +000020270 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020271 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020272 # or fails outright, so override atomically:
20273 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020274 ;;
20275
20276interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020277 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020278 need_lib_prefix=no
20279 need_version=no
20280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20281 soname_spec='${libname}${release}${shared_ext}$major'
20282 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20283 shlibpath_var=LD_LIBRARY_PATH
20284 shlibpath_overrides_runpath=no
20285 hardcode_into_libs=yes
20286 ;;
20287
20288irix5* | irix6* | nonstopux*)
20289 case $host_os in
20290 nonstopux*) version_type=nonstopux ;;
20291 *)
20292 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020293 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020294 else
20295 version_type=irix
20296 fi ;;
20297 esac
20298 need_lib_prefix=no
20299 need_version=no
20300 soname_spec='${libname}${release}${shared_ext}$major'
20301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20302 case $host_os in
20303 irix5* | nonstopux*)
20304 libsuff= shlibsuff=
20305 ;;
20306 *)
20307 case $LD in # libtool.m4 will add one of these switches to LD
20308 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20309 libsuff= shlibsuff= libmagic=32-bit;;
20310 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20311 libsuff=32 shlibsuff=N32 libmagic=N32;;
20312 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20313 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20314 *) libsuff= shlibsuff= libmagic=never-match;;
20315 esac
20316 ;;
20317 esac
20318 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20319 shlibpath_overrides_runpath=no
20320 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20321 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20322 hardcode_into_libs=yes
20323 ;;
20324
20325# No shared lib support for Linux oldld, aout, or coff.
20326linux*oldld* | linux*aout* | linux*coff*)
20327 dynamic_linker=no
20328 ;;
20329
cristy99bd5232011-12-07 14:38:20 +000020330# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020331linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020332 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020333 need_lib_prefix=no
20334 need_version=no
20335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20336 soname_spec='${libname}${release}${shared_ext}$major'
20337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20338 shlibpath_var=LD_LIBRARY_PATH
20339 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020340
cristy73bd4a52010-10-05 11:24:23 +000020341 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020342 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020343 $as_echo_n "(cached) " >&6
20344else
20345 lt_cv_shlibpath_overrides_runpath=no
20346 save_LDFLAGS=$LDFLAGS
20347 save_libdir=$libdir
20348 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20349 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020351/* end confdefs.h. */
20352
20353int
20354main ()
20355{
20356
20357 ;
20358 return 0;
20359}
20360_ACEOF
20361if ac_fn_cxx_try_link "$LINENO"; then :
20362 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020363 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020364fi
20365fi
20366rm -f core conftest.err conftest.$ac_objext \
20367 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020368 LDFLAGS=$save_LDFLAGS
20369 libdir=$save_libdir
20370
20371fi
20372
20373 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020374
20375 # This implies no fast_install, which is unacceptable.
20376 # Some rework will be needed to allow for fast_install
20377 # before this can be enabled.
20378 hardcode_into_libs=yes
20379
20380 # Add ABI-specific directories to the system library path.
20381 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20382
20383 # Append ld.so.conf contents to the search path
20384 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020385 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 +000020386 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020387
cristy73bd4a52010-10-05 11:24:23 +000020388 fi
20389
20390 # We used to test for /lib/ld.so.1 and disable shared libraries on
20391 # powerpc, because MkLinux only supported shared libraries with the
20392 # GNU dynamic linker. Since this was broken with cross compilers,
20393 # most powerpc-linux boxes support dynamic linking these days and
20394 # people can always --disable-shared, the test was removed, and we
20395 # assume the GNU/Linux dynamic linker is in use.
20396 dynamic_linker='GNU/Linux ld.so'
20397 ;;
20398
20399netbsd*)
20400 version_type=sunos
20401 need_lib_prefix=no
20402 need_version=no
20403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20406 dynamic_linker='NetBSD (a.out) ld.so'
20407 else
20408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20409 soname_spec='${libname}${release}${shared_ext}$major'
20410 dynamic_linker='NetBSD ld.elf_so'
20411 fi
20412 shlibpath_var=LD_LIBRARY_PATH
20413 shlibpath_overrides_runpath=yes
20414 hardcode_into_libs=yes
20415 ;;
20416
20417newsos6)
cristy99bd5232011-12-07 14:38:20 +000020418 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20420 shlibpath_var=LD_LIBRARY_PATH
20421 shlibpath_overrides_runpath=yes
20422 ;;
20423
20424*nto* | *qnx*)
20425 version_type=qnx
20426 need_lib_prefix=no
20427 need_version=no
20428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20429 soname_spec='${libname}${release}${shared_ext}$major'
20430 shlibpath_var=LD_LIBRARY_PATH
20431 shlibpath_overrides_runpath=no
20432 hardcode_into_libs=yes
20433 dynamic_linker='ldqnx.so'
20434 ;;
20435
20436openbsd*)
20437 version_type=sunos
20438 sys_lib_dlsearch_path_spec="/usr/lib"
20439 need_lib_prefix=no
20440 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20441 case $host_os in
20442 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20443 *) need_version=no ;;
20444 esac
20445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20447 shlibpath_var=LD_LIBRARY_PATH
20448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20449 case $host_os in
20450 openbsd2.[89] | openbsd2.[89].*)
20451 shlibpath_overrides_runpath=no
20452 ;;
20453 *)
20454 shlibpath_overrides_runpath=yes
20455 ;;
20456 esac
20457 else
20458 shlibpath_overrides_runpath=yes
20459 fi
20460 ;;
20461
20462os2*)
20463 libname_spec='$name'
20464 shrext_cmds=".dll"
20465 need_lib_prefix=no
20466 library_names_spec='$libname${shared_ext} $libname.a'
20467 dynamic_linker='OS/2 ld.exe'
20468 shlibpath_var=LIBPATH
20469 ;;
20470
20471osf3* | osf4* | osf5*)
20472 version_type=osf
20473 need_lib_prefix=no
20474 need_version=no
20475 soname_spec='${libname}${release}${shared_ext}$major'
20476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20477 shlibpath_var=LD_LIBRARY_PATH
20478 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20479 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20480 ;;
20481
20482rdos*)
20483 dynamic_linker=no
20484 ;;
20485
20486solaris*)
cristy99bd5232011-12-07 14:38:20 +000020487 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020488 need_lib_prefix=no
20489 need_version=no
20490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20491 soname_spec='${libname}${release}${shared_ext}$major'
20492 shlibpath_var=LD_LIBRARY_PATH
20493 shlibpath_overrides_runpath=yes
20494 hardcode_into_libs=yes
20495 # ldd complains unless libraries are executable
20496 postinstall_cmds='chmod +x $lib'
20497 ;;
20498
20499sunos4*)
20500 version_type=sunos
20501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20502 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20503 shlibpath_var=LD_LIBRARY_PATH
20504 shlibpath_overrides_runpath=yes
20505 if test "$with_gnu_ld" = yes; then
20506 need_lib_prefix=no
20507 fi
20508 need_version=yes
20509 ;;
20510
20511sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020512 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20514 soname_spec='${libname}${release}${shared_ext}$major'
20515 shlibpath_var=LD_LIBRARY_PATH
20516 case $host_vendor in
20517 sni)
20518 shlibpath_overrides_runpath=no
20519 need_lib_prefix=no
20520 runpath_var=LD_RUN_PATH
20521 ;;
20522 siemens)
20523 need_lib_prefix=no
20524 ;;
20525 motorola)
20526 need_lib_prefix=no
20527 need_version=no
20528 shlibpath_overrides_runpath=no
20529 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20530 ;;
20531 esac
20532 ;;
20533
20534sysv4*MP*)
20535 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020536 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020537 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20538 soname_spec='$libname${shared_ext}.$major'
20539 shlibpath_var=LD_LIBRARY_PATH
20540 fi
20541 ;;
20542
20543sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20544 version_type=freebsd-elf
20545 need_lib_prefix=no
20546 need_version=no
20547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20548 soname_spec='${libname}${release}${shared_ext}$major'
20549 shlibpath_var=LD_LIBRARY_PATH
20550 shlibpath_overrides_runpath=yes
20551 hardcode_into_libs=yes
20552 if test "$with_gnu_ld" = yes; then
20553 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20554 else
20555 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20556 case $host_os in
20557 sco3.2v5*)
20558 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20559 ;;
20560 esac
20561 fi
20562 sys_lib_dlsearch_path_spec='/usr/lib'
20563 ;;
20564
20565tpf*)
20566 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020567 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020568 need_lib_prefix=no
20569 need_version=no
20570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20571 shlibpath_var=LD_LIBRARY_PATH
20572 shlibpath_overrides_runpath=no
20573 hardcode_into_libs=yes
20574 ;;
20575
20576uts4*)
cristy99bd5232011-12-07 14:38:20 +000020577 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20579 soname_spec='${libname}${release}${shared_ext}$major'
20580 shlibpath_var=LD_LIBRARY_PATH
20581 ;;
20582
20583*)
20584 dynamic_linker=no
20585 ;;
20586esac
20587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20588$as_echo "$dynamic_linker" >&6; }
20589test "$dynamic_linker" = no && can_build_shared=no
20590
20591variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20592if test "$GCC" = yes; then
20593 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20594fi
20595
20596if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20597 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20598fi
20599if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20600 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20601fi
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
cristy0c60a692010-11-04 01:09:47 +000020638
20639
cristy73bd4a52010-10-05 11:24:23 +000020640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20641$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20642hardcode_action_CXX=
20643if test -n "$hardcode_libdir_flag_spec_CXX" ||
20644 test -n "$runpath_var_CXX" ||
20645 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20646
20647 # We can hardcode non-existent directories.
20648 if test "$hardcode_direct_CXX" != no &&
20649 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20650 # have to relink, otherwise we might link with an installed library
20651 # when we should be linking with a yet-to-be-installed one
20652 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20653 test "$hardcode_minus_L_CXX" != no; then
20654 # Linking always hardcodes the temporary library directory.
20655 hardcode_action_CXX=relink
20656 else
20657 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20658 hardcode_action_CXX=immediate
20659 fi
20660else
20661 # We cannot hardcode anything, or else we can only hardcode existing
20662 # directories.
20663 hardcode_action_CXX=unsupported
20664fi
20665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20666$as_echo "$hardcode_action_CXX" >&6; }
20667
20668if test "$hardcode_action_CXX" = relink ||
20669 test "$inherit_rpath_CXX" = yes; then
20670 # Fast installation is not supported
20671 enable_fast_install=no
20672elif test "$shlibpath_overrides_runpath" = yes ||
20673 test "$enable_shared" = no; then
20674 # Fast installation is not necessary
20675 enable_fast_install=needless
20676fi
20677
20678
20679
20680
20681
20682
20683
20684 fi # test -n "$compiler"
20685
20686 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020687 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020688 LDCXX=$LD
20689 LD=$lt_save_LD
20690 GCC=$lt_save_GCC
20691 with_gnu_ld=$lt_save_with_gnu_ld
20692 lt_cv_path_LDCXX=$lt_cv_path_LD
20693 lt_cv_path_LD=$lt_save_path_LD
20694 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20695 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20696fi # test "$_lt_caught_CXX_error" != yes
20697
20698ac_ext=c
20699ac_cpp='$CPP $CPPFLAGS'
20700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20702ac_compiler_gnu=$ac_cv_c_compiler_gnu
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
cristy99bd5232011-12-07 14:38:20 +000020716
20717
cristy73bd4a52010-10-05 11:24:23 +000020718 ac_config_commands="$ac_config_commands libtool"
20719
20720
20721
20722
20723# Only expand once:
20724
20725
20726
cristy3ed852e2009-09-05 21:47:34 +000020727
20728
cristy3ed852e2009-09-05 21:47:34 +000020729# Check to see if building shared libraries
20730libtool_build_shared_libs='no'
20731if test "$enable_shared" = 'yes'; then
20732 libtool_build_shared_libs='yes'
20733fi
20734
20735# Check to see if building static libraries
20736libtool_build_static_libs='no'
20737if test "$enable_static" = 'yes'; then
20738 libtool_build_static_libs='yes'
20739fi
20740
cristy73bd4a52010-10-05 11:24:23 +000020741 if test "${libtool_build_shared_libs}" = 'yes'; then
20742 WITH_SHARED_LIBS_TRUE=
20743 WITH_SHARED_LIBS_FALSE='#'
20744else
20745 WITH_SHARED_LIBS_TRUE='#'
20746 WITH_SHARED_LIBS_FALSE=
20747fi
20748
cristy3ed852e2009-09-05 21:47:34 +000020749#
20750# Enable support for building loadable modules
20751#
cristyaf4cbf32012-10-16 23:47:41 +000020752build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020753
20754# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020755if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020756 withval=$with_modules; with_modules=$withval
20757else
cristy5a1cefd2010-01-06 20:42:35 +000020758 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020759fi
20760
20761
20762# Only allow building loadable modules if we are building shared libraries
20763if test "$with_modules" != 'no' ; then
20764 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020765 { $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 +000020766$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020767 build_modules='no'
20768 else
20769 build_modules='yes'
20770 fi
cristy3ed852e2009-09-05 21:47:34 +000020771fi
cristyc6722092012-10-14 00:19:31 +000020772if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020773
cristy8b350f62009-11-15 23:12:43 +000020774$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020775
cristyfa161182012-12-19 15:45:28 +000020776 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020777fi
cristyc6722092012-10-14 00:19:31 +000020778 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020779 WITH_MODULES_TRUE=
20780 WITH_MODULES_FALSE='#'
20781else
20782 WITH_MODULES_TRUE='#'
20783 WITH_MODULES_FALSE=
20784fi
20785
cristy3ed852e2009-09-05 21:47:34 +000020786
cristy3ed852e2009-09-05 21:47:34 +000020787# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020788# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020789# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020790if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020791 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20792else
20793 enable_delegate_build='no'
20794fi
20795
20796
20797# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020798if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020799 enableval=$enable_deprecated; enable_deprecated=$enableval
20800else
20801 enable_deprecated='no'
20802fi
20803
20804
20805if test "$enable_deprecated" = 'yes'; then
20806
cristy8b350f62009-11-15 23:12:43 +000020807$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020808
20809else
20810 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20811fi
20812
20813# Build a version of ImageMagick which operates uninstalled.
20814# Used to build distributions located via MAGICK_HOME / executable path
20815# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020816if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020817 enableval=$enable_installed; enable_installed=$enableval
20818else
20819 enable_installed='yes'
20820fi
20821
20822
20823if test "$enable_installed" = 'yes'; then
20824
cristy8b350f62009-11-15 23:12:43 +000020825$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020826
20827else
20828 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20829fi
20830
20831# Permit enciphering and deciphering image pixels.
20832# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020833if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020834 enableval=$enable_cipher; enable_cipher=$enableval
20835else
20836 enable_cipher='yes'
20837fi
20838
20839
20840if test "$enable_cipher" = 'yes'; then
20841
cristy8b350f62009-11-15 23:12:43 +000020842$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020843
20844fi
20845
cristy6e3607c2011-09-13 13:59:17 +000020846# Build a zero-configuration version of ImageMagick.
20847# Check whether --enable-zero-configuration was given.
20848if test "${enable_zero_configuration+set}" = set; then :
20849 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020850else
cristy6e3607c2011-09-13 13:59:17 +000020851 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020852fi
20853
20854
cristy6e3607c2011-09-13 13:59:17 +000020855if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020856
cristy6e3607c2011-09-13 13:59:17 +000020857$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020858
cristy81af5702011-09-13 14:20:58 +000020859 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020860fi
20861
20862# Build a high dynamic range version of ImageMagick.
20863# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020864if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020865 enableval=$enable_hdri; enable_hdri=$enableval
20866else
cristy191c0b72012-08-12 16:29:52 +000020867 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020868fi
20869
20870
20871MAGICK_HDRI=""
20872if test "$enable_hdri" = 'yes'; then
20873 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000020874 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000020875 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000020876else
20877 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000020878fi
20879
cristye52f12f2012-12-31 15:32:36 +000020880cat >>confdefs.h <<_ACEOF
20881#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
20882_ACEOF
20883
20884MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
20885CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000020886CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000020887
cristy3ed852e2009-09-05 21:47:34 +000020888# Build a version of ImageMagick with assert statements.
20889# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020890if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020891 enableval=$enable_assert; enable_assert=$enableval
20892else
20893 enable_assert='yes'
20894fi
20895
20896
20897if test "$enable_assert" = 'no'; then
20898
cristy8b350f62009-11-15 23:12:43 +000020899$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020900
20901fi
20902
cristya448bd22011-10-14 12:38:13 +000020903# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000020904
20905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20906$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20907 # Check whether --enable-maintainer-mode was given.
20908if test "${enable_maintainer_mode+set}" = set; then :
20909 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20910else
20911 USE_MAINTAINER_MODE=no
20912fi
20913
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20915$as_echo "$USE_MAINTAINER_MODE" >&6; }
20916 if test $USE_MAINTAINER_MODE = yes; then
20917 MAINTAINER_MODE_TRUE=
20918 MAINTAINER_MODE_FALSE='#'
20919else
20920 MAINTAINER_MODE_TRUE='#'
20921 MAINTAINER_MODE_FALSE=
20922fi
20923
20924 MAINT=$MAINTAINER_MODE_TRUE
20925
20926
cristy3ed852e2009-09-05 21:47:34 +000020927
cristy3ed852e2009-09-05 21:47:34 +000020928# Enable ccmalloc memory debugging support
20929# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020930if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020931 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20932else
20933 enable_ccmalloc='no'
20934fi
20935
20936
20937# Enable Electric Fence memory debugging support
20938# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020939if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020940 enableval=$enable_efence; enable_efence=$enableval
20941else
20942 enable_efence='no'
20943fi
20944
20945
20946# Enable prof-based profiling support
20947# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020948if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020949 enableval=$enable_prof; enable_prof=$enableval
20950else
20951 enable_prof='no'
20952fi
20953
20954
20955# Enable gprof-based profiling support
20956# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020957if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020958 enableval=$enable_gprof; enable_gprof=$enableval
20959else
20960 enable_gprof='no'
20961fi
20962
20963
20964# Enable gcov-based profiling support
20965# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020966if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020967 enableval=$enable_gcov; enable_gcov=$enableval
20968else
20969 enable_gcov='no'
20970fi
20971
20972
20973enable_profiling='no'
20974if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20975 enable_profiling='yes'
20976 if test "$libtool_build_shared_libs" = 'yes'; then
20977 echo "Warning: Can not profile code using shared libraries"
20978 fi
20979fi
20980
20981# Magick API method prefix
20982
20983# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020984if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000020985 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000020986else
cristyfc3d0222012-02-07 15:05:57 +000020987 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000020988fi
20989
20990
cristyfc3d0222012-02-07 15:05:57 +000020991if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000020992
20993cat >>confdefs.h <<_ACEOF
20994#define NAMESPACE_PREFIX $with_method_prefix
20995_ACEOF
20996
cristyfc3d0222012-02-07 15:05:57 +000020997 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000020998fi
20999
cristy71d8c202012-03-20 17:05:01 +000021000# Enable legacy support (default no)
21001# Check whether --enable-legacy-support was given.
21002if test "${enable_legacy_support+set}" = set; then :
21003 enableval=$enable_legacy_support; with_legacy_support=$enableval
21004else
21005 with_legacy_support='no'
21006fi
21007
21008 if test "$with_legacy_support" != 'no'; then
21009 LEGACY_SUPPORT_TRUE=
21010 LEGACY_SUPPORT_FALSE='#'
21011else
21012 LEGACY_SUPPORT_TRUE='#'
21013 LEGACY_SUPPORT_FALSE=
21014fi
21015
21016
cristy3ed852e2009-09-05 21:47:34 +000021017# Number of bits in a Quantum
21018
21019# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021020if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021021 withval=$with_quantum_depth; with_quantum_depth=$withval
21022else
21023 with_quantum_depth=16
21024fi
21025
21026
21027if test "$with_quantum_depth" != '8'; then
21028 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21029fi
21030
21031case "${with_quantum_depth}" in
21032 8 ) ;;
21033 16 ) ;;
21034 32 ) ;;
21035 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021036 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021037esac
21038QUANTUM_DEPTH="$with_quantum_depth"
21039
21040cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021041#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021042_ACEOF
21043
cristya371edf2013-02-06 13:42:17 +000021044MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021045CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021046CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021047
cristy01ff9f32012-12-01 18:15:29 +000021048# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021049MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021050if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021051 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021052fi
cristy01ff9f32012-12-01 18:15:29 +000021053
21054
cristy3ed852e2009-09-05 21:47:34 +000021055# Set pixel cache threshold
21056
21057# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021058if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021059 withval=$with_cache; with_cache=$withval
21060else
21061 with_cache=''
21062fi
21063
21064
21065if test "$with_cache" != ''; then
21066
21067cat >>confdefs.h <<_ACEOF
21068#define PixelCacheThreshold $with_cache
21069_ACEOF
21070
21071 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21072fi
21073
21074# Disable/Enable support for full delegate paths
21075
21076# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021077if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021078 withval=$with_frozenpaths; with_frozenpaths=$withval
21079else
21080 with_frozenpaths='no'
21081fi
21082
21083
21084# Enable build/install of Magick++
21085
21086# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021087if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021088 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21089else
21090 with_magick_plus_plus='yes'
21091fi
21092
21093
cristy3a75f062012-09-08 23:29:40 +000021094# Encode the this name into the shared library.
21095
21096# Check whether --with-package-release-name was given.
21097if test "${with_package_release_name+set}" = set; then :
21098 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21099fi
21100
21101
21102
cristy3ed852e2009-09-05 21:47:34 +000021103# Disable build/install of PerlMagick.
21104
21105# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021106if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021107 withval=$with_perl; with_perl=$withval
21108else
cristyb5f4e2f2010-04-25 00:49:11 +000021109 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021110fi
21111
21112
21113# Options to pass when configuring PerlMagick
21114
21115# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021116if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021117 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021118fi
21119
21120
cristy3ed852e2009-09-05 21:47:34 +000021121
21122# Enable umem, object-caching memory allocation library.
21123
21124# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021125if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021126 withval=$with_umem; with_umem=$withval
21127else
21128 with_umem='no'
21129fi
21130
21131if test "$with_umem" != 'yes' ; then
21132 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21133fi
21134
21135#
21136# Specify path to shared libstdc++ if not in normal location
21137#
21138
21139# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021140if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021141 withval=$with_libstdc; with_libstdc=$withval
21142else
21143 with_libstdc=''
21144fi
21145
21146
21147if test "$with_libstdc" != ''; then
21148 if test -d "$with_libstdc"; then
21149 LIBSTDCLDFLAGS="-L$with_libstdc"
21150 fi
21151fi
21152
21153
21154# Does gcc required -traditional?
21155if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021157$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021158if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021159 $as_echo_n "(cached) " >&6
21160else
21161 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021163/* end confdefs.h. */
21164#include <sgtty.h>
21165Autoconf TIOCGETP
21166_ACEOF
21167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021168 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021169 ac_cv_prog_gcc_traditional=yes
21170else
21171 ac_cv_prog_gcc_traditional=no
21172fi
21173rm -f conftest*
21174
21175
21176 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021178/* end confdefs.h. */
21179#include <termio.h>
21180Autoconf TCGETA
21181_ACEOF
21182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021183 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021184 ac_cv_prog_gcc_traditional=yes
21185fi
21186rm -f conftest*
21187
21188 fi
21189fi
cristy8b350f62009-11-15 23:12:43 +000021190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021191$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21192 if test $ac_cv_prog_gcc_traditional = yes; then
21193 CC="$CC -traditional"
21194 fi
21195fi
21196
21197
21198########
21199#
21200# Set defines required to build DLLs and modules using MinGW
21201#
21202########
21203# These options are set for multi-thread DLL module build
21204# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21205# module: _DLL
21206# executable/Magick++: _DLL _MAGICKMOD_
21207MODULE_EXTRA_CPPFLAGS=''
21208LIBRARY_EXTRA_CPPFLAGS=''
21209if test "${native_win32_build}" = 'yes'; then
21210 if test "${libtool_build_shared_libs}" = 'yes'; then
21211 CPPFLAGS="$CPPFLAGS -D_DLL"
21212 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21213 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21214 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021215 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021216 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21217 else
21218 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21219 fi
21220 else
21221 CPPFLAGS="$CPPFLAGS -D_LIB"
21222 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21223 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21224 fi
21225 if test "$with_threads" = 'yes'; then
21226 CPPFLAGS="$CPPFLAGS -D_MT"
21227 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21228 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21229 fi
21230fi
21231
21232
21233
21234# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021236$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021237if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021238 $as_echo_n "(cached) " >&6
21239else
cristy8b350f62009-11-15 23:12:43 +000021240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021241/* end confdefs.h. */
21242#include <stdlib.h>
21243#include <stdarg.h>
21244#include <string.h>
21245#include <float.h>
21246
21247int
21248main ()
21249{
21250
21251 ;
21252 return 0;
21253}
21254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021255if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021256 ac_cv_header_stdc=yes
21257else
cristy8b350f62009-11-15 23:12:43 +000021258 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021259fi
cristy3ed852e2009-09-05 21:47:34 +000021260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21261
21262if test $ac_cv_header_stdc = yes; then
21263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021265/* end confdefs.h. */
21266#include <string.h>
21267
21268_ACEOF
21269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021270 $EGREP "memchr" >/dev/null 2>&1; then :
21271
cristy3ed852e2009-09-05 21:47:34 +000021272else
21273 ac_cv_header_stdc=no
21274fi
21275rm -f conftest*
21276
21277fi
21278
21279if test $ac_cv_header_stdc = yes; then
21280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021282/* end confdefs.h. */
21283#include <stdlib.h>
21284
21285_ACEOF
21286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021287 $EGREP "free" >/dev/null 2>&1; then :
21288
cristy3ed852e2009-09-05 21:47:34 +000021289else
21290 ac_cv_header_stdc=no
21291fi
21292rm -f conftest*
21293
21294fi
21295
21296if test $ac_cv_header_stdc = yes; then
21297 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021298 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021299 :
21300else
cristy8b350f62009-11-15 23:12:43 +000021301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021302/* end confdefs.h. */
21303#include <ctype.h>
21304#include <stdlib.h>
21305#if ((' ' & 0x0FF) == 0x020)
21306# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21307# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21308#else
21309# define ISLOWER(c) \
21310 (('a' <= (c) && (c) <= 'i') \
21311 || ('j' <= (c) && (c) <= 'r') \
21312 || ('s' <= (c) && (c) <= 'z'))
21313# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21314#endif
21315
21316#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21317int
21318main ()
21319{
21320 int i;
21321 for (i = 0; i < 256; i++)
21322 if (XOR (islower (i), ISLOWER (i))
21323 || toupper (i) != TOUPPER (i))
21324 return 2;
21325 return 0;
21326}
21327_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021328if ac_fn_c_try_run "$LINENO"; then :
21329
cristy3ed852e2009-09-05 21:47:34 +000021330else
cristy8b350f62009-11-15 23:12:43 +000021331 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021332fi
cristy8b350f62009-11-15 23:12:43 +000021333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21334 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021335fi
21336
cristy3ed852e2009-09-05 21:47:34 +000021337fi
21338fi
cristy8b350f62009-11-15 23:12:43 +000021339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021340$as_echo "$ac_cv_header_stdc" >&6; }
21341if test $ac_cv_header_stdc = yes; then
21342
cristy8b350f62009-11-15 23:12:43 +000021343$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021344
21345fi
21346
21347if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021348 { $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 +000021349 header files. Compilation cannot proceed. Please install the ANSI C
21350 headers and rerun this script." >&5
21351$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21352 header files. Compilation cannot proceed. Please install the ANSI C
21353 headers and rerun this script." >&2;};
21354fi
cristya0b81c32010-01-22 02:54:33 +000021355
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21357$as_echo_n "checking whether to enable assertions... " >&6; }
21358 # Check whether --enable-assert was given.
21359if test "${enable_assert+set}" = set; then :
21360 enableval=$enable_assert; ac_enable_assert=$enableval
21361 if test "x$enableval" = xno; then :
21362
21363$as_echo "#define NDEBUG 1" >>confdefs.h
21364
21365elif test "x$enableval" != xyes; then :
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21367$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21368 ac_enable_assert=yes
21369fi
21370else
21371 ac_enable_assert=yes
21372fi
21373
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21375$as_echo "$ac_enable_assert" >&6; }
21376
cristy3ed852e2009-09-05 21:47:34 +000021377ac_header_dirent=no
21378for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21379 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021381$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021382if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021383 $as_echo_n "(cached) " >&6
21384else
cristy8b350f62009-11-15 23:12:43 +000021385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021386/* end confdefs.h. */
21387#include <sys/types.h>
21388#include <$ac_hdr>
21389
21390int
21391main ()
21392{
21393if ((DIR *) 0)
21394return 0;
21395 ;
21396 return 0;
21397}
21398_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021399if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021400 eval "$as_ac_Header=yes"
21401else
cristy8b350f62009-11-15 23:12:43 +000021402 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021403fi
cristy3ed852e2009-09-05 21:47:34 +000021404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21405fi
cristy8b350f62009-11-15 23:12:43 +000021406eval ac_res=\$$as_ac_Header
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021408$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021409if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021410 cat >>confdefs.h <<_ACEOF
21411#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21412_ACEOF
21413
21414ac_header_dirent=$ac_hdr; break
21415fi
21416
21417done
21418# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21419if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021421$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021422if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021423 $as_echo_n "(cached) " >&6
21424else
21425 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021427/* end confdefs.h. */
21428
21429/* Override any GCC internal prototype to avoid an error.
21430 Use char because int might match the return type of a GCC
21431 builtin and then its argument prototype would still apply. */
21432#ifdef __cplusplus
21433extern "C"
21434#endif
21435char opendir ();
21436int
21437main ()
21438{
21439return opendir ();
21440 ;
21441 return 0;
21442}
21443_ACEOF
21444for ac_lib in '' dir; do
21445 if test -z "$ac_lib"; then
21446 ac_res="none required"
21447 else
21448 ac_res=-l$ac_lib
21449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21450 fi
cristy8b350f62009-11-15 23:12:43 +000021451 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021452 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021453fi
cristy8b350f62009-11-15 23:12:43 +000021454rm -f core conftest.err conftest.$ac_objext \
21455 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021456 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021457 break
21458fi
21459done
cristyda16f162011-02-19 23:52:17 +000021460if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021461
cristy3ed852e2009-09-05 21:47:34 +000021462else
21463 ac_cv_search_opendir=no
21464fi
21465rm conftest.$ac_ext
21466LIBS=$ac_func_search_save_LIBS
21467fi
cristy8b350f62009-11-15 23:12:43 +000021468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021469$as_echo "$ac_cv_search_opendir" >&6; }
21470ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021471if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21473
21474fi
21475
21476else
cristy8b350f62009-11-15 23:12:43 +000021477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021478$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021479if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021480 $as_echo_n "(cached) " >&6
21481else
21482 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021484/* end confdefs.h. */
21485
21486/* Override any GCC internal prototype to avoid an error.
21487 Use char because int might match the return type of a GCC
21488 builtin and then its argument prototype would still apply. */
21489#ifdef __cplusplus
21490extern "C"
21491#endif
21492char opendir ();
21493int
21494main ()
21495{
21496return opendir ();
21497 ;
21498 return 0;
21499}
21500_ACEOF
21501for ac_lib in '' x; do
21502 if test -z "$ac_lib"; then
21503 ac_res="none required"
21504 else
21505 ac_res=-l$ac_lib
21506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21507 fi
cristy8b350f62009-11-15 23:12:43 +000021508 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021509 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021510fi
cristy8b350f62009-11-15 23:12:43 +000021511rm -f core conftest.err conftest.$ac_objext \
21512 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021513 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021514 break
21515fi
21516done
cristyda16f162011-02-19 23:52:17 +000021517if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021518
cristy3ed852e2009-09-05 21:47:34 +000021519else
21520 ac_cv_search_opendir=no
21521fi
21522rm conftest.$ac_ext
21523LIBS=$ac_func_search_save_LIBS
21524fi
cristy8b350f62009-11-15 23:12:43 +000021525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021526$as_echo "$ac_cv_search_opendir" >&6; }
21527ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021528if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21530
21531fi
21532
21533fi
21534
21535
21536# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021537for 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 +000021538do :
21539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21540ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021541if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021542 cat >>confdefs.h <<_ACEOF
21543#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21544_ACEOF
21545
21546fi
21547
21548done
21549
21550
21551########
21552#
21553# Checks for typedefs, structures, and compiler characteristics.
21554#
21555########
21556
cristy8b350f62009-11-15 23:12:43 +000021557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021558$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021559if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021560 $as_echo_n "(cached) " >&6
21561else
cristy8b350f62009-11-15 23:12:43 +000021562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021563/* end confdefs.h. */
21564
cristy14fefe52012-05-21 00:59:18 +000021565 #include <stdbool.h>
21566 #ifndef bool
21567 "error: bool is not defined"
21568 #endif
21569 #ifndef false
21570 "error: false is not defined"
21571 #endif
21572 #if false
21573 "error: false is not 0"
21574 #endif
21575 #ifndef true
21576 "error: true is not defined"
21577 #endif
21578 #if true != 1
21579 "error: true is not 1"
21580 #endif
21581 #ifndef __bool_true_false_are_defined
21582 "error: __bool_true_false_are_defined is not defined"
21583 #endif
cristy3ed852e2009-09-05 21:47:34 +000021584
cristy14fefe52012-05-21 00:59:18 +000021585 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021586
cristy14fefe52012-05-21 00:59:18 +000021587 char a[true == 1 ? 1 : -1];
21588 char b[false == 0 ? 1 : -1];
21589 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21590 char d[(bool) 0.5 == true ? 1 : -1];
21591 /* See body of main program for 'e'. */
21592 char f[(_Bool) 0.0 == false ? 1 : -1];
21593 char g[true];
21594 char h[sizeof (_Bool)];
21595 char i[sizeof s.t];
21596 enum { j = false, k = true, l = false * true, m = true * 256 };
21597 /* The following fails for
21598 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21599 _Bool n[m];
21600 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21601 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21602 /* Catch a bug in an HP-UX C compiler. See
21603 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21604 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21605 */
21606 _Bool q = true;
21607 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021608
21609int
21610main ()
21611{
21612
cristy14fefe52012-05-21 00:59:18 +000021613 bool e = &s;
21614 *pq |= q;
21615 *pq |= ! q;
21616 /* Refer to every declared value, to avoid compiler optimizations. */
21617 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21618 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021619
21620 ;
21621 return 0;
21622}
21623_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021624if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021625 ac_cv_header_stdbool_h=yes
21626else
cristy8b350f62009-11-15 23:12:43 +000021627 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021628fi
cristy3ed852e2009-09-05 21:47:34 +000021629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21630fi
cristy8b350f62009-11-15 23:12:43 +000021631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021632$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021633 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021634if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021635
21636cat >>confdefs.h <<_ACEOF
21637#define HAVE__BOOL 1
21638_ACEOF
21639
21640
21641fi
21642
cristy14fefe52012-05-21 00:59:18 +000021643
cristy3ed852e2009-09-05 21:47:34 +000021644if test $ac_cv_header_stdbool_h = yes; then
21645
cristy8b350f62009-11-15 23:12:43 +000021646$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021647
21648fi
21649
cristy8b350f62009-11-15 23:12:43 +000021650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021651$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021652if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021653 $as_echo_n "(cached) " >&6
21654else
cristy8b350f62009-11-15 23:12:43 +000021655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021656/* end confdefs.h. */
21657
21658int
21659main ()
21660{
21661
21662volatile int x;
21663int * volatile y = (int *) 0;
21664return !x && !y;
21665 ;
21666 return 0;
21667}
21668_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021669if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021670 ac_cv_c_volatile=yes
21671else
cristy8b350f62009-11-15 23:12:43 +000021672 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021673fi
cristy3ed852e2009-09-05 21:47:34 +000021674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21675fi
cristy8b350f62009-11-15 23:12:43 +000021676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021677$as_echo "$ac_cv_c_volatile" >&6; }
21678if test $ac_cv_c_volatile = no; then
21679
cristy8b350f62009-11-15 23:12:43 +000021680$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021681
21682fi
21683
cristy8b350f62009-11-15 23:12:43 +000021684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021685$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021686if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021687 $as_echo_n "(cached) " >&6
21688else
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#define x(y) #y
21692
21693char *s = x(teststring);
21694_ACEOF
21695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021696 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021697 ac_cv_c_stringize=no
21698else
21699 ac_cv_c_stringize=yes
21700fi
21701rm -f conftest*
21702
21703fi
cristy8b350f62009-11-15 23:12:43 +000021704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021705$as_echo "$ac_cv_c_stringize" >&6; }
21706if test $ac_cv_c_stringize = yes; then
21707
cristy8b350f62009-11-15 23:12:43 +000021708$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021709
21710fi
21711
cristy8b350f62009-11-15 23:12:43 +000021712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021713$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021714if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021715 $as_echo_n "(cached) " >&6
21716else
cristy8b350f62009-11-15 23:12:43 +000021717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021718/* end confdefs.h. */
21719#include <sys/types.h>
21720#include <sys/stat.h>
21721
21722#if defined S_ISBLK && defined S_IFDIR
21723extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21724#endif
21725
21726#if defined S_ISBLK && defined S_IFCHR
21727extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21728#endif
21729
21730#if defined S_ISLNK && defined S_IFREG
21731extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21732#endif
21733
21734#if defined S_ISSOCK && defined S_IFREG
21735extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21736#endif
21737
21738_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021739if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021740 ac_cv_header_stat_broken=no
21741else
cristy8b350f62009-11-15 23:12:43 +000021742 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021743fi
cristy3ed852e2009-09-05 21:47:34 +000021744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21745fi
cristy8b350f62009-11-15 23:12:43 +000021746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021747$as_echo "$ac_cv_header_stat_broken" >&6; }
21748if test $ac_cv_header_stat_broken = yes; then
21749
cristy8b350f62009-11-15 23:12:43 +000021750$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021751
21752fi
21753
cristy8b350f62009-11-15 23:12:43 +000021754{ $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 +000021755$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021756if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021757 $as_echo_n "(cached) " >&6
21758else
cristy8b350f62009-11-15 23:12:43 +000021759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021760/* end confdefs.h. */
21761#include <sys/types.h>
21762#include <sys/time.h>
21763#include <time.h>
21764
21765int
21766main ()
21767{
21768if ((struct tm *) 0)
21769return 0;
21770 ;
21771 return 0;
21772}
21773_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021774if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021775 ac_cv_header_time=yes
21776else
cristy8b350f62009-11-15 23:12:43 +000021777 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021778fi
cristy3ed852e2009-09-05 21:47:34 +000021779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21780fi
cristy8b350f62009-11-15 23:12:43 +000021781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021782$as_echo "$ac_cv_header_time" >&6; }
21783if test $ac_cv_header_time = yes; then
21784
cristy8b350f62009-11-15 23:12:43 +000021785$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021786
21787fi
21788
cristy8b350f62009-11-15 23:12:43 +000021789{ $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 +000021790$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021791if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021792 $as_echo_n "(cached) " >&6
21793else
cristy8b350f62009-11-15 23:12:43 +000021794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021795/* end confdefs.h. */
21796#include <sys/types.h>
21797#include <time.h>
21798
21799int
21800main ()
21801{
21802struct tm tm;
21803 int *p = &tm.tm_sec;
21804 return !p;
21805 ;
21806 return 0;
21807}
21808_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021809if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021810 ac_cv_struct_tm=time.h
21811else
cristy8b350f62009-11-15 23:12:43 +000021812 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021813fi
cristy3ed852e2009-09-05 21:47:34 +000021814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21815fi
cristy8b350f62009-11-15 23:12:43 +000021816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021817$as_echo "$ac_cv_struct_tm" >&6; }
21818if test $ac_cv_struct_tm = sys/time.h; then
21819
cristy8b350f62009-11-15 23:12:43 +000021820$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021821
21822fi
21823
cristy92703d82010-04-26 00:18:18 +000021824ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21825#include <$ac_cv_struct_tm>
21826
21827"
cristyda16f162011-02-19 23:52:17 +000021828if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021829
21830cat >>confdefs.h <<_ACEOF
21831#define HAVE_STRUCT_TM_TM_ZONE 1
21832_ACEOF
21833
21834
21835fi
21836
21837if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21838
21839$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21840
21841else
21842 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21843"
cristyda16f162011-02-19 23:52:17 +000021844if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021845 ac_have_decl=1
21846else
21847 ac_have_decl=0
21848fi
21849
21850cat >>confdefs.h <<_ACEOF
21851#define HAVE_DECL_TZNAME $ac_have_decl
21852_ACEOF
21853
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21855$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021856if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021857 $as_echo_n "(cached) " >&6
21858else
21859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21860/* end confdefs.h. */
21861#include <time.h>
21862#if !HAVE_DECL_TZNAME
21863extern char *tzname[];
21864#endif
21865
21866int
21867main ()
21868{
21869return tzname[0][0];
21870 ;
21871 return 0;
21872}
21873_ACEOF
21874if ac_fn_c_try_link "$LINENO"; then :
21875 ac_cv_var_tzname=yes
21876else
21877 ac_cv_var_tzname=no
21878fi
21879rm -f core conftest.err conftest.$ac_objext \
21880 conftest$ac_exeext conftest.$ac_ext
21881fi
21882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21883$as_echo "$ac_cv_var_tzname" >&6; }
21884 if test $ac_cv_var_tzname = yes; then
21885
21886$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21887
21888 fi
21889fi
21890
cristy8b350f62009-11-15 23:12:43 +000021891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021892$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021893if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021894 $as_echo_n "(cached) " >&6
21895else
21896 echo '#! /bin/cat
21897exit 69
21898' >conftest
21899chmod u+x conftest
21900(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21901if test $? -ne 69; then
21902 ac_cv_sys_interpreter=yes
21903else
21904 ac_cv_sys_interpreter=no
21905fi
21906rm -f conftest
21907fi
cristy8b350f62009-11-15 23:12:43 +000021908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021909$as_echo "$ac_cv_sys_interpreter" >&6; }
21910interpval=$ac_cv_sys_interpreter
21911
21912
cristye80f9cb2013-01-09 01:09:31 +000021913#
21914# Checks for language qualifiers and semantics.
21915#
21916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21917$as_echo_n "checking whether char is unsigned... " >&6; }
21918if ${ac_cv_c_char_unsigned+:} false; then :
21919 $as_echo_n "(cached) " >&6
21920else
21921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21922/* end confdefs.h. */
21923$ac_includes_default
21924int
21925main ()
21926{
21927static int test_array [1 - 2 * !(((char) -1) < 0)];
21928test_array [0] = 0;
21929return test_array [0];
21930
21931 ;
21932 return 0;
21933}
21934_ACEOF
21935if ac_fn_c_try_compile "$LINENO"; then :
21936 ac_cv_c_char_unsigned=no
21937else
21938 ac_cv_c_char_unsigned=yes
21939fi
21940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21941fi
21942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21943$as_echo "$ac_cv_c_char_unsigned" >&6; }
21944if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21945 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21946
21947fi
21948
21949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21950$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21951if ${ac_cv_c_const+:} false; then :
21952 $as_echo_n "(cached) " >&6
21953else
21954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955/* end confdefs.h. */
21956
21957int
21958main ()
21959{
21960
21961#ifndef __cplusplus
21962 /* Ultrix mips cc rejects this sort of thing. */
21963 typedef int charset[2];
21964 const charset cs = { 0, 0 };
21965 /* SunOS 4.1.1 cc rejects this. */
21966 char const *const *pcpcc;
21967 char **ppc;
21968 /* NEC SVR4.0.2 mips cc rejects this. */
21969 struct point {int x, y;};
21970 static struct point const zero = {0,0};
21971 /* AIX XL C 1.02.0.0 rejects this.
21972 It does not let you subtract one const X* pointer from another in
21973 an arm of an if-expression whose if-part is not a constant
21974 expression */
21975 const char *g = "string";
21976 pcpcc = &g + (g ? g-g : 0);
21977 /* HPUX 7.0 cc rejects these. */
21978 ++pcpcc;
21979 ppc = (char**) pcpcc;
21980 pcpcc = (char const *const *) ppc;
21981 { /* SCO 3.2v4 cc rejects this sort of thing. */
21982 char tx;
21983 char *t = &tx;
21984 char const *s = 0 ? (char *) 0 : (char const *) 0;
21985
21986 *t++ = 0;
21987 if (s) return 0;
21988 }
21989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21990 int x[] = {25, 17};
21991 const int *foo = &x[0];
21992 ++foo;
21993 }
21994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21995 typedef const int *iptr;
21996 iptr p = 0;
21997 ++p;
21998 }
21999 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22001 struct s { int j; const int *ap[3]; } bx;
22002 struct s *b = &bx; b->j = 5;
22003 }
22004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22005 const int foo = 10;
22006 if (!foo) return 0;
22007 }
22008 return !cs[0] && !zero.x;
22009#endif
22010
22011 ;
22012 return 0;
22013}
22014_ACEOF
22015if ac_fn_c_try_compile "$LINENO"; then :
22016 ac_cv_c_const=yes
22017else
22018 ac_cv_c_const=no
22019fi
22020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22021fi
22022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22023$as_echo "$ac_cv_c_const" >&6; }
22024if test $ac_cv_c_const = no; then
22025
22026$as_echo "#define const /**/" >>confdefs.h
22027
22028fi
22029
cristy8b350f62009-11-15 23:12:43 +000022030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022031$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022032if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022033 $as_echo_n "(cached) " >&6
22034else
22035 ac_cv_c_inline=no
22036for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022038/* end confdefs.h. */
22039#ifndef __cplusplus
22040typedef int foo_t;
22041static $ac_kw foo_t static_foo () {return 0; }
22042$ac_kw foo_t foo () {return 0; }
22043#endif
22044
22045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022046if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022047 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022048fi
cristy3ed852e2009-09-05 21:47:34 +000022049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22050 test "$ac_cv_c_inline" != no && break
22051done
22052
22053fi
cristy8b350f62009-11-15 23:12:43 +000022054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022055$as_echo "$ac_cv_c_inline" >&6; }
22056
cristy3ed852e2009-09-05 21:47:34 +000022057case $ac_cv_c_inline in
22058 inline | yes) ;;
22059 *)
22060 case $ac_cv_c_inline in
22061 no) ac_val=;;
22062 *) ac_val=$ac_cv_c_inline;;
22063 esac
22064 cat >>confdefs.h <<_ACEOF
22065#ifndef __cplusplus
22066#define inline $ac_val
22067#endif
22068_ACEOF
22069 ;;
22070esac
22071
cristy8b350f62009-11-15 23:12:43 +000022072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022073$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022074if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022075 $as_echo_n "(cached) " >&6
22076else
22077 ac_cv_c_restrict=no
22078 # The order here caters to the fact that C++ does not require restrict.
22079 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022081/* end confdefs.h. */
22082typedef int * int_ptr;
22083 int foo (int_ptr $ac_kw ip) {
22084 return ip[0];
22085 }
22086int
22087main ()
22088{
22089int s[1];
22090 int * $ac_kw t = s;
22091 t[0] = 0;
22092 return foo(t)
22093 ;
22094 return 0;
22095}
22096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022097if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022098 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022099fi
cristy3ed852e2009-09-05 21:47:34 +000022100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22101 test "$ac_cv_c_restrict" != no && break
22102 done
22103
22104fi
cristy8b350f62009-11-15 23:12:43 +000022105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022106$as_echo "$ac_cv_c_restrict" >&6; }
22107
cristy3ed852e2009-09-05 21:47:34 +000022108 case $ac_cv_c_restrict in
22109 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022110 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022111 ;;
22112 *) cat >>confdefs.h <<_ACEOF
22113#define restrict $ac_cv_c_restrict
22114_ACEOF
22115 ;;
22116 esac
22117
cristye80f9cb2013-01-09 01:09:31 +000022118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22119$as_echo_n "checking for working volatile... " >&6; }
22120if ${ac_cv_c_volatile+:} false; then :
22121 $as_echo_n "(cached) " >&6
22122else
22123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124/* end confdefs.h. */
22125
22126int
22127main ()
22128{
22129
22130volatile int x;
22131int * volatile y = (int *) 0;
22132return !x && !y;
22133 ;
22134 return 0;
22135}
22136_ACEOF
22137if ac_fn_c_try_compile "$LINENO"; then :
22138 ac_cv_c_volatile=yes
22139else
22140 ac_cv_c_volatile=no
22141fi
22142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143fi
22144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22145$as_echo "$ac_cv_c_volatile" >&6; }
22146if test $ac_cv_c_volatile = no; then
22147
22148$as_echo "#define volatile /**/" >>confdefs.h
22149
22150fi
22151
cristy3ed852e2009-09-05 21:47:34 +000022152
22153# If words are stored with the most significant byte first (like
22154# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022156$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022157if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022158 $as_echo_n "(cached) " >&6
22159else
22160 ac_cv_c_bigendian=unknown
22161 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022163/* end confdefs.h. */
22164#ifndef __APPLE_CC__
22165 not a universal capable compiler
22166 #endif
22167 typedef int dummy;
22168
22169_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022170if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022171
22172 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022173 # there are at least two -arch flags with different values.
22174 ac_arch=
22175 ac_prev=
22176 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22177 if test -n "$ac_prev"; then
22178 case $ac_word in
22179 i?86 | x86_64 | ppc | ppc64)
22180 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22181 ac_arch=$ac_word
22182 else
22183 ac_cv_c_bigendian=universal
22184 break
22185 fi
22186 ;;
22187 esac
22188 ac_prev=
22189 elif test "x$ac_word" = "x-arch"; then
22190 ac_prev=arch
22191 fi
22192 done
cristy3ed852e2009-09-05 21:47:34 +000022193fi
cristy3ed852e2009-09-05 21:47:34 +000022194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22195 if test $ac_cv_c_bigendian = unknown; then
22196 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022198/* end confdefs.h. */
22199#include <sys/types.h>
22200 #include <sys/param.h>
22201
22202int
22203main ()
22204{
22205#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22206 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22207 && LITTLE_ENDIAN)
22208 bogus endian macros
22209 #endif
22210
22211 ;
22212 return 0;
22213}
22214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022215if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022216 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022218/* end confdefs.h. */
22219#include <sys/types.h>
22220 #include <sys/param.h>
22221
22222int
22223main ()
22224{
22225#if BYTE_ORDER != BIG_ENDIAN
22226 not big endian
22227 #endif
22228
22229 ;
22230 return 0;
22231}
22232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022233if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022234 ac_cv_c_bigendian=yes
22235else
cristy8b350f62009-11-15 23:12:43 +000022236 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022237fi
cristy3ed852e2009-09-05 21:47:34 +000022238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022239fi
cristy3ed852e2009-09-05 21:47:34 +000022240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22241 fi
22242 if test $ac_cv_c_bigendian = unknown; then
22243 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
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 <limits.h>
22247
22248int
22249main ()
22250{
22251#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22252 bogus endian macros
22253 #endif
22254
22255 ;
22256 return 0;
22257}
22258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022259if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022260 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022262/* end confdefs.h. */
22263#include <limits.h>
22264
22265int
22266main ()
22267{
22268#ifndef _BIG_ENDIAN
22269 not big endian
22270 #endif
22271
22272 ;
22273 return 0;
22274}
22275_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022276if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022277 ac_cv_c_bigendian=yes
22278else
cristy8b350f62009-11-15 23:12:43 +000022279 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022280fi
cristy3ed852e2009-09-05 21:47:34 +000022281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022282fi
cristy3ed852e2009-09-05 21:47:34 +000022283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22284 fi
22285 if test $ac_cv_c_bigendian = unknown; then
22286 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022287 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022288 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022290/* end confdefs.h. */
22291short int ascii_mm[] =
22292 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22293 short int ascii_ii[] =
22294 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22295 int use_ascii (int i) {
22296 return ascii_mm[i] + ascii_ii[i];
22297 }
22298 short int ebcdic_ii[] =
22299 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22300 short int ebcdic_mm[] =
22301 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22302 int use_ebcdic (int i) {
22303 return ebcdic_mm[i] + ebcdic_ii[i];
22304 }
22305 extern int foo;
22306
22307int
22308main ()
22309{
22310return use_ascii (foo) == use_ebcdic (foo);
22311 ;
22312 return 0;
22313}
22314_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022315if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022316 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22317 ac_cv_c_bigendian=yes
22318 fi
22319 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22320 if test "$ac_cv_c_bigendian" = unknown; then
22321 ac_cv_c_bigendian=no
22322 else
22323 # finding both strings is unlikely to happen, but who knows?
22324 ac_cv_c_bigendian=unknown
22325 fi
22326 fi
cristy3ed852e2009-09-05 21:47:34 +000022327fi
cristy3ed852e2009-09-05 21:47:34 +000022328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22329else
cristy8b350f62009-11-15 23:12:43 +000022330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022331/* end confdefs.h. */
22332$ac_includes_default
22333int
22334main ()
22335{
22336
22337 /* Are we little or big endian? From Harbison&Steele. */
22338 union
22339 {
22340 long int l;
22341 char c[sizeof (long int)];
22342 } u;
22343 u.l = 1;
22344 return u.c[sizeof (long int) - 1] == 1;
22345
22346 ;
22347 return 0;
22348}
22349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022350if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022351 ac_cv_c_bigendian=no
22352else
cristy8b350f62009-11-15 23:12:43 +000022353 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022354fi
cristy8b350f62009-11-15 23:12:43 +000022355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22356 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022357fi
22358
cristy3ed852e2009-09-05 21:47:34 +000022359 fi
22360fi
cristy8b350f62009-11-15 23:12:43 +000022361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022362$as_echo "$ac_cv_c_bigendian" >&6; }
22363 case $ac_cv_c_bigendian in #(
22364 yes)
cristy8b350f62009-11-15 23:12:43 +000022365 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022366;; #(
22367 no)
22368 ;; #(
22369 universal)
22370
cristy8b350f62009-11-15 23:12:43 +000022371$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022372
22373 ;; #(
22374 *)
cristy98dddb52010-11-04 00:30:15 +000022375 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022376 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022377 esac
22378
22379
cristy501c8042011-05-26 17:46:28 +000022380# Define to a suitable type, if standard headers do not define it.
22381ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22382case $ac_cv_c_int8_t in #(
22383 no|yes) ;; #(
22384 *)
cristy3ed852e2009-09-05 21:47:34 +000022385
22386cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022387#define int8_t $ac_cv_c_int8_t
22388_ACEOF
22389;;
22390esac
22391
22392ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22393case $ac_cv_c_int16_t in #(
22394 no|yes) ;; #(
22395 *)
22396
22397cat >>confdefs.h <<_ACEOF
22398#define int16_t $ac_cv_c_int16_t
22399_ACEOF
22400;;
22401esac
22402
22403ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22404case $ac_cv_c_int32_t in #(
22405 no|yes) ;; #(
22406 *)
22407
22408cat >>confdefs.h <<_ACEOF
22409#define int32_t $ac_cv_c_int32_t
22410_ACEOF
22411;;
22412esac
22413
22414ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22415case $ac_cv_c_int64_t in #(
22416 no|yes) ;; #(
22417 *)
22418
22419cat >>confdefs.h <<_ACEOF
22420#define int64_t $ac_cv_c_int64_t
22421_ACEOF
22422;;
22423esac
22424
22425
cristycc22d1d2012-12-10 13:03:25 +000022426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22427$as_echo_n "checking for unsigned long long int... " >&6; }
22428if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022429 $as_echo_n "(cached) " >&6
22430else
cristycc22d1d2012-12-10 13:03:25 +000022431 ac_cv_type_unsigned_long_long_int=yes
22432 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022434/* end confdefs.h. */
22435
22436 /* For now, do not test the preprocessor; as of 2007 there are too many
cristycc22d1d2012-12-10 13:03:25 +000022437 implementations with broken preprocessors. Perhaps this can
22438 be revisited in 2012. In the meantime, code should not expect
22439 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022440 /* Test literals. */
22441 long long int ll = 9223372036854775807ll;
22442 long long int nll = -9223372036854775807LL;
22443 unsigned long long int ull = 18446744073709551615ULL;
22444 /* Test constant expressions. */
22445 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristycc22d1d2012-12-10 13:03:25 +000022446 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022447 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristycc22d1d2012-12-10 13:03:25 +000022448 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022449 int i = 63;
22450int
22451main ()
22452{
22453/* Test availability of runtime routines for shift and division. */
22454 long long int llmax = 9223372036854775807ll;
22455 unsigned long long int ullmax = 18446744073709551615ull;
22456 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristycc22d1d2012-12-10 13:03:25 +000022457 | (llmax / ll) | (llmax % ll)
22458 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22459 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022460 ;
22461 return 0;
22462}
22463
22464_ACEOF
22465if ac_fn_c_try_link "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022466
22467else
22468 ac_cv_type_unsigned_long_long_int=no
22469fi
22470rm -f core conftest.err conftest.$ac_objext \
22471 conftest$ac_exeext conftest.$ac_ext
22472 fi
22473fi
22474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22475$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22476 if test $ac_cv_type_unsigned_long_long_int = yes; then
22477
22478$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22479
22480 fi
22481
22482
22483
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22485$as_echo_n "checking for long long int... " >&6; }
22486if ${ac_cv_type_long_long_int+:} false; then :
22487 $as_echo_n "(cached) " >&6
22488else
cristy501c8042011-05-26 17:46:28 +000022489 ac_cv_type_long_long_int=yes
cristycc22d1d2012-12-10 13:03:25 +000022490 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22491 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22492 if test $ac_cv_type_long_long_int = yes; then
22493 if test "$cross_compiling" = yes; then :
22494 :
cristy501c8042011-05-26 17:46:28 +000022495else
22496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22497/* end confdefs.h. */
22498#include <limits.h>
cristycc22d1d2012-12-10 13:03:25 +000022499 #ifndef LLONG_MAX
22500 # define HALF \
22501 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22502 # define LLONG_MAX (HALF - 1 + HALF)
22503 #endif
cristy501c8042011-05-26 17:46:28 +000022504int
22505main ()
22506{
22507long long int n = 1;
cristycc22d1d2012-12-10 13:03:25 +000022508 int i;
22509 for (i = 0; ; i++)
22510 {
22511 long long int m = n << i;
22512 if (m >> i != n)
22513 return 1;
22514 if (LLONG_MAX / 2 < m)
22515 break;
22516 }
22517 return 0;
cristy501c8042011-05-26 17:46:28 +000022518 ;
22519 return 0;
22520}
22521_ACEOF
22522if ac_fn_c_try_run "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022523
cristy501c8042011-05-26 17:46:28 +000022524else
22525 ac_cv_type_long_long_int=no
22526fi
22527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22528 conftest.$ac_objext conftest.beam conftest.$ac_ext
22529fi
22530
cristycc22d1d2012-12-10 13:03:25 +000022531 fi
22532 fi
cristy501c8042011-05-26 17:46:28 +000022533fi
22534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22535$as_echo "$ac_cv_type_long_long_int" >&6; }
22536 if test $ac_cv_type_long_long_int = yes; then
22537
22538$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22539
22540 fi
22541
22542
22543
22544 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22545if test "x$ac_cv_type_intmax_t" = xyes; then :
22546
22547$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22548
22549else
22550 test $ac_cv_type_long_long_int = yes \
22551 && ac_type='long long int' \
22552 || ac_type='long int'
22553
22554cat >>confdefs.h <<_ACEOF
22555#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022556_ACEOF
22557
22558fi
22559
22560
cristy501c8042011-05-26 17:46:28 +000022561
22562 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22563if test "x$ac_cv_type_intptr_t" = xyes; then :
22564
22565$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022566
cristy3ed852e2009-09-05 21:47:34 +000022567else
cristy501c8042011-05-26 17:46:28 +000022568 for ac_type in 'int' 'long int' 'long long int'; do
22569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22570/* end confdefs.h. */
22571$ac_includes_default
22572int
22573main ()
22574{
22575static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022576test_array [0] = 0;
22577return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022578
22579 ;
22580 return 0;
22581}
22582_ACEOF
22583if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022584
22585cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022586#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022587_ACEOF
22588
cristy501c8042011-05-26 17:46:28 +000022589 ac_type=
22590fi
22591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22592 test -z "$ac_type" && break
22593 done
cristy3ed852e2009-09-05 21:47:34 +000022594fi
22595
22596
cristy3ed852e2009-09-05 21:47:34 +000022597
cristy501c8042011-05-26 17:46:28 +000022598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22599$as_echo_n "checking for long double... " >&6; }
22600if ${ac_cv_type_long_double+:} false; then :
22601 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022602else
cristy501c8042011-05-26 17:46:28 +000022603 if test "$GCC" = yes; then
22604 ac_cv_type_long_double=yes
22605 else
22606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22607/* end confdefs.h. */
22608/* The Stardent Vistra knows sizeof (long double), but does
22609 not support it. */
22610 long double foo = 0.0L;
22611int
22612main ()
22613{
22614static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22615 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022616test_array [0] = 0;
22617return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022618
cristy501c8042011-05-26 17:46:28 +000022619 ;
22620 return 0;
22621}
cristy3ed852e2009-09-05 21:47:34 +000022622_ACEOF
cristy501c8042011-05-26 17:46:28 +000022623if ac_fn_c_try_compile "$LINENO"; then :
22624 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022625else
cristy501c8042011-05-26 17:46:28 +000022626 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022627fi
cristy501c8042011-05-26 17:46:28 +000022628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22629 fi
cristy3ed852e2009-09-05 21:47:34 +000022630fi
cristy501c8042011-05-26 17:46:28 +000022631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22632$as_echo "$ac_cv_type_long_double" >&6; }
22633 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022634
cristy501c8042011-05-26 17:46:28 +000022635$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022636
cristy501c8042011-05-26 17:46:28 +000022637 fi
22638
cristy3ed852e2009-09-05 21:47:34 +000022639
cristy8b350f62009-11-15 23:12:43 +000022640 { $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 +000022641$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022642if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022643 $as_echo_n "(cached) " >&6
22644else
cristy8b350f62009-11-15 23:12:43 +000022645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022646/* end confdefs.h. */
22647#include <float.h>
22648 long double const a[] =
22649 {
22650 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22651 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22652 };
22653 long double
22654 f (long double x)
22655 {
22656 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22657 + (x ? f (x) : 'c'));
22658 }
22659
22660int
22661main ()
22662{
22663static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22664 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22665 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22666 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22667 && (int) LDBL_EPSILON == 0
22668 )];
cristy14fefe52012-05-21 00:59:18 +000022669test_array [0] = 0;
22670return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022671
22672 ;
22673 return 0;
22674}
22675_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022676if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022677 ac_cv_type_long_double_wider=yes
22678else
cristy8b350f62009-11-15 23:12:43 +000022679 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022680fi
cristy3ed852e2009-09-05 21:47:34 +000022681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22682fi
cristy8b350f62009-11-15 23:12:43 +000022683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022684$as_echo "$ac_cv_type_long_double_wider" >&6; }
22685 if test $ac_cv_type_long_double_wider = yes; then
22686
cristy8b350f62009-11-15 23:12:43 +000022687$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022688
22689 fi
22690
22691
cristycc22d1d2012-12-10 13:03:25 +000022692
cristy501c8042011-05-26 17:46:28 +000022693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22694$as_echo_n "checking for long long int... " >&6; }
22695if ${ac_cv_type_long_long_int+:} false; then :
22696 $as_echo_n "(cached) " >&6
22697else
cristy501c8042011-05-26 17:46:28 +000022698 ac_cv_type_long_long_int=yes
cristycc22d1d2012-12-10 13:03:25 +000022699 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22700 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22701 if test $ac_cv_type_long_long_int = yes; then
22702 if test "$cross_compiling" = yes; then :
22703 :
cristy501c8042011-05-26 17:46:28 +000022704else
22705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22706/* end confdefs.h. */
22707#include <limits.h>
cristycc22d1d2012-12-10 13:03:25 +000022708 #ifndef LLONG_MAX
22709 # define HALF \
22710 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22711 # define LLONG_MAX (HALF - 1 + HALF)
22712 #endif
cristy501c8042011-05-26 17:46:28 +000022713int
22714main ()
22715{
22716long long int n = 1;
cristycc22d1d2012-12-10 13:03:25 +000022717 int i;
22718 for (i = 0; ; i++)
22719 {
22720 long long int m = n << i;
22721 if (m >> i != n)
22722 return 1;
22723 if (LLONG_MAX / 2 < m)
22724 break;
22725 }
22726 return 0;
cristy501c8042011-05-26 17:46:28 +000022727 ;
22728 return 0;
22729}
22730_ACEOF
22731if ac_fn_c_try_run "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022732
cristy501c8042011-05-26 17:46:28 +000022733else
22734 ac_cv_type_long_long_int=no
22735fi
22736rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22737 conftest.$ac_objext conftest.beam conftest.$ac_ext
22738fi
22739
cristycc22d1d2012-12-10 13:03:25 +000022740 fi
22741 fi
cristy501c8042011-05-26 17:46:28 +000022742fi
22743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22744$as_echo "$ac_cv_type_long_long_int" >&6; }
22745 if test $ac_cv_type_long_long_int = yes; then
22746
22747$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22748
22749 fi
22750
22751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22752$as_echo_n "checking for mbstate_t... " >&6; }
22753if ${ac_cv_type_mbstate_t+:} false; then :
22754 $as_echo_n "(cached) " >&6
22755else
22756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22757/* end confdefs.h. */
22758$ac_includes_default
22759# include <wchar.h>
22760int
22761main ()
22762{
22763mbstate_t x; return sizeof x;
22764 ;
22765 return 0;
22766}
22767_ACEOF
22768if ac_fn_c_try_compile "$LINENO"; then :
22769 ac_cv_type_mbstate_t=yes
22770else
22771 ac_cv_type_mbstate_t=no
22772fi
22773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774fi
22775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22776$as_echo "$ac_cv_type_mbstate_t" >&6; }
22777 if test $ac_cv_type_mbstate_t = yes; then
22778
22779$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22780
22781 else
22782
22783$as_echo "#define mbstate_t int" >>confdefs.h
22784
22785 fi
22786ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22787if test "x$ac_cv_type_mode_t" = xyes; then :
22788
22789else
22790
22791cat >>confdefs.h <<_ACEOF
22792#define mode_t int
22793_ACEOF
22794
22795fi
22796
22797ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22798if test "x$ac_cv_type_off_t" = xyes; then :
22799
22800else
22801
22802cat >>confdefs.h <<_ACEOF
22803#define off_t long int
22804_ACEOF
22805
22806fi
22807
22808ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22809if test "x$ac_cv_type_pid_t" = xyes; then :
22810
22811else
22812
22813cat >>confdefs.h <<_ACEOF
22814#define pid_t int
22815_ACEOF
22816
22817fi
22818
22819ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22820if test "x$ac_cv_type_size_t" = xyes; then :
22821
22822else
22823
22824cat >>confdefs.h <<_ACEOF
22825#define size_t unsigned int
22826_ACEOF
22827
22828fi
22829
22830ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22831if test "x$ac_cv_type_ssize_t" = xyes; then :
22832
22833else
22834
22835cat >>confdefs.h <<_ACEOF
22836#define ssize_t int
22837_ACEOF
22838
22839fi
22840
22841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22842$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22843if ${ac_cv_type_uid_t+:} false; then :
22844 $as_echo_n "(cached) " >&6
22845else
22846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22847/* end confdefs.h. */
22848#include <sys/types.h>
22849
22850_ACEOF
22851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22852 $EGREP "uid_t" >/dev/null 2>&1; then :
22853 ac_cv_type_uid_t=yes
22854else
22855 ac_cv_type_uid_t=no
22856fi
22857rm -f conftest*
22858
22859fi
22860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22861$as_echo "$ac_cv_type_uid_t" >&6; }
22862if test $ac_cv_type_uid_t = no; then
22863
22864$as_echo "#define uid_t int" >>confdefs.h
22865
22866
22867$as_echo "#define gid_t int" >>confdefs.h
22868
22869fi
22870
22871ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22872case $ac_cv_c_uint8_t in #(
22873 no|yes) ;; #(
22874 *)
22875
22876$as_echo "#define _UINT8_T 1" >>confdefs.h
22877
22878
22879cat >>confdefs.h <<_ACEOF
22880#define uint8_t $ac_cv_c_uint8_t
22881_ACEOF
22882;;
22883 esac
22884
22885ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22886case $ac_cv_c_uint16_t in #(
22887 no|yes) ;; #(
22888 *)
22889
22890
22891cat >>confdefs.h <<_ACEOF
22892#define uint16_t $ac_cv_c_uint16_t
22893_ACEOF
22894;;
22895 esac
22896
22897ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22898case $ac_cv_c_uint32_t in #(
22899 no|yes) ;; #(
22900 *)
22901
22902$as_echo "#define _UINT32_T 1" >>confdefs.h
22903
22904
22905cat >>confdefs.h <<_ACEOF
22906#define uint32_t $ac_cv_c_uint32_t
22907_ACEOF
22908;;
22909 esac
22910
22911ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22912case $ac_cv_c_uint64_t in #(
22913 no|yes) ;; #(
22914 *)
22915
22916$as_echo "#define _UINT64_T 1" >>confdefs.h
22917
22918
22919cat >>confdefs.h <<_ACEOF
22920#define uint64_t $ac_cv_c_uint64_t
22921_ACEOF
22922;;
22923 esac
22924
22925
cristy501c8042011-05-26 17:46:28 +000022926
22927 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22928if test "x$ac_cv_type_uintmax_t" = xyes; then :
22929
22930$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22931
22932else
22933 test $ac_cv_type_unsigned_long_long_int = yes \
22934 && ac_type='unsigned long long int' \
22935 || ac_type='unsigned long int'
22936
22937cat >>confdefs.h <<_ACEOF
22938#define uintmax_t $ac_type
22939_ACEOF
22940
22941fi
22942
22943
22944
22945 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22946if test "x$ac_cv_type_uintptr_t" = xyes; then :
22947
22948$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
22949
22950else
22951 for ac_type in 'unsigned int' 'unsigned long int' \
22952 'unsigned long long int'; do
22953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22954/* end confdefs.h. */
22955$ac_includes_default
22956int
22957main ()
22958{
22959static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022960test_array [0] = 0;
22961return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022962
22963 ;
22964 return 0;
22965}
22966_ACEOF
22967if ac_fn_c_try_compile "$LINENO"; then :
22968
22969cat >>confdefs.h <<_ACEOF
22970#define uintptr_t $ac_type
22971_ACEOF
22972
22973 ac_type=
22974fi
22975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22976 test -z "$ac_type" && break
22977 done
22978fi
22979
22980
22981
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22983$as_echo_n "checking for unsigned long long int... " >&6; }
22984if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22985 $as_echo_n "(cached) " >&6
22986else
cristycc22d1d2012-12-10 13:03:25 +000022987 ac_cv_type_unsigned_long_long_int=yes
22988 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022990/* end confdefs.h. */
22991
22992 /* For now, do not test the preprocessor; as of 2007 there are too many
cristycc22d1d2012-12-10 13:03:25 +000022993 implementations with broken preprocessors. Perhaps this can
22994 be revisited in 2012. In the meantime, code should not expect
22995 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022996 /* Test literals. */
22997 long long int ll = 9223372036854775807ll;
22998 long long int nll = -9223372036854775807LL;
22999 unsigned long long int ull = 18446744073709551615ULL;
23000 /* Test constant expressions. */
23001 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristycc22d1d2012-12-10 13:03:25 +000023002 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023003 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristycc22d1d2012-12-10 13:03:25 +000023004 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023005 int i = 63;
23006int
23007main ()
23008{
23009/* Test availability of runtime routines for shift and division. */
23010 long long int llmax = 9223372036854775807ll;
23011 unsigned long long int ullmax = 18446744073709551615ull;
23012 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristycc22d1d2012-12-10 13:03:25 +000023013 | (llmax / ll) | (llmax % ll)
23014 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23015 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023016 ;
23017 return 0;
23018}
23019
23020_ACEOF
23021if ac_fn_c_try_link "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000023022
cristy501c8042011-05-26 17:46:28 +000023023else
23024 ac_cv_type_unsigned_long_long_int=no
23025fi
23026rm -f core conftest.err conftest.$ac_objext \
23027 conftest$ac_exeext conftest.$ac_ext
cristycc22d1d2012-12-10 13:03:25 +000023028 fi
cristy501c8042011-05-26 17:46:28 +000023029fi
23030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23031$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23032 if test $ac_cv_type_unsigned_long_long_int = yes; then
23033
23034$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23035
23036 fi
23037
23038
cristy9b86f202012-11-28 21:55:35 +000023039# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000023040ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23041"
23042if test "x$ac_cv_type_float_t" = xyes; then :
23043
23044cat >>confdefs.h <<_ACEOF
23045#define HAVE_FLOAT_T 1
23046_ACEOF
23047
23048
23049fi
23050
23051ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23052"
23053if test "x$ac_cv_type_double_t" = xyes; then :
23054
23055cat >>confdefs.h <<_ACEOF
23056#define HAVE_DOUBLE_T 1
23057_ACEOF
23058
23059
23060fi
23061
cristy9b86f202012-11-28 21:55:35 +000023062# The cast to long int works around a bug in the HP C Compiler
23063# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23064# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23065# This bug is HP SR number 8606223364.
23066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23067$as_echo_n "checking size of float_t... " >&6; }
23068if ${ac_cv_sizeof_float_t+:} false; then :
23069 $as_echo_n "(cached) " >&6
23070else
23071 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23072"; then :
23073
23074else
23075 if test "$ac_cv_type_float_t" = yes; then
23076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23078as_fn_error 77 "cannot compute sizeof (float_t)
23079See \`config.log' for more details" "$LINENO" 5; }
23080 else
23081 ac_cv_sizeof_float_t=0
23082 fi
23083fi
23084
23085fi
23086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23087$as_echo "$ac_cv_sizeof_float_t" >&6; }
23088
23089
23090
23091cat >>confdefs.h <<_ACEOF
23092#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23093_ACEOF
23094
23095
23096# The cast to long int works around a bug in the HP C Compiler
23097# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23098# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23099# This bug is HP SR number 8606223364.
23100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23101$as_echo_n "checking size of double_t... " >&6; }
23102if ${ac_cv_sizeof_double_t+:} false; then :
23103 $as_echo_n "(cached) " >&6
23104else
23105 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23106"; then :
23107
23108else
23109 if test "$ac_cv_type_double_t" = yes; then
23110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23112as_fn_error 77 "cannot compute sizeof (double_t)
23113See \`config.log' for more details" "$LINENO" 5; }
23114 else
23115 ac_cv_sizeof_double_t=0
23116 fi
23117fi
23118
23119fi
23120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23121$as_echo "$ac_cv_sizeof_double_t" >&6; }
23122
23123
23124
23125cat >>confdefs.h <<_ACEOF
23126#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23127_ACEOF
23128
23129
23130
23131# Get size of float, double and long double for comparaison.
23132# The cast to long int works around a bug in the HP C Compiler
23133# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23134# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23135# This bug is HP SR number 8606223364.
23136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23137$as_echo_n "checking size of float... " >&6; }
23138if ${ac_cv_sizeof_float+:} false; then :
23139 $as_echo_n "(cached) " >&6
23140else
23141 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23142
23143else
23144 if test "$ac_cv_type_float" = yes; then
23145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23147as_fn_error 77 "cannot compute sizeof (float)
23148See \`config.log' for more details" "$LINENO" 5; }
23149 else
23150 ac_cv_sizeof_float=0
23151 fi
23152fi
23153
23154fi
23155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23156$as_echo "$ac_cv_sizeof_float" >&6; }
23157
23158
23159
23160cat >>confdefs.h <<_ACEOF
23161#define SIZEOF_FLOAT $ac_cv_sizeof_float
23162_ACEOF
23163
23164
23165# The cast to long int works around a bug in the HP C Compiler
23166# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23167# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23168# This bug is HP SR number 8606223364.
23169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23170$as_echo_n "checking size of double... " >&6; }
23171if ${ac_cv_sizeof_double+:} false; then :
23172 $as_echo_n "(cached) " >&6
23173else
23174 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23175
23176else
23177 if test "$ac_cv_type_double" = yes; then
23178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23180as_fn_error 77 "cannot compute sizeof (double)
23181See \`config.log' for more details" "$LINENO" 5; }
23182 else
23183 ac_cv_sizeof_double=0
23184 fi
23185fi
23186
23187fi
23188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23189$as_echo "$ac_cv_sizeof_double" >&6; }
23190
23191
23192
23193cat >>confdefs.h <<_ACEOF
23194#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23195_ACEOF
23196
23197
23198# The cast to long int works around a bug in the HP C Compiler
23199# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23200# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23201# This bug is HP SR number 8606223364.
23202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23203$as_echo_n "checking size of long double... " >&6; }
23204if ${ac_cv_sizeof_long_double+:} false; then :
23205 $as_echo_n "(cached) " >&6
23206else
23207 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23208
23209else
23210 if test "$ac_cv_type_long_double" = yes; then
23211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23213as_fn_error 77 "cannot compute sizeof (long double)
23214See \`config.log' for more details" "$LINENO" 5; }
23215 else
23216 ac_cv_sizeof_long_double=0
23217 fi
23218fi
23219
23220fi
23221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23222$as_echo "$ac_cv_sizeof_long_double" >&6; }
23223
23224
23225
23226cat >>confdefs.h <<_ACEOF
23227#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23228_ACEOF
23229
23230
cristyf0cf9a22012-10-24 12:05:01 +000023231
cristy3ed852e2009-09-05 21:47:34 +000023232# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23233# The cast to long int works around a bug in the HP C Compiler
23234# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23235# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23236# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023238$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023239if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023240 $as_echo_n "(cached) " >&6
23241else
cristy8b350f62009-11-15 23:12:43 +000023242 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 +000023243
cristy3ed852e2009-09-05 21:47:34 +000023244else
cristy8b350f62009-11-15 23:12:43 +000023245 if test "$ac_cv_type_signed_short" = yes; then
23246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023248as_fn_error 77 "cannot compute sizeof (signed short)
23249See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023250 else
23251 ac_cv_sizeof_signed_short=0
23252 fi
23253fi
cristy8b350f62009-11-15 23:12:43 +000023254
cristy3ed852e2009-09-05 21:47:34 +000023255fi
cristy8b350f62009-11-15 23:12:43 +000023256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023257$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23258
23259
23260
23261cat >>confdefs.h <<_ACEOF
23262#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23263_ACEOF
23264
23265
23266
23267# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23268# The cast to long int works around a bug in the HP C Compiler
23269# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23270# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23271# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023273$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023274if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023275 $as_echo_n "(cached) " >&6
23276else
cristy8b350f62009-11-15 23:12:43 +000023277 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 +000023278
cristy3ed852e2009-09-05 21:47:34 +000023279else
cristy8b350f62009-11-15 23:12:43 +000023280 if test "$ac_cv_type_unsigned_short" = yes; then
23281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023283as_fn_error 77 "cannot compute sizeof (unsigned short)
23284See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023285 else
23286 ac_cv_sizeof_unsigned_short=0
23287 fi
23288fi
cristy8b350f62009-11-15 23:12:43 +000023289
cristy3ed852e2009-09-05 21:47:34 +000023290fi
cristy8b350f62009-11-15 23:12:43 +000023291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023292$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23293
23294
23295
23296cat >>confdefs.h <<_ACEOF
23297#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23298_ACEOF
23299
23300
23301
23302# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23303# The cast to long int works around a bug in the HP C Compiler
23304# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23305# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23306# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023308$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023309if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023310 $as_echo_n "(cached) " >&6
23311else
cristy8b350f62009-11-15 23:12:43 +000023312 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 +000023313
cristy3ed852e2009-09-05 21:47:34 +000023314else
cristy8b350f62009-11-15 23:12:43 +000023315 if test "$ac_cv_type_signed_int" = yes; then
23316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023318as_fn_error 77 "cannot compute sizeof (signed int)
23319See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023320 else
23321 ac_cv_sizeof_signed_int=0
23322 fi
23323fi
cristy8b350f62009-11-15 23:12:43 +000023324
cristy3ed852e2009-09-05 21:47:34 +000023325fi
cristy8b350f62009-11-15 23:12:43 +000023326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023327$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23328
23329
23330
23331cat >>confdefs.h <<_ACEOF
23332#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23333_ACEOF
23334
23335
23336
23337# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23338# The cast to long int works around a bug in the HP C Compiler
23339# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23340# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23341# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023343$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023344if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023345 $as_echo_n "(cached) " >&6
23346else
cristy8b350f62009-11-15 23:12:43 +000023347 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 +000023348
cristy3ed852e2009-09-05 21:47:34 +000023349else
cristy8b350f62009-11-15 23:12:43 +000023350 if test "$ac_cv_type_unsigned_int" = yes; then
23351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023353as_fn_error 77 "cannot compute sizeof (unsigned int)
23354See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023355 else
23356 ac_cv_sizeof_unsigned_int=0
23357 fi
23358fi
cristy8b350f62009-11-15 23:12:43 +000023359
cristy3ed852e2009-09-05 21:47:34 +000023360fi
cristy8b350f62009-11-15 23:12:43 +000023361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023362$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23363
23364
23365
23366cat >>confdefs.h <<_ACEOF
23367#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23368_ACEOF
23369
23370
23371
23372# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23373# The cast to long int works around a bug in the HP C Compiler
23374# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23375# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23376# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023378$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023379if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023380 $as_echo_n "(cached) " >&6
23381else
cristy8b350f62009-11-15 23:12:43 +000023382 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 +000023383
cristy3ed852e2009-09-05 21:47:34 +000023384else
cristy8b350f62009-11-15 23:12:43 +000023385 if test "$ac_cv_type_signed_long" = yes; then
23386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023388as_fn_error 77 "cannot compute sizeof (signed long)
23389See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023390 else
23391 ac_cv_sizeof_signed_long=0
23392 fi
23393fi
cristy8b350f62009-11-15 23:12:43 +000023394
cristy3ed852e2009-09-05 21:47:34 +000023395fi
cristy8b350f62009-11-15 23:12:43 +000023396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023397$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23398
23399
23400
23401cat >>confdefs.h <<_ACEOF
23402#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23403_ACEOF
23404
23405
23406
23407# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23408# The cast to long int works around a bug in the HP C Compiler
23409# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23410# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23411# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023413$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023414if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023415 $as_echo_n "(cached) " >&6
23416else
cristy8b350f62009-11-15 23:12:43 +000023417 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 +000023418
cristy3ed852e2009-09-05 21:47:34 +000023419else
cristy8b350f62009-11-15 23:12:43 +000023420 if test "$ac_cv_type_unsigned_long" = yes; then
23421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023423as_fn_error 77 "cannot compute sizeof (unsigned long)
23424See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023425 else
23426 ac_cv_sizeof_unsigned_long=0
23427 fi
23428fi
cristy8b350f62009-11-15 23:12:43 +000023429
cristy3ed852e2009-09-05 21:47:34 +000023430fi
cristy8b350f62009-11-15 23:12:43 +000023431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023432$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23433
23434
23435
23436cat >>confdefs.h <<_ACEOF
23437#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23438_ACEOF
23439
23440
23441
23442# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23443# 'signed long long' is not supported then the value defined is zero.
23444# The cast to long int works around a bug in the HP C Compiler
23445# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23446# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23447# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023449$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023450if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023451 $as_echo_n "(cached) " >&6
23452else
cristy8b350f62009-11-15 23:12:43 +000023453 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 +000023454
cristy3ed852e2009-09-05 21:47:34 +000023455else
cristy8b350f62009-11-15 23:12:43 +000023456 if test "$ac_cv_type_signed_long_long" = yes; then
23457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023459as_fn_error 77 "cannot compute sizeof (signed long long)
23460See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023461 else
23462 ac_cv_sizeof_signed_long_long=0
23463 fi
23464fi
cristy8b350f62009-11-15 23:12:43 +000023465
cristy3ed852e2009-09-05 21:47:34 +000023466fi
cristy8b350f62009-11-15 23:12:43 +000023467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023468$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23469
23470
23471
23472cat >>confdefs.h <<_ACEOF
23473#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23474_ACEOF
23475
23476
23477
23478# Obtain size of a 'unsigned long long' and define as
23479# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23480# supported then the value defined is zero.
23481# The cast to long int works around a bug in the HP C Compiler
23482# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23483# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23484# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023486$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023487if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023488 $as_echo_n "(cached) " >&6
23489else
cristy8b350f62009-11-15 23:12:43 +000023490 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 +000023491
cristy3ed852e2009-09-05 21:47:34 +000023492else
cristy8b350f62009-11-15 23:12:43 +000023493 if test "$ac_cv_type_unsigned_long_long" = yes; then
23494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023496as_fn_error 77 "cannot compute sizeof (unsigned long long)
23497See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023498 else
23499 ac_cv_sizeof_unsigned_long_long=0
23500 fi
23501fi
cristy8b350f62009-11-15 23:12:43 +000023502
cristy3ed852e2009-09-05 21:47:34 +000023503fi
cristy8b350f62009-11-15 23:12:43 +000023504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023505$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23506
23507
23508
23509cat >>confdefs.h <<_ACEOF
23510#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23511_ACEOF
23512
23513
23514
23515# Obtain size of off_t and define as SIZEOF_OFF_T
23516# The cast to long int works around a bug in the HP C Compiler
23517# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23518# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23519# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023521$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023522if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023523 $as_echo_n "(cached) " >&6
23524else
cristy8b350f62009-11-15 23:12:43 +000023525 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023526
cristy3ed852e2009-09-05 21:47:34 +000023527else
cristy8b350f62009-11-15 23:12:43 +000023528 if test "$ac_cv_type_off_t" = yes; then
23529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023531as_fn_error 77 "cannot compute sizeof (off_t)
23532See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023533 else
23534 ac_cv_sizeof_off_t=0
23535 fi
23536fi
cristy8b350f62009-11-15 23:12:43 +000023537
cristy3ed852e2009-09-05 21:47:34 +000023538fi
cristy8b350f62009-11-15 23:12:43 +000023539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023540$as_echo "$ac_cv_sizeof_off_t" >&6; }
23541
23542
23543
23544cat >>confdefs.h <<_ACEOF
23545#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23546_ACEOF
23547
23548
23549
23550# Obtain size of size_t and define as SIZEOF_SIZE_T
23551# The cast to long int works around a bug in the HP C Compiler
23552# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23553# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23554# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023556$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023557if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023558 $as_echo_n "(cached) " >&6
23559else
cristy8b350f62009-11-15 23:12:43 +000023560 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023561
cristy3ed852e2009-09-05 21:47:34 +000023562else
cristy8b350f62009-11-15 23:12:43 +000023563 if test "$ac_cv_type_size_t" = yes; then
23564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023566as_fn_error 77 "cannot compute sizeof (size_t)
23567See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023568 else
23569 ac_cv_sizeof_size_t=0
23570 fi
23571fi
cristy8b350f62009-11-15 23:12:43 +000023572
cristy3ed852e2009-09-05 21:47:34 +000023573fi
cristy8b350f62009-11-15 23:12:43 +000023574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023575$as_echo "$ac_cv_sizeof_size_t" >&6; }
23576
23577
23578
23579cat >>confdefs.h <<_ACEOF
23580#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23581_ACEOF
23582
23583
23584
cristy330e9352010-06-01 18:42:49 +000023585# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23586# The cast to long int works around a bug in the HP C Compiler
23587# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23588# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23589# This bug is HP SR number 8606223364.
23590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23591$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023592if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023593 $as_echo_n "(cached) " >&6
23594else
23595 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23596
23597else
23598 if test "$ac_cv_type_ssize_t" = yes; then
23599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023601as_fn_error 77 "cannot compute sizeof (ssize_t)
23602See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023603 else
23604 ac_cv_sizeof_ssize_t=0
23605 fi
23606fi
23607
23608fi
23609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23610$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23611
23612
23613
23614cat >>confdefs.h <<_ACEOF
23615#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23616_ACEOF
23617
23618
23619
cristy3ed852e2009-09-05 21:47:34 +000023620# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23621# The cast to long int works around a bug in the HP C Compiler
23622# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23623# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23624# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023626$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023627if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023628 $as_echo_n "(cached) " >&6
23629else
cristy8b350f62009-11-15 23:12:43 +000023630 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 +000023631
cristy3ed852e2009-09-05 21:47:34 +000023632else
cristy8b350f62009-11-15 23:12:43 +000023633 if test "$ac_cv_type_unsigned_intp" = yes; then
23634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023636as_fn_error 77 "cannot compute sizeof (unsigned int*)
23637See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023638 else
23639 ac_cv_sizeof_unsigned_intp=0
23640 fi
23641fi
cristy8b350f62009-11-15 23:12:43 +000023642
cristy3ed852e2009-09-05 21:47:34 +000023643fi
cristy8b350f62009-11-15 23:12:43 +000023644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023645$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23646
23647
23648
23649cat >>confdefs.h <<_ACEOF
23650#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23651_ACEOF
23652
23653
23654
23655#
23656# Compute sized types for current CPU and compiler options.
23657#
23658
cristy8b350f62009-11-15 23:12:43 +000023659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023660$as_echo_n "checking for signed 8-bit type... " >&6; }
23661INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23663$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023664
23665
cristy8b350f62009-11-15 23:12:43 +000023666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023667$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23668UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23670$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023671
23672
cristy8b350f62009-11-15 23:12:43 +000023673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023674$as_echo_n "checking for signed 16-bit type... " >&6; }
23675INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23677$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023678
23679
cristy8b350f62009-11-15 23:12:43 +000023680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023681$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23682UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23684$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023685
23686
cristy8b350f62009-11-15 23:12:43 +000023687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023688$as_echo_n "checking for signed 32-bit type... " >&6; }
23689INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023690INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023691if test $ac_cv_sizeof_signed_int -eq 4; then
23692 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023693 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023694elif test $ac_cv_sizeof_signed_long -eq 4; then
23695 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023696 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023697fi
cristyad38abe2012-12-23 23:03:21 +000023698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23699$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023700
23701
cristy6d5e20f2011-04-25 13:48:54 +000023702
cristy8b350f62009-11-15 23:12:43 +000023703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023704$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23705UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023706UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023707if test $ac_cv_sizeof_unsigned_int -eq 4; then
23708 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023709 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023710elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23711 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023712 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023713fi
cristyad38abe2012-12-23 23:03:21 +000023714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23715$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023716
23717
cristy6d5e20f2011-04-25 13:48:54 +000023718
cristy8b350f62009-11-15 23:12:43 +000023719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023720$as_echo_n "checking for signed 64-bit type... " >&6; }
23721INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023722INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023723if test $ac_cv_sizeof_signed_long -eq 8; then
23724 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023725 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023726elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23727 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023728 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023729fi
cristy3a99dcf2011-12-17 01:29:40 +000023730case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023731 mingw* )
23732 INT64_F='"I64"'
23733 ;;
23734esac
cristyad38abe2012-12-23 23:03:21 +000023735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23736$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023737
23738
cristy6d5e20f2011-04-25 13:48:54 +000023739
cristy8b350f62009-11-15 23:12:43 +000023740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023741$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23742UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023743UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023744if test $ac_cv_sizeof_unsigned_long -eq 8; then
23745 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023746 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023747elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23748 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023749 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023750fi
cristy3a99dcf2011-12-17 01:29:40 +000023751case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023752 mingw* )
23753 UINT64_F='"I64"'
23754 ;;
23755esac
cristyad38abe2012-12-23 23:03:21 +000023756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23757$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023758
23759
cristy6d5e20f2011-04-25 13:48:54 +000023760
cristy8b350f62009-11-15 23:12:43 +000023761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023762$as_echo_n "checking for unsigned maximum type... " >&6; }
23763UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023764UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023765if test "$UINT64_T" != 'none'; then
23766 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023767 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023768elif test "$UINT32_T" != 'none'; then
23769 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023770 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023771fi
cristyad38abe2012-12-23 23:03:21 +000023772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23773$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023774
23775
cristy6d5e20f2011-04-25 13:48:54 +000023776
cristy8b350f62009-11-15 23:12:43 +000023777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023778$as_echo_n "checking for pointer difference type... " >&6; }
23779UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023780UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023781if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23782 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023783 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023784elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23785 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023786 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023787fi
cristyad38abe2012-12-23 23:03:21 +000023788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23789$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023790
23791
cristy6d5e20f2011-04-25 13:48:54 +000023792
cristy8b350f62009-11-15 23:12:43 +000023793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023794$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023796/* end confdefs.h. */
23797
23798int
23799main ()
23800{
23801{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23802 ;
23803 return 0;
23804}
23805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023806if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23808$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023809else
cristyad38abe2012-12-23 23:03:21 +000023810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23811$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023813$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023815/* end confdefs.h. */
23816
23817int
23818main ()
23819{
23820{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23821 ;
23822 return 0;
23823}
23824_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023825if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23827$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023828
cristy8b350f62009-11-15 23:12:43 +000023829$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023830
23831else
cristyad38abe2012-12-23 23:03:21 +000023832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23833$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023834
cristy8b350f62009-11-15 23:12:43 +000023835$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023836
23837fi
cristy3ed852e2009-09-05 21:47:34 +000023838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23839fi
cristy3ed852e2009-09-05 21:47:34 +000023840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23841
23842########
23843#
23844# Check for functions
23845#
23846########
cristy73bd4a52010-10-05 11:24:23 +000023847for ac_header in stdlib.h unistd.h
23848do :
23849 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23850ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023851if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023852 cat >>confdefs.h <<_ACEOF
23853#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23854_ACEOF
23855
23856fi
23857
23858done
23859
23860for ac_func in getpagesize
23861do :
23862 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023863if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023864 cat >>confdefs.h <<_ACEOF
23865#define HAVE_GETPAGESIZE 1
23866_ACEOF
23867
23868fi
23869done
23870
23871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23872$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023873if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023874 $as_echo_n "(cached) " >&6
23875else
23876 if test "$cross_compiling" = yes; then :
23877 magick_cv_func_mmap_fileio=no
23878else
23879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23880/* end confdefs.h. */
23881$ac_includes_default
23882/* malloc might have been renamed as rpl_malloc. */
23883#undef malloc
23884
23885/*
23886 This test is derived from GNU Autoconf's similar macro.
23887 The purpose of this test is to verify that files may be memory
23888 mapped, and that memory mapping and file I/O are coherent.
23889
23890 The test creates a test file, memory maps the file, updates
23891 the file using the memory map, and then reads the file using
23892 file I/O to verify that the file contains the updates.
23893*/
23894
23895#include <fcntl.h>
23896#include <sys/mman.h>
23897
23898#if !STDC_HEADERS && !HAVE_STDLIB_H
23899char *malloc ();
23900#endif
23901
23902/* This mess was copied from the GNU getpagesize.h. */
23903#if !HAVE_GETPAGESIZE
23904/* Assume that all systems that can run configure have sys/param.h. */
23905# if !HAVE_SYS_PARAM_H
23906# define HAVE_SYS_PARAM_H 1
23907# endif
23908
23909# ifdef _SC_PAGESIZE
23910# define getpagesize() sysconf(_SC_PAGESIZE)
23911# else /* no _SC_PAGESIZE */
23912# if HAVE_SYS_PARAM_H
23913# include <sys/param.h>
23914# ifdef EXEC_PAGESIZE
23915# define getpagesize() EXEC_PAGESIZE
23916# else /* no EXEC_PAGESIZE */
23917# ifdef NBPG
23918# define getpagesize() NBPG * CLSIZE
23919# ifndef CLSIZE
23920# define CLSIZE 1
23921# endif /* no CLSIZE */
23922# else /* no NBPG */
23923# ifdef NBPC
23924# define getpagesize() NBPC
23925# else /* no NBPC */
23926# ifdef PAGESIZE
23927# define getpagesize() PAGESIZE
23928# endif /* PAGESIZE */
23929# endif /* no NBPC */
23930# endif /* no NBPG */
23931# endif /* no EXEC_PAGESIZE */
23932# else /* no HAVE_SYS_PARAM_H */
23933# define getpagesize() 8192 /* punt totally */
23934# endif /* no HAVE_SYS_PARAM_H */
23935# endif /* no _SC_PAGESIZE */
23936
23937#endif /* no HAVE_GETPAGESIZE */
23938
23939int
23940main ()
23941{
23942 char *data, *data2, *data3;
23943 int i, pagesize;
23944 int fd;
23945
23946 pagesize = getpagesize ();
23947
23948 /* First, make a file with some known garbage in it. */
23949 data = (char *) malloc (pagesize);
23950 if (!data)
23951 exit (1);
23952 for (i = 0; i < pagesize; ++i)
23953 *(data + i) = rand ();
23954 umask (0);
23955 fd = creat ("conftest.mmap", 0600);
23956 if (fd < 0)
23957 exit (1);
23958 if (write (fd, data, pagesize) != pagesize)
23959 exit (1);
23960 close (fd);
23961
23962 /* Mmap the file as read/write/shared and verify that we see the
23963 same garbage. */
23964 fd = open ("conftest.mmap", O_RDWR);
23965 if (fd < 0)
23966 exit (1);
23967 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23968 if (data2 == 0)
23969 exit (1);
23970 for (i = 0; i < pagesize; ++i)
23971 if (*(data + i) != *(data2 + i))
23972 exit (1);
23973
23974 /* Finally, make sure that changes to the mapped area
23975 percolate back to the file as seen by read(). */
23976 for (i = 0; i < pagesize; ++i)
23977 *(data2 + i) = *(data2 + i) + 1;
23978 data3 = (char *) malloc (pagesize);
23979 if (!data3)
23980 exit (1);
23981 if (read (fd, data3, pagesize) != pagesize)
23982 exit (1);
23983 for (i = 0; i < pagesize; ++i)
23984 if (*(data2 + i) != *(data3 + i))
23985 exit (1);
23986 close (fd);
23987 exit (0);
23988}
23989_ACEOF
23990if ac_fn_c_try_run "$LINENO"; then :
23991 magick_cv_func_mmap_fileio=yes
23992else
23993 magick_cv_func_mmap_fileio=no
23994fi
23995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23996 conftest.$ac_objext conftest.beam conftest.$ac_ext
23997fi
23998
23999fi
24000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24001$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24002if test $magick_cv_func_mmap_fileio = yes; then
24003
24004$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24005
24006fi
24007rm -f conftest.mmap
24008
cristy8b350f62009-11-15 23:12:43 +000024009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024010$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024011if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024012 $as_echo_n "(cached) " >&6
24013else
cristy8b350f62009-11-15 23:12:43 +000024014 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024015 ac_cv_func_closedir_void=yes
24016else
cristy8b350f62009-11-15 23:12:43 +000024017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024018/* end confdefs.h. */
24019$ac_includes_default
24020#include <$ac_header_dirent>
24021#ifndef __cplusplus
24022int closedir ();
24023#endif
24024
24025int
24026main ()
24027{
24028return closedir (opendir (".")) != 0;
24029 ;
24030 return 0;
24031}
24032_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024033if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024034 ac_cv_func_closedir_void=no
24035else
cristy8b350f62009-11-15 23:12:43 +000024036 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024037fi
cristy8b350f62009-11-15 23:12:43 +000024038rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24039 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024040fi
24041
cristy3ed852e2009-09-05 21:47:34 +000024042fi
cristy8b350f62009-11-15 23:12:43 +000024043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024044$as_echo "$ac_cv_func_closedir_void" >&6; }
24045if test $ac_cv_func_closedir_void = yes; then
24046
cristy8b350f62009-11-15 23:12:43 +000024047$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024048
24049fi
24050
cristycd4c5312009-11-22 01:19:08 +000024051
24052
24053
24054 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024055do :
24056 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024057ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24058"
cristy98dddb52010-11-04 00:30:15 +000024059if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024060 cat >>confdefs.h <<_ACEOF
24061#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24062_ACEOF
24063
24064fi
24065
24066done
24067
cristycd4c5312009-11-22 01:19:08 +000024068
24069
24070
24071
24072
24073
24074
cristy3ed852e2009-09-05 21:47:34 +000024075for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024076do :
24077 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024078if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024079 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024080#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024081_ACEOF
24082
24083fi
24084done
24085
cristy8b350f62009-11-15 23:12:43 +000024086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024087$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024088if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024089 $as_echo_n "(cached) " >&6
24090else
cristy8b350f62009-11-15 23:12:43 +000024091 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024092 ac_cv_func_mmap_fixed_mapped=no
24093else
cristy8b350f62009-11-15 23:12:43 +000024094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024095/* end confdefs.h. */
24096$ac_includes_default
24097/* malloc might have been renamed as rpl_malloc. */
24098#undef malloc
24099
24100/* Thanks to Mike Haertel and Jim Avera for this test.
24101 Here is a matrix of mmap possibilities:
24102 mmap private not fixed
24103 mmap private fixed at somewhere currently unmapped
24104 mmap private fixed at somewhere already mapped
24105 mmap shared not fixed
24106 mmap shared fixed at somewhere currently unmapped
24107 mmap shared fixed at somewhere already mapped
24108 For private mappings, we should verify that changes cannot be read()
24109 back from the file, nor mmap's back from the file at a different
24110 address. (There have been systems where private was not correctly
24111 implemented like the infamous i386 svr4.0, and systems where the
24112 VM page cache was not coherent with the file system buffer cache
24113 like early versions of FreeBSD and possibly contemporary NetBSD.)
24114 For shared mappings, we should conversely verify that changes get
24115 propagated back to all the places they're supposed to be.
24116
24117 Grep wants private fixed already mapped.
24118 The main things grep needs to know about mmap are:
24119 * does it exist and is it safe to write into the mmap'd area
24120 * how to use it (BSD variants) */
24121
24122#include <fcntl.h>
24123#include <sys/mman.h>
24124
24125#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24126char *malloc ();
24127#endif
24128
24129/* This mess was copied from the GNU getpagesize.h. */
24130#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024131# ifdef _SC_PAGESIZE
24132# define getpagesize() sysconf(_SC_PAGESIZE)
24133# else /* no _SC_PAGESIZE */
24134# ifdef HAVE_SYS_PARAM_H
24135# include <sys/param.h>
24136# ifdef EXEC_PAGESIZE
24137# define getpagesize() EXEC_PAGESIZE
24138# else /* no EXEC_PAGESIZE */
24139# ifdef NBPG
24140# define getpagesize() NBPG * CLSIZE
24141# ifndef CLSIZE
24142# define CLSIZE 1
24143# endif /* no CLSIZE */
24144# else /* no NBPG */
24145# ifdef NBPC
24146# define getpagesize() NBPC
24147# else /* no NBPC */
24148# ifdef PAGESIZE
24149# define getpagesize() PAGESIZE
24150# endif /* PAGESIZE */
24151# endif /* no NBPC */
24152# endif /* no NBPG */
24153# endif /* no EXEC_PAGESIZE */
24154# else /* no HAVE_SYS_PARAM_H */
24155# define getpagesize() 8192 /* punt totally */
24156# endif /* no HAVE_SYS_PARAM_H */
24157# endif /* no _SC_PAGESIZE */
24158
24159#endif /* no HAVE_GETPAGESIZE */
24160
24161int
24162main ()
24163{
24164 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024165 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024166 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024167 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024168
24169 pagesize = getpagesize ();
24170
24171 /* First, make a file with some known garbage in it. */
24172 data = (char *) malloc (pagesize);
24173 if (!data)
24174 return 1;
24175 for (i = 0; i < pagesize; ++i)
24176 *(data + i) = rand ();
24177 umask (0);
24178 fd = creat ("conftest.mmap", 0600);
24179 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024180 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024181 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024182 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024183 close (fd);
24184
cristycd4c5312009-11-22 01:19:08 +000024185 /* Next, check that the tail of a page is zero-filled. File must have
24186 non-zero length, otherwise we risk SIGBUS for entire page. */
24187 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24188 if (fd2 < 0)
24189 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024190 cdata2 = "";
24191 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024192 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024193 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024194 if (data2 == MAP_FAILED)
24195 return 6;
24196 for (i = 0; i < pagesize; ++i)
24197 if (*(data2 + i))
24198 return 7;
24199 close (fd2);
24200 if (munmap (data2, pagesize))
24201 return 8;
24202
cristy3ed852e2009-09-05 21:47:34 +000024203 /* Next, try to mmap the file at a fixed address which already has
24204 something else allocated at it. If we can, also make sure that
24205 we see the same garbage. */
24206 fd = open ("conftest.mmap", O_RDWR);
24207 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024208 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024209 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24210 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024211 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024212 for (i = 0; i < pagesize; ++i)
24213 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024214 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024215
24216 /* Finally, make sure that changes to the mapped area do not
24217 percolate back to the file as seen by read(). (This is a bug on
24218 some variants of i386 svr4.0.) */
24219 for (i = 0; i < pagesize; ++i)
24220 *(data2 + i) = *(data2 + i) + 1;
24221 data3 = (char *) malloc (pagesize);
24222 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024223 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024224 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024225 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024226 for (i = 0; i < pagesize; ++i)
24227 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024228 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024229 close (fd);
24230 return 0;
24231}
24232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024233if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024234 ac_cv_func_mmap_fixed_mapped=yes
24235else
cristy8b350f62009-11-15 23:12:43 +000024236 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024237fi
cristy8b350f62009-11-15 23:12:43 +000024238rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24239 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024240fi
24241
cristy3ed852e2009-09-05 21:47:34 +000024242fi
cristy8b350f62009-11-15 23:12:43 +000024243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024244$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24245if test $ac_cv_func_mmap_fixed_mapped = yes; then
24246
cristy8b350f62009-11-15 23:12:43 +000024247$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024248
24249fi
cristycd4c5312009-11-22 01:19:08 +000024250rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024251
cristy3ed852e2009-09-05 21:47:34 +000024252for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024253do :
24254 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024255if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024256 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024257#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024258_ACEOF
24259
24260fi
24261
24262done
24263
cristy3ed852e2009-09-05 21:47:34 +000024264for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024265do :
24266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24267ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024268if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024269 cat >>confdefs.h <<_ACEOF
24270#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24271_ACEOF
24272
24273fi
24274done
24275
24276if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024278$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024279if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024280 $as_echo_n "(cached) " >&6
24281else
cristy8b350f62009-11-15 23:12:43 +000024282 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024283 ac_cv_func_fork_works=cross
24284else
cristy8b350f62009-11-15 23:12:43 +000024285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024286/* end confdefs.h. */
24287$ac_includes_default
24288int
24289main ()
24290{
24291
24292 /* By Ruediger Kuhlmann. */
24293 return fork () < 0;
24294
24295 ;
24296 return 0;
24297}
24298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024299if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024300 ac_cv_func_fork_works=yes
24301else
cristy8b350f62009-11-15 23:12:43 +000024302 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024303fi
cristy8b350f62009-11-15 23:12:43 +000024304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24305 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024306fi
24307
cristy3ed852e2009-09-05 21:47:34 +000024308fi
cristy8b350f62009-11-15 23:12:43 +000024309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024310$as_echo "$ac_cv_func_fork_works" >&6; }
24311
24312else
24313 ac_cv_func_fork_works=$ac_cv_func_fork
24314fi
24315if test "x$ac_cv_func_fork_works" = xcross; then
24316 case $host in
24317 *-*-amigaos* | *-*-msdosdjgpp*)
24318 # Override, as these systems have only a dummy fork() stub
24319 ac_cv_func_fork_works=no
24320 ;;
24321 *)
24322 ac_cv_func_fork_works=yes
24323 ;;
24324 esac
cristy8b350f62009-11-15 23:12:43 +000024325 { $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 +000024326$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24327fi
24328ac_cv_func_vfork_works=$ac_cv_func_vfork
24329if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024331$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024332if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024333 $as_echo_n "(cached) " >&6
24334else
cristy8b350f62009-11-15 23:12:43 +000024335 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024336 ac_cv_func_vfork_works=cross
24337else
cristy8b350f62009-11-15 23:12:43 +000024338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024339/* end confdefs.h. */
24340/* Thanks to Paul Eggert for this test. */
24341$ac_includes_default
24342#include <sys/wait.h>
24343#ifdef HAVE_VFORK_H
24344# include <vfork.h>
24345#endif
24346/* On some sparc systems, changes by the child to local and incoming
24347 argument registers are propagated back to the parent. The compiler
24348 is told about this with #include <vfork.h>, but some compilers
24349 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24350 static variable whose address is put into a register that is
24351 clobbered by the vfork. */
24352static void
24353#ifdef __cplusplus
24354sparc_address_test (int arg)
24355# else
24356sparc_address_test (arg) int arg;
24357#endif
24358{
24359 static pid_t child;
24360 if (!child) {
24361 child = vfork ();
24362 if (child < 0) {
24363 perror ("vfork");
24364 _exit(2);
24365 }
24366 if (!child) {
24367 arg = getpid();
24368 write(-1, "", 0);
24369 _exit (arg);
24370 }
24371 }
24372}
24373
24374int
24375main ()
24376{
24377 pid_t parent = getpid ();
24378 pid_t child;
24379
24380 sparc_address_test (0);
24381
24382 child = vfork ();
24383
24384 if (child == 0) {
24385 /* Here is another test for sparc vfork register problems. This
24386 test uses lots of local variables, at least as many local
24387 variables as main has allocated so far including compiler
24388 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24389 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24390 reuse the register of parent for one of the local variables,
24391 since it will think that parent can't possibly be used any more
24392 in this routine. Assigning to the local variable will thus
24393 munge parent in the parent process. */
24394 pid_t
24395 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24396 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24397 /* Convince the compiler that p..p7 are live; otherwise, it might
24398 use the same hardware register for all 8 local variables. */
24399 if (p != p1 || p != p2 || p != p3 || p != p4
24400 || p != p5 || p != p6 || p != p7)
24401 _exit(1);
24402
24403 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24404 from child file descriptors. If the child closes a descriptor
24405 before it execs or exits, this munges the parent's descriptor
24406 as well. Test for this by closing stdout in the child. */
24407 _exit(close(fileno(stdout)) != 0);
24408 } else {
24409 int status;
24410 struct stat st;
24411
24412 while (wait(&status) != child)
24413 ;
24414 return (
24415 /* Was there some problem with vforking? */
24416 child < 0
24417
24418 /* Did the child fail? (This shouldn't happen.) */
24419 || status
24420
24421 /* Did the vfork/compiler bug occur? */
24422 || parent != getpid()
24423
24424 /* Did the file descriptor bug occur? */
24425 || fstat(fileno(stdout), &st) != 0
24426 );
24427 }
24428}
24429_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024430if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024431 ac_cv_func_vfork_works=yes
24432else
cristy8b350f62009-11-15 23:12:43 +000024433 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024434fi
cristy8b350f62009-11-15 23:12:43 +000024435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24436 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024437fi
24438
cristy3ed852e2009-09-05 21:47:34 +000024439fi
cristy8b350f62009-11-15 23:12:43 +000024440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024441$as_echo "$ac_cv_func_vfork_works" >&6; }
24442
24443fi;
24444if test "x$ac_cv_func_fork_works" = xcross; then
24445 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024446 { $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 +000024447$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24448fi
24449
24450if test "x$ac_cv_func_vfork_works" = xyes; then
24451
cristy8b350f62009-11-15 23:12:43 +000024452$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024453
24454else
24455
cristy8b350f62009-11-15 23:12:43 +000024456$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024457
24458fi
24459if test "x$ac_cv_func_fork_works" = xyes; then
24460
cristy8b350f62009-11-15 23:12:43 +000024461$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024462
24463fi
24464
cristy8b350f62009-11-15 23:12:43 +000024465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024466$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024467if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024468 $as_echo_n "(cached) " >&6
24469else
cristy8b350f62009-11-15 23:12:43 +000024470 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024471 ac_cv_func_memcmp_working=no
24472else
cristy8b350f62009-11-15 23:12:43 +000024473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024474/* end confdefs.h. */
24475$ac_includes_default
24476int
24477main ()
24478{
24479
24480 /* Some versions of memcmp are not 8-bit clean. */
24481 char c0 = '\100', c1 = '\200', c2 = '\201';
24482 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24483 return 1;
24484
24485 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24486 or more and with at least one buffer not starting on a 4-byte boundary.
24487 William Lewis provided this test program. */
24488 {
24489 char foo[21];
24490 char bar[21];
24491 int i;
24492 for (i = 0; i < 4; i++)
24493 {
24494 char *a = foo + i;
24495 char *b = bar + i;
24496 strcpy (a, "--------01111111");
24497 strcpy (b, "--------10000000");
24498 if (memcmp (a, b, 16) >= 0)
24499 return 1;
24500 }
24501 return 0;
24502 }
24503
24504 ;
24505 return 0;
24506}
24507_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024508if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024509 ac_cv_func_memcmp_working=yes
24510else
cristy8b350f62009-11-15 23:12:43 +000024511 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024512fi
cristy8b350f62009-11-15 23:12:43 +000024513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24514 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024515fi
24516
cristy3ed852e2009-09-05 21:47:34 +000024517fi
cristy8b350f62009-11-15 23:12:43 +000024518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024519$as_echo "$ac_cv_func_memcmp_working" >&6; }
24520test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24521 *" memcmp.$ac_objext "* ) ;;
24522 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24523 ;;
24524esac
24525
24526
cristy3ed852e2009-09-05 21:47:34 +000024527for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024528do :
24529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24530ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024531if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024532 cat >>confdefs.h <<_ACEOF
24533#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24534_ACEOF
24535
24536fi
24537
24538done
24539
cristy8b350f62009-11-15 23:12:43 +000024540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024541$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024542if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024543 $as_echo_n "(cached) " >&6
24544else
24545 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24546 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24547 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024549/* end confdefs.h. */
24550$ac_includes_default
24551#ifdef HAVE_SYS_SELECT_H
24552# include <sys/select.h>
24553#endif
24554#ifdef HAVE_SYS_SOCKET_H
24555# include <sys/socket.h>
24556#endif
24557
24558int
24559main ()
24560{
24561extern int select ($ac_arg1,
24562 $ac_arg234, $ac_arg234, $ac_arg234,
24563 $ac_arg5);
24564 ;
24565 return 0;
24566}
24567_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024568if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024569 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024570fi
cristy3ed852e2009-09-05 21:47:34 +000024571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24572 done
24573 done
24574done
24575# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024576: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024577
24578fi
cristy8b350f62009-11-15 23:12:43 +000024579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024580$as_echo "$ac_cv_func_select_args" >&6; }
24581ac_save_IFS=$IFS; IFS=','
24582set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24583IFS=$ac_save_IFS
24584shift
24585
24586cat >>confdefs.h <<_ACEOF
24587#define SELECT_TYPE_ARG1 $1
24588_ACEOF
24589
24590
24591cat >>confdefs.h <<_ACEOF
24592#define SELECT_TYPE_ARG234 ($2)
24593_ACEOF
24594
24595
24596cat >>confdefs.h <<_ACEOF
24597#define SELECT_TYPE_ARG5 ($3)
24598_ACEOF
24599
24600rm -f conftest*
24601
cristyda16f162011-02-19 23:52:17 +000024602if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024603 $as_echo_n "(cached) " >&6
24604else
24605 ac_cv_func_setvbuf_reversed=no
24606fi
24607
24608
cristy8b350f62009-11-15 23:12:43 +000024609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024610$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024611if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024612 $as_echo_n "(cached) " >&6
24613else
cristy8b350f62009-11-15 23:12:43 +000024614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024615/* end confdefs.h. */
24616#include <sys/types.h>
24617#include <signal.h>
24618
24619int
24620main ()
24621{
24622return *(signal (0, 0)) (0) == 1;
24623 ;
24624 return 0;
24625}
24626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024627if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024628 ac_cv_type_signal=int
24629else
cristy8b350f62009-11-15 23:12:43 +000024630 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024631fi
cristy3ed852e2009-09-05 21:47:34 +000024632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24633fi
cristy8b350f62009-11-15 23:12:43 +000024634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024635$as_echo "$ac_cv_type_signal" >&6; }
24636
24637cat >>confdefs.h <<_ACEOF
24638#define RETSIGTYPE $ac_cv_type_signal
24639_ACEOF
24640
24641
cristy8b350f62009-11-15 23:12:43 +000024642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024643$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024644if ${ac_cv_func_strtod+:} 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_strtod=no
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
24653$ac_includes_default
24654#ifndef strtod
24655double strtod ();
24656#endif
24657int
24658main()
24659{
24660 {
24661 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24662 char *string = " +69";
24663 char *term;
24664 double value;
24665 value = strtod (string, &term);
24666 if (value != 69 || term != (string + 4))
24667 return 1;
24668 }
24669
24670 {
24671 /* Under Solaris 2.4, strtod returns the wrong value for the
24672 terminating character under some conditions. */
24673 char *string = "NaN";
24674 char *term;
24675 strtod (string, &term);
24676 if (term != string && *(term - 1) == 0)
24677 return 1;
24678 }
24679 return 0;
24680}
24681
24682_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024683if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024684 ac_cv_func_strtod=yes
24685else
cristy8b350f62009-11-15 23:12:43 +000024686 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024687fi
cristy8b350f62009-11-15 23:12:43 +000024688rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24689 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024690fi
24691
cristy3ed852e2009-09-05 21:47:34 +000024692fi
cristy8b350f62009-11-15 23:12:43 +000024693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024694$as_echo "$ac_cv_func_strtod" >&6; }
24695if test $ac_cv_func_strtod = no; then
24696 case " $LIBOBJS " in
24697 *" strtod.$ac_objext "* ) ;;
24698 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24699 ;;
24700esac
24701
cristy8b350f62009-11-15 23:12:43 +000024702ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024703if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024704
cristy3ed852e2009-09-05 21:47:34 +000024705fi
24706
cristy3ed852e2009-09-05 21:47:34 +000024707if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024709$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024710if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024711 $as_echo_n "(cached) " >&6
24712else
24713 ac_check_lib_save_LIBS=$LIBS
24714LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024716/* end confdefs.h. */
24717
24718/* Override any GCC internal prototype to avoid an error.
24719 Use char because int might match the return type of a GCC
24720 builtin and then its argument prototype would still apply. */
24721#ifdef __cplusplus
24722extern "C"
24723#endif
24724char pow ();
24725int
24726main ()
24727{
24728return pow ();
24729 ;
24730 return 0;
24731}
24732_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024733if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024734 ac_cv_lib_m_pow=yes
24735else
cristy8b350f62009-11-15 23:12:43 +000024736 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024737fi
cristy8b350f62009-11-15 23:12:43 +000024738rm -f core conftest.err conftest.$ac_objext \
24739 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024740LIBS=$ac_check_lib_save_LIBS
24741fi
cristy8b350f62009-11-15 23:12:43 +000024742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024743$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024744if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024745 POW_LIB=-lm
24746else
cristy8b350f62009-11-15 23:12:43 +000024747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024748$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24749fi
24750
24751fi
24752
24753fi
24754
cristy7d4a1d62011-10-13 15:54:12 +000024755ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24756if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24757 ac_have_decl=1
24758else
24759 ac_have_decl=0
24760fi
24761
24762cat >>confdefs.h <<_ACEOF
24763#define HAVE_DECL_STRERROR_R $ac_have_decl
24764_ACEOF
24765
24766for ac_func in strerror_r
24767do :
24768 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24769if test "x$ac_cv_func_strerror_r" = xyes; then :
24770 cat >>confdefs.h <<_ACEOF
24771#define HAVE_STRERROR_R 1
24772_ACEOF
24773
24774fi
24775done
24776
24777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24778$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24779if ${ac_cv_func_strerror_r_char_p+:} false; then :
24780 $as_echo_n "(cached) " >&6
24781else
24782
24783 ac_cv_func_strerror_r_char_p=no
24784 if test $ac_cv_have_decl_strerror_r = yes; then
24785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24786/* end confdefs.h. */
24787$ac_includes_default
24788int
24789main ()
24790{
24791
24792 char buf[100];
24793 char x = *strerror_r (0, buf, sizeof buf);
24794 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024795 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024796
24797 ;
24798 return 0;
24799}
24800_ACEOF
24801if ac_fn_c_try_compile "$LINENO"; then :
24802 ac_cv_func_strerror_r_char_p=yes
24803fi
24804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24805 else
24806 # strerror_r is not declared. Choose between
24807 # systems that have relatively inaccessible declarations for the
24808 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24809 # former has a strerror_r that returns char*, while the latter
24810 # has a strerror_r that returns `int'.
24811 # This test should segfault on the DEC system.
24812 if test "$cross_compiling" = yes; then :
24813 :
24814else
24815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24816/* end confdefs.h. */
24817$ac_includes_default
24818 extern char *strerror_r ();
24819int
24820main ()
24821{
24822char buf[100];
24823 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024824 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024825 ;
24826 return 0;
24827}
24828_ACEOF
24829if ac_fn_c_try_run "$LINENO"; then :
24830 ac_cv_func_strerror_r_char_p=yes
24831fi
24832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24833 conftest.$ac_objext conftest.beam conftest.$ac_ext
24834fi
24835
24836 fi
24837
24838fi
24839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24840$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24841if test $ac_cv_func_strerror_r_char_p = yes; then
24842
24843$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24844
24845fi
24846
cristy3ed852e2009-09-05 21:47:34 +000024847for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024848do :
24849 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024850if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024851 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024852#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024853_ACEOF
24854
cristy8b350f62009-11-15 23:12:43 +000024855ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024856if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024857
cristy8b350f62009-11-15 23:12:43 +000024858$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024859
24860fi
24861
24862fi
24863done
24864
24865
24866
cristy161b9262010-03-20 19:34:32 +000024867#
24868# Find math library
24869#
24870MATH_LIBS=''
24871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24872$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024873if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024874 $as_echo_n "(cached) " >&6
24875else
24876 ac_check_lib_save_LIBS=$LIBS
24877LIBS="-lm $LIBS"
24878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24879/* end confdefs.h. */
24880
24881/* Override any GCC internal prototype to avoid an error.
24882 Use char because int might match the return type of a GCC
24883 builtin and then its argument prototype would still apply. */
24884#ifdef __cplusplus
24885extern "C"
24886#endif
24887char sqrt ();
24888int
24889main ()
24890{
24891return sqrt ();
24892 ;
24893 return 0;
24894}
24895_ACEOF
24896if ac_fn_c_try_link "$LINENO"; then :
24897 ac_cv_lib_m_sqrt=yes
24898else
24899 ac_cv_lib_m_sqrt=no
24900fi
24901rm -f core conftest.err conftest.$ac_objext \
24902 conftest$ac_exeext conftest.$ac_ext
24903LIBS=$ac_check_lib_save_LIBS
24904fi
24905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24906$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024907if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024908 MATH_LIBS="-lm"
24909fi
24910
24911LIBS="$MATH_LIBS $LIBS"
24912
24913
cristy85572162013-01-04 19:19:32 +000024914#
24915# Find socket library
24916#
cristy8a5d7f42013-01-06 15:24:33 +000024917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
24918$as_echo_n "checking for library containing gethostbyname... " >&6; }
24919if ${ac_cv_search_gethostbyname+:} false; then :
24920 $as_echo_n "(cached) " >&6
24921else
24922 ac_func_search_save_LIBS=$LIBS
24923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24924/* end confdefs.h. */
24925
24926/* Override any GCC internal prototype to avoid an error.
24927 Use char because int might match the return type of a GCC
24928 builtin and then its argument prototype would still apply. */
24929#ifdef __cplusplus
24930extern "C"
24931#endif
24932char gethostbyname ();
24933int
24934main ()
24935{
24936return gethostbyname ();
24937 ;
24938 return 0;
24939}
24940_ACEOF
24941for ac_lib in '' resolv nsl; do
24942 if test -z "$ac_lib"; then
24943 ac_res="none required"
24944 else
24945 ac_res=-l$ac_lib
24946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24947 fi
24948 if ac_fn_c_try_link "$LINENO"; then :
24949 ac_cv_search_gethostbyname=$ac_res
24950fi
24951rm -f core conftest.err conftest.$ac_objext \
24952 conftest$ac_exeext
24953 if ${ac_cv_search_gethostbyname+:} false; then :
24954 break
24955fi
24956done
24957if ${ac_cv_search_gethostbyname+:} false; then :
24958
24959else
24960 ac_cv_search_gethostbyname=no
24961fi
24962rm conftest.$ac_ext
24963LIBS=$ac_func_search_save_LIBS
24964fi
24965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
24966$as_echo "$ac_cv_search_gethostbyname" >&6; }
24967ac_res=$ac_cv_search_gethostbyname
24968if test "$ac_res" != no; then :
24969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24970
24971fi
24972
cristy85572162013-01-04 19:19:32 +000024973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
24974$as_echo_n "checking for library containing socket... " >&6; }
24975if ${ac_cv_search_socket+:} false; then :
24976 $as_echo_n "(cached) " >&6
24977else
24978 ac_func_search_save_LIBS=$LIBS
24979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24980/* end confdefs.h. */
24981
24982/* Override any GCC internal prototype to avoid an error.
24983 Use char because int might match the return type of a GCC
24984 builtin and then its argument prototype would still apply. */
24985#ifdef __cplusplus
24986extern "C"
24987#endif
24988char socket ();
24989int
24990main ()
24991{
24992return socket ();
24993 ;
24994 return 0;
24995}
24996_ACEOF
24997for ac_lib in '' socket; do
24998 if test -z "$ac_lib"; then
24999 ac_res="none required"
25000 else
25001 ac_res=-l$ac_lib
25002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25003 fi
25004 if ac_fn_c_try_link "$LINENO"; then :
25005 ac_cv_search_socket=$ac_res
25006fi
25007rm -f core conftest.err conftest.$ac_objext \
25008 conftest$ac_exeext
25009 if ${ac_cv_search_socket+:} false; then :
25010 break
25011fi
25012done
25013if ${ac_cv_search_socket+:} false; then :
25014
25015else
25016 ac_cv_search_socket=no
25017fi
25018rm conftest.$ac_ext
25019LIBS=$ac_func_search_save_LIBS
25020fi
25021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25022$as_echo "$ac_cv_search_socket" >&6; }
25023ac_res=$ac_cv_search_socket
25024if test "$ac_res" != no; then :
25025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25026
cristy85572162013-01-04 19:19:32 +000025027
cristy8a5d7f42013-01-06 15:24:33 +000025028$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025029
cristy03f187e2013-01-24 00:22:19 +000025030 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025031
25032fi
25033
25034
25035for 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 +000025036do :
25037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25038ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025039if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025040 cat >>confdefs.h <<_ACEOF
25041#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25042_ACEOF
25043
25044fi
25045done
25046
25047
cristye43a45e2009-09-28 14:49:00 +000025048#
25049# Check for clock_gettime().
25050#
cristy8b350f62009-11-15 23:12:43 +000025051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025052$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025053if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025054 $as_echo_n "(cached) " >&6
25055else
25056 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025058/* end confdefs.h. */
25059
25060/* Override any GCC internal prototype to avoid an error.
25061 Use char because int might match the return type of a GCC
25062 builtin and then its argument prototype would still apply. */
25063#ifdef __cplusplus
25064extern "C"
25065#endif
25066char clock_gettime ();
25067int
25068main ()
25069{
25070return clock_gettime ();
25071 ;
25072 return 0;
25073}
25074_ACEOF
25075for ac_lib in '' rt; do
25076 if test -z "$ac_lib"; then
25077 ac_res="none required"
25078 else
25079 ac_res=-l$ac_lib
25080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25081 fi
cristy8b350f62009-11-15 23:12:43 +000025082 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025083 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025084fi
cristy8b350f62009-11-15 23:12:43 +000025085rm -f core conftest.err conftest.$ac_objext \
25086 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025087 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025088 break
25089fi
25090done
cristyda16f162011-02-19 23:52:17 +000025091if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025092
cristye43a45e2009-09-28 14:49:00 +000025093else
25094 ac_cv_search_clock_gettime=no
25095fi
25096rm conftest.$ac_ext
25097LIBS=$ac_func_search_save_LIBS
25098fi
cristy8b350f62009-11-15 23:12:43 +000025099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025100$as_echo "$ac_cv_search_clock_gettime" >&6; }
25101ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025102if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25104
25105
cristy8b350f62009-11-15 23:12:43 +000025106$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025107
cristy8b350f62009-11-15 23:12:43 +000025108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025109$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025111/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025112
25113 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025114int
25115main ()
25116{
25117clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025118 ;
25119 return 0;
25120}
25121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025122if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025123
cristyad38abe2012-12-23 23:03:21 +000025124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25125$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025126
cristy8b350f62009-11-15 23:12:43 +000025127$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025128
25129
25130else
cristyad38abe2012-12-23 23:03:21 +000025131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25132$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025133
25134fi
cristye43a45e2009-09-28 14:49:00 +000025135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25136
25137else
25138
cristy8b350f62009-11-15 23:12:43 +000025139 for ac_func in gettimeofday ftime
25140do :
25141 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25142ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025143if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025144 cat >>confdefs.h <<_ACEOF
25145#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25146_ACEOF
25147 break
25148fi
25149done
25150
25151
25152
25153fi
25154
25155
cristy3ed852e2009-09-05 21:47:34 +000025156########
25157#
25158# Check for function prototypes
25159#
25160########
25161
cristy8b350f62009-11-15 23:12:43 +000025162ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025163#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025164"
cristyda16f162011-02-19 23:52:17 +000025165if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025166 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025167else
cristy8b350f62009-11-15 23:12:43 +000025168 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025169fi
25170
cristy3ed852e2009-09-05 21:47:34 +000025171cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025172#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025174ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025175#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025176"
cristyda16f162011-02-19 23:52:17 +000025177if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025178 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025179else
cristy8b350f62009-11-15 23:12:43 +000025180 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025181fi
25182
cristy3ed852e2009-09-05 21:47:34 +000025183cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025184#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025185_ACEOF
25186
25187
cristy8b350f62009-11-15 23:12:43 +000025188ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025189#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025190"
cristyda16f162011-02-19 23:52:17 +000025191if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025192 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025193else
cristy8b350f62009-11-15 23:12:43 +000025194 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025195fi
25196
cristy3ed852e2009-09-05 21:47:34 +000025197cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025198#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025199_ACEOF
25200
25201
cristy8b350f62009-11-15 23:12:43 +000025202ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025203#include <stdio.h>
25204#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025205"
cristyda16f162011-02-19 23:52:17 +000025206if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025207 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025208else
cristy8b350f62009-11-15 23:12:43 +000025209 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025210fi
25211
cristy3ed852e2009-09-05 21:47:34 +000025212cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025213#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025214_ACEOF
25215
25216
cristy3ed852e2009-09-05 21:47:34 +000025217########
25218#
25219# C++ Support Tests (For Magick++)
25220#
25221########
25222have_magick_plus_plus='no'
25223if test "$with_magick_plus_plus" = 'yes'; then
25224 OLIBS="$LIBS"
25225 LIBS=''
25226 ac_ext=cpp
25227ac_cpp='$CXXCPP $CPPFLAGS'
25228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25231
25232
25233 # Full set of headers used...
25234 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25235 # functional iomanip iosfwd iostream iterator list string strstream utility
25236 ac_ext=cpp
25237ac_cpp='$CXXCPP $CPPFLAGS'
25238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25241
25242 ac_ext=cpp
25243ac_cpp='$CXXCPP $CPPFLAGS'
25244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25247if test -z "$CXX"; then
25248 if test -n "$CCC"; then
25249 CXX=$CCC
25250 else
25251 if test -n "$ac_tool_prefix"; then
25252 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25253 do
25254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25255set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025257$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025258if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025259 $as_echo_n "(cached) " >&6
25260else
25261 if test -n "$CXX"; then
25262 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25263else
25264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25265for as_dir in $PATH
25266do
25267 IFS=$as_save_IFS
25268 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025269 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025271 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025273 break 2
25274 fi
25275done
cristy8b350f62009-11-15 23:12:43 +000025276 done
cristy3ed852e2009-09-05 21:47:34 +000025277IFS=$as_save_IFS
25278
25279fi
25280fi
25281CXX=$ac_cv_prog_CXX
25282if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025284$as_echo "$CXX" >&6; }
25285else
cristy8b350f62009-11-15 23:12:43 +000025286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025287$as_echo "no" >&6; }
25288fi
25289
25290
25291 test -n "$CXX" && break
25292 done
25293fi
25294if test -z "$CXX"; then
25295 ac_ct_CXX=$CXX
25296 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25297do
25298 # Extract the first word of "$ac_prog", so it can be a program name with args.
25299set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025301$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025302if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025303 $as_echo_n "(cached) " >&6
25304else
25305 if test -n "$ac_ct_CXX"; then
25306 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25307else
25308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25309for as_dir in $PATH
25310do
25311 IFS=$as_save_IFS
25312 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025313 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025315 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025317 break 2
25318 fi
25319done
cristy8b350f62009-11-15 23:12:43 +000025320 done
cristy3ed852e2009-09-05 21:47:34 +000025321IFS=$as_save_IFS
25322
25323fi
25324fi
25325ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25326if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025328$as_echo "$ac_ct_CXX" >&6; }
25329else
cristy8b350f62009-11-15 23:12:43 +000025330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025331$as_echo "no" >&6; }
25332fi
25333
25334
25335 test -n "$ac_ct_CXX" && break
25336done
25337
25338 if test "x$ac_ct_CXX" = x; then
25339 CXX="g++"
25340 else
25341 case $cross_compiling:$ac_tool_warned in
25342yes:)
cristy8b350f62009-11-15 23:12:43 +000025343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25345ac_tool_warned=yes ;;
25346esac
25347 CXX=$ac_ct_CXX
25348 fi
25349fi
25350
25351 fi
25352fi
25353# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025354$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025355set X $ac_compile
25356ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025357for ac_option in --version -v -V -qversion; do
25358 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025359case "(($ac_try" in
25360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25361 *) ac_try_echo=$ac_try;;
25362esac
cristy8b350f62009-11-15 23:12:43 +000025363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25364$as_echo "$ac_try_echo"; } >&5
25365 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025366 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025367 if test -s conftest.err; then
25368 sed '10a\
25369... rest of stderr output deleted ...
25370 10q' conftest.err >conftest.er1
25371 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025372 fi
cristycd4c5312009-11-22 01:19:08 +000025373 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25375 test $ac_status = 0; }
25376done
cristy3ed852e2009-09-05 21:47:34 +000025377
cristy8b350f62009-11-15 23:12:43 +000025378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025379$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025380if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025381 $as_echo_n "(cached) " >&6
25382else
cristy8b350f62009-11-15 23:12:43 +000025383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025384/* end confdefs.h. */
25385
25386int
25387main ()
25388{
25389#ifndef __GNUC__
25390 choke me
25391#endif
25392
25393 ;
25394 return 0;
25395}
25396_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025397if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025398 ac_compiler_gnu=yes
25399else
cristy8b350f62009-11-15 23:12:43 +000025400 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025401fi
cristy3ed852e2009-09-05 21:47:34 +000025402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25403ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25404
25405fi
cristy8b350f62009-11-15 23:12:43 +000025406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025407$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25408if test $ac_compiler_gnu = yes; then
25409 GXX=yes
25410else
25411 GXX=
25412fi
25413ac_test_CXXFLAGS=${CXXFLAGS+set}
25414ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025416$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025417if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025418 $as_echo_n "(cached) " >&6
25419else
25420 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25421 ac_cxx_werror_flag=yes
25422 ac_cv_prog_cxx_g=no
25423 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025425/* end confdefs.h. */
25426
25427int
25428main ()
25429{
25430
25431 ;
25432 return 0;
25433}
25434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025435if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025436 ac_cv_prog_cxx_g=yes
25437else
cristy8b350f62009-11-15 23:12:43 +000025438 CXXFLAGS=""
25439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025440/* end confdefs.h. */
25441
25442int
25443main ()
25444{
25445
25446 ;
25447 return 0;
25448}
25449_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025450if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025451
cristy8b350f62009-11-15 23:12:43 +000025452else
25453 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025454 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025456/* end confdefs.h. */
25457
25458int
25459main ()
25460{
25461
25462 ;
25463 return 0;
25464}
25465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025466if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025467 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025468fi
cristy3ed852e2009-09-05 21:47:34 +000025469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25470fi
cristy3ed852e2009-09-05 21:47:34 +000025471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25472fi
cristy3ed852e2009-09-05 21:47:34 +000025473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25474 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25475fi
cristy8b350f62009-11-15 23:12:43 +000025476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025477$as_echo "$ac_cv_prog_cxx_g" >&6; }
25478if test "$ac_test_CXXFLAGS" = set; then
25479 CXXFLAGS=$ac_save_CXXFLAGS
25480elif test $ac_cv_prog_cxx_g = yes; then
25481 if test "$GXX" = yes; then
25482 CXXFLAGS="-g -O2"
25483 else
25484 CXXFLAGS="-g"
25485 fi
25486else
25487 if test "$GXX" = yes; then
25488 CXXFLAGS="-O2"
25489 else
25490 CXXFLAGS=
25491 fi
25492fi
25493ac_ext=cpp
25494ac_cpp='$CXXCPP $CPPFLAGS'
25495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25498
cristy73bd4a52010-10-05 11:24:23 +000025499depcc="$CXX" am_compiler_list=
25500
25501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25502$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025503if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025504 $as_echo_n "(cached) " >&6
25505else
25506 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25507 # We make a subdir and do the tests there. Otherwise we can end up
25508 # making bogus files that we don't know about and never remove. For
25509 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025510 # making a dummy file named 'D' -- because '-MD' means "put the output
25511 # in D".
cristy7247bba2012-02-05 16:37:27 +000025512 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025513 mkdir conftest.dir
25514 # Copy depcomp to subdir because otherwise we won't find it if we're
25515 # using a relative directory.
25516 cp "$am_depcomp" conftest.dir
25517 cd conftest.dir
25518 # We will build objects and dependencies in a subdirectory because
25519 # it helps to detect inapplicable dependency modes. For instance
25520 # both Tru64's cc and ICC support -MD to output dependencies as a
25521 # side effect of compilation, but ICC will put the dependencies in
25522 # the current directory while Tru64 will put them in the object
25523 # directory.
25524 mkdir sub
25525
25526 am_cv_CXX_dependencies_compiler_type=none
25527 if test "$am_compiler_list" = ""; then
25528 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25529 fi
25530 am__universal=false
25531 case " $depcc " in #(
25532 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25533 esac
25534
25535 for depmode in $am_compiler_list; do
25536 # Setup a source with many dependencies, because some compilers
25537 # like to wrap large dependency lists on column 80 (with \), and
25538 # we should not choose a depcomp mode which is confused by this.
25539 #
25540 # We need to recreate these files for each test, as the compiler may
25541 # overwrite some of them when testing with obscure command lines.
25542 # This happens at least with the AIX C compiler.
25543 : > sub/conftest.c
25544 for i in 1 2 3 4 5 6; do
25545 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025546 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25547 # Solaris 10 /bin/sh.
25548 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025549 done
25550 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25551
cristyc0890a62012-07-19 00:18:20 +000025552 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025553 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025554 # handle '-M -o', and we need to detect this. Also, some Intel
25555 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025556 am__obj=sub/conftest.${OBJEXT-o}
25557 am__minus_obj="-o $am__obj"
25558 case $depmode in
25559 gcc)
25560 # This depmode causes a compiler race in universal mode.
25561 test "$am__universal" = false || continue
25562 ;;
25563 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025564 # After this tag, mechanisms are not by side-effect, so they'll
25565 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025566 if test "x$enable_dependency_tracking" = xyes; then
25567 continue
25568 else
25569 break
25570 fi
25571 ;;
cristy7247bba2012-02-05 16:37:27 +000025572 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025573 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025574 # not run yet. These depmodes are late enough in the game, and
25575 # so weak that their functioning should not be impacted.
25576 am__obj=conftest.${OBJEXT-o}
25577 am__minus_obj=
25578 ;;
25579 none) break ;;
25580 esac
25581 if depmode=$depmode \
25582 source=sub/conftest.c object=$am__obj \
25583 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25584 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25585 >/dev/null 2>conftest.err &&
25586 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25587 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25588 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25589 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25590 # icc doesn't choke on unknown options, it will just issue warnings
25591 # or remarks (even with -Werror). So we grep stderr for any message
25592 # that says an option was ignored or not supported.
25593 # When given -MP, icc 7.0 and 7.1 complain thusly:
25594 # icc: Command line warning: ignoring option '-M'; no argument required
25595 # The diagnosis changed in icc 8.0:
25596 # icc: Command line remark: option '-MP' not supported
25597 if (grep 'ignoring option' conftest.err ||
25598 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25599 am_cv_CXX_dependencies_compiler_type=$depmode
25600 break
25601 fi
25602 fi
25603 done
25604
25605 cd ..
25606 rm -rf conftest.dir
25607else
25608 am_cv_CXX_dependencies_compiler_type=none
25609fi
25610
25611fi
25612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25613$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25614CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25615
25616 if
25617 test "x$enable_dependency_tracking" != xno \
25618 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25619 am__fastdepCXX_TRUE=
25620 am__fastdepCXX_FALSE='#'
25621else
25622 am__fastdepCXX_TRUE='#'
25623 am__fastdepCXX_FALSE=
25624fi
25625
25626
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25628$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025629if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025630 $as_echo_n "(cached) " >&6
25631else
25632
25633 ac_ext=cpp
25634ac_cpp='$CXXCPP $CPPFLAGS'
25635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25638
25639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25640/* end confdefs.h. */
25641
25642int f(int x){return 1;}
25643int f(char x){return 1;}
25644int f(bool x){return 1;}
25645
25646int
25647main ()
25648{
25649bool b = true; return f(b);
25650 ;
25651 return 0;
25652}
25653_ACEOF
25654if ac_fn_cxx_try_compile "$LINENO"; then :
25655 ax_cv_cxx_bool=yes
25656else
25657 ax_cv_cxx_bool=no
25658fi
25659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25660 ac_ext=cpp
25661ac_cpp='$CXXCPP $CPPFLAGS'
25662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25665
25666
25667fi
25668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25669$as_echo "$ax_cv_cxx_bool" >&6; }
25670if test "$ax_cv_cxx_bool" = yes; then
25671
25672$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25673
25674fi
25675
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25677$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025678if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025679 $as_echo_n "(cached) " >&6
25680else
25681
25682 ac_ext=cpp
25683ac_cpp='$CXXCPP $CPPFLAGS'
25684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25687
25688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25689/* end confdefs.h. */
25690namespace Outer { namespace Inner { int i = 0; }}
25691int
25692main ()
25693{
25694using namespace Outer::Inner; return i;
25695 ;
25696 return 0;
25697}
25698_ACEOF
25699if ac_fn_cxx_try_compile "$LINENO"; then :
25700 ax_cv_cxx_namespaces=yes
25701else
25702 ax_cv_cxx_namespaces=no
25703fi
25704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25705 ac_ext=cpp
25706ac_cpp='$CXXCPP $CPPFLAGS'
25707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25710
25711
25712fi
25713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25714$as_echo "$ax_cv_cxx_namespaces" >&6; }
25715if test "$ax_cv_cxx_namespaces" = yes; then
25716
25717$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25718
25719fi
25720
25721
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25723$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025724if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025725 $as_echo_n "(cached) " >&6
25726else
25727
25728 ac_ext=cpp
25729ac_cpp='$CXXCPP $CPPFLAGS'
25730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25733
25734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25735/* end confdefs.h. */
25736#include <iostream>
25737 std::istream& is = std::cin;
25738int
25739main ()
25740{
25741
25742 ;
25743 return 0;
25744}
25745_ACEOF
25746if ac_fn_cxx_try_compile "$LINENO"; then :
25747 ax_cv_cxx_have_std_namespace=yes
25748else
25749 ax_cv_cxx_have_std_namespace=no
25750fi
25751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25752 ac_ext=cpp
25753ac_cpp='$CXXCPP $CPPFLAGS'
25754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25757
25758
25759fi
25760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25761$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25762 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25763
25764$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25765
25766 fi
25767
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25769$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025770if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025771 $as_echo_n "(cached) " >&6
25772else
25773
25774
25775 ac_ext=cpp
25776ac_cpp='$CXXCPP $CPPFLAGS'
25777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25780
25781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25782/* end confdefs.h. */
25783#include <iostream>
25784#include <map>
25785#include <iomanip>
25786#include <cmath>
25787#ifdef HAVE_NAMESPACES
25788using namespace std;
25789#endif
25790int
25791main ()
25792{
25793return 0;
25794 ;
25795 return 0;
25796}
25797_ACEOF
25798if ac_fn_cxx_try_compile "$LINENO"; then :
25799 ac_cv_cxx_have_std_libs=yes
25800else
25801 ac_cv_cxx_have_std_libs=no
25802fi
25803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25804 ac_ext=cpp
25805ac_cpp='$CXXCPP $CPPFLAGS'
25806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25809
25810
25811fi
25812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25813$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25814if test "$ac_cv_cxx_have_std_libs" = yes; then
25815
25816$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25817
25818fi
25819
cristy3ed852e2009-09-05 21:47:34 +000025820
25821 OPENMP_CXXFLAGS=
25822 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025823if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025824 enableval=$enable_openmp;
25825fi
25826
25827 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25829$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025830if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025831 $as_echo_n "(cached) " >&6
25832else
cristy8b350f62009-11-15 23:12:43 +000025833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25834/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025835
25836#ifndef _OPENMP
25837 choke me
25838#endif
25839#include <omp.h>
25840int main () { return omp_get_num_threads (); }
25841
25842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025843if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025844 ac_cv_prog_cxx_openmp='none needed'
25845else
cristy8b350f62009-11-15 23:12:43 +000025846 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025847 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25848 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025849 ac_save_CXXFLAGS=$CXXFLAGS
25850 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25852/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025853
25854#ifndef _OPENMP
25855 choke me
25856#endif
25857#include <omp.h>
25858int main () { return omp_get_num_threads (); }
25859
25860_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025861if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025862 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025863fi
cristy8b350f62009-11-15 23:12:43 +000025864rm -f core conftest.err conftest.$ac_objext \
25865 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025866 CXXFLAGS=$ac_save_CXXFLAGS
25867 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25868 break
25869 fi
25870 done
25871fi
cristy8b350f62009-11-15 23:12:43 +000025872rm -f core conftest.err conftest.$ac_objext \
25873 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025874fi
cristy8b350f62009-11-15 23:12:43 +000025875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025876$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25877 case $ac_cv_prog_cxx_openmp in #(
25878 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025879 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025880 *)
cristy8b350f62009-11-15 23:12:43 +000025881 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025882 esac
25883 fi
25884
25885
25886 ac_ext=c
25887ac_cpp='$CPP $CPPFLAGS'
25888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25890ac_compiler_gnu=$ac_cv_c_compiler_gnu
25891
25892
cristy8b350f62009-11-15 23:12:43 +000025893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025894$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25895 if \
cristy964cb7f2010-04-25 23:18:00 +000025896 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025897 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025898 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025899 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025900 have_magick_plus_plus='yes'
25901 else
25902 have_magick_plus_plus='no (failed tests)'
25903 fi
cristyad38abe2012-12-23 23:03:21 +000025904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25905$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025906 LIBS="$OLIBS"
25907fi
cristy73bd4a52010-10-05 11:24:23 +000025908 if test "$have_magick_plus_plus" = 'yes'; then
25909 WITH_MAGICK_PLUS_PLUS_TRUE=
25910 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25911else
25912 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25913 WITH_MAGICK_PLUS_PLUS_FALSE=
25914fi
25915
cristy3ed852e2009-09-05 21:47:34 +000025916
25917# Only check for delegate libraries in subdirectories if requested.
25918if test "$enable_delegate_build" != 'no'; then
25919 # Check for delegate sub-directories and add -I & -L options as required.
25920 # This presumes that delegates are installed as detailed in the ImageMagick
25921 # README. If delegates are installed in a standard location where the
25922 # compiler will automatically find them then these options should not be
25923 # required.
25924
25925 #
25926 # Most delegates have includes in the same directory as the library, but not all...
25927 #
25928 # Includes
cristy2542fc62011-12-06 17:50:25 +000025929 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025930 if test -d "$builddir/$dir"; then
25931 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25932 else
25933 if test -d "$srcdirfull/$dir"; then
25934 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25935 fi
25936 fi
25937 done
25938
25939 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025940 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025941 if test -d "$builddir/$dir/.libs"; then
25942 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25943 else
25944 if test -d "$srcdirfull/$dir/.libs"; then
25945 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25946 fi
25947 fi
25948 if test -d "$builddir/$dir"; then
25949 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25950 else
25951 if test -d "$srcdirfull/$dir"; then
25952 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25953 fi
25954 fi
25955 done
25956fi
25957
25958# Assume that delegate headers reside under same directory as ImageMagick
25959# installation prefix.
25960MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25961
25962#
25963# Find the X11 RGB database
25964#
cristy8b350f62009-11-15 23:12:43 +000025965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025966$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025967if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025968 $as_echo_n "(cached) " >&6
25969else
25970 # Look for the header file in a standard set of common directories.
25971# Check X11 before X11Rn because it is often a symlink to the current release.
25972 for ac_dir in \
25973 /lib/usr/lib/X11 \
25974 /usr/X11/lib \
25975 /usr/X11R4/lib \
25976 /usr/X11R5/lib \
25977 /usr/X11R6/lib \
25978 /usr/X11R7/lib \
25979 /usr/X386/lib \
25980 /usr/XFree86/lib/X11 \
25981 /usr/athena/lib \
25982 /usr/lib \
25983 /usr/lib/X11 \
25984 /usr/lib/X11R4 \
25985 /usr/lib/X11R5 \
25986 /usr/lib/X11R6 \
25987 /usr/lib/X11R7 \
25988 /usr/local/X11/lib \
25989 /usr/local/X11R4/lib \
25990 /usr/local/X11R5/lib \
25991 /usr/local/X11R6/lib \
25992 /usr/local/lib \
25993 /usr/local/lib/X11 \
25994 /usr/local/lib/X11R4 \
25995 /usr/local/lib/X11R5 \
25996 /usr/local/lib/X11R6 \
25997 /usr/local/lib/X11R7 \
25998 /usr/local/x11r5/lib \
25999 /usr/lpp/Xamples/lib \
26000 /usr/openwin/lib \
26001 /usr/openwin/share/lib \
26002 /usr/unsupported/lib \
26003 /usr/x386/lib \
26004 ; do
26005 if test -f "$ac_dir/X11/rgb.txt"; then
26006 im_cv_x_configure="$ac_dir/X11/"
26007 break
26008 elif test -f "$ac_dir/rgb.txt"; then
26009 im_cv_x_configure="$ac_dir/"
26010 break
26011 fi
26012
26013 done
26014fi
cristy8b350f62009-11-15 23:12:43 +000026015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026016$as_echo "$im_cv_x_configure" >&6; }
26017X11_CONFIGURE_PATH="$im_cv_x_configure"
26018case "${build_os}" in
26019 mingw* )
26020 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26021 ;;
26022esac
26023
26024cat >>confdefs.h <<_ACEOF
26025#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26026_ACEOF
26027
26028
26029#
26030# Find OpenMP library
26031#
26032GOMP_LIBS=''
26033if test "$enable_openmp" != 'no'; then
26034 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026035 # Open64 (passes for GCC but uses different OpenMP implementation)
26036 if test "x$GOMP_LIBS" = x ; then
26037 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26039$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26040if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26041 $as_echo_n "(cached) " >&6
26042else
26043 ac_check_lib_save_LIBS=$LIBS
26044LIBS="-lopenmp $LIBS"
26045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26046/* end confdefs.h. */
26047
26048/* Override any GCC internal prototype to avoid an error.
26049 Use char because int might match the return type of a GCC
26050 builtin and then its argument prototype would still apply. */
26051#ifdef __cplusplus
26052extern "C"
26053#endif
26054char omp_get_num_procs ();
26055int
26056main ()
26057{
26058return omp_get_num_procs ();
26059 ;
26060 return 0;
26061}
26062_ACEOF
26063if ac_fn_c_try_link "$LINENO"; then :
26064 ac_cv_lib_openmp_omp_get_num_procs=yes
26065else
26066 ac_cv_lib_openmp_omp_get_num_procs=no
26067fi
26068rm -f core conftest.err conftest.$ac_objext \
26069 conftest$ac_exeext conftest.$ac_ext
26070LIBS=$ac_check_lib_save_LIBS
26071fi
26072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26073$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26074if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26075 GOMP_LIBS="-lopenmp"
26076fi
26077
26078 fi
26079 fi
26080 # GCC
26081 if test "x$GOMP_LIBS" = x ; then
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026083$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026084if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026085 $as_echo_n "(cached) " >&6
26086else
26087 ac_check_lib_save_LIBS=$LIBS
26088LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026090/* end confdefs.h. */
26091
26092/* Override any GCC internal prototype to avoid an error.
26093 Use char because int might match the return type of a GCC
26094 builtin and then its argument prototype would still apply. */
26095#ifdef __cplusplus
26096extern "C"
26097#endif
26098char GOMP_parallel_start ();
26099int
26100main ()
26101{
26102return GOMP_parallel_start ();
26103 ;
26104 return 0;
26105}
26106_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026107if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026108 ac_cv_lib_gomp_GOMP_parallel_start=yes
26109else
cristy8b350f62009-11-15 23:12:43 +000026110 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026111fi
cristy8b350f62009-11-15 23:12:43 +000026112rm -f core conftest.err conftest.$ac_objext \
26113 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026114LIBS=$ac_check_lib_save_LIBS
26115fi
cristy8b350f62009-11-15 23:12:43 +000026116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026117$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026118if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026119 GOMP_LIBS="-lgomp"
26120fi
cristy18307f12011-12-30 01:20:16 +000026121
26122 fi
cristy3ed852e2009-09-05 21:47:34 +000026123 else
cristy18307f12011-12-30 01:20:16 +000026124 # Sun CC
26125 if test "x$GOMP_LIBS" = x ; then
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026127$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026128if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026129 $as_echo_n "(cached) " >&6
26130else
26131 ac_check_lib_save_LIBS=$LIBS
26132LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026134/* end confdefs.h. */
26135
26136/* Override any GCC internal prototype to avoid an error.
26137 Use char because int might match the return type of a GCC
26138 builtin and then its argument prototype would still apply. */
26139#ifdef __cplusplus
26140extern "C"
26141#endif
26142char sunw_mp_register_warn ();
26143int
26144main ()
26145{
26146return sunw_mp_register_warn ();
26147 ;
26148 return 0;
26149}
26150_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026151if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026152 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26153else
cristy8b350f62009-11-15 23:12:43 +000026154 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026155fi
cristy8b350f62009-11-15 23:12:43 +000026156rm -f core conftest.err conftest.$ac_objext \
26157 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026158LIBS=$ac_check_lib_save_LIBS
26159fi
cristy8b350f62009-11-15 23:12:43 +000026160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026161$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026162if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026163 GOMP_LIBS="-lmtsk"
26164fi
cristy18307f12011-12-30 01:20:16 +000026165
26166 fi
26167 # AIX xlc
26168 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026170$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026171if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026172 $as_echo_n "(cached) " >&6
26173else
26174 ac_check_lib_save_LIBS=$LIBS
26175LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026177/* end confdefs.h. */
26178
26179/* Override any GCC internal prototype to avoid an error.
26180 Use char because int might match the return type of a GCC
26181 builtin and then its argument prototype would still apply. */
26182#ifdef __cplusplus
26183extern "C"
26184#endif
26185char _xlsmpFlush ();
26186int
26187main ()
26188{
26189return _xlsmpFlush ();
26190 ;
26191 return 0;
26192}
26193_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026194if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026195 ac_cv_lib_xlsmp__xlsmpFlush=yes
26196else
cristy8b350f62009-11-15 23:12:43 +000026197 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026198fi
cristy8b350f62009-11-15 23:12:43 +000026199rm -f core conftest.err conftest.$ac_objext \
26200 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026201LIBS=$ac_check_lib_save_LIBS
26202fi
cristy8b350f62009-11-15 23:12:43 +000026203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026204$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026205if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026206 GOMP_LIBS="-lxlsmp"
26207fi
cristy18307f12011-12-30 01:20:16 +000026208
26209 fi
26210 # SGI IRIX 6.5 MIPSpro C/C++
26211 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026213$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026214if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026215 $as_echo_n "(cached) " >&6
26216else
26217 ac_check_lib_save_LIBS=$LIBS
26218LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026220/* end confdefs.h. */
26221
26222/* Override any GCC internal prototype to avoid an error.
26223 Use char because int might match the return type of a GCC
26224 builtin and then its argument prototype would still apply. */
26225#ifdef __cplusplus
26226extern "C"
26227#endif
26228char mp_destroy ();
26229int
26230main ()
26231{
26232return mp_destroy ();
26233 ;
26234 return 0;
26235}
26236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026237if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026238 ac_cv_lib_mp_mp_destroy=yes
26239else
cristy8b350f62009-11-15 23:12:43 +000026240 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026241fi
cristy8b350f62009-11-15 23:12:43 +000026242rm -f core conftest.err conftest.$ac_objext \
26243 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026244LIBS=$ac_check_lib_save_LIBS
26245fi
cristy8b350f62009-11-15 23:12:43 +000026246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026247$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026248if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026249 GOMP_LIBS="-lmp"
26250fi
cristy18307f12011-12-30 01:20:16 +000026251
26252 fi
cristy3ed852e2009-09-05 21:47:34 +000026253 fi
26254 LIBS="$GOMP_LIBS $LIBS"
26255fi
26256
26257
26258#
26259# Find Posix threads library
26260#
26261THREAD_LIBS=''
26262if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26263
26264 if test "x$PTHREAD_LIBS" = "x"; then
26265 case "${host_cpu}-${host_os}" in
26266 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026267
26268
26269
26270ac_ext=c
26271ac_cpp='$CPP $CPPFLAGS'
26272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26274ac_compiler_gnu=$ac_cv_c_compiler_gnu
26275
26276magick_pthread_lib_ok=no
26277
26278LIB=-lc_r
26279save_LIBS="$LIBS"
26280LIBS="$LIBS $LIB"
26281
26282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26283$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26285/* end confdefs.h. */
26286#include <pthread.h>
26287int
26288main ()
26289{
26290 pthread_t th;
26291 pthread_join(th, 0);
26292 pthread_attr_init(0);
26293 pthread_cleanup_push(0, 0);
26294 pthread_create(0,0,0,0);
26295 pthread_cleanup_pop(0);
26296 ;
26297 return 0;
26298}
26299_ACEOF
26300if ac_fn_c_try_link "$LINENO"; then :
26301 magick_pthread_lib_ok=yes
26302fi
26303rm -f core conftest.err conftest.$ac_objext \
26304 conftest$ac_exeext conftest.$ac_ext
26305
26306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26307$as_echo "${magick_pthread_lib_ok}" >&6; }
26308if test "$magick_pthread_lib_ok" = yes
26309then
26310 PTHREAD_LIBS=-lc_r
26311 :
26312else
26313
26314 :
26315fi
26316
26317LIBS="$save_LIBS"
26318
26319ac_ext=c
26320ac_cpp='$CPP $CPPFLAGS'
26321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26323ac_compiler_gnu=$ac_cv_c_compiler_gnu
26324
26325 ;;
cristy3ed852e2009-09-05 21:47:34 +000026326 esac
26327 fi
26328
26329 for lib in pthread pthreads; do
26330 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026331
26332
26333
26334ac_ext=c
26335ac_cpp='$CPP $CPPFLAGS'
26336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26338ac_compiler_gnu=$ac_cv_c_compiler_gnu
26339
26340magick_pthread_lib_ok=no
26341
26342LIB=-l$lib
26343save_LIBS="$LIBS"
26344LIBS="$LIBS $LIB"
26345
26346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26347$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26349/* end confdefs.h. */
26350#include <pthread.h>
26351int
26352main ()
26353{
26354 pthread_t th;
26355 pthread_join(th, 0);
26356 pthread_attr_init(0);
26357 pthread_cleanup_push(0, 0);
26358 pthread_create(0,0,0,0);
26359 pthread_cleanup_pop(0);
26360 ;
26361 return 0;
26362}
26363_ACEOF
26364if ac_fn_c_try_link "$LINENO"; then :
26365 magick_pthread_lib_ok=yes
26366fi
26367rm -f core conftest.err conftest.$ac_objext \
26368 conftest$ac_exeext conftest.$ac_ext
26369
26370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26371$as_echo "${magick_pthread_lib_ok}" >&6; }
26372if test "$magick_pthread_lib_ok" = yes
26373then
26374 PTHREAD_LIBS=-l$lib
26375 :
26376else
26377
26378 :
26379fi
26380
26381LIBS="$save_LIBS"
26382
26383ac_ext=c
26384ac_cpp='$CPP $CPPFLAGS'
26385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26387ac_compiler_gnu=$ac_cv_c_compiler_gnu
26388
26389
cristy3ed852e2009-09-05 21:47:34 +000026390 fi
26391 done
26392
26393 THREAD_LIBS="$PTHREAD_LIBS"
26394 LIBS="$LIBS $THREAD_LIBS"
26395fi
26396
26397
26398#
26399# Check for umem.
26400#
26401have_umem='no'
26402UMEM_LIBS=''
26403if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026405$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26407$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026408 failed=0
26409 passed=0
cristy8b350f62009-11-15 23:12:43 +000026410 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026411if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026412 passed=`expr $passed + 1`
26413else
26414 failed=`expr $failed + 1`
26415fi
26416
26417
cristy8b350f62009-11-15 23:12:43 +000026418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026419$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026420if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026421 $as_echo_n "(cached) " >&6
26422else
26423 ac_check_lib_save_LIBS=$LIBS
26424LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026426/* end confdefs.h. */
26427
26428/* Override any GCC internal prototype to avoid an error.
26429 Use char because int might match the return type of a GCC
26430 builtin and then its argument prototype would still apply. */
26431#ifdef __cplusplus
26432extern "C"
26433#endif
26434char umem_alloc ();
26435int
26436main ()
26437{
26438return umem_alloc ();
26439 ;
26440 return 0;
26441}
26442_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026443if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026444 ac_cv_lib_umem_umem_alloc=yes
26445else
cristy8b350f62009-11-15 23:12:43 +000026446 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026447fi
cristy8b350f62009-11-15 23:12:43 +000026448rm -f core conftest.err conftest.$ac_objext \
26449 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026450LIBS=$ac_check_lib_save_LIBS
26451fi
cristy8b350f62009-11-15 23:12:43 +000026452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026453$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026454if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026455 passed=`expr $passed + 1`
26456else
26457 failed=`expr $failed + 1`
26458fi
26459
cristy8b350f62009-11-15 23:12:43 +000026460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026461$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026462if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026463 $as_echo_n "(cached) " >&6
26464else
26465 ac_check_lib_save_LIBS=$LIBS
26466LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026468/* end confdefs.h. */
26469
26470/* Override any GCC internal prototype to avoid an error.
26471 Use char because int might match the return type of a GCC
26472 builtin and then its argument prototype would still apply. */
26473#ifdef __cplusplus
26474extern "C"
26475#endif
26476char umem_free ();
26477int
26478main ()
26479{
26480return umem_free ();
26481 ;
26482 return 0;
26483}
26484_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026485if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026486 ac_cv_lib_umem_umem_free=yes
26487else
cristy8b350f62009-11-15 23:12:43 +000026488 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026489fi
cristy8b350f62009-11-15 23:12:43 +000026490rm -f core conftest.err conftest.$ac_objext \
26491 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026492LIBS=$ac_check_lib_save_LIBS
26493fi
cristy8b350f62009-11-15 23:12:43 +000026494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026495$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026496if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026497 passed=`expr $passed + 1`
26498else
26499 failed=`expr $failed + 1`
26500fi
26501
cristy8b350f62009-11-15 23:12:43 +000026502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026503$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26504 if test $passed -gt 0; then
26505 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26507$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026508 have_umem='no (failed tests)'
26509 else
26510 UMEM_LIBS='-lumem'
26511 LIBS="$UMEM_LIBS $LIBS"
26512
cristy8b350f62009-11-15 23:12:43 +000026513$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026514
cristyad38abe2012-12-23 23:03:21 +000026515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26516$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026517 have_umem='yes'
26518 fi
26519 else
cristyad38abe2012-12-23 23:03:21 +000026520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26521$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026522 fi
26523fi
cristy73bd4a52010-10-05 11:24:23 +000026524 if test "$have_umem" = 'yes'; then
26525 HasUMEM_TRUE=
26526 HasUMEM_FALSE='#'
26527else
26528 HasUMEM_TRUE='#'
26529 HasUMEM_FALSE=
26530fi
26531
cristy3ed852e2009-09-05 21:47:34 +000026532
26533
26534#
26535# Add support for ccmalloc memory debugging library if requested
26536#
26537have_ccmalloc='no'
26538CCMALLOC_LIBS=''
26539if test "$enable_ccmalloc" = 'yes'; then
26540 # Extract the first word of "ccmalloc", so it can be a program name with args.
26541set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026544if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026545 $as_echo_n "(cached) " >&6
26546else
26547 case $CCMALLOCDelegate in
26548 [\\/]* | ?:[\\/]*)
26549 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26550 ;;
26551 *)
26552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26553for as_dir in $PATH
26554do
26555 IFS=$as_save_IFS
26556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026559 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026561 break 2
26562 fi
26563done
cristy8b350f62009-11-15 23:12:43 +000026564 done
cristy3ed852e2009-09-05 21:47:34 +000026565IFS=$as_save_IFS
26566
26567 ;;
26568esac
26569fi
26570CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26571if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026573$as_echo "$CCMALLOCDelegate" >&6; }
26574else
cristy8b350f62009-11-15 23:12:43 +000026575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026576$as_echo "no" >&6; }
26577fi
26578
26579
26580 if test -n "$CCMALLOCDelegate"; then
26581 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26582 OLIBS="$LIBS"
26583 # Assume that gcc is used with ccmalloc.
26584 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026586$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026587if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026588 $as_echo_n "(cached) " >&6
26589else
26590 ac_check_lib_save_LIBS=$LIBS
26591LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026593/* end confdefs.h. */
26594
26595/* Override any GCC internal prototype to avoid an error.
26596 Use char because int might match the return type of a GCC
26597 builtin and then its argument prototype would still apply. */
26598#ifdef __cplusplus
26599extern "C"
26600#endif
26601char ccmalloc_malloc ();
26602int
26603main ()
26604{
26605return ccmalloc_malloc ();
26606 ;
26607 return 0;
26608}
26609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026610if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026611 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26612else
cristy8b350f62009-11-15 23:12:43 +000026613 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026614fi
cristy8b350f62009-11-15 23:12:43 +000026615rm -f core conftest.err conftest.$ac_objext \
26616 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026617LIBS=$ac_check_lib_save_LIBS
26618fi
cristy8b350f62009-11-15 23:12:43 +000026619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026620$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026621if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026622 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26623fi
26624
26625 if test -n "$CCMALLOC_LIBS"; then
26626 LIBS="$OLIBS"
26627 LIBS="$LIBS $CCMALLOC_LIBS"
26628 have_ccmalloc='yes'
26629 else
26630 LIBS="$OLIBS"
26631 fi
26632 fi
26633fi
26634
26635#
26636# Add support for efence memory debugging library if requested
26637#
26638if test "$enable_efence" = 'yes'; then
26639 EFENCE_LIBS='-lefence'
26640 LIBS="$EFENCE_LIBS $LIBS"
26641fi
26642
cristy3ed852e2009-09-05 21:47:34 +000026643
26644#
26645# Check for BZLIB
26646#
26647
26648
26649# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026650if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026651 withval=$with_bzlib; with_bzlib=$withval
26652else
26653 with_bzlib='yes'
26654fi
26655
26656
26657if test "$with_bzlib" != 'yes'; then
26658 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26659fi
26660
26661have_bzlib='no'
26662if test "$with_bzlib" != 'no'; then
26663 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26665$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026667$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26669$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026670 failed=0
26671 passed=0
26672 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026673 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026674if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026675 passed=`expr $passed + 1`
26676else
26677 failed=`expr $failed + 1`
26678fi
26679
26680
cristy8b350f62009-11-15 23:12:43 +000026681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026682$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026683if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026684 $as_echo_n "(cached) " >&6
26685else
26686 ac_check_lib_save_LIBS=$LIBS
26687LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026689/* end confdefs.h. */
26690
26691/* Override any GCC internal prototype to avoid an error.
26692 Use char because int might match the return type of a GCC
26693 builtin and then its argument prototype would still apply. */
26694#ifdef __cplusplus
26695extern "C"
26696#endif
26697char BZ2_bzDecompress ();
26698int
26699main ()
26700{
26701return BZ2_bzDecompress ();
26702 ;
26703 return 0;
26704}
26705_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026706if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026707 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26708else
cristy8b350f62009-11-15 23:12:43 +000026709 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026710fi
cristy8b350f62009-11-15 23:12:43 +000026711rm -f core conftest.err conftest.$ac_objext \
26712 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026713LIBS=$ac_check_lib_save_LIBS
26714fi
cristy8b350f62009-11-15 23:12:43 +000026715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026716$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026717if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026718 found_libbz=`expr $found_libbz + 1`
26719fi
26720
26721 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026723$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026724if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026725 $as_echo_n "(cached) " >&6
26726else
26727 ac_check_lib_save_LIBS=$LIBS
26728LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026730/* end confdefs.h. */
26731
26732/* Override any GCC internal prototype to avoid an error.
26733 Use char because int might match the return type of a GCC
26734 builtin and then its argument prototype would still apply. */
26735#ifdef __cplusplus
26736extern "C"
26737#endif
26738char _imp__BZ2_decompress ();
26739int
26740main ()
26741{
26742return _imp__BZ2_decompress ();
26743 ;
26744 return 0;
26745}
26746_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026747if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026748 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26749else
cristy8b350f62009-11-15 23:12:43 +000026750 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026751fi
cristy8b350f62009-11-15 23:12:43 +000026752rm -f core conftest.err conftest.$ac_objext \
26753 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026754LIBS=$ac_check_lib_save_LIBS
26755fi
cristy8b350f62009-11-15 23:12:43 +000026756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026757$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026758if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026759 found_libbz=`expr $found_libbz + 1`
26760fi
26761
26762 fi
26763 if test $found_libbz -gt 0; then
26764 passed=`expr $passed + 1`
26765 else
26766 failed=`expr $failed + 1`
26767 fi
cristy8b350f62009-11-15 23:12:43 +000026768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026769$as_echo_n "checking if BZLIB package is complete... " >&6; }
26770 if test $passed -gt 0; then
26771 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26773$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026774 have_bzlib='no (failed tests)'
26775 else
26776 BZLIB_LIBS='-lbz2'
26777 LIBS="$BZLIB_LIBS $LIBS"
26778
cristy8b350f62009-11-15 23:12:43 +000026779$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026780
cristyad38abe2012-12-23 23:03:21 +000026781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26782$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026783 have_bzlib='yes'
26784 fi
26785 else
cristyad38abe2012-12-23 23:03:21 +000026786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26787$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026788 fi
26789fi
cristy73bd4a52010-10-05 11:24:23 +000026790 if test "$have_bzlib" = 'yes'; then
26791 BZLIB_DELEGATE_TRUE=
26792 BZLIB_DELEGATE_FALSE='#'
26793else
26794 BZLIB_DELEGATE_TRUE='#'
26795 BZLIB_DELEGATE_FALSE=
26796fi
26797
cristy3ed852e2009-09-05 21:47:34 +000026798
26799
26800#
26801# Find the X11 include and library directories.
26802#
26803IPC_LIBS=''
26804X11_LIBS=''
26805XEXT_LIBS=''
26806XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026808$as_echo_n "checking for X... " >&6; }
26809
26810
26811# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026812if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026813 withval=$with_x;
26814fi
26815
26816# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26817if test "x$with_x" = xno; then
26818 # The user explicitly disabled X.
26819 have_x=disabled
26820else
26821 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026822 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026823 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026824 $as_echo_n "(cached) " >&6
26825else
26826 # One or both of the vars are not set, and there is no cached value.
26827ac_x_includes=no ac_x_libraries=no
26828rm -f -r conftest.dir
26829if mkdir conftest.dir; then
26830 cd conftest.dir
26831 cat >Imakefile <<'_ACEOF'
26832incroot:
26833 @echo incroot='${INCROOT}'
26834usrlibdir:
26835 @echo usrlibdir='${USRLIBDIR}'
26836libdir:
26837 @echo libdir='${LIBDIR}'
26838_ACEOF
26839 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026840 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026841 for ac_var in incroot usrlibdir libdir; do
26842 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26843 done
26844 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26845 for ac_extension in a so sl dylib la dll; do
26846 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26847 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26848 ac_im_usrlibdir=$ac_im_libdir; break
26849 fi
26850 done
26851 # Screen out bogus values from the imake configuration. They are
26852 # bogus both because they are the default anyway, and because
26853 # using them would break gcc on systems where it needs fixed includes.
26854 case $ac_im_incroot in
26855 /usr/include) ac_x_includes= ;;
26856 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26857 esac
26858 case $ac_im_usrlibdir in
26859 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26860 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26861 esac
26862 fi
26863 cd ..
26864 rm -f -r conftest.dir
26865fi
26866
26867# Standard set of common directories for X headers.
26868# Check X11 before X11Rn because it is often a symlink to the current release.
26869ac_x_header_dirs='
26870/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026871/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026872/usr/X11R6/include
26873/usr/X11R5/include
26874/usr/X11R4/include
26875
26876/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026877/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026878/usr/include/X11R6
26879/usr/include/X11R5
26880/usr/include/X11R4
26881
26882/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026883/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026884/usr/local/X11R6/include
26885/usr/local/X11R5/include
26886/usr/local/X11R4/include
26887
26888/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026889/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026890/usr/local/include/X11R6
26891/usr/local/include/X11R5
26892/usr/local/include/X11R4
26893
26894/usr/X386/include
26895/usr/x386/include
26896/usr/XFree86/include/X11
26897
26898/usr/include
26899/usr/local/include
26900/usr/unsupported/include
26901/usr/athena/include
26902/usr/local/x11r5/include
26903/usr/lpp/Xamples/include
26904
26905/usr/openwin/include
26906/usr/openwin/share/include'
26907
26908if test "$ac_x_includes" = no; then
26909 # Guess where to find include files, by looking for Xlib.h.
26910 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026912/* end confdefs.h. */
26913#include <X11/Xlib.h>
26914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026915if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026916 # We can compile using X headers with no special include directory.
26917ac_x_includes=
26918else
cristyc7083c12009-10-14 03:16:55 +000026919 for ac_dir in $ac_x_header_dirs; do
26920 if test -r "$ac_dir/X11/Xlib.h"; then
26921 ac_x_includes=$ac_dir
26922 break
26923 fi
26924done
26925fi
cristyda16f162011-02-19 23:52:17 +000026926rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026927fi # $ac_x_includes = no
26928
26929if test "$ac_x_libraries" = no; then
26930 # Check for the libraries.
26931 # See if we find them without any special options.
26932 # Don't add to $LIBS permanently.
26933 ac_save_LIBS=$LIBS
26934 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026936/* end confdefs.h. */
26937#include <X11/Xlib.h>
26938int
26939main ()
26940{
26941XrmInitialize ()
26942 ;
26943 return 0;
26944}
26945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026946if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026947 LIBS=$ac_save_LIBS
26948# We can link X programs with no special library path.
26949ac_x_libraries=
26950else
cristy8b350f62009-11-15 23:12:43 +000026951 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026952for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26953do
26954 # Don't even attempt the hair of trying to link an X program!
26955 for ac_extension in a so sl dylib la dll; do
26956 if test -r "$ac_dir/libX11.$ac_extension"; then
26957 ac_x_libraries=$ac_dir
26958 break 2
26959 fi
26960 done
26961done
26962fi
cristy8b350f62009-11-15 23:12:43 +000026963rm -f core conftest.err conftest.$ac_objext \
26964 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026965fi # $ac_x_libraries = no
26966
26967case $ac_x_includes,$ac_x_libraries in #(
26968 no,* | *,no | *\'*)
26969 # Didn't find X, or a directory has "'" in its name.
26970 ac_cv_have_x="have_x=no";; #(
26971 *)
26972 # Record where we found X for the cache.
26973 ac_cv_have_x="have_x=yes\
26974 ac_x_includes='$ac_x_includes'\
26975 ac_x_libraries='$ac_x_libraries'"
26976esac
26977fi
26978;; #(
26979 *) have_x=yes;;
26980 esac
26981 eval "$ac_cv_have_x"
26982fi # $with_x != no
26983
26984if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026986$as_echo "$have_x" >&6; }
26987 no_x=yes
26988else
26989 # If each of the values was on the command line, it overrides each guess.
26990 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26991 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26992 # Update the cache value to reflect the command line values.
26993 ac_cv_have_x="have_x=yes\
26994 ac_x_includes='$x_includes'\
26995 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026997$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26998fi
26999
cristy3ed852e2009-09-05 21:47:34 +000027000if test "$no_x" = yes; then
27001 # Not all programs may use this symbol, but it does not hurt to define it.
27002
cristy8b350f62009-11-15 23:12:43 +000027003$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027004
27005 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27006else
27007 if test -n "$x_includes"; then
27008 X_CFLAGS="$X_CFLAGS -I$x_includes"
27009 fi
27010
27011 # It would also be nice to do this for all -L options, not just this one.
27012 if test -n "$x_libraries"; then
27013 X_LIBS="$X_LIBS -L$x_libraries"
27014 # For Solaris; some versions of Sun CC require a space after -R and
27015 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027017$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27018 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27019 ac_xsave_c_werror_flag=$ac_c_werror_flag
27020 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027022/* end confdefs.h. */
27023
27024int
27025main ()
27026{
27027
27028 ;
27029 return 0;
27030}
27031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027032if ac_fn_c_try_link "$LINENO"; then :
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027034$as_echo "no" >&6; }
27035 X_LIBS="$X_LIBS -R$x_libraries"
27036else
cristy8b350f62009-11-15 23:12:43 +000027037 LIBS="$ac_xsave_LIBS -R $x_libraries"
27038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027039/* end confdefs.h. */
27040
27041int
27042main ()
27043{
27044
27045 ;
27046 return 0;
27047}
27048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027049if ac_fn_c_try_link "$LINENO"; then :
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027051$as_echo "yes" >&6; }
27052 X_LIBS="$X_LIBS -R $x_libraries"
27053else
cristy8b350f62009-11-15 23:12:43 +000027054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027055$as_echo "neither works" >&6; }
27056fi
cristy8b350f62009-11-15 23:12:43 +000027057rm -f core conftest.err conftest.$ac_objext \
27058 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027059fi
cristy8b350f62009-11-15 23:12:43 +000027060rm -f core conftest.err conftest.$ac_objext \
27061 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027062 ac_c_werror_flag=$ac_xsave_c_werror_flag
27063 LIBS=$ac_xsave_LIBS
27064 fi
27065
27066 # Check for system-dependent libraries X programs must link with.
27067 # Do this before checking for the system-independent R6 libraries
27068 # (-lICE), since we may need -lsocket or whatever for X linking.
27069
27070 if test "$ISC" = yes; then
27071 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27072 else
27073 # Martyn Johnson says this is needed for Ultrix, if the X
27074 # libraries were built with DECnet support. And Karl Berry says
27075 # the Alpha needs dnet_stub (dnet does not exist).
27076 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027078/* end confdefs.h. */
27079
27080/* Override any GCC internal prototype to avoid an error.
27081 Use char because int might match the return type of a GCC
27082 builtin and then its argument prototype would still apply. */
27083#ifdef __cplusplus
27084extern "C"
27085#endif
27086char XOpenDisplay ();
27087int
27088main ()
27089{
27090return XOpenDisplay ();
27091 ;
27092 return 0;
27093}
27094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027095if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027096
cristy8b350f62009-11-15 23:12:43 +000027097else
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027099$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027100if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027101 $as_echo_n "(cached) " >&6
27102else
27103 ac_check_lib_save_LIBS=$LIBS
27104LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027106/* end confdefs.h. */
27107
27108/* Override any GCC internal prototype to avoid an error.
27109 Use char because int might match the return type of a GCC
27110 builtin and then its argument prototype would still apply. */
27111#ifdef __cplusplus
27112extern "C"
27113#endif
27114char dnet_ntoa ();
27115int
27116main ()
27117{
27118return dnet_ntoa ();
27119 ;
27120 return 0;
27121}
27122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027123if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027124 ac_cv_lib_dnet_dnet_ntoa=yes
27125else
cristy8b350f62009-11-15 23:12:43 +000027126 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027127fi
cristy8b350f62009-11-15 23:12:43 +000027128rm -f core conftest.err conftest.$ac_objext \
27129 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027130LIBS=$ac_check_lib_save_LIBS
27131fi
cristy8b350f62009-11-15 23:12:43 +000027132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027133$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027134if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027135 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27136fi
27137
27138 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027140$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027141if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027142 $as_echo_n "(cached) " >&6
27143else
27144 ac_check_lib_save_LIBS=$LIBS
27145LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027147/* end confdefs.h. */
27148
27149/* Override any GCC internal prototype to avoid an error.
27150 Use char because int might match the return type of a GCC
27151 builtin and then its argument prototype would still apply. */
27152#ifdef __cplusplus
27153extern "C"
27154#endif
27155char dnet_ntoa ();
27156int
27157main ()
27158{
27159return dnet_ntoa ();
27160 ;
27161 return 0;
27162}
27163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027164if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027165 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27166else
cristy8b350f62009-11-15 23:12:43 +000027167 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027168fi
cristy8b350f62009-11-15 23:12:43 +000027169rm -f core conftest.err conftest.$ac_objext \
27170 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027171LIBS=$ac_check_lib_save_LIBS
27172fi
cristy8b350f62009-11-15 23:12:43 +000027173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027174$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027175if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027176 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27177fi
27178
27179 fi
27180fi
cristy8b350f62009-11-15 23:12:43 +000027181rm -f core conftest.err conftest.$ac_objext \
27182 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027183 LIBS="$ac_xsave_LIBS"
27184
27185 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27186 # to get the SysV transport functions.
27187 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27188 # needs -lnsl.
27189 # The nsl library prevents programs from opening the X display
27190 # on Irix 5.2, according to T.E. Dickey.
27191 # The functions gethostbyname, getservbyname, and inet_addr are
27192 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027193 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027194if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027195
cristy3ed852e2009-09-05 21:47:34 +000027196fi
27197
cristy3ed852e2009-09-05 21:47:34 +000027198 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027200$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027201if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027202 $as_echo_n "(cached) " >&6
27203else
27204 ac_check_lib_save_LIBS=$LIBS
27205LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027207/* end confdefs.h. */
27208
27209/* Override any GCC internal prototype to avoid an error.
27210 Use char because int might match the return type of a GCC
27211 builtin and then its argument prototype would still apply. */
27212#ifdef __cplusplus
27213extern "C"
27214#endif
27215char gethostbyname ();
27216int
27217main ()
27218{
27219return gethostbyname ();
27220 ;
27221 return 0;
27222}
27223_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027224if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027225 ac_cv_lib_nsl_gethostbyname=yes
27226else
cristy8b350f62009-11-15 23:12:43 +000027227 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027228fi
cristy8b350f62009-11-15 23:12:43 +000027229rm -f core conftest.err conftest.$ac_objext \
27230 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027231LIBS=$ac_check_lib_save_LIBS
27232fi
cristy8b350f62009-11-15 23:12:43 +000027233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027234$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027235if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027236 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27237fi
27238
27239 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027241$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027242if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027243 $as_echo_n "(cached) " >&6
27244else
27245 ac_check_lib_save_LIBS=$LIBS
27246LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027248/* end confdefs.h. */
27249
27250/* Override any GCC internal prototype to avoid an error.
27251 Use char because int might match the return type of a GCC
27252 builtin and then its argument prototype would still apply. */
27253#ifdef __cplusplus
27254extern "C"
27255#endif
27256char gethostbyname ();
27257int
27258main ()
27259{
27260return gethostbyname ();
27261 ;
27262 return 0;
27263}
27264_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027265if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027266 ac_cv_lib_bsd_gethostbyname=yes
27267else
cristy8b350f62009-11-15 23:12:43 +000027268 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027269fi
cristy8b350f62009-11-15 23:12:43 +000027270rm -f core conftest.err conftest.$ac_objext \
27271 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027272LIBS=$ac_check_lib_save_LIBS
27273fi
cristy8b350f62009-11-15 23:12:43 +000027274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027275$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027276if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027277 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27278fi
27279
27280 fi
27281 fi
27282
27283 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27284 # socket/setsockopt and other routines are undefined under SCO ODT
27285 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27286 # on later versions), says Simon Leinen: it contains gethostby*
27287 # variants that don't use the name server (or something). -lsocket
27288 # must be given before -lnsl if both are needed. We assume that
27289 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027290 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027291if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027292
cristy3ed852e2009-09-05 21:47:34 +000027293fi
27294
cristy3ed852e2009-09-05 21:47:34 +000027295 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027297$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027298if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027299 $as_echo_n "(cached) " >&6
27300else
27301 ac_check_lib_save_LIBS=$LIBS
27302LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027304/* end confdefs.h. */
27305
27306/* Override any GCC internal prototype to avoid an error.
27307 Use char because int might match the return type of a GCC
27308 builtin and then its argument prototype would still apply. */
27309#ifdef __cplusplus
27310extern "C"
27311#endif
27312char connect ();
27313int
27314main ()
27315{
27316return connect ();
27317 ;
27318 return 0;
27319}
27320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027321if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027322 ac_cv_lib_socket_connect=yes
27323else
cristy8b350f62009-11-15 23:12:43 +000027324 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027325fi
cristy8b350f62009-11-15 23:12:43 +000027326rm -f core conftest.err conftest.$ac_objext \
27327 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027328LIBS=$ac_check_lib_save_LIBS
27329fi
cristy8b350f62009-11-15 23:12:43 +000027330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027331$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027332if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027333 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27334fi
27335
27336 fi
27337
27338 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027339 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027340if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027341
cristy3ed852e2009-09-05 21:47:34 +000027342fi
27343
cristy3ed852e2009-09-05 21:47:34 +000027344 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027346$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027347if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027348 $as_echo_n "(cached) " >&6
27349else
27350 ac_check_lib_save_LIBS=$LIBS
27351LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027353/* end confdefs.h. */
27354
27355/* Override any GCC internal prototype to avoid an error.
27356 Use char because int might match the return type of a GCC
27357 builtin and then its argument prototype would still apply. */
27358#ifdef __cplusplus
27359extern "C"
27360#endif
27361char remove ();
27362int
27363main ()
27364{
27365return remove ();
27366 ;
27367 return 0;
27368}
27369_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027370if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027371 ac_cv_lib_posix_remove=yes
27372else
cristy8b350f62009-11-15 23:12:43 +000027373 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027374fi
cristy8b350f62009-11-15 23:12:43 +000027375rm -f core conftest.err conftest.$ac_objext \
27376 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027377LIBS=$ac_check_lib_save_LIBS
27378fi
cristy8b350f62009-11-15 23:12:43 +000027379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027380$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027381if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027382 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27383fi
27384
27385 fi
27386
27387 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027388 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027389if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027390
cristy3ed852e2009-09-05 21:47:34 +000027391fi
27392
cristy3ed852e2009-09-05 21:47:34 +000027393 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027395$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027396if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027397 $as_echo_n "(cached) " >&6
27398else
27399 ac_check_lib_save_LIBS=$LIBS
27400LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027402/* end confdefs.h. */
27403
27404/* Override any GCC internal prototype to avoid an error.
27405 Use char because int might match the return type of a GCC
27406 builtin and then its argument prototype would still apply. */
27407#ifdef __cplusplus
27408extern "C"
27409#endif
27410char shmat ();
27411int
27412main ()
27413{
27414return shmat ();
27415 ;
27416 return 0;
27417}
27418_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027419if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027420 ac_cv_lib_ipc_shmat=yes
27421else
cristy8b350f62009-11-15 23:12:43 +000027422 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027423fi
cristy8b350f62009-11-15 23:12:43 +000027424rm -f core conftest.err conftest.$ac_objext \
27425 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027426LIBS=$ac_check_lib_save_LIBS
27427fi
cristy8b350f62009-11-15 23:12:43 +000027428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027429$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027430if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027431 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27432fi
27433
27434 fi
27435 fi
27436
27437 # Check for libraries that X11R6 Xt/Xaw programs need.
27438 ac_save_LDFLAGS=$LDFLAGS
27439 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27440 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27441 # check for ICE first), but we must link in the order -lSM -lICE or
27442 # we get undefined symbols. So assume we have SM if we have ICE.
27443 # These have to be linked with before -lX11, unlike the other
27444 # libraries we check for below, so use a different variable.
27445 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027447$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027448if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027449 $as_echo_n "(cached) " >&6
27450else
27451 ac_check_lib_save_LIBS=$LIBS
27452LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027454/* end confdefs.h. */
27455
27456/* Override any GCC internal prototype to avoid an error.
27457 Use char because int might match the return type of a GCC
27458 builtin and then its argument prototype would still apply. */
27459#ifdef __cplusplus
27460extern "C"
27461#endif
27462char IceConnectionNumber ();
27463int
27464main ()
27465{
27466return IceConnectionNumber ();
27467 ;
27468 return 0;
27469}
27470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027471if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027472 ac_cv_lib_ICE_IceConnectionNumber=yes
27473else
cristy8b350f62009-11-15 23:12:43 +000027474 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027475fi
cristy8b350f62009-11-15 23:12:43 +000027476rm -f core conftest.err conftest.$ac_objext \
27477 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027478LIBS=$ac_check_lib_save_LIBS
27479fi
cristy8b350f62009-11-15 23:12:43 +000027480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027481$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027482if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027483 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27484fi
27485
27486 LDFLAGS=$ac_save_LDFLAGS
27487
27488fi
27489
27490if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27492$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027494$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27496$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027497 LDFLAGS="$LDFLAGS $X_LIBS"
27498 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27499 LIBS="$X11_LIBS $LIBS"
27500 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27501
27502
cristy8b350f62009-11-15 23:12:43 +000027503$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027504
27505 #
27506 # Check for X11 shared memory extension
27507 #
27508 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027509 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027510if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027511 have_shmctl='yes'
27512fi
27513
27514 if test "$have_shmctl" != 'yes'; then
27515 PERSIST_LIBS=$LIBS
27516 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027518/* end confdefs.h. */
27519
27520/* Override any GCC internal prototype to avoid an error.
27521 Use char because int might match the return type of a GCC
27522 builtin and then its argument prototype would still apply. */
27523#ifdef __cplusplus
27524extern "C"
27525#endif
27526char shmctl ();
27527int
27528main ()
27529{
27530return shmctl ();
27531 ;
27532 return 0;
27533}
27534_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027535if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027536 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027537fi
cristy8b350f62009-11-15 23:12:43 +000027538rm -f core conftest.err conftest.$ac_objext \
27539 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027540 LIBS=$PERSIST_LIBS
27541 fi
27542
27543 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027545$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027546if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027547 $as_echo_n "(cached) " >&6
27548else
27549 ac_check_lib_save_LIBS=$LIBS
27550LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027552/* end confdefs.h. */
27553
27554/* Override any GCC internal prototype to avoid an error.
27555 Use char because int might match the return type of a GCC
27556 builtin and then its argument prototype would still apply. */
27557#ifdef __cplusplus
27558extern "C"
27559#endif
27560char XShmAttach ();
27561int
27562main ()
27563{
27564return XShmAttach ();
27565 ;
27566 return 0;
27567}
27568_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027569if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027570 ac_cv_lib_Xext_XShmAttach=yes
27571else
cristy8b350f62009-11-15 23:12:43 +000027572 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027573fi
cristy8b350f62009-11-15 23:12:43 +000027574rm -f core conftest.err conftest.$ac_objext \
27575 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027576LIBS=$ac_check_lib_save_LIBS
27577fi
cristy8b350f62009-11-15 23:12:43 +000027578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027579$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027580if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027581 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027582$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027583
27584fi
27585
27586 fi
27587
27588 #
27589 # Check for X11 shape extension
27590 #
cristy8b350f62009-11-15 23:12:43 +000027591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027592$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027593if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027594 $as_echo_n "(cached) " >&6
27595else
27596 ac_check_lib_save_LIBS=$LIBS
27597LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027599/* end confdefs.h. */
27600
27601/* Override any GCC internal prototype to avoid an error.
27602 Use char because int might match the return type of a GCC
27603 builtin and then its argument prototype would still apply. */
27604#ifdef __cplusplus
27605extern "C"
27606#endif
27607char XShapeCombineMask ();
27608int
27609main ()
27610{
27611return XShapeCombineMask ();
27612 ;
27613 return 0;
27614}
27615_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027616if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027617 ac_cv_lib_Xext_XShapeCombineMask=yes
27618else
cristy8b350f62009-11-15 23:12:43 +000027619 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027620fi
cristy8b350f62009-11-15 23:12:43 +000027621rm -f core conftest.err conftest.$ac_objext \
27622 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027623LIBS=$ac_check_lib_save_LIBS
27624fi
cristy8b350f62009-11-15 23:12:43 +000027625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027626$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027627if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027628 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027629$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027630
27631fi
27632
cristy8b350f62009-11-15 23:12:43 +000027633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027634$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027635if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027636 $as_echo_n "(cached) " >&6
27637else
27638 ac_check_lib_save_LIBS=$LIBS
27639LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027641/* end confdefs.h. */
27642
27643/* Override any GCC internal prototype to avoid an error.
27644 Use char because int might match the return type of a GCC
27645 builtin and then its argument prototype would still apply. */
27646#ifdef __cplusplus
27647extern "C"
27648#endif
27649char XtSetEventDispatcher ();
27650int
27651main ()
27652{
27653return XtSetEventDispatcher ();
27654 ;
27655 return 0;
27656}
27657_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027658if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027659 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27660else
cristy8b350f62009-11-15 23:12:43 +000027661 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027662fi
cristy8b350f62009-11-15 23:12:43 +000027663rm -f core conftest.err conftest.$ac_objext \
27664 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027665LIBS=$ac_check_lib_save_LIBS
27666fi
cristy8b350f62009-11-15 23:12:43 +000027667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027668$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027669if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027670 XT_LIBS='-lXt'
27671fi
27672
27673 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27674fi
27675if test "$no_x" != 'yes'; then
27676 have_x='yes'
27677else
27678 have_x='no'
27679fi
cristy73bd4a52010-10-05 11:24:23 +000027680 if test "$have_x" = 'yes'; then
27681 X11_DELEGATE_TRUE=
27682 X11_DELEGATE_FALSE='#'
27683else
27684 X11_DELEGATE_TRUE='#'
27685 X11_DELEGATE_FALSE=
27686fi
27687
cristy3ed852e2009-09-05 21:47:34 +000027688
27689
27690
27691
27692#
27693# Check for ZLIB
27694#
27695
27696# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027697if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027698 withval=$with_zlib; with_zlib=$withval
27699else
27700 with_zlib='yes'
27701fi
27702
27703
27704if test "$with_zlib" != 'yes'; then
27705 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27706fi
27707
27708have_zlib='no'
27709ZLIB_LIBS=''
27710if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27712$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027714$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27716$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027717 ZLIB_LIBS=''
27718 failed=0
27719 passed=0
cristy8b350f62009-11-15 23:12:43 +000027720 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027721if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027722 passed=`expr $passed + 1`
27723else
27724 failed=`expr $failed + 1`
27725fi
27726
27727
cristy8b350f62009-11-15 23:12:43 +000027728 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027729if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027730 passed=`expr $passed + 1`
27731else
27732 failed=`expr $failed + 1`
27733fi
27734
27735
cristy8b350f62009-11-15 23:12:43 +000027736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027737$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027738if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027739 $as_echo_n "(cached) " >&6
27740else
27741 ac_check_lib_save_LIBS=$LIBS
27742LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027744/* end confdefs.h. */
27745
27746/* Override any GCC internal prototype to avoid an error.
27747 Use char because int might match the return type of a GCC
27748 builtin and then its argument prototype would still apply. */
27749#ifdef __cplusplus
27750extern "C"
27751#endif
27752char compress ();
27753int
27754main ()
27755{
27756return compress ();
27757 ;
27758 return 0;
27759}
27760_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027761if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027762 ac_cv_lib_z_compress=yes
27763else
cristy8b350f62009-11-15 23:12:43 +000027764 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027765fi
cristy8b350f62009-11-15 23:12:43 +000027766rm -f core conftest.err conftest.$ac_objext \
27767 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027768LIBS=$ac_check_lib_save_LIBS
27769fi
cristy8b350f62009-11-15 23:12:43 +000027770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027771$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027772if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027773 passed=`expr $passed + 1`
27774else
27775 failed=`expr $failed + 1`
27776fi
27777
cristy8b350f62009-11-15 23:12:43 +000027778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027779$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027780if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027781 $as_echo_n "(cached) " >&6
27782else
27783 ac_check_lib_save_LIBS=$LIBS
27784LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027786/* end confdefs.h. */
27787
27788/* Override any GCC internal prototype to avoid an error.
27789 Use char because int might match the return type of a GCC
27790 builtin and then its argument prototype would still apply. */
27791#ifdef __cplusplus
27792extern "C"
27793#endif
27794char uncompress ();
27795int
27796main ()
27797{
27798return uncompress ();
27799 ;
27800 return 0;
27801}
27802_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027803if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027804 ac_cv_lib_z_uncompress=yes
27805else
cristy8b350f62009-11-15 23:12:43 +000027806 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027807fi
cristy8b350f62009-11-15 23:12:43 +000027808rm -f core conftest.err conftest.$ac_objext \
27809 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027810LIBS=$ac_check_lib_save_LIBS
27811fi
cristy8b350f62009-11-15 23:12:43 +000027812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027813$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027814if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027815 passed=`expr $passed + 1`
27816else
27817 failed=`expr $failed + 1`
27818fi
27819
cristy8b350f62009-11-15 23:12:43 +000027820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027821$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027822if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027823 $as_echo_n "(cached) " >&6
27824else
27825 ac_check_lib_save_LIBS=$LIBS
27826LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027828/* end confdefs.h. */
27829
27830/* Override any GCC internal prototype to avoid an error.
27831 Use char because int might match the return type of a GCC
27832 builtin and then its argument prototype would still apply. */
27833#ifdef __cplusplus
27834extern "C"
27835#endif
27836char deflate ();
27837int
27838main ()
27839{
27840return deflate ();
27841 ;
27842 return 0;
27843}
27844_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027845if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027846 ac_cv_lib_z_deflate=yes
27847else
cristy8b350f62009-11-15 23:12:43 +000027848 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027849fi
cristy8b350f62009-11-15 23:12:43 +000027850rm -f core conftest.err conftest.$ac_objext \
27851 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027852LIBS=$ac_check_lib_save_LIBS
27853fi
cristy8b350f62009-11-15 23:12:43 +000027854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027855$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027856if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027857 passed=`expr $passed + 1`
27858else
27859 failed=`expr $failed + 1`
27860fi
27861
cristy8b350f62009-11-15 23:12:43 +000027862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027863$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027864if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027865 $as_echo_n "(cached) " >&6
27866else
27867 ac_check_lib_save_LIBS=$LIBS
27868LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027870/* end confdefs.h. */
27871
27872/* Override any GCC internal prototype to avoid an error.
27873 Use char because int might match the return type of a GCC
27874 builtin and then its argument prototype would still apply. */
27875#ifdef __cplusplus
27876extern "C"
27877#endif
27878char inflate ();
27879int
27880main ()
27881{
27882return inflate ();
27883 ;
27884 return 0;
27885}
27886_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027887if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027888 ac_cv_lib_z_inflate=yes
27889else
cristy8b350f62009-11-15 23:12:43 +000027890 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027891fi
cristy8b350f62009-11-15 23:12:43 +000027892rm -f core conftest.err conftest.$ac_objext \
27893 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027894LIBS=$ac_check_lib_save_LIBS
27895fi
cristy8b350f62009-11-15 23:12:43 +000027896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027897$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027898if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027899 passed=`expr $passed + 1`
27900else
27901 failed=`expr $failed + 1`
27902fi
27903
cristy8b350f62009-11-15 23:12:43 +000027904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027905$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027906if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027907 $as_echo_n "(cached) " >&6
27908else
27909 ac_check_lib_save_LIBS=$LIBS
27910LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027912/* end confdefs.h. */
27913
27914/* Override any GCC internal prototype to avoid an error.
27915 Use char because int might match the return type of a GCC
27916 builtin and then its argument prototype would still apply. */
27917#ifdef __cplusplus
27918extern "C"
27919#endif
27920char gzseek ();
27921int
27922main ()
27923{
27924return gzseek ();
27925 ;
27926 return 0;
27927}
27928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027929if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027930 ac_cv_lib_z_gzseek=yes
27931else
cristy8b350f62009-11-15 23:12:43 +000027932 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027933fi
cristy8b350f62009-11-15 23:12:43 +000027934rm -f core conftest.err conftest.$ac_objext \
27935 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027936LIBS=$ac_check_lib_save_LIBS
27937fi
cristy8b350f62009-11-15 23:12:43 +000027938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027939$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027940if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027941 passed=`expr $passed + 1`
27942else
27943 failed=`expr $failed + 1`
27944fi
27945
cristy8b350f62009-11-15 23:12:43 +000027946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027947$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027948if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027949 $as_echo_n "(cached) " >&6
27950else
27951 ac_check_lib_save_LIBS=$LIBS
27952LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027954/* end confdefs.h. */
27955
27956/* Override any GCC internal prototype to avoid an error.
27957 Use char because int might match the return type of a GCC
27958 builtin and then its argument prototype would still apply. */
27959#ifdef __cplusplus
27960extern "C"
27961#endif
27962char gztell ();
27963int
27964main ()
27965{
27966return gztell ();
27967 ;
27968 return 0;
27969}
27970_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027971if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027972 ac_cv_lib_z_gztell=yes
27973else
cristy8b350f62009-11-15 23:12:43 +000027974 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027975fi
cristy8b350f62009-11-15 23:12:43 +000027976rm -f core conftest.err conftest.$ac_objext \
27977 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027978LIBS=$ac_check_lib_save_LIBS
27979fi
cristy8b350f62009-11-15 23:12:43 +000027980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027981$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027982if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027983 passed=`expr $passed + 1`
27984else
27985 failed=`expr $failed + 1`
27986fi
27987
cristy8b350f62009-11-15 23:12:43 +000027988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027989$as_echo_n "checking if ZLIB package is complete... " >&6; }
27990 if test $passed -gt 0; then
27991 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27993$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027994 have_zlib='no (failed tests)'
27995 else
27996 ZLIB_LIBS='-lz'
27997 LIBS="$ZLIB_LIBS $LIBS"
27998
cristy8b350f62009-11-15 23:12:43 +000027999$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028000
cristyad38abe2012-12-23 23:03:21 +000028001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28002$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028003 have_zlib='yes'
28004 fi
28005 else
cristyad38abe2012-12-23 23:03:21 +000028006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28007$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028008 fi
28009fi
cristy73bd4a52010-10-05 11:24:23 +000028010 if test "$have_zlib" = 'yes'; then
28011 ZLIB_DELEGATE_TRUE=
28012 ZLIB_DELEGATE_FALSE='#'
28013else
28014 ZLIB_DELEGATE_TRUE='#'
28015 ZLIB_DELEGATE_FALSE=
28016fi
28017
cristy3ed852e2009-09-05 21:47:34 +000028018
28019
cristy5eef09f2012-10-16 12:08:28 +000028020# whether modules are built or not.
28021with_ltdl='yes'
28022have_ltdl='no'
28023LTDL_LIBS=''
28024if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28026$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28028$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28030$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028031 failed=0
28032 passed=0
28033 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28034if test "x$ac_cv_header_ltdl_h" = xyes; then :
28035 passed=`expr $passed + 1`
28036else
28037 failed=`expr $failed + 1`
28038fi
28039
28040
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28042$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28043if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28044 $as_echo_n "(cached) " >&6
28045else
28046 ac_check_lib_save_LIBS=$LIBS
28047LIBS="-lltdl $LIBS"
28048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28049/* end confdefs.h. */
28050
28051/* Override any GCC internal prototype to avoid an error.
28052 Use char because int might match the return type of a GCC
28053 builtin and then its argument prototype would still apply. */
28054#ifdef __cplusplus
28055extern "C"
28056#endif
28057char lt_dlinit ();
28058int
28059main ()
28060{
28061return lt_dlinit ();
28062 ;
28063 return 0;
28064}
28065_ACEOF
28066if ac_fn_c_try_link "$LINENO"; then :
28067 ac_cv_lib_ltdl_lt_dlinit=yes
28068else
28069 ac_cv_lib_ltdl_lt_dlinit=no
28070fi
28071rm -f core conftest.err conftest.$ac_objext \
28072 conftest$ac_exeext conftest.$ac_ext
28073LIBS=$ac_check_lib_save_LIBS
28074fi
28075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28076$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28077if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28078 passed=`expr $passed + 1`
28079else
28080 failed=`expr $failed + 1`
28081fi
28082
28083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28084$as_echo_n "checking if libltdl package is complete... " >&6; }
28085 if test $passed -gt 0 ; then
28086 if test $failed -gt 0 ; then
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28088$as_echo "no -- some components failed test" >&6; }
28089 have_ltdl='no (failed tests)'
28090 else
28091 LTDL_LIBS='-lltdl'
28092 LIBS="$LTDL_LIBS $LIBS"
28093
28094$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28095
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28097$as_echo "yes" >&6; }
28098 have_ltdl='yes'
28099 fi
28100 else
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28102$as_echo "no" >&6; }
28103 fi
cristyaf4cbf32012-10-16 23:47:41 +000028104 if test "$have_ltdl" != 'yes' ; then
28105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28107as_fn_error 1 "libltdl is required for modules build
28108See \`config.log' for more details" "$LINENO" 5; }
28109 fi
cristy5eef09f2012-10-16 12:08:28 +000028110fi
28111 if test "$have_ltdl" != 'no'; then
28112 WITH_LTDL_TRUE=
28113 WITH_LTDL_FALSE='#'
28114else
28115 WITH_LTDL_TRUE='#'
28116 WITH_LTDL_FALSE=
28117fi
28118
28119
cristy3ed852e2009-09-05 21:47:34 +000028120#
28121# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28122#
28123LIB_DL=''
28124if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028126$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028127if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028128 $as_echo_n "(cached) " >&6
28129else
28130 ac_check_lib_save_LIBS=$LIBS
28131LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028133/* end confdefs.h. */
28134
28135/* Override any GCC internal prototype to avoid an error.
28136 Use char because int might match the return type of a GCC
28137 builtin and then its argument prototype would still apply. */
28138#ifdef __cplusplus
28139extern "C"
28140#endif
28141char dlopen ();
28142int
28143main ()
28144{
28145return dlopen ();
28146 ;
28147 return 0;
28148}
28149_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028150if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028151 ac_cv_lib_dl_dlopen=yes
28152else
cristy8b350f62009-11-15 23:12:43 +000028153 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028154fi
cristy8b350f62009-11-15 23:12:43 +000028155rm -f core conftest.err conftest.$ac_objext \
28156 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028157LIBS=$ac_check_lib_save_LIBS
28158fi
cristy8b350f62009-11-15 23:12:43 +000028159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028160$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028161if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028162 LIB_DL='-ldl'
28163fi
28164
28165 LIBS="$LIB_DL $LIBS"
28166fi
28167
28168
28169
28170#
28171# Check for Autotrace delegate library.
28172#
28173
28174# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028175if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028176 withval=$with_autotrace; with_autotrace=$withval
28177else
28178 with_autotrace='no'
28179fi
28180
28181
28182if test "$with_autotrace" != 'yes'; then
28183 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28184fi
28185
28186have_autotrace='no'
28187AUTOTRACE_CFLAGS=""
28188AUTOTRACE_LIBS=""
28189AUTOTRACE_PKG=""
28190if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28192$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028193
28194pkg_failed=no
28195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28196$as_echo_n "checking for AUTOTRACE... " >&6; }
28197
28198if test -n "$AUTOTRACE_CFLAGS"; then
28199 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28200 elif test -n "$PKG_CONFIG"; then
28201 if test -n "$PKG_CONFIG" && \
28202 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28203 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28204 ac_status=$?
28205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28206 test $ac_status = 0; }; then
28207 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28208else
28209 pkg_failed=yes
28210fi
28211 else
28212 pkg_failed=untried
28213fi
28214if test -n "$AUTOTRACE_LIBS"; then
28215 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28216 elif test -n "$PKG_CONFIG"; then
28217 if test -n "$PKG_CONFIG" && \
28218 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28219 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28220 ac_status=$?
28221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28222 test $ac_status = 0; }; then
28223 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28224else
28225 pkg_failed=yes
28226fi
28227 else
28228 pkg_failed=untried
28229fi
28230
28231
28232
28233if test $pkg_failed = yes; then
28234
28235if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28236 _pkg_short_errors_supported=yes
28237else
28238 _pkg_short_errors_supported=no
28239fi
28240 if test $_pkg_short_errors_supported = yes; then
28241 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28242 else
28243 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28244 fi
28245 # Put the nasty error message in config.log where it belongs
28246 echo "$AUTOTRACE_PKG_ERRORS" >&5
28247
28248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28249$as_echo "no" >&6; }
28250 have_autotrace=no
28251elif test $pkg_failed = untried; then
28252 have_autotrace=no
28253else
28254 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28255 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28257$as_echo "yes" >&6; }
28258 have_autotrace=yes
28259fi
cristyad38abe2012-12-23 23:03:21 +000028260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28261$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028262fi
28263
28264if test "$have_autotrace" = 'yes'; then
28265 failed=0
28266
cristy8b350f62009-11-15 23:12:43 +000028267$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028268
cristyc6722092012-10-14 00:19:31 +000028269 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028270 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028271 fi
28272fi
28273
cristy73bd4a52010-10-05 11:24:23 +000028274 if test "$have_autotrace" = 'yes'; then
28275 AUTOTRACE_DELEGATE_TRUE=
28276 AUTOTRACE_DELEGATE_FALSE='#'
28277else
28278 AUTOTRACE_DELEGATE_TRUE='#'
28279 AUTOTRACE_DELEGATE_FALSE=
28280fi
28281
cristy3ed852e2009-09-05 21:47:34 +000028282
28283
28284
28285
28286#
28287# Check for Display Postscript delegate library.
28288#
28289
28290# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028291if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028292 withval=$with_dps; with_dps=$withval
28293else
28294 with_dps='yes'
28295fi
28296
28297
28298if test "$with_dps" != 'yes'; then
28299 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28300fi
28301
28302have_dps='no'
28303DPS_LIBS=''
28304if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28306$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028308$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28310$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028311 failed=0
28312 passed=0
28313 PERSIST_CPPFLAGS="$CPPFLAGS"
28314 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028315 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 +000028316if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028317 passed=`expr $passed + 1`
28318else
28319 failed=`expr $failed + 1`
28320fi
28321
28322
28323 # DPS issues:
28324 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28325 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28326 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28327 # ImageMagick itself doesn't use -lXt.
28328 have_libdps='no'
28329 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028331$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028332if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028333 $as_echo_n "(cached) " >&6
28334else
28335 ac_check_lib_save_LIBS=$LIBS
28336LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028338/* end confdefs.h. */
28339
28340/* Override any GCC internal prototype to avoid an error.
28341 Use char because int might match the return type of a GCC
28342 builtin and then its argument prototype would still apply. */
28343#ifdef __cplusplus
28344extern "C"
28345#endif
28346char DPSInitialize ();
28347int
28348main ()
28349{
28350return DPSInitialize ();
28351 ;
28352 return 0;
28353}
28354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028355if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028356 ac_cv_lib_dps_DPSInitialize=yes
28357else
cristy8b350f62009-11-15 23:12:43 +000028358 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028359fi
cristy8b350f62009-11-15 23:12:43 +000028360rm -f core conftest.err conftest.$ac_objext \
28361 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028362LIBS=$ac_check_lib_save_LIBS
28363fi
cristy8b350f62009-11-15 23:12:43 +000028364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028365$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028366if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028367 have_libdps='yes'
28368else
28369 have_libdps='no'
28370fi
28371
28372 if test "$have_libdps" != 'yes'; then
28373 # Unset cache variable so we can try again.
28374 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028376$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028377if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028378 $as_echo_n "(cached) " >&6
28379else
28380 ac_check_lib_save_LIBS=$LIBS
28381LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028383/* end confdefs.h. */
28384
28385/* Override any GCC internal prototype to avoid an error.
28386 Use char because int might match the return type of a GCC
28387 builtin and then its argument prototype would still apply. */
28388#ifdef __cplusplus
28389extern "C"
28390#endif
28391char DPSInitialize ();
28392int
28393main ()
28394{
28395return DPSInitialize ();
28396 ;
28397 return 0;
28398}
28399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028400if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028401 ac_cv_lib_dps_DPSInitialize=yes
28402else
cristy8b350f62009-11-15 23:12:43 +000028403 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028404fi
cristy8b350f62009-11-15 23:12:43 +000028405rm -f core conftest.err conftest.$ac_objext \
28406 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028407LIBS=$ac_check_lib_save_LIBS
28408fi
cristy8b350f62009-11-15 23:12:43 +000028409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028410$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028411if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028412 have_libdps='yes'
28413else
28414 have_libdps='no'
28415fi
28416
28417 if test "$have_libdps" = 'yes'; then
28418 LIBDPS_XT='-lXt'
28419 fi
28420 fi
28421 if test "$have_libdps" = 'yes'; then
28422 passed=`expr $passed + 1`
28423 else
28424 failed=`expr $failed + 1`
28425 fi
cristy8b350f62009-11-15 23:12:43 +000028426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028427$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028428if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028429 $as_echo_n "(cached) " >&6
28430else
28431 ac_check_lib_save_LIBS=$LIBS
28432LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028434/* end confdefs.h. */
28435
28436/* Override any GCC internal prototype to avoid an error.
28437 Use char because int might match the return type of a GCC
28438 builtin and then its argument prototype would still apply. */
28439#ifdef __cplusplus
28440extern "C"
28441#endif
28442char XDPSPixelsPerPoint ();
28443int
28444main ()
28445{
28446return XDPSPixelsPerPoint ();
28447 ;
28448 return 0;
28449}
28450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028451if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028452 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28453else
cristy8b350f62009-11-15 23:12:43 +000028454 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028455fi
cristy8b350f62009-11-15 23:12:43 +000028456rm -f core conftest.err conftest.$ac_objext \
28457 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028458LIBS=$ac_check_lib_save_LIBS
28459fi
cristy8b350f62009-11-15 23:12:43 +000028460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028461$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028462if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028463 passed=`expr $passed + 1`
28464else
28465 failed=`expr $failed + 1`
28466fi
28467
cristy8b350f62009-11-15 23:12:43 +000028468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028469$as_echo_n "checking if DPS package is complete... " >&6; }
28470 if test $passed -gt 0; then
28471 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28473$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028474 have_dps='no (failed tests)'
28475 CPPFLAGS="$PERSIST_CPPFLAGS"
28476 else
28477 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28478 LIBS="$DPS_LIBS $LIBS"
28479
cristy8b350f62009-11-15 23:12:43 +000028480$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028481
cristyad38abe2012-12-23 23:03:21 +000028482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28483$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028484 have_dps='yes'
28485 fi
28486 else
cristyad38abe2012-12-23 23:03:21 +000028487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28488$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028489 CPPFLAGS=$PERSIST_CPPFLAGS
28490 fi
28491fi
cristy73bd4a52010-10-05 11:24:23 +000028492 if test "$have_dps" = 'yes'; then
28493 DPS_DELEGATE_TRUE=
28494 DPS_DELEGATE_FALSE='#'
28495else
28496 DPS_DELEGATE_TRUE='#'
28497 DPS_DELEGATE_FALSE=
28498fi
28499
cristy3ed852e2009-09-05 21:47:34 +000028500
28501
28502
28503#
28504# Check for DJVU delegate library.
28505#
28506
28507# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028508if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028509 withval=$with_djvu; with_djvu=$withval
28510else
28511 with_djvu='yes'
28512fi
28513
28514
28515if test "$with_djvu" != 'yes'; then
28516 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28517fi
28518
28519have_djvu='no'
28520DJVU_LIBS=''
28521if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28523$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028525$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28527$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028528 failed=0
28529 passed=0
cristy8b350f62009-11-15 23:12:43 +000028530 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028531if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028532 passed=`expr $passed + 1`
28533else
28534 failed=`expr $failed + 1`
28535fi
28536
28537
cristy8b350f62009-11-15 23:12:43 +000028538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028539$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028540if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028541 $as_echo_n "(cached) " >&6
28542else
28543 ac_check_lib_save_LIBS=$LIBS
28544LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028546/* end confdefs.h. */
28547
28548/* Override any GCC internal prototype to avoid an error.
28549 Use char because int might match the return type of a GCC
28550 builtin and then its argument prototype would still apply. */
28551#ifdef __cplusplus
28552extern "C"
28553#endif
28554char ddjvu_context_create ();
28555int
28556main ()
28557{
28558return ddjvu_context_create ();
28559 ;
28560 return 0;
28561}
28562_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028563if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028564 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28565else
cristy8b350f62009-11-15 23:12:43 +000028566 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028567fi
cristy8b350f62009-11-15 23:12:43 +000028568rm -f core conftest.err conftest.$ac_objext \
28569 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028570LIBS=$ac_check_lib_save_LIBS
28571fi
cristy8b350f62009-11-15 23:12:43 +000028572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028573$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028574if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028575 passed=`expr $passed + 1`
28576else
28577 failed=`expr $failed + 1`
28578fi
28579
cristy8b350f62009-11-15 23:12:43 +000028580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028581$as_echo_n "checking if DJVU package is complete... " >&6; }
28582 if test $passed -gt 0; then
28583 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28585$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028586 have_djvu='no (failed tests)'
28587 else
28588 DJVU_LIBS='-ldjvulibre'
28589 LIBS="$DJVU_LIBS $LIBS"
28590
cristy8b350f62009-11-15 23:12:43 +000028591$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028592
cristyad38abe2012-12-23 23:03:21 +000028593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28594$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028595 have_djvu='yes'
28596 fi
28597 else
cristyad38abe2012-12-23 23:03:21 +000028598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28599$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028600 fi
28601fi
cristy73bd4a52010-10-05 11:24:23 +000028602 if test "$have_djvu" = 'yes'; then
28603 DJVU_DELEGATE_TRUE=
28604 DJVU_DELEGATE_FALSE='#'
28605else
28606 DJVU_DELEGATE_TRUE='#'
28607 DJVU_DELEGATE_FALSE=
28608fi
28609
cristy3ed852e2009-09-05 21:47:34 +000028610
28611
28612
28613#
cristy430a7312010-01-21 20:44:04 +000028614# Set DejaVu font directory.
28615#
28616
28617# Check whether --with-dejavu-font-dir was given.
28618if test "${with_dejavu_font_dir+set}" = set; then :
28619 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28620else
28621 with_dejavu_font_dir='default'
28622fi
28623
28624
28625if test "$with_dejavu_font_dir" != 'default'; then
28626 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28627fi
28628
28629
28630#
cristy3ed852e2009-09-05 21:47:34 +000028631# Check for FFTW delegate library.
28632#
28633
28634# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028635if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028636 withval=$with_fftw; with_fftw=$withval
28637else
28638 with_fftw='yes'
28639fi
28640
28641
28642if test "$with_fftw" != 'yes'; then
28643 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28644fi
28645
cristy81beccd2011-10-03 18:17:24 +000028646have_fftw='no'
28647FFTW_LIBS=''
28648if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28650$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28652$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28654$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028655 failed=0
28656 passed=0
28657 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28658if test "x$ac_cv_header_fftw3_h" = xyes; then :
28659 passed=`expr $passed + 1`
28660else
28661 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028662fi
28663
cristy81beccd2011-10-03 18:17:24 +000028664
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28666$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28667if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28668 $as_echo_n "(cached) " >&6
28669else
28670 ac_check_lib_save_LIBS=$LIBS
28671LIBS="-lfftw3 $LIBS"
28672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28673/* end confdefs.h. */
28674
28675/* Override any GCC internal prototype to avoid an error.
28676 Use char because int might match the return type of a GCC
28677 builtin and then its argument prototype would still apply. */
28678#ifdef __cplusplus
28679extern "C"
28680#endif
28681char fftw_execute ();
28682int
28683main ()
28684{
28685return fftw_execute ();
28686 ;
28687 return 0;
28688}
28689_ACEOF
28690if ac_fn_c_try_link "$LINENO"; then :
28691 ac_cv_lib_fftw3_fftw_execute=yes
28692else
28693 ac_cv_lib_fftw3_fftw_execute=no
28694fi
28695rm -f core conftest.err conftest.$ac_objext \
28696 conftest$ac_exeext conftest.$ac_ext
28697LIBS=$ac_check_lib_save_LIBS
28698fi
28699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28700$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28701if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28702 passed=`expr $passed + 1`
28703else
28704 failed=`expr $failed + 1`
28705fi
28706
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28708$as_echo_n "checking if FFTW package is complete... " >&6; }
28709 if test $passed -gt 0; then
28710 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28712$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028713 have_fftw='no (failed tests)'
28714 else
28715 FFTW_LIBS='-lfftw3'
28716 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028717
cristy8b350f62009-11-15 23:12:43 +000028718$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028719
cristyad38abe2012-12-23 23:03:21 +000028720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28721$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028722 have_fftw='yes'
28723 fi
28724 else
cristyad38abe2012-12-23 23:03:21 +000028725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28726$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028727 fi
28728fi
cristy73bd4a52010-10-05 11:24:23 +000028729 if test "$have_fftw" = 'yes'; then
28730 FFTW_DELEGATE_TRUE=
28731 FFTW_DELEGATE_FALSE='#'
28732else
28733 FFTW_DELEGATE_TRUE='#'
28734 FFTW_DELEGATE_FALSE=
28735fi
28736
cristy3ed852e2009-09-05 21:47:34 +000028737
28738
28739
28740#
28741# Check for FlashPIX delegate library.
28742#
28743
28744# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028745if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028746 withval=$with_fpx; with_fpx=$withval
28747else
28748 with_fpx='yes'
28749fi
28750
28751
28752if test "$with_fpx" != 'yes'; then
28753 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28754fi
28755
28756have_fpx='no'
28757FPX_LIBS=''
28758if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28760$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028762$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28764$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028765 failed=0
28766 passed=0
28767 ac_ext=cpp
28768ac_cpp='$CXXCPP $CPPFLAGS'
28769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28772
28773
cristy8b350f62009-11-15 23:12:43 +000028774ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028775if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028776 passed=`expr $passed + 1`
28777else
28778 failed=`expr $failed + 1`
28779fi
28780
28781
cristy8b350f62009-11-15 23:12:43 +000028782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028783$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028784if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028785 $as_echo_n "(cached) " >&6
28786else
28787 ac_check_lib_save_LIBS=$LIBS
28788LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028790/* end confdefs.h. */
28791
28792/* Override any GCC internal prototype to avoid an error.
28793 Use char because int might match the return type of a GCC
28794 builtin and then its argument prototype would still apply. */
28795#ifdef __cplusplus
28796extern "C"
28797#endif
28798char FPX_OpenImageByFilename ();
28799int
28800main ()
28801{
28802return FPX_OpenImageByFilename ();
28803 ;
28804 return 0;
28805}
28806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028807if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028808 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28809else
cristy8b350f62009-11-15 23:12:43 +000028810 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028811fi
cristy8b350f62009-11-15 23:12:43 +000028812rm -f core conftest.err conftest.$ac_objext \
28813 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028814LIBS=$ac_check_lib_save_LIBS
28815fi
cristy8b350f62009-11-15 23:12:43 +000028816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028817$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028818if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028819 passed=`expr $passed + 1`
28820else
28821 failed=`expr $failed + 1`
28822fi
28823
28824 ac_ext=c
28825ac_cpp='$CPP $CPPFLAGS'
28826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28828ac_compiler_gnu=$ac_cv_c_compiler_gnu
28829
cristy8b350f62009-11-15 23:12:43 +000028830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028831$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28832 if test $passed -gt 0; then
28833 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28835$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028836 have_fpx='no (failed tests)'
28837 else
28838 FPX_LIBS='-lfpx'
28839
cristy8b350f62009-11-15 23:12:43 +000028840$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028841
cristyad38abe2012-12-23 23:03:21 +000028842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28843$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028844 have_fpx='yes'
28845 PERLMAINCC="$CXX"
28846 fi
28847 else
cristyad38abe2012-12-23 23:03:21 +000028848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28849$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028850 fi
28851fi
cristy73bd4a52010-10-05 11:24:23 +000028852 if test "$have_fpx" = 'yes'; then
28853 FPX_DELEGATE_TRUE=
28854 FPX_DELEGATE_FALSE='#'
28855else
28856 FPX_DELEGATE_TRUE='#'
28857 FPX_DELEGATE_FALSE=
28858fi
28859
cristy3ed852e2009-09-05 21:47:34 +000028860
28861
28862
28863#
28864# Check for fontconfig delegate library.
28865#
28866
28867# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028868if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028869 withval=$with_fontconfig; with_fontconfig=$withval
28870else
cristyfc3d0222012-02-07 15:05:57 +000028871 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028872fi
28873
28874
28875if test "$with_fontconfig" != 'yes'; then
28876 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28877fi
28878
28879have_fontconfig='no'
28880FONTCONFIG_CFLAGS=""
28881FONTCONFIG_LIBS=""
28882FONTCONFIG_PKG=""
28883if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28885$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028886
28887pkg_failed=no
28888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28889$as_echo_n "checking for FONTCONFIG... " >&6; }
28890
28891if test -n "$FONTCONFIG_CFLAGS"; then
28892 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28893 elif test -n "$PKG_CONFIG"; then
28894 if test -n "$PKG_CONFIG" && \
28895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28896 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28897 ac_status=$?
28898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28899 test $ac_status = 0; }; then
28900 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28901else
28902 pkg_failed=yes
28903fi
28904 else
28905 pkg_failed=untried
28906fi
28907if test -n "$FONTCONFIG_LIBS"; then
28908 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28909 elif test -n "$PKG_CONFIG"; then
28910 if test -n "$PKG_CONFIG" && \
28911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28912 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28913 ac_status=$?
28914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28915 test $ac_status = 0; }; then
28916 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28917else
28918 pkg_failed=yes
28919fi
28920 else
28921 pkg_failed=untried
28922fi
28923
28924
28925
28926if test $pkg_failed = yes; then
28927
28928if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28929 _pkg_short_errors_supported=yes
28930else
28931 _pkg_short_errors_supported=no
28932fi
28933 if test $_pkg_short_errors_supported = yes; then
28934 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28935 else
28936 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28937 fi
28938 # Put the nasty error message in config.log where it belongs
28939 echo "$FONTCONFIG_PKG_ERRORS" >&5
28940
28941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28942$as_echo "no" >&6; }
28943 have_fontconfig=no
28944elif test $pkg_failed = untried; then
28945 have_fontconfig=no
28946else
28947 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28948 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28950$as_echo "yes" >&6; }
28951 have_fontconfig=yes
28952fi
cristyad38abe2012-12-23 23:03:21 +000028953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28954$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028955fi
28956
28957if test "$have_fontconfig" = 'yes'; then
28958
cristy8b350f62009-11-15 23:12:43 +000028959$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028960
cristyc6722092012-10-14 00:19:31 +000028961 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028962 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028963 fi
cristy3ed852e2009-09-05 21:47:34 +000028964fi
28965
cristy73bd4a52010-10-05 11:24:23 +000028966 if test "$have_fontconfig" = 'yes'; then
28967 FONTCONFIG_DELEGATE_TRUE=
28968 FONTCONFIG_DELEGATE_FALSE='#'
28969else
28970 FONTCONFIG_DELEGATE_TRUE='#'
28971 FONTCONFIG_DELEGATE_FALSE=
28972fi
28973
cristy3ed852e2009-09-05 21:47:34 +000028974
28975
28976
28977
28978#
cristy03f187e2013-01-24 00:22:19 +000028979# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028980#
28981
28982# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028983if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028984 withval=$with_freetype; with_freetype=$withval
28985else
28986 with_freetype='yes'
28987fi
28988
28989
cristy3ed852e2009-09-05 21:47:34 +000028990if test "$with_freetype" != 'yes'; then
28991 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28992fi
28993
cristy81beccd2011-10-03 18:17:24 +000028994have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000028995FREETYPE_CFLAGS=""
28996FREETYPE_LIBS=""
28997FREETYPE_PKG=""
28998if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29000$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029001
29002pkg_failed=no
29003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29004$as_echo_n "checking for FREETYPE... " >&6; }
29005
29006if test -n "$FREETYPE_CFLAGS"; then
29007 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29008 elif test -n "$PKG_CONFIG"; then
29009 if test -n "$PKG_CONFIG" && \
29010 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29011 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29012 ac_status=$?
29013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29014 test $ac_status = 0; }; then
29015 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29016else
29017 pkg_failed=yes
29018fi
29019 else
29020 pkg_failed=untried
29021fi
29022if test -n "$FREETYPE_LIBS"; then
29023 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29024 elif test -n "$PKG_CONFIG"; then
29025 if test -n "$PKG_CONFIG" && \
29026 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29027 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29028 ac_status=$?
29029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29030 test $ac_status = 0; }; then
29031 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29032else
29033 pkg_failed=yes
29034fi
29035 else
29036 pkg_failed=untried
29037fi
29038
29039
29040
29041if test $pkg_failed = yes; then
29042
29043if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29044 _pkg_short_errors_supported=yes
29045else
29046 _pkg_short_errors_supported=no
29047fi
29048 if test $_pkg_short_errors_supported = yes; then
29049 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29050 else
29051 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29052 fi
29053 # Put the nasty error message in config.log where it belongs
29054 echo "$FREETYPE_PKG_ERRORS" >&5
29055
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29057$as_echo "no" >&6; }
29058 have_freetype=no
29059elif test $pkg_failed = untried; then
29060 have_freetype=no
29061else
29062 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29063 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29065$as_echo "yes" >&6; }
29066 have_freetype=yes
29067fi
cristyad38abe2012-12-23 23:03:21 +000029068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29069$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029070fi
29071
cristy03f187e2013-01-24 00:22:19 +000029072if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029073
cristy8b350f62009-11-15 23:12:43 +000029074$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029075
cristy03f187e2013-01-24 00:22:19 +000029076 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029077fi
cristy03f187e2013-01-24 00:22:19 +000029078
cristy73bd4a52010-10-05 11:24:23 +000029079 if test "$have_freetype" = 'yes'; then
29080 FREETYPE_DELEGATE_TRUE=
29081 FREETYPE_DELEGATE_FALSE='#'
29082else
29083 FREETYPE_DELEGATE_TRUE='#'
29084 FREETYPE_DELEGATE_FALSE=
29085fi
29086
cristy3ed852e2009-09-05 21:47:34 +000029087
29088
29089
cristy03f187e2013-01-24 00:22:19 +000029090
cristy3ed852e2009-09-05 21:47:34 +000029091#
29092# Check for Ghostscript library or framework.
29093#
29094# Test for iapi.h & test for gsapi_new_instance in -lgs
29095# or -framework Ghostscript
29096
29097
29098# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029099if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029100 withval=$with_gslib; with_gslib=$withval
29101else
29102 with_gslib='no'
29103fi
29104
29105
cristyb7931f12009-09-25 10:22:21 +000029106gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029107if test "$with_gslib" != 'yes'; then
29108 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29109fi
29110
29111have_gslib='no'
29112GS_LIBS=''
29113if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29115$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029117$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29119$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029120 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029121 failed=0
29122 passed=0
cristy8b350f62009-11-15 23:12:43 +000029123 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 +000029124if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029125 passed=`expr $passed + 1`
29126else
29127 failed=`expr $failed + 1`
29128fi
29129
29130
cristy8b350f62009-11-15 23:12:43 +000029131 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 +000029132if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029133 passed=`expr $passed + 1`
29134else
29135 failed=`expr $failed + 1`
29136fi
29137
29138
cristy73bd4a52010-10-05 11:24:23 +000029139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29140$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029141if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029142 $as_echo_n "(cached) " >&6
29143else
29144 ac_check_framework_save_LIBS=$LIBS
29145LIBS="-framework Ghostscript $LIBS"
29146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29147/* end confdefs.h. */
29148
29149/* Override any GCC internal prototype to avoid an error.
29150 Use char because int might match the return type of a GCC
29151 builtin and then its argument prototype would still apply. */
29152#ifdef __cplusplus
29153extern "C"
29154#endif
29155char gsapi_new_instance ();
29156int
29157main ()
29158{
29159return gsapi_new_instance ();
29160 ;
29161 return 0;
29162}
29163_ACEOF
29164if ac_fn_c_try_link "$LINENO"; then :
29165 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29166else
29167 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29168fi
29169rm -f core conftest.err conftest.$ac_objext \
29170 conftest$ac_exeext conftest.$ac_ext
29171LIBS=$ac_check_framework_save_LIBS
29172fi
29173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29174$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29175if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29176 framework=`expr $framework + 1`
29177else
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029179$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029180if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029181 $as_echo_n "(cached) " >&6
29182else
29183 ac_check_lib_save_LIBS=$LIBS
29184LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029186/* end confdefs.h. */
29187
29188/* Override any GCC internal prototype to avoid an error.
29189 Use char because int might match the return type of a GCC
29190 builtin and then its argument prototype would still apply. */
29191#ifdef __cplusplus
29192extern "C"
29193#endif
29194char gsapi_new_instance ();
29195int
29196main ()
29197{
29198return gsapi_new_instance ();
29199 ;
29200 return 0;
29201}
29202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029203if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029204 ac_cv_lib_gs_gsapi_new_instance=yes
29205else
cristy8b350f62009-11-15 23:12:43 +000029206 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029207fi
cristy8b350f62009-11-15 23:12:43 +000029208rm -f core conftest.err conftest.$ac_objext \
29209 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029210LIBS=$ac_check_lib_save_LIBS
29211fi
cristy8b350f62009-11-15 23:12:43 +000029212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029213$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029214if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029215 passed=`expr $passed + 1`
29216else
29217 failed=`expr $failed + 1`
29218fi
cristy73bd4a52010-10-05 11:24:23 +000029219
29220fi
cristy8b350f62009-11-15 23:12:43 +000029221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029222$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29223 if test $passed -gt 0; then
29224 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29226$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029227 have_gslib='no (failed tests)'
29228 else
29229 if test $framework -gt 0; then
29230 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029231 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29233$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029234 else
cristyad38abe2012-12-23 23:03:21 +000029235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29236$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029237 GS_LIBS='-lgs'
29238 fi
29239 LIBS="$GS_LIBS $LIBS"
29240
cristy8b350f62009-11-15 23:12:43 +000029241$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029242
29243 have_gslib='yes'
29244 fi
29245 else
cristyad38abe2012-12-23 23:03:21 +000029246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29247$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029248 fi
29249fi
cristy73bd4a52010-10-05 11:24:23 +000029250 if test "$have_gslib" = 'yes'; then
29251 GS_DELEGATE_TRUE=
29252 GS_DELEGATE_FALSE='#'
29253else
29254 GS_DELEGATE_TRUE='#'
29255 GS_DELEGATE_FALSE=
29256fi
29257
cristy3ed852e2009-09-05 21:47:34 +000029258
29259
29260# Set default font search path
29261
29262# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029263if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029264 withval=$with_fontpath; with_fontpath=$withval
29265else
29266 with_fontpath=''
29267fi
29268
29269
29270if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29271 with_fontpath=''
29272else
29273
29274cat >>confdefs.h <<_ACEOF
29275#define MAGICK_FONT_PATH "$with_fontpath"
29276_ACEOF
29277
29278fi
29279if test "$with_fontpath=" != ''; then
29280 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29281fi
29282
29283# Set Ghostscript font directory
29284
29285# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029286if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029287 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29288else
29289 with_gs_font_dir='default'
29290fi
29291
29292
29293if test "$with_gs_font_dir" != 'default'; then
29294 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29295fi
29296
29297
29298#
29299# Check for GVC delegate library.
29300#
29301
29302# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029303if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029304 withval=$with_gvc; with_gvc=$withval
29305else
cristy1b70dc82012-07-01 23:15:05 +000029306 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029307fi
29308
29309
29310if test "$with_gvc" != 'yes'; then
29311 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29312fi
29313
29314GVC_PKG=""
29315if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29317$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029318
29319pkg_failed=no
29320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29321$as_echo_n "checking for GVC... " >&6; }
29322
29323if test -n "$GVC_CFLAGS"; then
29324 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29325 elif test -n "$PKG_CONFIG"; then
29326 if test -n "$PKG_CONFIG" && \
29327 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29328 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29329 ac_status=$?
29330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29331 test $ac_status = 0; }; then
29332 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29333else
29334 pkg_failed=yes
29335fi
29336 else
29337 pkg_failed=untried
29338fi
29339if test -n "$GVC_LIBS"; then
29340 pkg_cv_GVC_LIBS="$GVC_LIBS"
29341 elif test -n "$PKG_CONFIG"; then
29342 if test -n "$PKG_CONFIG" && \
29343 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29344 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29345 ac_status=$?
29346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29347 test $ac_status = 0; }; then
29348 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29349else
29350 pkg_failed=yes
29351fi
29352 else
29353 pkg_failed=untried
29354fi
29355
29356
29357
29358if test $pkg_failed = yes; then
29359
29360if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29361 _pkg_short_errors_supported=yes
29362else
29363 _pkg_short_errors_supported=no
29364fi
29365 if test $_pkg_short_errors_supported = yes; then
29366 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29367 else
29368 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29369 fi
29370 # Put the nasty error message in config.log where it belongs
29371 echo "$GVC_PKG_ERRORS" >&5
29372
29373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29374$as_echo "no" >&6; }
29375 have_gvc=no
29376elif test $pkg_failed = untried; then
29377 have_gvc=no
29378else
29379 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29380 GVC_LIBS=$pkg_cv_GVC_LIBS
29381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29382$as_echo "yes" >&6; }
29383 have_gvc=yes
29384fi
cristyad38abe2012-12-23 23:03:21 +000029385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29386$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029387fi
29388
29389if test "$have_gvc" = 'yes'; then
29390
cristy8b350f62009-11-15 23:12:43 +000029391$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029392
cristyc6722092012-10-14 00:19:31 +000029393 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029394 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29395 fi
29396fi
29397
cristy73bd4a52010-10-05 11:24:23 +000029398 if test "$have_gvc" = 'yes'; then
29399 GVC_DELEGATE_TRUE=
29400 GVC_DELEGATE_FALSE='#'
29401else
29402 GVC_DELEGATE_TRUE='#'
29403 GVC_DELEGATE_FALSE=
29404fi
29405
cristy3ed852e2009-09-05 21:47:34 +000029406
29407
29408
29409
29410#
29411# Check for JBIG delegate library.
29412#
29413
29414
29415# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029416if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029417 withval=$with_jbig; with_jbig=$withval
29418else
29419 with_jbig='yes'
29420fi
29421
29422
29423have_jbig='no'
29424JBIG_LIBS=''
29425if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29427$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029429$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29431$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029432 failed=0
29433 passed=0
cristy8b350f62009-11-15 23:12:43 +000029434 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029435if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029436 passed=`expr $passed + 1`
29437else
29438 failed=`expr $failed + 1`
29439fi
29440
29441
cristy8b350f62009-11-15 23:12:43 +000029442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029443$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029444if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029445 $as_echo_n "(cached) " >&6
29446else
29447 ac_check_lib_save_LIBS=$LIBS
29448LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029450/* end confdefs.h. */
29451
29452/* Override any GCC internal prototype to avoid an error.
29453 Use char because int might match the return type of a GCC
29454 builtin and then its argument prototype would still apply. */
29455#ifdef __cplusplus
29456extern "C"
29457#endif
29458char jbg_dec_init ();
29459int
29460main ()
29461{
29462return jbg_dec_init ();
29463 ;
29464 return 0;
29465}
29466_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029467if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029468 ac_cv_lib_jbig_jbg_dec_init=yes
29469else
cristy8b350f62009-11-15 23:12:43 +000029470 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029471fi
cristy8b350f62009-11-15 23:12:43 +000029472rm -f core conftest.err conftest.$ac_objext \
29473 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029474LIBS=$ac_check_lib_save_LIBS
29475fi
cristy8b350f62009-11-15 23:12:43 +000029476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029477$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029478if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029479 passed=`expr $passed + 1`
29480else
29481 failed=`expr $failed + 1`
29482fi
29483
cristy8b350f62009-11-15 23:12:43 +000029484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029485$as_echo_n "checking if JBIG package is complete... " >&6; }
29486 if test $passed -gt 0; then
29487 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29489$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029490 have_jbig='no (failed tests)'
29491 else
29492 JBIG_LIBS='-ljbig'
29493 LIBS="$JBIG_LIBS $LIBS"
29494
cristy8b350f62009-11-15 23:12:43 +000029495$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029496
cristyad38abe2012-12-23 23:03:21 +000029497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29498$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029499 have_jbig='yes'
29500 fi
29501 else
cristyad38abe2012-12-23 23:03:21 +000029502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29503$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029504 fi
29505fi
cristy73bd4a52010-10-05 11:24:23 +000029506 if test "$have_jbig" = 'yes'; then
29507 JBIG_DELEGATE_TRUE=
29508 JBIG_DELEGATE_FALSE='#'
29509else
29510 JBIG_DELEGATE_TRUE='#'
29511 JBIG_DELEGATE_FALSE=
29512fi
29513
cristy3ed852e2009-09-05 21:47:34 +000029514
29515
29516
29517#
29518# Check for JPEG delegate library.
29519#
29520
29521# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029522if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029523 withval=$with_jpeg; with_jpeg=$withval
29524else
29525 with_jpeg='yes'
29526fi
29527
29528
29529if test "$with_jpeg" != 'yes'; then
29530 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29531fi
29532
29533have_jpeg='no'
29534JPEG_LIBS=''
29535if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29537$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029539$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29541$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029542 failed=0
29543 passed=0
cristy8b350f62009-11-15 23:12:43 +000029544 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029545if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029546 passed=`expr $passed + 1`
29547else
29548 failed=`expr $failed + 1`
29549fi
29550
29551
cristy8b350f62009-11-15 23:12:43 +000029552 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029553if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029554 passed=`expr $passed + 1`
29555else
29556 failed=`expr $failed + 1`
29557fi
29558
29559
cristy8b350f62009-11-15 23:12:43 +000029560 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029561if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029562 passed=`expr $passed + 1`
29563else
29564 failed=`expr $failed + 1`
29565fi
29566
29567
cristy8b350f62009-11-15 23:12:43 +000029568 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029569if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029570 passed=`expr $passed + 1`
29571else
29572 failed=`expr $failed + 1`
29573fi
29574
29575
cristy8b350f62009-11-15 23:12:43 +000029576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029577$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029578if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029579 $as_echo_n "(cached) " >&6
29580else
29581 ac_check_lib_save_LIBS=$LIBS
29582LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029584/* end confdefs.h. */
29585
29586/* Override any GCC internal prototype to avoid an error.
29587 Use char because int might match the return type of a GCC
29588 builtin and then its argument prototype would still apply. */
29589#ifdef __cplusplus
29590extern "C"
29591#endif
29592char jpeg_read_header ();
29593int
29594main ()
29595{
29596return jpeg_read_header ();
29597 ;
29598 return 0;
29599}
29600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029601if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029602 ac_cv_lib_jpeg_jpeg_read_header=yes
29603else
cristy8b350f62009-11-15 23:12:43 +000029604 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029605fi
cristy8b350f62009-11-15 23:12:43 +000029606rm -f core conftest.err conftest.$ac_objext \
29607 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029608LIBS=$ac_check_lib_save_LIBS
29609fi
cristy8b350f62009-11-15 23:12:43 +000029610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029611$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029612if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029613 passed=`expr $passed + 1`
29614else
29615 failed=`expr $failed + 1`
29616fi
29617
29618
29619# Test for compatible JPEG library
29620if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029622$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029623if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029624 $as_echo_n "(cached) " >&6
29625else
cristy8b350f62009-11-15 23:12:43 +000029626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029627/* end confdefs.h. */
29628#include <stdio.h>
29629#include <stdlib.h>
29630#include <jpeglib.h>
29631
29632int
29633main ()
29634{
29635
29636#if JPEG_LIB_VERSION < 62
29637#error IJG JPEG library must be version 6b or newer!
29638#endif
29639return 0;
29640
29641 ;
29642 return 0;
29643}
29644_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029645if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029646 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29647else
cristy8b350f62009-11-15 23:12:43 +000029648 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029649fi
cristy3ed852e2009-09-05 21:47:34 +000029650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29651fi
cristy8b350f62009-11-15 23:12:43 +000029652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029653$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29654fi
cristy8b350f62009-11-15 23:12:43 +000029655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029656$as_echo_n "checking if JPEG package is complete... " >&6; }
29657 if test $passed -gt 0; then
29658 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29660$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029661 have_jpeg='no (failed tests)'
29662 else
29663 JPEG_LIBS='-ljpeg'
29664 LIBS="$JPEG_LIBS $LIBS"
29665
cristy8b350f62009-11-15 23:12:43 +000029666$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029667
cristyad38abe2012-12-23 23:03:21 +000029668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29669$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029670 have_jpeg='yes'
29671 fi
29672 else
cristyad38abe2012-12-23 23:03:21 +000029673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29674$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029675 fi
29676fi
cristy73bd4a52010-10-05 11:24:23 +000029677 if test "$have_jpeg" = 'yes'; then
29678 JPEG_DELEGATE_TRUE=
29679 JPEG_DELEGATE_FALSE='#'
29680else
29681 JPEG_DELEGATE_TRUE='#'
29682 JPEG_DELEGATE_FALSE=
29683fi
29684
cristy3ed852e2009-09-05 21:47:34 +000029685
29686
29687
29688#
29689# Check for JPEG Version 2 delegate library.
29690#
29691
29692# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029693if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029694 withval=$with_jp2; with_jp2=$withval
29695else
29696 with_jp2='yes'
29697fi
29698
29699
29700if test "$with_jp2" != 'yes'; then
29701 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29702fi
29703
29704have_jp2='no'
29705JP2_LIBS=''
29706if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29708$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029710$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29712$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029713 failed=0
29714 passed=0
cristy8b350f62009-11-15 23:12:43 +000029715 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029716if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029717 passed=`expr $passed + 1`
29718else
29719 failed=`expr $failed + 1`
29720fi
29721
29722
cristy8b350f62009-11-15 23:12:43 +000029723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029724$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029725if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029726 $as_echo_n "(cached) " >&6
29727else
29728 ac_check_lib_save_LIBS=$LIBS
29729LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029731/* end confdefs.h. */
29732
29733/* Override any GCC internal prototype to avoid an error.
29734 Use char because int might match the return type of a GCC
29735 builtin and then its argument prototype would still apply. */
29736#ifdef __cplusplus
29737extern "C"
29738#endif
29739char jas_stream_fopen ();
29740int
29741main ()
29742{
29743return jas_stream_fopen ();
29744 ;
29745 return 0;
29746}
29747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029748if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029749 ac_cv_lib_jasper_jas_stream_fopen=yes
29750else
cristy8b350f62009-11-15 23:12:43 +000029751 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029752fi
cristy8b350f62009-11-15 23:12:43 +000029753rm -f core conftest.err conftest.$ac_objext \
29754 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029755LIBS=$ac_check_lib_save_LIBS
29756fi
cristy8b350f62009-11-15 23:12:43 +000029757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029758$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029759if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029760 passed=`expr $passed + 1`
29761else
29762 failed=`expr $failed + 1`
29763fi
29764
cristy8b350f62009-11-15 23:12:43 +000029765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029766$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29767 if test $passed -gt 0; then
29768 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29770$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029771 have_jp2='no (failed tests)'
29772 else
29773 JP2_LIBS='-ljasper'
29774 LIBS="$JP2_LIBS $LIBS"
29775
cristy8b350f62009-11-15 23:12:43 +000029776$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029777
cristyad38abe2012-12-23 23:03:21 +000029778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29779$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029780 have_jp2='yes'
29781 fi
29782 else
cristyad38abe2012-12-23 23:03:21 +000029783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29784$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029785 fi
29786fi
cristy73bd4a52010-10-05 11:24:23 +000029787 if test "$have_jp2" = 'yes'; then
29788 JP2_DELEGATE_TRUE=
29789 JP2_DELEGATE_FALSE='#'
29790else
29791 JP2_DELEGATE_TRUE='#'
29792 JP2_DELEGATE_FALSE=
29793fi
29794
cristy3ed852e2009-09-05 21:47:34 +000029795
29796
29797
29798#
29799# Check for LCMS delegate library.
29800#
cristy71203402010-06-18 13:12:03 +000029801# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029802
29803# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029804if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029805 withval=$with_lcms; with_lcms=$withval
29806else
29807 with_lcms='yes'
29808fi
29809
cristy71203402010-06-18 13:12:03 +000029810if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029811 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29812fi
29813
cristy71203402010-06-18 13:12:03 +000029814# Disable LCMS2.
29815
29816# Check whether --with-lcms2 was given.
29817if test "${with_lcms2+set}" = set; then :
29818 withval=$with_lcms2; with_lcms2=$withval
29819else
29820 with_lcms2='yes'
29821fi
29822
29823if test "$with_lcms2" != 'yes' ; then
29824 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29825fi
29826
29827have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029828LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029829if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29831$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29833$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29835$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029836 failed=0
29837 passed=0
29838 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029839
29840 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029841 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029842if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029843 have_lcms_header='yes'
29844fi
29845
29846
29847 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029848
29849$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29850
cristy71203402010-06-18 13:12:03 +000029851 passed=`expr $passed + 1`
29852 fi
29853
29854 # Check for <lcms2/lcms2.h)
29855 if test "$have_lcms_header" != 'yes'; then
29856 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 +000029857if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029858 have_lcms_header='yes'
29859fi
29860
29861
cristy71203402010-06-18 13:12:03 +000029862 if test "$have_lcms_header" = 'yes'; then
29863 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029864
cristy71203402010-06-18 13:12:03 +000029865$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029866
cristy71203402010-06-18 13:12:03 +000029867 fi
cristyd09bcf92010-03-25 03:04:45 +000029868 fi
cristy71203402010-06-18 13:12:03 +000029869
29870 # Failed to find lcms header?
29871 if test "$have_lcms_header" != 'yes'; then
29872 failed=`expr $failed + 1`
29873 fi
29874
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29876$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029877if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029878 $as_echo_n "(cached) " >&6
29879else
29880 ac_check_lib_save_LIBS=$LIBS
29881LIBS="-llcms2 $LIBS"
29882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29883/* end confdefs.h. */
29884
29885/* Override any GCC internal prototype to avoid an error.
29886 Use char because int might match the return type of a GCC
29887 builtin and then its argument prototype would still apply. */
29888#ifdef __cplusplus
29889extern "C"
29890#endif
cristy71203402010-06-18 13:12:03 +000029891char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029892int
29893main ()
29894{
cristy71203402010-06-18 13:12:03 +000029895return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029896 ;
29897 return 0;
29898}
29899_ACEOF
29900if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029901 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029902else
cristy71203402010-06-18 13:12:03 +000029903 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029904fi
29905rm -f core conftest.err conftest.$ac_objext \
29906 conftest$ac_exeext conftest.$ac_ext
29907LIBS=$ac_check_lib_save_LIBS
29908fi
cristy71203402010-06-18 13:12:03 +000029909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29910$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029911if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029912 passed=`expr $passed + 1`
29913else
29914 failed=`expr $failed + 1`
29915fi
29916
cristy71203402010-06-18 13:12:03 +000029917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29918$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029919 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029920 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29922$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029923 have_lcms2='no (failed tests)'
29924 else
29925 LCMS_LIBS='-llcms2'
29926 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29928$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029929 have_lcms2='yes'
29930 fi
cristyd09bcf92010-03-25 03:04:45 +000029931 else
cristyad38abe2012-12-23 23:03:21 +000029932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29933$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029934 fi
29935fi
29936
cristy71203402010-06-18 13:12:03 +000029937#
29938# Check for LCMS v1 (1.11 or later)
29939#
29940if test $have_lcms2 = 'yes'; then
29941 with_lcms='no'
29942fi
29943
29944have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029945if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29947$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29949$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29951$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029952 failed=0
29953 passed=0
29954 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029955
29956 # Check for <lcms.h>
29957 if test "$have_lcms_header" != 'yes'; then
29958 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029959if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029960 have_lcms_header='yes'
29961fi
29962
29963
cristy71203402010-06-18 13:12:03 +000029964 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029965 passed=`expr $passed + 1`
29966
cristy8b350f62009-11-15 23:12:43 +000029967$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029968
cristy71203402010-06-18 13:12:03 +000029969 fi
29970 fi
29971
29972 # Check for <lcms/lcms.h>
29973 if test "$have_lcms_header" != 'yes'; then
29974 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 +000029975if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029976 have_lcms_header='yes'
29977fi
29978
29979
cristy71203402010-06-18 13:12:03 +000029980 if test "$have_lcms_header" = 'yes'; then
29981 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029982
cristy8b350f62009-11-15 23:12:43 +000029983$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029984
cristy71203402010-06-18 13:12:03 +000029985 fi
cristy3ed852e2009-09-05 21:47:34 +000029986 fi
cristy71203402010-06-18 13:12:03 +000029987
29988 # Failed to find lcms header?
29989 if test "$have_lcms_header" != 'yes'; then
29990 failed=`expr $failed + 1`
29991 fi
29992
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29994$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029995if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029996 $as_echo_n "(cached) " >&6
29997else
29998 ac_check_lib_save_LIBS=$LIBS
29999LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030001/* end confdefs.h. */
30002
30003/* Override any GCC internal prototype to avoid an error.
30004 Use char because int might match the return type of a GCC
30005 builtin and then its argument prototype would still apply. */
30006#ifdef __cplusplus
30007extern "C"
30008#endif
cristy71203402010-06-18 13:12:03 +000030009char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030010int
30011main ()
30012{
cristy71203402010-06-18 13:12:03 +000030013return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030014 ;
30015 return 0;
30016}
30017_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030018if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030019 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030020else
cristy71203402010-06-18 13:12:03 +000030021 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030022fi
cristy8b350f62009-11-15 23:12:43 +000030023rm -f core conftest.err conftest.$ac_objext \
30024 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030025LIBS=$ac_check_lib_save_LIBS
30026fi
cristy71203402010-06-18 13:12:03 +000030027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30028$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030029if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030030 passed=`expr $passed + 1`
30031else
30032 failed=`expr $failed + 1`
30033fi
30034
cristy8b350f62009-11-15 23:12:43 +000030035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030036$as_echo_n "checking if LCMS package is complete... " >&6; }
30037 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030038 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30040$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030041 have_lcms='no (failed tests)'
30042 else
30043 LCMS_LIBS='-llcms'
30044 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30046$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030047 have_lcms='yes'
30048 fi
cristy3ed852e2009-09-05 21:47:34 +000030049 else
cristyad38abe2012-12-23 23:03:21 +000030050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30051$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030052 fi
30053fi
cristy71203402010-06-18 13:12:03 +000030054
cristy73bd4a52010-10-05 11:24:23 +000030055 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30056 LCMS_DELEGATE_TRUE=
30057 LCMS_DELEGATE_FALSE='#'
30058else
30059 LCMS_DELEGATE_TRUE='#'
30060 LCMS_DELEGATE_FALSE=
30061fi
30062
cristy71203402010-06-18 13:12:03 +000030063if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30064
30065$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30066
30067fi
30068
cristy3ed852e2009-09-05 21:47:34 +000030069
30070
30071
30072#
30073# Check for the LQR (Liquid Rescale) delegate library.
30074#
30075
30076# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030077if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030078 withval=$with_lqr; with_lqr=$withval
30079else
30080 with_lqr='yes'
30081fi
30082
30083
30084if test "$with_lqr" != 'yes'; then
30085 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30086fi
30087
30088have_lqr='no'
30089LQR_CFLAGS=""
30090LQR_LIBS=""
30091LQR_PKG=""
30092if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30094$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030095
30096pkg_failed=no
30097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30098$as_echo_n "checking for LQR... " >&6; }
30099
30100if test -n "$LQR_CFLAGS"; then
30101 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30102 elif test -n "$PKG_CONFIG"; then
30103 if test -n "$PKG_CONFIG" && \
30104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30105 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30106 ac_status=$?
30107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30108 test $ac_status = 0; }; then
30109 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30110else
30111 pkg_failed=yes
30112fi
30113 else
30114 pkg_failed=untried
30115fi
30116if test -n "$LQR_LIBS"; then
30117 pkg_cv_LQR_LIBS="$LQR_LIBS"
30118 elif test -n "$PKG_CONFIG"; then
30119 if test -n "$PKG_CONFIG" && \
30120 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30121 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30122 ac_status=$?
30123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30124 test $ac_status = 0; }; then
30125 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30126else
30127 pkg_failed=yes
30128fi
30129 else
30130 pkg_failed=untried
30131fi
30132
30133
30134
30135if test $pkg_failed = yes; then
30136
30137if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30138 _pkg_short_errors_supported=yes
30139else
30140 _pkg_short_errors_supported=no
30141fi
30142 if test $_pkg_short_errors_supported = yes; then
30143 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30144 else
30145 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30146 fi
30147 # Put the nasty error message in config.log where it belongs
30148 echo "$LQR_PKG_ERRORS" >&5
30149
30150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30151$as_echo "no" >&6; }
30152 have_lqr=no
30153elif test $pkg_failed = untried; then
30154 have_lqr=no
30155else
30156 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30157 LQR_LIBS=$pkg_cv_LQR_LIBS
30158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30159$as_echo "yes" >&6; }
30160 have_lqr=yes
30161fi
cristyad38abe2012-12-23 23:03:21 +000030162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30163$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030164fi
30165
30166if test "$have_lqr" = 'yes'; then
30167
cristy8b350f62009-11-15 23:12:43 +000030168$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030169
30170 CFLAGS="$LQR_CFLAGS $CFLAGS"
30171fi
30172
cristy73bd4a52010-10-05 11:24:23 +000030173 if test "$have_lqr" = 'yes'; then
30174 LQR_DELEGATE_TRUE=
30175 LQR_DELEGATE_FALSE='#'
30176else
30177 LQR_DELEGATE_TRUE='#'
30178 LQR_DELEGATE_FALSE=
30179fi
30180
cristy3ed852e2009-09-05 21:47:34 +000030181
30182
30183
30184
cristy81beccd2011-10-03 18:17:24 +000030185# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030186
30187# Check whether --with-lzma was given.
30188if test "${with_lzma+set}" = set; then :
30189 withval=$with_lzma; with_lzma=$withval
30190else
30191 with_lzma='yes'
30192fi
30193
cristy81beccd2011-10-03 18:17:24 +000030194if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030195 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30196fi
30197
cristyb94e5002011-11-14 13:20:10 +000030198LZMA_PKG=""
30199if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30201$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030202
30203pkg_failed=no
30204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030205$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030206
30207if test -n "$LZMA_CFLAGS"; then
30208 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30209 elif test -n "$PKG_CONFIG"; then
30210 if test -n "$PKG_CONFIG" && \
30211 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30212 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30213 ac_status=$?
30214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30215 test $ac_status = 0; }; then
30216 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30217else
30218 pkg_failed=yes
30219fi
30220 else
30221 pkg_failed=untried
30222fi
30223if test -n "$LZMA_LIBS"; then
30224 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30225 elif test -n "$PKG_CONFIG"; then
30226 if test -n "$PKG_CONFIG" && \
30227 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30228 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30229 ac_status=$?
30230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30231 test $ac_status = 0; }; then
30232 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30233else
30234 pkg_failed=yes
30235fi
30236 else
30237 pkg_failed=untried
30238fi
30239
30240
30241
30242if test $pkg_failed = yes; then
30243
30244if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30245 _pkg_short_errors_supported=yes
30246else
30247 _pkg_short_errors_supported=no
30248fi
30249 if test $_pkg_short_errors_supported = yes; then
30250 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30251 else
30252 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30253 fi
30254 # Put the nasty error message in config.log where it belongs
30255 echo "$LZMA_PKG_ERRORS" >&5
30256
30257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30258$as_echo "no" >&6; }
30259 have_lzma=no
30260elif test $pkg_failed = untried; then
30261 have_lzma=no
30262else
30263 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30264 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30266$as_echo "yes" >&6; }
30267 have_lzma=yes
30268fi
cristyad38abe2012-12-23 23:03:21 +000030269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30270$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030271fi
30272
cristyb94e5002011-11-14 13:20:10 +000030273if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030274
30275$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30276
cristyc6722092012-10-14 00:19:31 +000030277 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030278 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030279 fi
cristyfbb0ef02010-12-19 02:32:11 +000030280fi
cristyb94e5002011-11-14 13:20:10 +000030281
cristyfbb0ef02010-12-19 02:32:11 +000030282 if test "$have_lzma" = 'yes'; then
30283 LZMA_DELEGATE_TRUE=
30284 LZMA_DELEGATE_FALSE='#'
30285else
30286 LZMA_DELEGATE_TRUE='#'
30287 LZMA_DELEGATE_FALSE=
30288fi
30289
30290
30291
30292
cristyb94e5002011-11-14 13:20:10 +000030293
cristy3ed852e2009-09-05 21:47:34 +000030294#
30295# Check for the OpenEXR delegate library.
30296#
30297
30298# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030299if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030300 withval=$with_openexr; with_openexr=$withval
30301else
30302 with_openexr='yes'
30303fi
30304
30305
30306if test "$with_openexr" != 'yes'; then
30307 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30308fi
30309
30310have_openexr='no'
30311OPENEXR_CFLAGS=""
30312OPENEXR_LIBS=""
30313OPENEXR_PKG=""
30314if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30316$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030317
30318pkg_failed=no
30319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30320$as_echo_n "checking for OPENEXR... " >&6; }
30321
30322if test -n "$OPENEXR_CFLAGS"; then
30323 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30324 elif test -n "$PKG_CONFIG"; then
30325 if test -n "$PKG_CONFIG" && \
30326 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30327 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30328 ac_status=$?
30329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30330 test $ac_status = 0; }; then
30331 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30332else
30333 pkg_failed=yes
30334fi
30335 else
30336 pkg_failed=untried
30337fi
30338if test -n "$OPENEXR_LIBS"; then
30339 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30340 elif test -n "$PKG_CONFIG"; then
30341 if test -n "$PKG_CONFIG" && \
30342 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30343 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30344 ac_status=$?
30345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30346 test $ac_status = 0; }; then
30347 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30348else
30349 pkg_failed=yes
30350fi
30351 else
30352 pkg_failed=untried
30353fi
30354
30355
30356
30357if test $pkg_failed = yes; then
30358
30359if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30360 _pkg_short_errors_supported=yes
30361else
30362 _pkg_short_errors_supported=no
30363fi
30364 if test $_pkg_short_errors_supported = yes; then
30365 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30366 else
30367 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30368 fi
30369 # Put the nasty error message in config.log where it belongs
30370 echo "$OPENEXR_PKG_ERRORS" >&5
30371
30372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30373$as_echo "no" >&6; }
30374 have_openexr=no
30375elif test $pkg_failed = untried; then
30376 have_openexr=no
30377else
30378 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30379 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30381$as_echo "yes" >&6; }
30382 have_openexr=yes
30383fi
cristyad38abe2012-12-23 23:03:21 +000030384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30385$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030386fi
30387
30388if test "$have_openexr" = 'yes'; then
30389
cristy8b350f62009-11-15 23:12:43 +000030390$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030391
cristyc6722092012-10-14 00:19:31 +000030392 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030393 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30394 fi
30395fi
30396
cristy73bd4a52010-10-05 11:24:23 +000030397 if test "$have_openexr" = 'yes'; then
30398 OPENEXR_DELEGATE_TRUE=
30399 OPENEXR_DELEGATE_FALSE='#'
30400else
30401 OPENEXR_DELEGATE_TRUE='#'
30402 OPENEXR_DELEGATE_FALSE=
30403fi
30404
cristy3ed852e2009-09-05 21:47:34 +000030405
30406
30407
30408
30409#
cristy41cbe8a2011-10-27 01:35:18 +000030410# Check for PANGO delegate library.
30411#
30412
30413# Check whether --with-pango was given.
30414if test "${with_pango+set}" = set; then :
30415 withval=$with_pango; with_pango=$withval
30416else
cristyfc3d0222012-02-07 15:05:57 +000030417 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030418fi
30419
30420
30421if test "$with_pango" != 'yes'; then
30422 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30423fi
30424
30425have_pango='no'
cristya054b762012-03-26 23:16:00 +000030426have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030427PANGO_CFLAGS=""
30428PANGO_LIBS=""
30429PANGO_PKG=""
30430if test "x$with_pango" = "xyes"; then
30431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30432$as_echo "-------------------------------------------------------------" >&6; }
30433
30434pkg_failed=no
30435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30436$as_echo_n "checking for PANGO... " >&6; }
30437
30438if test -n "$PANGO_CFLAGS"; then
30439 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30440 elif test -n "$PKG_CONFIG"; then
30441 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030442 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30443 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030444 ac_status=$?
30445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30446 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030447 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030448else
30449 pkg_failed=yes
30450fi
30451 else
30452 pkg_failed=untried
30453fi
30454if test -n "$PANGO_LIBS"; then
30455 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30456 elif test -n "$PKG_CONFIG"; then
30457 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030458 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30459 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030460 ac_status=$?
30461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30462 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030463 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030464else
30465 pkg_failed=yes
30466fi
30467 else
30468 pkg_failed=untried
30469fi
30470
30471
30472
30473if test $pkg_failed = yes; then
30474
30475if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30476 _pkg_short_errors_supported=yes
30477else
30478 _pkg_short_errors_supported=no
30479fi
30480 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030481 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030482 else
cristya054b762012-03-26 23:16:00 +000030483 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030484 fi
30485 # Put the nasty error message in config.log where it belongs
30486 echo "$PANGO_PKG_ERRORS" >&5
30487
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30489$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030490 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030491elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030492 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030493else
30494 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30495 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30497$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030498 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030499fi
30500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30501$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030502
30503pkg_failed=no
30504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30505$as_echo_n "checking for PANGO... " >&6; }
30506
30507if test -n "$PANGO_CFLAGS"; then
30508 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30509 elif test -n "$PKG_CONFIG"; then
30510 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030511 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30512 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030513 ac_status=$?
30514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30515 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030516 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030517else
30518 pkg_failed=yes
30519fi
30520 else
30521 pkg_failed=untried
30522fi
30523if test -n "$PANGO_LIBS"; then
30524 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30525 elif test -n "$PKG_CONFIG"; then
30526 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30528 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030529 ac_status=$?
30530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30531 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030532 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030533else
30534 pkg_failed=yes
30535fi
30536 else
30537 pkg_failed=untried
30538fi
30539
30540
30541
30542if test $pkg_failed = yes; then
30543
30544if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30545 _pkg_short_errors_supported=yes
30546else
30547 _pkg_short_errors_supported=no
30548fi
30549 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030550 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030551 else
cristy2542fc62011-12-06 17:50:25 +000030552 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030553 fi
30554 # Put the nasty error message in config.log where it belongs
30555 echo "$PANGO_PKG_ERRORS" >&5
30556
30557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30558$as_echo "no" >&6; }
30559 have_pango=no
30560elif test $pkg_failed = untried; then
30561 have_pango=no
30562else
30563 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30564 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30566$as_echo "yes" >&6; }
30567 have_pango=yes
30568fi
30569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30570$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030571fi
30572
30573if test "$have_pango" = 'yes'; then
30574
30575$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30576
cristyc6722092012-10-14 00:19:31 +000030577 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030578 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30579 fi
30580fi
30581
cristya054b762012-03-26 23:16:00 +000030582if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030583
cristya054b762012-03-26 23:16:00 +000030584$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030585
cristyc6722092012-10-14 00:19:31 +000030586 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030587 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030588 fi
30589fi
30590
30591 if test "$have_pango" = 'yes'; then
30592 PANGO_DELEGATE_TRUE=
30593 PANGO_DELEGATE_FALSE='#'
30594else
30595 PANGO_DELEGATE_TRUE='#'
30596 PANGO_DELEGATE_FALSE=
30597fi
30598
cristya054b762012-03-26 23:16:00 +000030599 if test "$have_pangocairo" = 'yes'; then
30600 PANGOCAIRO_DELEGATE_TRUE=
30601 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030602else
cristya054b762012-03-26 23:16:00 +000030603 PANGOCAIRO_DELEGATE_TRUE='#'
30604 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030605fi
30606
30607
30608
30609
30610
30611#
cristy3ed852e2009-09-05 21:47:34 +000030612# Check for PNG delegate library.
30613#
30614
30615# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030616if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030617 withval=$with_png; with_png=$withval
30618else
30619 with_png='yes'
30620fi
30621
30622
30623if test "$with_png" != 'yes'; then
30624 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30625fi
30626
cristy81beccd2011-10-03 18:17:24 +000030627have_png='no'
30628PNG_LIBS=''
30629
30630if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30632$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30634$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30636$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030637 failed=0
30638 passed=0
30639 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30640if test "x$ac_cv_header_png_h" = xyes; then :
30641 passed=`expr $passed + 1`
30642else
30643 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030644fi
30645
cristy81beccd2011-10-03 18:17:24 +000030646
30647
30648 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030649 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030650 if test "$have_png" = 'no' ; then
30651 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030652 pnglib='png'
30653 else
30654 pnglib="png1${var}"
30655 fi
30656
30657# Test for compatible LIBPNG library
30658 failed=0
30659 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030660 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030661 if test "${pnglib}" != 'png' ; then
30662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30663$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30665/* end confdefs.h. */
30666#include <stdio.h>
30667#include <stdlib.h>
30668#include <png.h>
30669
30670int
30671main ()
30672{
30673
30674#if PNG_LIBPNG_VER_MINOR != ${var}
30675#error LIBPNG library must be version 1${var}!
30676Kaboom, Kaboom
30677#endif
30678return 0;
30679
30680 ;
30681 return 0;
30682}
30683_ACEOF
30684if ac_fn_c_try_compile "$LINENO"; then :
30685 ac_cv_libpng_ok='yes'
30686else
30687 ac_cv_libpng_ok='no'
30688fi
30689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30690 if test "$ac_cv_libpng_ok" = 'yes' ; then
30691 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30693$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030694 else
30695 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30697$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030698 fi
30699 else
30700 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30702$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030703 fi
30704 fi
30705
30706 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030707 if test "1${var}" = '17' ; then
30708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30709$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30710if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30711 $as_echo_n "(cached) " >&6
30712else
30713 ac_check_lib_save_LIBS=$LIBS
30714LIBS="-lpng17 $LIBS"
30715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30716/* end confdefs.h. */
30717
30718/* Override any GCC internal prototype to avoid an error.
30719 Use char because int might match the return type of a GCC
30720 builtin and then its argument prototype would still apply. */
30721#ifdef __cplusplus
30722extern "C"
30723#endif
30724char png_get_io_ptr ();
30725int
30726main ()
30727{
30728return png_get_io_ptr ();
30729 ;
30730 return 0;
30731}
30732_ACEOF
30733if ac_fn_c_try_link "$LINENO"; then :
30734 ac_cv_lib_png17_png_get_io_ptr=yes
30735else
30736 ac_cv_lib_png17_png_get_io_ptr=no
30737fi
30738rm -f core conftest.err conftest.$ac_objext \
30739 conftest$ac_exeext conftest.$ac_ext
30740LIBS=$ac_check_lib_save_LIBS
30741fi
30742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30743$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30744if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30745 passed=`expr $passed + 1`
30746else
30747 failed=`expr $failed + 1`
30748fi
30749
30750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30751$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30752if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30753 $as_echo_n "(cached) " >&6
30754else
30755 ac_check_lib_save_LIBS=$LIBS
30756LIBS="-lpng17 $LIBS"
30757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30758/* end confdefs.h. */
30759
30760/* Override any GCC internal prototype to avoid an error.
30761 Use char because int might match the return type of a GCC
30762 builtin and then its argument prototype would still apply. */
30763#ifdef __cplusplus
30764extern "C"
30765#endif
30766char png_longjmp ();
30767int
30768main ()
30769{
30770return png_longjmp ();
30771 ;
30772 return 0;
30773}
30774_ACEOF
30775if ac_fn_c_try_link "$LINENO"; then :
30776 ac_cv_lib_png17_png_longjmp=yes
30777else
30778 ac_cv_lib_png17_png_longjmp=no
30779fi
30780rm -f core conftest.err conftest.$ac_objext \
30781 conftest$ac_exeext conftest.$ac_ext
30782LIBS=$ac_check_lib_save_LIBS
30783fi
30784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30785$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30786if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30787 passed=`expr $passed + 1`
30788else
30789 failed=`expr $failed + 1`
30790fi
30791
30792 fi
30793 if test "1${var}" = '16' ; then
30794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30795$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30796if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30797 $as_echo_n "(cached) " >&6
30798else
30799 ac_check_lib_save_LIBS=$LIBS
30800LIBS="-lpng16 $LIBS"
30801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30802/* end confdefs.h. */
30803
30804/* Override any GCC internal prototype to avoid an error.
30805 Use char because int might match the return type of a GCC
30806 builtin and then its argument prototype would still apply. */
30807#ifdef __cplusplus
30808extern "C"
30809#endif
30810char png_get_io_ptr ();
30811int
30812main ()
30813{
30814return png_get_io_ptr ();
30815 ;
30816 return 0;
30817}
30818_ACEOF
30819if ac_fn_c_try_link "$LINENO"; then :
30820 ac_cv_lib_png16_png_get_io_ptr=yes
30821else
30822 ac_cv_lib_png16_png_get_io_ptr=no
30823fi
30824rm -f core conftest.err conftest.$ac_objext \
30825 conftest$ac_exeext conftest.$ac_ext
30826LIBS=$ac_check_lib_save_LIBS
30827fi
30828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30829$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30830if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30831 passed=`expr $passed + 1`
30832else
30833 failed=`expr $failed + 1`
30834fi
30835
30836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30837$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30838if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30839 $as_echo_n "(cached) " >&6
30840else
30841 ac_check_lib_save_LIBS=$LIBS
30842LIBS="-lpng16 $LIBS"
30843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30844/* end confdefs.h. */
30845
30846/* Override any GCC internal prototype to avoid an error.
30847 Use char because int might match the return type of a GCC
30848 builtin and then its argument prototype would still apply. */
30849#ifdef __cplusplus
30850extern "C"
30851#endif
30852char png_longjmp ();
30853int
30854main ()
30855{
30856return png_longjmp ();
30857 ;
30858 return 0;
30859}
30860_ACEOF
30861if ac_fn_c_try_link "$LINENO"; then :
30862 ac_cv_lib_png16_png_longjmp=yes
30863else
30864 ac_cv_lib_png16_png_longjmp=no
30865fi
30866rm -f core conftest.err conftest.$ac_objext \
30867 conftest$ac_exeext conftest.$ac_ext
30868LIBS=$ac_check_lib_save_LIBS
30869fi
30870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
30871$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
30872if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
30873 passed=`expr $passed + 1`
30874else
30875 failed=`expr $failed + 1`
30876fi
30877
30878 fi
cristy81beccd2011-10-03 18:17:24 +000030879 if test "1${var}" = '15' ; then
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30881$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30882if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30883 $as_echo_n "(cached) " >&6
30884else
30885 ac_check_lib_save_LIBS=$LIBS
30886LIBS="-lpng15 $LIBS"
30887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30888/* end confdefs.h. */
30889
30890/* Override any GCC internal prototype to avoid an error.
30891 Use char because int might match the return type of a GCC
30892 builtin and then its argument prototype would still apply. */
30893#ifdef __cplusplus
30894extern "C"
30895#endif
30896char png_get_io_ptr ();
30897int
30898main ()
30899{
30900return png_get_io_ptr ();
30901 ;
30902 return 0;
30903}
30904_ACEOF
30905if ac_fn_c_try_link "$LINENO"; then :
30906 ac_cv_lib_png15_png_get_io_ptr=yes
30907else
30908 ac_cv_lib_png15_png_get_io_ptr=no
30909fi
30910rm -f core conftest.err conftest.$ac_objext \
30911 conftest$ac_exeext conftest.$ac_ext
30912LIBS=$ac_check_lib_save_LIBS
30913fi
30914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30915$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30916if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30917 passed=`expr $passed + 1`
30918else
30919 failed=`expr $failed + 1`
30920fi
30921
30922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30923$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30924if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30925 $as_echo_n "(cached) " >&6
30926else
30927 ac_check_lib_save_LIBS=$LIBS
30928LIBS="-lpng15 $LIBS"
30929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30930/* end confdefs.h. */
30931
30932/* Override any GCC internal prototype to avoid an error.
30933 Use char because int might match the return type of a GCC
30934 builtin and then its argument prototype would still apply. */
30935#ifdef __cplusplus
30936extern "C"
30937#endif
30938char png_longjmp ();
30939int
30940main ()
30941{
30942return png_longjmp ();
30943 ;
30944 return 0;
30945}
30946_ACEOF
30947if ac_fn_c_try_link "$LINENO"; then :
30948 ac_cv_lib_png15_png_longjmp=yes
30949else
30950 ac_cv_lib_png15_png_longjmp=no
30951fi
30952rm -f core conftest.err conftest.$ac_objext \
30953 conftest$ac_exeext conftest.$ac_ext
30954LIBS=$ac_check_lib_save_LIBS
30955fi
30956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30957$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30958if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30959 passed=`expr $passed + 1`
30960else
30961 failed=`expr $failed + 1`
30962fi
30963
30964 fi
30965 if test "1${var}" = '14' ; then
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30967$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30968if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30969 $as_echo_n "(cached) " >&6
30970else
30971 ac_check_lib_save_LIBS=$LIBS
30972LIBS="-lpng14 $LIBS"
30973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30974/* end confdefs.h. */
30975
30976/* Override any GCC internal prototype to avoid an error.
30977 Use char because int might match the return type of a GCC
30978 builtin and then its argument prototype would still apply. */
30979#ifdef __cplusplus
30980extern "C"
30981#endif
30982char png_get_io_ptr ();
30983int
30984main ()
30985{
30986return png_get_io_ptr ();
30987 ;
30988 return 0;
30989}
30990_ACEOF
30991if ac_fn_c_try_link "$LINENO"; then :
30992 ac_cv_lib_png14_png_get_io_ptr=yes
30993else
30994 ac_cv_lib_png14_png_get_io_ptr=no
30995fi
30996rm -f core conftest.err conftest.$ac_objext \
30997 conftest$ac_exeext conftest.$ac_ext
30998LIBS=$ac_check_lib_save_LIBS
30999fi
31000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31001$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31002if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31003 passed=`expr $passed + 1`
31004else
31005 failed=`expr $failed + 1`
31006fi
31007
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31009$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31010if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31011 $as_echo_n "(cached) " >&6
31012else
31013 ac_check_lib_save_LIBS=$LIBS
31014LIBS="-lpng14 $LIBS"
31015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31016/* end confdefs.h. */
31017
31018/* Override any GCC internal prototype to avoid an error.
31019 Use char because int might match the return type of a GCC
31020 builtin and then its argument prototype would still apply. */
31021#ifdef __cplusplus
31022extern "C"
31023#endif
31024char png_get_io_state ();
31025int
31026main ()
31027{
31028return png_get_io_state ();
31029 ;
31030 return 0;
31031}
31032_ACEOF
31033if ac_fn_c_try_link "$LINENO"; then :
31034 ac_cv_lib_png14_png_get_io_state=yes
31035else
31036 ac_cv_lib_png14_png_get_io_state=no
31037fi
31038rm -f core conftest.err conftest.$ac_objext \
31039 conftest$ac_exeext conftest.$ac_ext
31040LIBS=$ac_check_lib_save_LIBS
31041fi
31042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31043$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31044if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31045 passed=`expr $passed + 1`
31046else
31047 failed=`expr $failed + 1`
31048fi
31049
31050 fi
31051 if test "1${var}" = '12' ; then
31052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31053$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31054if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31055 $as_echo_n "(cached) " >&6
31056else
31057 ac_check_lib_save_LIBS=$LIBS
31058LIBS="-lpng12 $LIBS"
31059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31060/* end confdefs.h. */
31061
31062/* Override any GCC internal prototype to avoid an error.
31063 Use char because int might match the return type of a GCC
31064 builtin and then its argument prototype would still apply. */
31065#ifdef __cplusplus
31066extern "C"
31067#endif
31068char png_get_io_ptr ();
31069int
31070main ()
31071{
31072return png_get_io_ptr ();
31073 ;
31074 return 0;
31075}
31076_ACEOF
31077if ac_fn_c_try_link "$LINENO"; then :
31078 ac_cv_lib_png12_png_get_io_ptr=yes
31079else
31080 ac_cv_lib_png12_png_get_io_ptr=no
31081fi
31082rm -f core conftest.err conftest.$ac_objext \
31083 conftest$ac_exeext conftest.$ac_ext
31084LIBS=$ac_check_lib_save_LIBS
31085fi
31086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31087$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31088if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31089 passed=`expr $passed + 1`
31090else
31091 failed=`expr $failed + 1`
31092fi
31093
31094 fi
31095 if test "1${var}" = '1' ; then
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31097$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31098if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31099 $as_echo_n "(cached) " >&6
31100else
31101 ac_check_lib_save_LIBS=$LIBS
31102LIBS="-lpng $LIBS"
31103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31104/* end confdefs.h. */
31105
31106/* Override any GCC internal prototype to avoid an error.
31107 Use char because int might match the return type of a GCC
31108 builtin and then its argument prototype would still apply. */
31109#ifdef __cplusplus
31110extern "C"
31111#endif
31112char png_get_io_ptr ();
31113int
31114main ()
31115{
31116return png_get_io_ptr ();
31117 ;
31118 return 0;
31119}
31120_ACEOF
31121if ac_fn_c_try_link "$LINENO"; then :
31122 ac_cv_lib_png_png_get_io_ptr=yes
31123else
31124 ac_cv_lib_png_png_get_io_ptr=no
31125fi
31126rm -f core conftest.err conftest.$ac_objext \
31127 conftest$ac_exeext conftest.$ac_ext
31128LIBS=$ac_check_lib_save_LIBS
31129fi
31130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31131$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31132if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31133 passed=`expr $passed + 1`
31134else
31135 failed=`expr $failed + 1`
31136fi
31137
31138 fi
31139 if test $passed -gt 0 -a $failed -le 0 ; then
31140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31141$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31142 if test $passed -gt 0 ; then
31143 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31145$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031146 have_png='no (failed tests)'
31147 else
31148 PNG_LIBS="-l${pnglib}"
31149 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031150
cristy8b350f62009-11-15 23:12:43 +000031151$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031152
cristyad38abe2012-12-23 23:03:21 +000031153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31154$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031155 have_png='yes'
31156 fi
31157 fi
31158 fi
31159 fi
31160 fi
31161 done
31162 fi
cristy3ed852e2009-09-05 21:47:34 +000031163fi
cristy64877302011-08-23 19:10:31 +000031164
cristy73bd4a52010-10-05 11:24:23 +000031165 if test "$have_png" = 'yes'; then
31166 PNG_DELEGATE_TRUE=
31167 PNG_DELEGATE_FALSE='#'
31168else
31169 PNG_DELEGATE_TRUE='#'
31170 PNG_DELEGATE_FALSE=
31171fi
31172
cristy3ed852e2009-09-05 21:47:34 +000031173
cristy50d3f5c2011-09-10 20:09:06 +000031174
cristy3ed852e2009-09-05 21:47:34 +000031175
31176
31177#
31178# Check for RSVG delegate library.
31179#
31180
31181# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031182if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031183 withval=$with_rsvg; with_rsvg=$withval
31184else
cristy1164d5f2012-08-15 00:58:25 +000031185 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031186fi
31187
31188
31189if test "$with_rsvg" != 'yes'; then
31190 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31191fi
31192
31193have_rsvg='no'
31194have_cairo='no'
31195RSVG_CFLAGS=""
31196RSVG_LIBS=""
31197RSVG_PKG=""
31198if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31200$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031201
31202pkg_failed=no
31203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31204$as_echo_n "checking for RSVG... " >&6; }
31205
31206if test -n "$RSVG_CFLAGS"; then
31207 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31208 elif test -n "$PKG_CONFIG"; then
31209 if test -n "$PKG_CONFIG" && \
31210 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31211 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31212 ac_status=$?
31213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31214 test $ac_status = 0; }; then
31215 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31216else
31217 pkg_failed=yes
31218fi
31219 else
31220 pkg_failed=untried
31221fi
31222if test -n "$RSVG_LIBS"; then
31223 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31224 elif test -n "$PKG_CONFIG"; then
31225 if test -n "$PKG_CONFIG" && \
31226 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31227 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31228 ac_status=$?
31229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31230 test $ac_status = 0; }; then
31231 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31232else
31233 pkg_failed=yes
31234fi
31235 else
31236 pkg_failed=untried
31237fi
31238
31239
31240
31241if test $pkg_failed = yes; then
31242
31243if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31244 _pkg_short_errors_supported=yes
31245else
31246 _pkg_short_errors_supported=no
31247fi
31248 if test $_pkg_short_errors_supported = yes; then
31249 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31250 else
31251 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31252 fi
31253 # Put the nasty error message in config.log where it belongs
31254 echo "$RSVG_PKG_ERRORS" >&5
31255
31256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31257$as_echo "no" >&6; }
31258 have_rsvg=no
31259elif test $pkg_failed = untried; then
31260 have_rsvg=no
31261else
31262 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31263 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31265$as_echo "yes" >&6; }
31266 have_rsvg=yes
31267fi
cristyad38abe2012-12-23 23:03:21 +000031268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31269$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031270
31271pkg_failed=no
31272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31273$as_echo_n "checking for CAIRO_SVG... " >&6; }
31274
31275if test -n "$CAIRO_SVG_CFLAGS"; then
31276 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31277 elif test -n "$PKG_CONFIG"; then
31278 if test -n "$PKG_CONFIG" && \
31279 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31280 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31281 ac_status=$?
31282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31283 test $ac_status = 0; }; then
31284 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31285else
31286 pkg_failed=yes
31287fi
31288 else
31289 pkg_failed=untried
31290fi
31291if test -n "$CAIRO_SVG_LIBS"; then
31292 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31293 elif test -n "$PKG_CONFIG"; then
31294 if test -n "$PKG_CONFIG" && \
31295 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31296 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31297 ac_status=$?
31298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31299 test $ac_status = 0; }; then
31300 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31301else
31302 pkg_failed=yes
31303fi
31304 else
31305 pkg_failed=untried
31306fi
31307
31308
31309
31310if test $pkg_failed = yes; then
31311
31312if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31313 _pkg_short_errors_supported=yes
31314else
31315 _pkg_short_errors_supported=no
31316fi
31317 if test $_pkg_short_errors_supported = yes; then
31318 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31319 else
31320 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31321 fi
31322 # Put the nasty error message in config.log where it belongs
31323 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31324
31325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31326$as_echo "no" >&6; }
31327 have_cairo=no
31328elif test $pkg_failed = untried; then
31329 have_cairo=no
31330else
31331 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31332 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31334$as_echo "yes" >&6; }
31335 have_cairo=yes
31336fi
cristyad38abe2012-12-23 23:03:21 +000031337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31338$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031339fi
31340
31341if test "$have_rsvg" = 'yes'; then
31342
cristy8b350f62009-11-15 23:12:43 +000031343$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031344
cristyc6722092012-10-14 00:19:31 +000031345 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031346 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31347 fi
31348fi
31349
31350if test "$have_cairo" = 'yes'; then
31351
cristy8b350f62009-11-15 23:12:43 +000031352$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031353
cristyc6722092012-10-14 00:19:31 +000031354 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031355 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31356 fi
31357fi
31358
cristy73bd4a52010-10-05 11:24:23 +000031359 if test "$have_rsvg" = 'yes'; then
31360 RSVG_DELEGATE_TRUE=
31361 RSVG_DELEGATE_FALSE='#'
31362else
31363 RSVG_DELEGATE_TRUE='#'
31364 RSVG_DELEGATE_FALSE=
31365fi
31366
31367 if test "$have_cairo" = 'yes'; then
31368 CAIRO_DELEGATE_TRUE=
31369 CAIRO_DELEGATE_FALSE='#'
31370else
31371 CAIRO_DELEGATE_TRUE='#'
31372 CAIRO_DELEGATE_FALSE=
31373fi
31374
cristy3ed852e2009-09-05 21:47:34 +000031375
31376
31377
31378
31379#
31380# Check for TIFF delegate library.
31381#
31382
31383# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031384if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031385 withval=$with_tiff; with_tiff=$withval
31386else
31387 with_tiff='yes'
31388fi
31389
31390
31391if test "$with_tiff" != 'yes'; then
31392 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31393fi
31394
31395have_tiff='no'
31396TIFF_LIBS=''
31397if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31399$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031401$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31403$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031404 failed=0
31405 passed=0
cristy8b350f62009-11-15 23:12:43 +000031406 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031407if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031408 passed=`expr $passed + 1`
31409else
31410 failed=`expr $failed + 1`
31411fi
31412
31413
cristy8b350f62009-11-15 23:12:43 +000031414 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031415if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031416 passed=`expr $passed + 1`
31417else
31418 failed=`expr $failed + 1`
31419fi
31420
31421
cristy8b350f62009-11-15 23:12:43 +000031422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031423$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031424if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031425 $as_echo_n "(cached) " >&6
31426else
31427 ac_check_lib_save_LIBS=$LIBS
31428LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031430/* end confdefs.h. */
31431
31432/* Override any GCC internal prototype to avoid an error.
31433 Use char because int might match the return type of a GCC
31434 builtin and then its argument prototype would still apply. */
31435#ifdef __cplusplus
31436extern "C"
31437#endif
31438char TIFFOpen ();
31439int
31440main ()
31441{
31442return TIFFOpen ();
31443 ;
31444 return 0;
31445}
31446_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031447if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031448 ac_cv_lib_tiff_TIFFOpen=yes
31449else
cristy8b350f62009-11-15 23:12:43 +000031450 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031451fi
cristy8b350f62009-11-15 23:12:43 +000031452rm -f core conftest.err conftest.$ac_objext \
31453 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031454LIBS=$ac_check_lib_save_LIBS
31455fi
cristy8b350f62009-11-15 23:12:43 +000031456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031457$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031458if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031459 passed=`expr $passed + 1`
31460else
31461 failed=`expr $failed + 1`
31462fi
31463
cristy8b350f62009-11-15 23:12:43 +000031464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031465$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031466if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031467 $as_echo_n "(cached) " >&6
31468else
31469 ac_check_lib_save_LIBS=$LIBS
31470LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031472/* end confdefs.h. */
31473
31474/* Override any GCC internal prototype to avoid an error.
31475 Use char because int might match the return type of a GCC
31476 builtin and then its argument prototype would still apply. */
31477#ifdef __cplusplus
31478extern "C"
31479#endif
31480char TIFFClientOpen ();
31481int
31482main ()
31483{
31484return TIFFClientOpen ();
31485 ;
31486 return 0;
31487}
31488_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031489if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031490 ac_cv_lib_tiff_TIFFClientOpen=yes
31491else
cristy8b350f62009-11-15 23:12:43 +000031492 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031493fi
cristy8b350f62009-11-15 23:12:43 +000031494rm -f core conftest.err conftest.$ac_objext \
31495 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031496LIBS=$ac_check_lib_save_LIBS
31497fi
cristy8b350f62009-11-15 23:12:43 +000031498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031499$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031500if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031501 passed=`expr $passed + 1`
31502else
31503 failed=`expr $failed + 1`
31504fi
31505
cristy8b350f62009-11-15 23:12:43 +000031506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031507$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031508if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031509 $as_echo_n "(cached) " >&6
31510else
31511 ac_check_lib_save_LIBS=$LIBS
31512LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031514/* end confdefs.h. */
31515
31516/* Override any GCC internal prototype to avoid an error.
31517 Use char because int might match the return type of a GCC
31518 builtin and then its argument prototype would still apply. */
31519#ifdef __cplusplus
31520extern "C"
31521#endif
31522char TIFFIsByteSwapped ();
31523int
31524main ()
31525{
31526return TIFFIsByteSwapped ();
31527 ;
31528 return 0;
31529}
31530_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031531if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031532 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31533else
cristy8b350f62009-11-15 23:12:43 +000031534 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031535fi
cristy8b350f62009-11-15 23:12:43 +000031536rm -f core conftest.err conftest.$ac_objext \
31537 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031538LIBS=$ac_check_lib_save_LIBS
31539fi
cristy8b350f62009-11-15 23:12:43 +000031540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031541$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031542if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031543 passed=`expr $passed + 1`
31544else
31545 failed=`expr $failed + 1`
31546fi
31547
cristy8b350f62009-11-15 23:12:43 +000031548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031549$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031550if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031551 $as_echo_n "(cached) " >&6
31552else
31553 ac_check_lib_save_LIBS=$LIBS
31554LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031556/* end confdefs.h. */
31557
31558/* Override any GCC internal prototype to avoid an error.
31559 Use char because int might match the return type of a GCC
31560 builtin and then its argument prototype would still apply. */
31561#ifdef __cplusplus
31562extern "C"
31563#endif
31564char TIFFReadRGBATile ();
31565int
31566main ()
31567{
31568return TIFFReadRGBATile ();
31569 ;
31570 return 0;
31571}
31572_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031573if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031574 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31575else
cristy8b350f62009-11-15 23:12:43 +000031576 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031577fi
cristy8b350f62009-11-15 23:12:43 +000031578rm -f core conftest.err conftest.$ac_objext \
31579 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031580LIBS=$ac_check_lib_save_LIBS
31581fi
cristy8b350f62009-11-15 23:12:43 +000031582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031583$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031584if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031585 passed=`expr $passed + 1`
31586else
31587 failed=`expr $failed + 1`
31588fi
31589
cristy8b350f62009-11-15 23:12:43 +000031590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031591$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031592if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031593 $as_echo_n "(cached) " >&6
31594else
31595 ac_check_lib_save_LIBS=$LIBS
31596LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031598/* end confdefs.h. */
31599
31600/* Override any GCC internal prototype to avoid an error.
31601 Use char because int might match the return type of a GCC
31602 builtin and then its argument prototype would still apply. */
31603#ifdef __cplusplus
31604extern "C"
31605#endif
31606char TIFFReadRGBAStrip ();
31607int
31608main ()
31609{
31610return TIFFReadRGBAStrip ();
31611 ;
31612 return 0;
31613}
31614_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031615if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031616 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31617else
cristy8b350f62009-11-15 23:12:43 +000031618 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031619fi
cristy8b350f62009-11-15 23:12:43 +000031620rm -f core conftest.err conftest.$ac_objext \
31621 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031622LIBS=$ac_check_lib_save_LIBS
31623fi
cristy8b350f62009-11-15 23:12:43 +000031624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031625$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031626if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031627 passed=`expr $passed + 1`
31628else
31629 failed=`expr $failed + 1`
31630fi
31631
cristy8b350f62009-11-15 23:12:43 +000031632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031633$as_echo_n "checking if TIFF package is complete... " >&6; }
31634 if test $passed -gt 0; then
31635 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31637$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031638 have_tiff='no (failed tests)'
31639 else
31640 TIFF_LIBS='-ltiff'
31641 LIBS="$TIFF_LIBS $LIBS"
31642
cristy8b350f62009-11-15 23:12:43 +000031643$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031644
cristyad38abe2012-12-23 23:03:21 +000031645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31646$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031647 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031648 for ac_header in tiffconf.h
31649do :
31650 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031651if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031652 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031653#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031654_ACEOF
31655
31656fi
31657
31658done
31659
cristy8b350f62009-11-15 23:12:43 +000031660 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031661 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31662 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31663 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031664do :
31665 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31666ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031667if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031668 cat >>confdefs.h <<_ACEOF
31669#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31670_ACEOF
31671
31672fi
31673done
31674
31675 fi
31676 else
cristyad38abe2012-12-23 23:03:21 +000031677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31678$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031679 fi
31680fi
cristy73bd4a52010-10-05 11:24:23 +000031681 if test "$have_tiff" = 'yes'; then
31682 TIFF_DELEGATE_TRUE=
31683 TIFF_DELEGATE_FALSE='#'
31684else
31685 TIFF_DELEGATE_TRUE='#'
31686 TIFF_DELEGATE_FALSE=
31687fi
31688
cristy3ed852e2009-09-05 21:47:34 +000031689
31690
31691
31692#
cristyb1860752011-03-14 00:27:46 +000031693# Check for WEBP delegate library.
31694#
31695
31696# Check whether --with-webp was given.
31697if test "${with_webp+set}" = set; then :
31698 withval=$with_webp; with_webp=$withval
31699else
31700 with_webp='yes'
31701fi
31702
31703
31704if test "$with_webp" != 'yes'; then
31705 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31706fi
31707
31708have_webp='no'
31709WEBP_LIBS=''
31710if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31712$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31714$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31716$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031717 failed=0
31718 passed=0
31719 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31720if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31721 passed=`expr $passed + 1`
31722else
31723 failed=`expr $failed + 1`
31724fi
31725
31726
31727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31728$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31729if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31730 $as_echo_n "(cached) " >&6
31731else
31732 ac_check_lib_save_LIBS=$LIBS
31733LIBS="-lwebp $LIBS"
31734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31735/* end confdefs.h. */
31736
31737/* Override any GCC internal prototype to avoid an error.
31738 Use char because int might match the return type of a GCC
31739 builtin and then its argument prototype would still apply. */
31740#ifdef __cplusplus
31741extern "C"
31742#endif
31743char WebPDecodeRGB ();
31744int
31745main ()
31746{
31747return WebPDecodeRGB ();
31748 ;
31749 return 0;
31750}
31751_ACEOF
31752if ac_fn_c_try_link "$LINENO"; then :
31753 ac_cv_lib_webp_WebPDecodeRGB=yes
31754else
31755 ac_cv_lib_webp_WebPDecodeRGB=no
31756fi
31757rm -f core conftest.err conftest.$ac_objext \
31758 conftest$ac_exeext conftest.$ac_ext
31759LIBS=$ac_check_lib_save_LIBS
31760fi
31761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31762$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31763if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31764 passed=`expr $passed + 1`
31765else
31766 failed=`expr $failed + 1`
31767fi
31768
31769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31770$as_echo_n "checking if WEBP package is complete... " >&6; }
31771 if test $passed -gt 0; then
31772 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31774$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031775 have_webp='no (failed tests)'
31776 else
31777 WEBP_LIBS='-lwebp'
31778 LIBS="$WEBP_LIBS $LIBS"
31779
31780$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31781
cristyad38abe2012-12-23 23:03:21 +000031782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31783$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031784 have_webp='yes'
31785 fi
31786 else
cristyad38abe2012-12-23 23:03:21 +000031787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31788$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031789 fi
31790fi
31791 if test "$have_webp" = 'yes'; then
31792 WEBP_DELEGATE_TRUE=
31793 WEBP_DELEGATE_FALSE='#'
31794else
31795 WEBP_DELEGATE_TRUE='#'
31796 WEBP_DELEGATE_FALSE=
31797fi
31798
31799
31800
31801
31802#
cristy3ed852e2009-09-05 21:47:34 +000031803# Set Windows font directory.
31804#
31805
31806# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031807if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031808 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31809else
31810 with_windows_font_dir=''
31811fi
31812
31813if test "$with_windows_font_dir" != '' ; then
31814 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31815fi
31816
31817
31818#
31819# Check for WMF delegate library.
31820#
31821
31822# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031823if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031824 withval=$with_wmf; with_wmf=$withval
31825else
cristyfc3d0222012-02-07 15:05:57 +000031826 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031827fi
31828
31829
31830if test "$with_wmf" != 'yes'; then
31831 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31832fi
31833
31834have_wmf='no'
31835WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031836WMF_LIBS_DEPS=''
31837OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031838if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31840$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031842$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31844$as_echo "" >&6; }
31845 have_libwmf='no'
31846 have_libwmflite='no'
31847 have_libwmf_ipa_h='no'
31848
31849 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31850"
31851if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31852 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031853fi
31854
31855
cristy03f7cf92011-12-15 01:40:41 +000031856 if test "$have_libwmf_ipa_h" = 'yes'; then
31857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31858$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31859if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031860 $as_echo_n "(cached) " >&6
31861else
31862 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031863LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031865/* end confdefs.h. */
31866
31867/* Override any GCC internal prototype to avoid an error.
31868 Use char because int might match the return type of a GCC
31869 builtin and then its argument prototype would still apply. */
31870#ifdef __cplusplus
31871extern "C"
31872#endif
cristy03f7cf92011-12-15 01:40:41 +000031873char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031874int
31875main ()
31876{
cristy03f7cf92011-12-15 01:40:41 +000031877return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031878 ;
31879 return 0;
31880}
31881_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031882if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031883 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031884else
cristy03f7cf92011-12-15 01:40:41 +000031885 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031886fi
cristy8b350f62009-11-15 23:12:43 +000031887rm -f core conftest.err conftest.$ac_objext \
31888 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031889LIBS=$ac_check_lib_save_LIBS
31890fi
cristy03f7cf92011-12-15 01:40:41 +000031891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31892$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31893if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31894 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031895fi
31896
cristy03f7cf92011-12-15 01:40:41 +000031897 if test "$have_libwmflite" = 'yes'; then
31898
31899$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31900
31901 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031902 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031903 have_wmf='yes'
31904 else
31905 WMF_LIBS_DEPS=''
31906 WMF_CONFIG_LIBS=`libwmf-config --libs`
31907 for lib in xml2 expat freetype jpeg png z; do
31908 testlib="-l${lib}"
31909 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31910 done
31911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31912$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31913if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31914 $as_echo_n "(cached) " >&6
31915else
31916 ac_check_lib_save_LIBS=$LIBS
31917LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31919/* end confdefs.h. */
31920
31921/* Override any GCC internal prototype to avoid an error.
31922 Use char because int might match the return type of a GCC
31923 builtin and then its argument prototype would still apply. */
31924#ifdef __cplusplus
31925extern "C"
31926#endif
31927char wmf_api_create ();
31928int
31929main ()
31930{
31931return wmf_api_create ();
31932 ;
31933 return 0;
31934}
31935_ACEOF
31936if ac_fn_c_try_link "$LINENO"; then :
31937 ac_cv_lib_wmf_wmf_api_create=yes
31938else
31939 ac_cv_lib_wmf_wmf_api_create=no
31940fi
31941rm -f core conftest.err conftest.$ac_objext \
31942 conftest$ac_exeext conftest.$ac_ext
31943LIBS=$ac_check_lib_save_LIBS
31944fi
31945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31946$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31947if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31948 have_libwmf='yes'
31949fi
31950
31951 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031952
cristy8b350f62009-11-15 23:12:43 +000031953$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031954
cristy03f7cf92011-12-15 01:40:41 +000031955 WMF_LIBS='-lwmf'
31956 LIBS="$WMF_LIBS $LIBS"
31957 have_wmf='yes'
31958 else
31959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31960$as_echo "no -- some components failed test" >&6; }
31961 have_wmf='no (failed tests)'
31962 have_wmflite='no (failed tests)'
31963 LIBS="$OLIBS"
31964 WMF_LIBS=''
31965 fi
glennrp33e524b2011-08-24 17:41:57 +000031966 fi
cristy03f7cf92011-12-15 01:40:41 +000031967 fi
31968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31969$as_echo_n "checking if WMF package is complete... " >&6; }
31970 if test "$have_wmf" = 'yes'; then
31971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31972$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031973 else
cristy03f7cf92011-12-15 01:40:41 +000031974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31975$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031976 fi
cristy3ed852e2009-09-05 21:47:34 +000031977fi
cristy73bd4a52010-10-05 11:24:23 +000031978 if test "$have_wmf" = 'yes'; then
31979 WMF_DELEGATE_TRUE=
31980 WMF_DELEGATE_FALSE='#'
31981else
31982 WMF_DELEGATE_TRUE='#'
31983 WMF_DELEGATE_FALSE=
31984fi
31985
cristy3ed852e2009-09-05 21:47:34 +000031986
31987
31988
cristy81beccd2011-10-03 18:17:24 +000031989
31990
cristy3ed852e2009-09-05 21:47:34 +000031991#
31992# Check for XML delegate library.
31993#
31994
31995# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031996if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031997 withval=$with_xml; with_xml=$withval
31998else
cristyfc3d0222012-02-07 15:05:57 +000031999 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032000fi
32001
32002
cristy81beccd2011-10-03 18:17:24 +000032003if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032004 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32005fi
32006
cristy81beccd2011-10-03 18:17:24 +000032007have_xml='no'
32008XML_LIBS=''
32009if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32011$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32013$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32015$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032016 PERSIST_LDFLAGS=$LDFLAGS
32017 PERSIST_CPPFLAGS=$CPPFLAGS
32018 xml2_config=''
32019 # Extract the first word of "xml2-config", so it can be a program name with args.
32020set dummy xml2-config; ac_word=$2
32021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32022$as_echo_n "checking for $ac_word... " >&6; }
32023if ${ac_cv_path_xml2_config+:} false; then :
32024 $as_echo_n "(cached) " >&6
32025else
32026 case $xml2_config in
32027 [\\/]* | ?:[\\/]*)
32028 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32029 ;;
32030 *)
32031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32032for as_dir in $PATH
32033do
32034 IFS=$as_save_IFS
32035 test -z "$as_dir" && as_dir=.
32036 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032038 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32040 break 2
32041 fi
32042done
32043 done
32044IFS=$as_save_IFS
32045
32046 ;;
32047esac
32048fi
32049xml2_config=$ac_cv_path_xml2_config
32050if test -n "$xml2_config"; then
32051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32052$as_echo "$xml2_config" >&6; }
32053else
32054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32055$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032056fi
32057
cristy81beccd2011-10-03 18:17:24 +000032058 if test -n "$xml2_config"; then
32059 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32060 # the shared library installed under /usr/lib, whereas the package
32061 # installs itself under $prefix/libxml and $prefix/lib.
32062 xml2_prefix=`xml2-config --prefix`
32063 if test -d "${xml2_prefix}/include/libxml2"; then
32064 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32065 fi
32066 if test "${xml2_prefix}" != '/usr'; then
32067 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32068 fi
32069 fi
32070 failed=0
32071 passed=0
32072 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32073if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32074 passed=`expr $passed + 1`
32075else
32076 failed=`expr $failed + 1`
32077fi
32078
32079
32080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32081$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32082if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32083 $as_echo_n "(cached) " >&6
32084else
32085 ac_check_lib_save_LIBS=$LIBS
32086LIBS="-lxml2 $LIBS"
32087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32088/* end confdefs.h. */
32089
32090/* Override any GCC internal prototype to avoid an error.
32091 Use char because int might match the return type of a GCC
32092 builtin and then its argument prototype would still apply. */
32093#ifdef __cplusplus
32094extern "C"
32095#endif
32096char xmlSAXVersion ();
32097int
32098main ()
32099{
32100return xmlSAXVersion ();
32101 ;
32102 return 0;
32103}
32104_ACEOF
32105if ac_fn_c_try_link "$LINENO"; then :
32106 ac_cv_lib_xml2_xmlSAXVersion=yes
32107else
32108 ac_cv_lib_xml2_xmlSAXVersion=no
32109fi
32110rm -f core conftest.err conftest.$ac_objext \
32111 conftest$ac_exeext conftest.$ac_ext
32112LIBS=$ac_check_lib_save_LIBS
32113fi
32114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32115$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32116if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32117 passed=`expr $passed + 1`
32118else
32119 failed=`expr $failed + 1`
32120fi
32121
32122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32123$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32124if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32125 $as_echo_n "(cached) " >&6
32126else
32127 ac_check_lib_save_LIBS=$LIBS
32128LIBS="-lxml2 $LIBS"
32129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32130/* end confdefs.h. */
32131
32132/* Override any GCC internal prototype to avoid an error.
32133 Use char because int might match the return type of a GCC
32134 builtin and then its argument prototype would still apply. */
32135#ifdef __cplusplus
32136extern "C"
32137#endif
32138char xmlParseChunk ();
32139int
32140main ()
32141{
32142return xmlParseChunk ();
32143 ;
32144 return 0;
32145}
32146_ACEOF
32147if ac_fn_c_try_link "$LINENO"; then :
32148 ac_cv_lib_xml2_xmlParseChunk=yes
32149else
32150 ac_cv_lib_xml2_xmlParseChunk=no
32151fi
32152rm -f core conftest.err conftest.$ac_objext \
32153 conftest$ac_exeext conftest.$ac_ext
32154LIBS=$ac_check_lib_save_LIBS
32155fi
32156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32157$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32158if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32159 passed=`expr $passed + 1`
32160else
32161 failed=`expr $failed + 1`
32162fi
32163
32164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32165$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32166if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32167 $as_echo_n "(cached) " >&6
32168else
32169 ac_check_lib_save_LIBS=$LIBS
32170LIBS="-lxml2 $LIBS"
32171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32172/* end confdefs.h. */
32173
32174/* Override any GCC internal prototype to avoid an error.
32175 Use char because int might match the return type of a GCC
32176 builtin and then its argument prototype would still apply. */
32177#ifdef __cplusplus
32178extern "C"
32179#endif
32180char xmlCreatePushParserCtxt ();
32181int
32182main ()
32183{
32184return xmlCreatePushParserCtxt ();
32185 ;
32186 return 0;
32187}
32188_ACEOF
32189if ac_fn_c_try_link "$LINENO"; then :
32190 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32191else
32192 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32193fi
32194rm -f core conftest.err conftest.$ac_objext \
32195 conftest$ac_exeext conftest.$ac_ext
32196LIBS=$ac_check_lib_save_LIBS
32197fi
32198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32199$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32200if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32201 passed=`expr $passed + 1`
32202else
32203 failed=`expr $failed + 1`
32204fi
32205
32206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32207$as_echo_n "checking if XML package is complete... " >&6; }
32208 if test $passed -gt 0; then
32209 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32211$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032212 have_xml='no (failed tests)'
32213 LDFLAGS="$PERSIST_LDFLAGS"
32214 CPPFLAGS="$PERSIST_CPPFLAGS"
32215 else
32216 XML_LIBS='-lxml2'
32217 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032218
cristy8b350f62009-11-15 23:12:43 +000032219$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032220
cristyad38abe2012-12-23 23:03:21 +000032221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32222$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032223 have_xml='yes'
32224 fi
32225 else
cristyad38abe2012-12-23 23:03:21 +000032226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32227$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032228 fi
32229fi
cristy73bd4a52010-10-05 11:24:23 +000032230 if test "$have_xml" = 'yes'; then
32231 XML_DELEGATE_TRUE=
32232 XML_DELEGATE_FALSE='#'
32233else
32234 XML_DELEGATE_TRUE='#'
32235 XML_DELEGATE_FALSE=
32236fi
32237
cristy3ed852e2009-09-05 21:47:34 +000032238
32239
32240
32241# Substitute compiler name to build/link PerlMagick
32242#
32243
32244
32245#
32246# Configure install Paths
32247#
cristy7def36a2011-10-28 19:04:41 +000032248
cristy2a11bef2011-10-28 18:33:11 +000032249# Path to ImageMagick header files
32250INCLUDE_RELATIVE_PATH="ImageMagick"
cristye52f12f2012-12-31 15:32:36 +000032251INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32252DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032253case "${build_os}" in
32254 mingw* )
32255 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32256 ;;
32257esac
32258
32259cat >>confdefs.h <<_ACEOF
32260#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32261_ACEOF
32262
32263
cristy3ed852e2009-09-05 21:47:34 +000032264
cristye52f12f2012-12-31 15:32:36 +000032265# Path to ImageMagick header files (arch part)
32266INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32267DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32268case "${build_os}" in
32269 mingw* )
32270 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32271 ;;
32272esac
32273
32274cat >>confdefs.h <<_ACEOF
32275#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32276_ACEOF
32277
32278
32279
cristy3ed852e2009-09-05 21:47:34 +000032280# Subdirectory under lib to place ImageMagick lib files
32281LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32282
32283cat >>confdefs.h <<_ACEOF
32284#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32285_ACEOF
32286
32287
32288# Path to ImageMagick bin directory
32289EXECUTABLE_PATH="${BIN_DIR}"
32290DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32291case "${build_os}" in
32292 mingw* )
32293 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32294 ;;
32295esac
32296
32297cat >>confdefs.h <<_ACEOF
32298#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32299_ACEOF
32300
32301
32302
32303# Path to ImageMagick lib
32304LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32305DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32306case "${build_os}" in
32307 mingw* )
32308 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32309 ;;
32310esac
32311
32312cat >>confdefs.h <<_ACEOF
32313#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32314_ACEOF
32315
32316
32317
cristy3ed852e2009-09-05 21:47:34 +000032318#
cristy01ff9f32012-12-01 18:15:29 +000032319# path to modules lib
32320if test "x$MODULES_BASEDIRNAME" = "x"; then
32321 MODULES_BASEDIRNAME="modules"
32322fi
cristy3ed852e2009-09-05 21:47:34 +000032323
32324cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032325#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032326_ACEOF
32327
cristy01ff9f32012-12-01 18:15:29 +000032328
32329
32330if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032331 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32332else
cristy3ed852e2009-09-05 21:47:34 +000032333
32334cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032335#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032336_ACEOF
32337
cristycf4a3c22012-12-02 21:47:25 +000032338fi
cristy01ff9f32012-12-01 18:15:29 +000032339
32340
cristy371d4812012-12-01 19:48:10 +000032341MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032342
32343MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32344
32345
32346#
32347# path to coders lib
32348if test "x$CODER_DIRNAME" = "x"; then
32349 CODER_DIRNAME="coders"
32350fi
32351
32352cat >>confdefs.h <<_ACEOF
32353#define CODER_DIRNAME "$CODER_DIRNAME"
32354_ACEOF
32355
32356
32357
cristy371d4812012-12-01 19:48:10 +000032358CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032359CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032360
32361
32362#
32363# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032364#
32365# path to coders lib
32366if test "x$FILTER_DIRNAME" = "x"; then
32367 FILTER_DIRNAME="filters"
32368fi
cristy3ed852e2009-09-05 21:47:34 +000032369
32370cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032371#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032372_ACEOF
32373
cristy3ed852e2009-09-05 21:47:34 +000032374
cristy3ed852e2009-09-05 21:47:34 +000032375
cristy371d4812012-12-01 19:48:10 +000032376FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032377FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032378
32379
32380#
32381# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032382DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032383DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32384DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032385case "${build_os}" in
32386 mingw* )
32387 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32388 ;;
32389esac
32390
32391cat >>confdefs.h <<_ACEOF
32392#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32393_ACEOF
32394
32395
32396
cristy2a11bef2011-10-28 18:33:11 +000032397# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032398CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032399
32400cat >>confdefs.h <<_ACEOF
32401#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32402_ACEOF
32403
cristy7def36a2011-10-28 19:04:41 +000032404CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032405DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32406case "${build_os}" in
32407 mingw* )
32408 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32409 ;;
32410esac
32411
32412cat >>confdefs.h <<_ACEOF
32413#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32414_ACEOF
32415
32416
32417
cristy2a11bef2011-10-28 18:33:11 +000032418# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032419SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032420
32421cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032422#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032423_ACEOF
32424
cristy670aa3c2011-11-03 00:54:00 +000032425SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032426DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032427case "${build_os}" in
32428 mingw* )
cristy4f820712011-04-01 12:35:43 +000032429 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032430 ;;
32431esac
32432
32433cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032434#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032435_ACEOF
32436
32437
32438
cristy54378032012-12-04 15:52:20 +000032439#
32440# Subdirectory to place architecture-dependent configuration files.
32441if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32442 SHAREARCH_BASEDIRNAME="config"
32443fi
cristy670aa3c2011-11-03 00:54:00 +000032444
32445cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032446#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032447_ACEOF
32448
cristy54378032012-12-04 15:52:20 +000032449
32450
32451if test "x$SHAREARCH_DIRNAME" = "x"; then
32452 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32453else
cristy670aa3c2011-11-03 00:54:00 +000032454
32455cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032456#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032457_ACEOF
32458
cristy54378032012-12-04 15:52:20 +000032459fi
32460
32461
32462SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32463
32464SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032465
32466
cristy3ed852e2009-09-05 21:47:34 +000032467#
32468# program_transform_name is formed for use in a Makefile, so create a
32469# modified version for use in a shell script.
32470configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32471
32472# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32474$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032476$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32478$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032479AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032480BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032481BZIPDelegateDefault='bzip2'
32482BrowseDelegateDefault='xdg-open'
32483CGMDecodeDelegateDefault='ralcgm'
32484CatDelegateDefault='cat'
32485DNGDecodeDelegateDefault='ufraw-batch'
32486GVCDecodeDelegateDefault='dot'
32487DVIDecodeDelegateDefault='dvips'
32488EchoDelegateDefault='echo'
32489EditorDelegateDefault='xterm'
32490FIGDecodeDelegateDefault='fig2dev'
32491ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32492DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32493MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32494GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032495HPGLDecodeDelegateDefault='hp2xx'
32496HTMLDecodeDelegateDefault='html2ps'
32497ILBMDecodeDelegateDefault='ilbmtoppm'
32498ILBMEncodeDelegateDefault='ppmtoilbm'
32499LPDelegateDefault='lp'
32500LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032501LaunchDelegateDefault='gimp'
32502MANDelegateDefault='groff'
32503MPEGDecodeDelegateDefault='ffmpeg'
32504MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032505MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032506MVDelegateDefault='mv'
32507PCLDelegateDefault='pcl6'
32508PGPDecodeDelegateDefault='pgpv'
32509POVDelegateDefault='povray'
32510if test "$native_win32_build" = 'yes'; then
32511 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032512elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032513 PSDelegateDefault='gsc'
32514else
32515 PSDelegateDefault='gs'
32516fi
32517RLEEncodeDelegateDefault='rawtorle'
32518RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032519RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032520SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032521SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032522TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032523UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032524WMFDecodeDelegateDefault='wmf2eps'
32525WWWDecodeDelegateDefault='curl'
32526XPSDelegateDefault='gxps'
32527ZipDelegateDefault='gzip'
32528
32529# Search for delegates
32530# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32531set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032533$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032534if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032535 $as_echo_n "(cached) " >&6
32536else
32537 case $AutotraceDecodeDelegate in
32538 [\\/]* | ?:[\\/]*)
32539 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32540 ;;
32541 *)
32542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32543for as_dir in $PATH
32544do
32545 IFS=$as_save_IFS
32546 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032547 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032549 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032551 break 2
32552 fi
32553done
cristy8b350f62009-11-15 23:12:43 +000032554 done
cristy3ed852e2009-09-05 21:47:34 +000032555IFS=$as_save_IFS
32556
32557 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32558 ;;
32559esac
32560fi
32561AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32562if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032564$as_echo "$AutotraceDecodeDelegate" >&6; }
32565else
cristy8b350f62009-11-15 23:12:43 +000032566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032567$as_echo "no" >&6; }
32568fi
32569
32570
cristy3ed852e2009-09-05 21:47:34 +000032571# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32572set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032574$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032575if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032576 $as_echo_n "(cached) " >&6
32577else
32578 case $BlenderDecodeDelegate in
32579 [\\/]* | ?:[\\/]*)
32580 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32581 ;;
32582 *)
32583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32584for as_dir in $PATH
32585do
32586 IFS=$as_save_IFS
32587 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032588 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032590 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032592 break 2
32593 fi
32594done
cristy8b350f62009-11-15 23:12:43 +000032595 done
cristy3ed852e2009-09-05 21:47:34 +000032596IFS=$as_save_IFS
32597
32598 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32599 ;;
32600esac
32601fi
32602BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32603if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032605$as_echo "$BlenderDecodeDelegate" >&6; }
32606else
cristy8b350f62009-11-15 23:12:43 +000032607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032608$as_echo "no" >&6; }
32609fi
32610
32611
32612# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32613set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032615$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032616if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032617 $as_echo_n "(cached) " >&6
32618else
32619 case $BZIPDelegate in
32620 [\\/]* | ?:[\\/]*)
32621 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32622 ;;
32623 *)
32624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32625for as_dir in $PATH
32626do
32627 IFS=$as_save_IFS
32628 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032629 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032631 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032633 break 2
32634 fi
32635done
cristy8b350f62009-11-15 23:12:43 +000032636 done
cristy3ed852e2009-09-05 21:47:34 +000032637IFS=$as_save_IFS
32638
32639 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32640 ;;
32641esac
32642fi
32643BZIPDelegate=$ac_cv_path_BZIPDelegate
32644if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032646$as_echo "$BZIPDelegate" >&6; }
32647else
cristy8b350f62009-11-15 23:12:43 +000032648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032649$as_echo "no" >&6; }
32650fi
32651
32652
cristyc59f0e72012-08-27 12:59:33 +000032653for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32654do
32655 # Extract the first word of "$ac_prog", so it can be a program name with args.
32656set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032659if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032660 $as_echo_n "(cached) " >&6
32661else
32662 case $BrowseDelegate in
32663 [\\/]* | ?:[\\/]*)
32664 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32665 ;;
32666 *)
32667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32668for as_dir in $PATH
32669do
32670 IFS=$as_save_IFS
32671 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032672 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032674 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032676 break 2
32677 fi
32678done
cristy8b350f62009-11-15 23:12:43 +000032679 done
cristy3ed852e2009-09-05 21:47:34 +000032680IFS=$as_save_IFS
32681
cristy3ed852e2009-09-05 21:47:34 +000032682 ;;
32683esac
32684fi
32685BrowseDelegate=$ac_cv_path_BrowseDelegate
32686if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032688$as_echo "$BrowseDelegate" >&6; }
32689else
cristy8b350f62009-11-15 23:12:43 +000032690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032691$as_echo "no" >&6; }
32692fi
32693
32694
cristyc59f0e72012-08-27 12:59:33 +000032695 test -n "$BrowseDelegate" && break
32696done
32697test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32698
cristy3ed852e2009-09-05 21:47:34 +000032699# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32700set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032702$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032703if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032704 $as_echo_n "(cached) " >&6
32705else
32706 case $CGMDecodeDelegate in
32707 [\\/]* | ?:[\\/]*)
32708 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32709 ;;
32710 *)
32711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32712for as_dir in $PATH
32713do
32714 IFS=$as_save_IFS
32715 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032716 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032718 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032720 break 2
32721 fi
32722done
cristy8b350f62009-11-15 23:12:43 +000032723 done
cristy3ed852e2009-09-05 21:47:34 +000032724IFS=$as_save_IFS
32725
32726 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32727 ;;
32728esac
32729fi
32730CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32731if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032733$as_echo "$CGMDecodeDelegate" >&6; }
32734else
cristy8b350f62009-11-15 23:12:43 +000032735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032736$as_echo "no" >&6; }
32737fi
32738
32739
32740# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32741set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032743$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032744if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032745 $as_echo_n "(cached) " >&6
32746else
32747 case $CatDelegate in
32748 [\\/]* | ?:[\\/]*)
32749 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32750 ;;
32751 *)
32752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32753for as_dir in $PATH
32754do
32755 IFS=$as_save_IFS
32756 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032759 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032761 break 2
32762 fi
32763done
cristy8b350f62009-11-15 23:12:43 +000032764 done
cristy3ed852e2009-09-05 21:47:34 +000032765IFS=$as_save_IFS
32766
32767 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32768 ;;
32769esac
32770fi
32771CatDelegate=$ac_cv_path_CatDelegate
32772if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032774$as_echo "$CatDelegate" >&6; }
32775else
cristy8b350f62009-11-15 23:12:43 +000032776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032777$as_echo "no" >&6; }
32778fi
32779
32780
32781# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32782set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032785if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032786 $as_echo_n "(cached) " >&6
32787else
32788 case $DNGDecodeDelegate in
32789 [\\/]* | ?:[\\/]*)
32790 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32791 ;;
32792 *)
32793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32794for as_dir in $PATH
32795do
32796 IFS=$as_save_IFS
32797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032800 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032802 break 2
32803 fi
32804done
cristy8b350f62009-11-15 23:12:43 +000032805 done
cristy3ed852e2009-09-05 21:47:34 +000032806IFS=$as_save_IFS
32807
32808 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32809 ;;
32810esac
32811fi
32812DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32813if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032815$as_echo "$DNGDecodeDelegate" >&6; }
32816else
cristy8b350f62009-11-15 23:12:43 +000032817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032818$as_echo "no" >&6; }
32819fi
32820
32821
32822# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32823set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032826if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032827 $as_echo_n "(cached) " >&6
32828else
32829 case $GVCDecodeDelegate in
32830 [\\/]* | ?:[\\/]*)
32831 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32832 ;;
32833 *)
32834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32835for as_dir in $PATH
32836do
32837 IFS=$as_save_IFS
32838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032841 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032843 break 2
32844 fi
32845done
cristy8b350f62009-11-15 23:12:43 +000032846 done
cristy3ed852e2009-09-05 21:47:34 +000032847IFS=$as_save_IFS
32848
32849 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32850 ;;
32851esac
32852fi
32853GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32854if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032856$as_echo "$GVCDecodeDelegate" >&6; }
32857else
cristy8b350f62009-11-15 23:12:43 +000032858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032859$as_echo "no" >&6; }
32860fi
32861
32862
32863# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32864set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032866$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032867if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032868 $as_echo_n "(cached) " >&6
32869else
32870 case $DVIDecodeDelegate in
32871 [\\/]* | ?:[\\/]*)
32872 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32873 ;;
32874 *)
32875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32876for as_dir in $PATH
32877do
32878 IFS=$as_save_IFS
32879 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032882 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032884 break 2
32885 fi
32886done
cristy8b350f62009-11-15 23:12:43 +000032887 done
cristy3ed852e2009-09-05 21:47:34 +000032888IFS=$as_save_IFS
32889
32890 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32891 ;;
32892esac
32893fi
32894DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32895if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032897$as_echo "$DVIDecodeDelegate" >&6; }
32898else
cristy8b350f62009-11-15 23:12:43 +000032899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032900$as_echo "no" >&6; }
32901fi
32902
32903
32904# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32905set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032907$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032908if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032909 $as_echo_n "(cached) " >&6
32910else
32911 case $EchoDelegate in
32912 [\\/]* | ?:[\\/]*)
32913 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32914 ;;
32915 *)
32916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32917for as_dir in $PATH
32918do
32919 IFS=$as_save_IFS
32920 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032923 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032925 break 2
32926 fi
32927done
cristy8b350f62009-11-15 23:12:43 +000032928 done
cristy3ed852e2009-09-05 21:47:34 +000032929IFS=$as_save_IFS
32930
32931 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32932 ;;
32933esac
32934fi
32935EchoDelegate=$ac_cv_path_EchoDelegate
32936if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032938$as_echo "$EchoDelegate" >&6; }
32939else
cristy8b350f62009-11-15 23:12:43 +000032940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032941$as_echo "no" >&6; }
32942fi
32943
32944
32945# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32946set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032948$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032949if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032950 $as_echo_n "(cached) " >&6
32951else
32952 case $EditorDelegate in
32953 [\\/]* | ?:[\\/]*)
32954 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32955 ;;
32956 *)
32957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32958for as_dir in $PATH
32959do
32960 IFS=$as_save_IFS
32961 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032964 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032966 break 2
32967 fi
32968done
cristy8b350f62009-11-15 23:12:43 +000032969 done
cristy3ed852e2009-09-05 21:47:34 +000032970IFS=$as_save_IFS
32971
32972 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32973 ;;
32974esac
32975fi
32976EditorDelegate=$ac_cv_path_EditorDelegate
32977if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032979$as_echo "$EditorDelegate" >&6; }
32980else
cristy8b350f62009-11-15 23:12:43 +000032981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032982$as_echo "no" >&6; }
32983fi
32984
32985
32986# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32987set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032989$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032990if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032991 $as_echo_n "(cached) " >&6
32992else
32993 case $FIGDecodeDelegate in
32994 [\\/]* | ?:[\\/]*)
32995 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32996 ;;
32997 *)
32998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32999for as_dir in $PATH
33000do
33001 IFS=$as_save_IFS
33002 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033003 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033005 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033007 break 2
33008 fi
33009done
cristy8b350f62009-11-15 23:12:43 +000033010 done
cristy3ed852e2009-09-05 21:47:34 +000033011IFS=$as_save_IFS
33012
33013 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33014 ;;
33015esac
33016fi
33017FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33018if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033020$as_echo "$FIGDecodeDelegate" >&6; }
33021else
cristy8b350f62009-11-15 23:12:43 +000033022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033023$as_echo "no" >&6; }
33024fi
33025
33026
33027# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33028set dummy "$ConvertDelegateDefault"; 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_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033032 $as_echo_n "(cached) " >&6
33033else
33034 case $ConvertDelegate in
33035 [\\/]* | ?:[\\/]*)
33036 ac_cv_path_ConvertDelegate="$ConvertDelegate" # 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_ConvertDelegate="$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
33054 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33055 ;;
33056esac
33057fi
33058ConvertDelegate=$ac_cv_path_ConvertDelegate
33059if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033061$as_echo "$ConvertDelegate" >&6; }
33062else
cristy8b350f62009-11-15 23:12:43 +000033063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033064$as_echo "no" >&6; }
33065fi
33066
33067
33068# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33069set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033071$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033072if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033073 $as_echo_n "(cached) " >&6
33074else
33075 case $DisplayDelegate in
33076 [\\/]* | ?:[\\/]*)
33077 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33078 ;;
33079 *)
33080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33081for as_dir in $PATH
33082do
33083 IFS=$as_save_IFS
33084 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033085 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033087 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033089 break 2
33090 fi
33091done
cristy8b350f62009-11-15 23:12:43 +000033092 done
cristy3ed852e2009-09-05 21:47:34 +000033093IFS=$as_save_IFS
33094
33095 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33096 ;;
33097esac
33098fi
33099DisplayDelegate=$ac_cv_path_DisplayDelegate
33100if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033102$as_echo "$DisplayDelegate" >&6; }
33103else
cristy8b350f62009-11-15 23:12:43 +000033104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033105$as_echo "no" >&6; }
33106fi
33107
33108
33109# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33110set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033112$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033113if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033114 $as_echo_n "(cached) " >&6
33115else
33116 case $MogrifyDelegate in
33117 [\\/]* | ?:[\\/]*)
33118 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33119 ;;
33120 *)
33121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33122for as_dir in $PATH
33123do
33124 IFS=$as_save_IFS
33125 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033126 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033128 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033130 break 2
33131 fi
33132done
cristy8b350f62009-11-15 23:12:43 +000033133 done
cristy3ed852e2009-09-05 21:47:34 +000033134IFS=$as_save_IFS
33135
33136 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33137 ;;
33138esac
33139fi
33140MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33141if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033143$as_echo "$MogrifyDelegate" >&6; }
33144else
cristy8b350f62009-11-15 23:12:43 +000033145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033146$as_echo "no" >&6; }
33147fi
33148
33149
33150# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33151set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033153$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033154if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033155 $as_echo_n "(cached) " >&6
33156else
33157 case $GnuplotDecodeDelegate in
33158 [\\/]* | ?:[\\/]*)
33159 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33160 ;;
33161 *)
33162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33163for as_dir in $PATH
33164do
33165 IFS=$as_save_IFS
33166 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033167 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033169 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033171 break 2
33172 fi
33173done
cristy8b350f62009-11-15 23:12:43 +000033174 done
cristy3ed852e2009-09-05 21:47:34 +000033175IFS=$as_save_IFS
33176
33177 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33178 ;;
33179esac
33180fi
33181GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33182if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033184$as_echo "$GnuplotDecodeDelegate" >&6; }
33185else
cristy8b350f62009-11-15 23:12:43 +000033186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033187$as_echo "no" >&6; }
33188fi
33189
33190
cristy3ed852e2009-09-05 21:47:34 +000033191# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33192set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033194$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033195if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033196 $as_echo_n "(cached) " >&6
33197else
33198 case $HPGLDecodeDelegate in
33199 [\\/]* | ?:[\\/]*)
33200 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33201 ;;
33202 *)
33203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33204for as_dir in $PATH
33205do
33206 IFS=$as_save_IFS
33207 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033210 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033212 break 2
33213 fi
33214done
cristy8b350f62009-11-15 23:12:43 +000033215 done
cristy3ed852e2009-09-05 21:47:34 +000033216IFS=$as_save_IFS
33217
33218 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33219 ;;
33220esac
33221fi
33222HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33223if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033225$as_echo "$HPGLDecodeDelegate" >&6; }
33226else
cristy8b350f62009-11-15 23:12:43 +000033227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033228$as_echo "no" >&6; }
33229fi
33230
33231
33232# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33233set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033235$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033236if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033237 $as_echo_n "(cached) " >&6
33238else
33239 case $HTMLDecodeDelegate in
33240 [\\/]* | ?:[\\/]*)
33241 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33242 ;;
33243 *)
33244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33245for as_dir in $PATH
33246do
33247 IFS=$as_save_IFS
33248 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033251 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033253 break 2
33254 fi
33255done
cristy8b350f62009-11-15 23:12:43 +000033256 done
cristy3ed852e2009-09-05 21:47:34 +000033257IFS=$as_save_IFS
33258
33259 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33260 ;;
33261esac
33262fi
33263HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33264if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033266$as_echo "$HTMLDecodeDelegate" >&6; }
33267else
cristy8b350f62009-11-15 23:12:43 +000033268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033269$as_echo "no" >&6; }
33270fi
33271
33272
33273# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33274set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033276$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033277if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033278 $as_echo_n "(cached) " >&6
33279else
33280 case $ILBMDecodeDelegate in
33281 [\\/]* | ?:[\\/]*)
33282 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33283 ;;
33284 *)
33285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33286for as_dir in $PATH
33287do
33288 IFS=$as_save_IFS
33289 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033290 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033292 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033294 break 2
33295 fi
33296done
cristy8b350f62009-11-15 23:12:43 +000033297 done
cristy3ed852e2009-09-05 21:47:34 +000033298IFS=$as_save_IFS
33299
33300 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33301 ;;
33302esac
33303fi
33304ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33305if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033307$as_echo "$ILBMDecodeDelegate" >&6; }
33308else
cristy8b350f62009-11-15 23:12:43 +000033309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033310$as_echo "no" >&6; }
33311fi
33312
33313
33314# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33315set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033317$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033318if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033319 $as_echo_n "(cached) " >&6
33320else
33321 case $ILBMEncodeDelegate in
33322 [\\/]* | ?:[\\/]*)
33323 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33324 ;;
33325 *)
33326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33327for as_dir in $PATH
33328do
33329 IFS=$as_save_IFS
33330 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033333 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033335 break 2
33336 fi
33337done
cristy8b350f62009-11-15 23:12:43 +000033338 done
cristy3ed852e2009-09-05 21:47:34 +000033339IFS=$as_save_IFS
33340
33341 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33342 ;;
33343esac
33344fi
33345ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33346if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033348$as_echo "$ILBMEncodeDelegate" >&6; }
33349else
cristy8b350f62009-11-15 23:12:43 +000033350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033351$as_echo "no" >&6; }
33352fi
33353
33354
33355# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33356set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033358$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033359if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033360 $as_echo_n "(cached) " >&6
33361else
33362 case $LPDelegate in
33363 [\\/]* | ?:[\\/]*)
33364 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33365 ;;
33366 *)
33367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33368for as_dir in $PATH
33369do
33370 IFS=$as_save_IFS
33371 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033372 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033374 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033376 break 2
33377 fi
33378done
cristy8b350f62009-11-15 23:12:43 +000033379 done
cristy3ed852e2009-09-05 21:47:34 +000033380IFS=$as_save_IFS
33381
33382 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33383 ;;
33384esac
33385fi
33386LPDelegate=$ac_cv_path_LPDelegate
33387if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033389$as_echo "$LPDelegate" >&6; }
33390else
cristy8b350f62009-11-15 23:12:43 +000033391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033392$as_echo "no" >&6; }
33393fi
33394
33395
33396# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33397set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033399$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033400if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033401 $as_echo_n "(cached) " >&6
33402else
33403 case $LPRDelegate in
33404 [\\/]* | ?:[\\/]*)
33405 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33406 ;;
33407 *)
33408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33409for as_dir in $PATH
33410do
33411 IFS=$as_save_IFS
33412 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033413 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033415 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033417 break 2
33418 fi
33419done
cristy8b350f62009-11-15 23:12:43 +000033420 done
cristy3ed852e2009-09-05 21:47:34 +000033421IFS=$as_save_IFS
33422
33423 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33424 ;;
33425esac
33426fi
33427LPRDelegate=$ac_cv_path_LPRDelegate
33428if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033430$as_echo "$LPRDelegate" >&6; }
33431else
cristy8b350f62009-11-15 23:12:43 +000033432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033433$as_echo "no" >&6; }
33434fi
33435
33436
cristy3ed852e2009-09-05 21:47:34 +000033437# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33438set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033440$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033441if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033442 $as_echo_n "(cached) " >&6
33443else
33444 case $LaunchDelegate in
33445 [\\/]* | ?:[\\/]*)
33446 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33447 ;;
33448 *)
33449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33450for as_dir in $PATH
33451do
33452 IFS=$as_save_IFS
33453 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033454 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033456 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033458 break 2
33459 fi
33460done
cristy8b350f62009-11-15 23:12:43 +000033461 done
cristy3ed852e2009-09-05 21:47:34 +000033462IFS=$as_save_IFS
33463
33464 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33465 ;;
33466esac
33467fi
33468LaunchDelegate=$ac_cv_path_LaunchDelegate
33469if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033471$as_echo "$LaunchDelegate" >&6; }
33472else
cristy8b350f62009-11-15 23:12:43 +000033473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033474$as_echo "no" >&6; }
33475fi
33476
33477
33478# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33479set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033481$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033482if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033483 $as_echo_n "(cached) " >&6
33484else
33485 case $MANDelegate in
33486 [\\/]* | ?:[\\/]*)
33487 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33488 ;;
33489 *)
33490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33491for as_dir in $PATH
33492do
33493 IFS=$as_save_IFS
33494 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033497 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033499 break 2
33500 fi
33501done
cristy8b350f62009-11-15 23:12:43 +000033502 done
cristy3ed852e2009-09-05 21:47:34 +000033503IFS=$as_save_IFS
33504
33505 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33506 ;;
33507esac
33508fi
33509MANDelegate=$ac_cv_path_MANDelegate
33510if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033512$as_echo "$MANDelegate" >&6; }
33513else
cristy8b350f62009-11-15 23:12:43 +000033514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033515$as_echo "no" >&6; }
33516fi
33517
33518
33519# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33520set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033522$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033523if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033524 $as_echo_n "(cached) " >&6
33525else
33526 case $MPEGDecodeDelegate in
33527 [\\/]* | ?:[\\/]*)
33528 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33529 ;;
33530 *)
33531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33532for as_dir in $PATH
33533do
33534 IFS=$as_save_IFS
33535 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033536 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033538 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033540 break 2
33541 fi
33542done
cristy8b350f62009-11-15 23:12:43 +000033543 done
cristy3ed852e2009-09-05 21:47:34 +000033544IFS=$as_save_IFS
33545
33546 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33547 ;;
33548esac
33549fi
33550MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33551if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033553$as_echo "$MPEGDecodeDelegate" >&6; }
33554else
cristy8b350f62009-11-15 23:12:43 +000033555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033556$as_echo "no" >&6; }
33557fi
33558
33559
33560# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33561set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033563$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033564if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033565 $as_echo_n "(cached) " >&6
33566else
33567 case $MPEGEncodeDelegate in
33568 [\\/]* | ?:[\\/]*)
33569 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33570 ;;
33571 *)
33572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33573for as_dir in $PATH
33574do
33575 IFS=$as_save_IFS
33576 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033577 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033579 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033581 break 2
33582 fi
33583done
cristy8b350f62009-11-15 23:12:43 +000033584 done
cristy3ed852e2009-09-05 21:47:34 +000033585IFS=$as_save_IFS
33586
33587 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33588 ;;
33589esac
33590fi
33591MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33592if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033594$as_echo "$MPEGEncodeDelegate" >&6; }
33595else
cristy8b350f62009-11-15 23:12:43 +000033596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033597$as_echo "no" >&6; }
33598fi
33599
33600
cristy935c86e2010-06-05 23:50:07 +000033601# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33602set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33604$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033605if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033606 $as_echo_n "(cached) " >&6
33607else
33608 case $MrSIDDecodeDelegate in
33609 [\\/]* | ?:[\\/]*)
33610 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33611 ;;
33612 *)
33613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33614for as_dir in $PATH
33615do
33616 IFS=$as_save_IFS
33617 test -z "$as_dir" && as_dir=.
33618 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033620 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33622 break 2
33623 fi
33624done
33625 done
33626IFS=$as_save_IFS
33627
33628 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33629 ;;
33630esac
33631fi
33632MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33633if test -n "$MrSIDDecodeDelegate"; then
33634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33635$as_echo "$MrSIDDecodeDelegate" >&6; }
33636else
33637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33638$as_echo "no" >&6; }
33639fi
33640
33641
cristy3ed852e2009-09-05 21:47:34 +000033642# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33643set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033645$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033646if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033647 $as_echo_n "(cached) " >&6
33648else
33649 case $MVDelegate in
33650 [\\/]* | ?:[\\/]*)
33651 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33652 ;;
33653 *)
33654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33655for as_dir in $PATH
33656do
33657 IFS=$as_save_IFS
33658 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033661 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033663 break 2
33664 fi
33665done
cristy8b350f62009-11-15 23:12:43 +000033666 done
cristy3ed852e2009-09-05 21:47:34 +000033667IFS=$as_save_IFS
33668
33669 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33670 ;;
33671esac
33672fi
33673MVDelegate=$ac_cv_path_MVDelegate
33674if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033676$as_echo "$MVDelegate" >&6; }
33677else
cristy8b350f62009-11-15 23:12:43 +000033678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033679$as_echo "no" >&6; }
33680fi
33681
33682
33683# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33684set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033686$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033687if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033688 $as_echo_n "(cached) " >&6
33689else
33690 case $PCLDelegate in
33691 [\\/]* | ?:[\\/]*)
33692 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33693 ;;
33694 *)
33695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33696for as_dir in $PATH
33697do
33698 IFS=$as_save_IFS
33699 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033702 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033704 break 2
33705 fi
33706done
cristy8b350f62009-11-15 23:12:43 +000033707 done
cristy3ed852e2009-09-05 21:47:34 +000033708IFS=$as_save_IFS
33709
33710 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33711 ;;
33712esac
33713fi
33714PCLDelegate=$ac_cv_path_PCLDelegate
33715if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033717$as_echo "$PCLDelegate" >&6; }
33718else
cristy8b350f62009-11-15 23:12:43 +000033719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033720$as_echo "no" >&6; }
33721fi
33722
33723
33724# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33725set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033727$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033728if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033729 $as_echo_n "(cached) " >&6
33730else
33731 case $PGPDecodeDelegate in
33732 [\\/]* | ?:[\\/]*)
33733 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33734 ;;
33735 *)
33736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33737for as_dir in $PATH
33738do
33739 IFS=$as_save_IFS
33740 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033741 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033743 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033745 break 2
33746 fi
33747done
cristy8b350f62009-11-15 23:12:43 +000033748 done
cristy3ed852e2009-09-05 21:47:34 +000033749IFS=$as_save_IFS
33750
33751 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33752 ;;
33753esac
33754fi
33755PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33756if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033758$as_echo "$PGPDecodeDelegate" >&6; }
33759else
cristy8b350f62009-11-15 23:12:43 +000033760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033761$as_echo "no" >&6; }
33762fi
33763
33764
33765# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33766set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033768$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033769if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033770 $as_echo_n "(cached) " >&6
33771else
33772 case $POVDelegate in
33773 [\\/]* | ?:[\\/]*)
33774 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33775 ;;
33776 *)
33777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33778for as_dir in $PATH
33779do
33780 IFS=$as_save_IFS
33781 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033784 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033786 break 2
33787 fi
33788done
cristy8b350f62009-11-15 23:12:43 +000033789 done
cristy3ed852e2009-09-05 21:47:34 +000033790IFS=$as_save_IFS
33791
33792 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33793 ;;
33794esac
33795fi
33796POVDelegate=$ac_cv_path_POVDelegate
33797if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033799$as_echo "$POVDelegate" >&6; }
33800else
cristy8b350f62009-11-15 23:12:43 +000033801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033802$as_echo "no" >&6; }
33803fi
33804
33805
33806for ac_prog in gsx gsc "$PSDelegateDefault"
33807do
33808 # Extract the first word of "$ac_prog", so it can be a program name with args.
33809set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033811$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033812if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033813 $as_echo_n "(cached) " >&6
33814else
33815 case $PSDelegate in
33816 [\\/]* | ?:[\\/]*)
33817 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33818 ;;
33819 *)
33820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33821for as_dir in $PATH
33822do
33823 IFS=$as_save_IFS
33824 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033825 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033827 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033829 break 2
33830 fi
33831done
cristy8b350f62009-11-15 23:12:43 +000033832 done
cristy3ed852e2009-09-05 21:47:34 +000033833IFS=$as_save_IFS
33834
33835 ;;
33836esac
33837fi
33838PSDelegate=$ac_cv_path_PSDelegate
33839if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033841$as_echo "$PSDelegate" >&6; }
33842else
cristy8b350f62009-11-15 23:12:43 +000033843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033844$as_echo "no" >&6; }
33845fi
33846
33847
33848 test -n "$PSDelegate" && break
33849done
33850test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33851
33852# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33853set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033856if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033857 $as_echo_n "(cached) " >&6
33858else
33859 case $RLEEncodeDelegate in
33860 [\\/]* | ?:[\\/]*)
33861 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33862 ;;
33863 *)
33864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33865for as_dir in $PATH
33866do
33867 IFS=$as_save_IFS
33868 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033871 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033873 break 2
33874 fi
33875done
cristy8b350f62009-11-15 23:12:43 +000033876 done
cristy3ed852e2009-09-05 21:47:34 +000033877IFS=$as_save_IFS
33878
33879 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33880 ;;
33881esac
33882fi
33883RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33884if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033886$as_echo "$RLEEncodeDelegate" >&6; }
33887else
cristy8b350f62009-11-15 23:12:43 +000033888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033889$as_echo "no" >&6; }
33890fi
33891
33892
33893# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33894set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033896$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033897if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033898 $as_echo_n "(cached) " >&6
33899else
33900 case $RMDelegate in
33901 [\\/]* | ?:[\\/]*)
33902 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33903 ;;
33904 *)
33905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33906for as_dir in $PATH
33907do
33908 IFS=$as_save_IFS
33909 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033912 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033914 break 2
33915 fi
33916done
cristy8b350f62009-11-15 23:12:43 +000033917 done
cristy3ed852e2009-09-05 21:47:34 +000033918IFS=$as_save_IFS
33919
33920 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33921 ;;
33922esac
33923fi
33924RMDelegate=$ac_cv_path_RMDelegate
33925if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033927$as_echo "$RMDelegate" >&6; }
33928else
cristy8b350f62009-11-15 23:12:43 +000033929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033930$as_echo "no" >&6; }
33931fi
33932
33933
cristy4689cf02010-02-17 21:15:45 +000033934# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33935set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33937$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033938if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033939 $as_echo_n "(cached) " >&6
33940else
33941 case $RSVGDecodeDelegate in
33942 [\\/]* | ?:[\\/]*)
33943 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33944 ;;
33945 *)
33946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33947for as_dir in $PATH
33948do
33949 IFS=$as_save_IFS
33950 test -z "$as_dir" && as_dir=.
33951 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033953 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33955 break 2
33956 fi
33957done
33958 done
33959IFS=$as_save_IFS
33960
33961 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33962 ;;
33963esac
33964fi
33965RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33966if test -n "$RSVGDecodeDelegate"; then
33967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33968$as_echo "$RSVGDecodeDelegate" >&6; }
33969else
33970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33971$as_echo "no" >&6; }
33972fi
33973
33974
cristy3ed852e2009-09-05 21:47:34 +000033975# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33976set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033978$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033979if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033980 $as_echo_n "(cached) " >&6
33981else
33982 case $SCANDecodeDelegate in
33983 [\\/]* | ?:[\\/]*)
33984 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # 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=.
cristy8b350f62009-11-15 23:12:43 +000033992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033994 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033996 break 2
33997 fi
33998done
cristy8b350f62009-11-15 23:12:43 +000033999 done
cristy3ed852e2009-09-05 21:47:34 +000034000IFS=$as_save_IFS
34001
34002 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34003 ;;
34004esac
34005fi
34006SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34007if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034009$as_echo "$SCANDecodeDelegate" >&6; }
34010else
cristy8b350f62009-11-15 23:12:43 +000034011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034012$as_echo "no" >&6; }
34013fi
34014
34015
cristyec6934f2012-08-14 18:38:40 +000034016# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34017set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34019$as_echo_n "checking for $ac_word... " >&6; }
34020if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34021 $as_echo_n "(cached) " >&6
34022else
34023 case $SVGDecodeDelegate in
34024 [\\/]* | ?:[\\/]*)
34025 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34026 ;;
34027 *)
34028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34029for as_dir in $PATH
34030do
34031 IFS=$as_save_IFS
34032 test -z "$as_dir" && as_dir=.
34033 for ac_exec_ext in '' $ac_executable_extensions; do
34034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34035 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34037 break 2
34038 fi
34039done
34040 done
34041IFS=$as_save_IFS
34042
34043 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34044 ;;
34045esac
34046fi
34047SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34048if test -n "$SVGDecodeDelegate"; then
34049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34050$as_echo "$SVGDecodeDelegate" >&6; }
34051else
34052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34053$as_echo "no" >&6; }
34054fi
34055
34056
cristy3ed852e2009-09-05 21:47:34 +000034057# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34058set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034060$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034061if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034062 $as_echo_n "(cached) " >&6
34063else
34064 case $TXTDelegate in
34065 [\\/]* | ?:[\\/]*)
34066 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34067 ;;
34068 *)
34069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34070for as_dir in $PATH
34071do
34072 IFS=$as_save_IFS
34073 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034074 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034076 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034078 break 2
34079 fi
34080done
cristy8b350f62009-11-15 23:12:43 +000034081 done
cristy3ed852e2009-09-05 21:47:34 +000034082IFS=$as_save_IFS
34083
34084 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34085 ;;
34086esac
34087fi
34088TXTDelegate=$ac_cv_path_TXTDelegate
34089if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034091$as_echo "$TXTDelegate" >&6; }
34092else
cristy8b350f62009-11-15 23:12:43 +000034093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034094$as_echo "no" >&6; }
34095fi
34096
34097
cristy5ac9ac82010-07-29 13:24:24 +000034098# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34099set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34101$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034102if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034103 $as_echo_n "(cached) " >&6
34104else
34105 case $UniconvertorDelegate in
34106 [\\/]* | ?:[\\/]*)
34107 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34108 ;;
34109 *)
34110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34111for as_dir in $PATH
34112do
34113 IFS=$as_save_IFS
34114 test -z "$as_dir" && as_dir=.
34115 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034117 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34119 break 2
34120 fi
34121done
34122 done
34123IFS=$as_save_IFS
34124
34125 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34126 ;;
34127esac
34128fi
34129UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34130if test -n "$UniconvertorDelegate"; then
34131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34132$as_echo "$UniconvertorDelegate" >&6; }
34133else
34134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34135$as_echo "no" >&6; }
34136fi
34137
34138
cristy3ed852e2009-09-05 21:47:34 +000034139# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34140set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034142$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034143if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034144 $as_echo_n "(cached) " >&6
34145else
34146 case $WMFDecodeDelegate in
34147 [\\/]* | ?:[\\/]*)
34148 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34149 ;;
34150 *)
34151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34152for as_dir in $PATH
34153do
34154 IFS=$as_save_IFS
34155 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034156 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034158 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034160 break 2
34161 fi
34162done
cristy8b350f62009-11-15 23:12:43 +000034163 done
cristy3ed852e2009-09-05 21:47:34 +000034164IFS=$as_save_IFS
34165
34166 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34167 ;;
34168esac
34169fi
34170WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34171if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034173$as_echo "$WMFDecodeDelegate" >&6; }
34174else
cristy8b350f62009-11-15 23:12:43 +000034175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034176$as_echo "no" >&6; }
34177fi
34178
34179
34180# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34181set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034183$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034184if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034185 $as_echo_n "(cached) " >&6
34186else
34187 case $WWWDecodeDelegate in
34188 [\\/]* | ?:[\\/]*)
34189 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34190 ;;
34191 *)
34192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34193for as_dir in $PATH
34194do
34195 IFS=$as_save_IFS
34196 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034199 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034201 break 2
34202 fi
34203done
cristy8b350f62009-11-15 23:12:43 +000034204 done
cristy3ed852e2009-09-05 21:47:34 +000034205IFS=$as_save_IFS
34206
34207 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34208 ;;
34209esac
34210fi
34211WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34212if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034214$as_echo "$WWWDecodeDelegate" >&6; }
34215else
cristy8b350f62009-11-15 23:12:43 +000034216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034217$as_echo "no" >&6; }
34218fi
34219
34220
34221# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34222set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034224$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034225if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034226 $as_echo_n "(cached) " >&6
34227else
34228 case $XPSDelegate in
34229 [\\/]* | ?:[\\/]*)
34230 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34231 ;;
34232 *)
34233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34234for as_dir in $PATH
34235do
34236 IFS=$as_save_IFS
34237 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034240 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034242 break 2
34243 fi
34244done
cristy8b350f62009-11-15 23:12:43 +000034245 done
cristy3ed852e2009-09-05 21:47:34 +000034246IFS=$as_save_IFS
34247
34248 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34249 ;;
34250esac
34251fi
34252XPSDelegate=$ac_cv_path_XPSDelegate
34253if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034255$as_echo "$XPSDelegate" >&6; }
34256else
cristy8b350f62009-11-15 23:12:43 +000034257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034258$as_echo "no" >&6; }
34259fi
34260
34261
34262# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34263set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034265$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034266if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034267 $as_echo_n "(cached) " >&6
34268else
34269 case $ZipDelegate in
34270 [\\/]* | ?:[\\/]*)
34271 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34272 ;;
34273 *)
34274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34275for as_dir in $PATH
34276do
34277 IFS=$as_save_IFS
34278 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034279 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034281 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034283 break 2
34284 fi
34285done
cristy8b350f62009-11-15 23:12:43 +000034286 done
cristy3ed852e2009-09-05 21:47:34 +000034287IFS=$as_save_IFS
34288
34289 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34290 ;;
34291esac
34292fi
34293ZipDelegate=$ac_cv_path_ZipDelegate
34294if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034296$as_echo "$ZipDelegate" >&6; }
34297else
cristy8b350f62009-11-15 23:12:43 +000034298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034299$as_echo "no" >&6; }
34300fi
34301
34302
34303
34304# Prefer lpr to lp; lp needs options tacked on.
34305if test "$LPRDelegate" != no; then
34306 PrintDelegate="$LPRDelegate"
34307else
34308 PrintDelegate="$LPDelegate -c -s"
34309fi
34310
34311
34312# Installed ImageMagick utiltity paths
34313ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34314DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34315MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34316
34317# Set delegate booleans
34318have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34319have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34320have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34321have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34322have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034323have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034324have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34325have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034326have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34327have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34328
34329#
34330# Test for font directories
34331#
34332type_include_files=''
34333
cristy430a7312010-01-21 20:44:04 +000034334# Dejavu fonts.
34335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34336$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34337dejavu_font_dir=''
34338if test "${with_dejavu_font_dir}" != 'default'; then
34339 dejavu_font_dir="${with_dejavu_font_dir}/"
34340else
34341 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34342 if test -f "${font_dir}DejaVuSerif.ttf"; then
34343 dejavu_font_dir="${font_dir}"
34344 break 1
34345 fi
34346 done
34347fi
34348if test "${dejavu_font_dir}x" != 'x'; then
34349 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34351$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034352else
cristyad38abe2012-12-23 23:03:21 +000034353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34354$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034355fi
34356
34357
cristy3ed852e2009-09-05 21:47:34 +000034358# Windows
34359windows_font_dir=''
34360if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34361 windows_font_dir="${with_windows_font_dir}/"
34362fi
cristy430a7312010-01-21 20:44:04 +000034363if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034364 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34365 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34366 fi
34367 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34368 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34369 fi
34370 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34371 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34372 fi
34373fi
cristy430a7312010-01-21 20:44:04 +000034374if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034375 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34376fi
34377
34378
34379# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034381$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34382ghostscript_font_dir=''
34383if test "${with_gs_font_dir}" != 'default'; then
34384 ghostscript_font_dir="${with_gs_font_dir}/"
34385else
34386 if test "${native_win32_build}" = 'yes'; then
34387 # Native Windows Build
34388 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34389 if test -f "${font_dir}a010013l.pfb"; then
34390 ghostscript_font_dir="$font_dir"
34391 break 1
34392 fi
34393 done
34394 if test "${PSDelegate}" != 'gswin32c'; then
34395 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34396 fi
34397 else
34398 # Linux / Mac OS X / Unix Build
34399 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
34400 if test -f "${font_dir}a010013l.pfb"; then
34401 ghostscript_font_dir="${font_dir}"
34402 break 1
34403 fi
34404 done
34405 if test "${ghostscript_font_dir}x" = 'x'; then
34406 if test "$PSDelegate" != 'gs'; then
34407 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34408 fi
34409 fi
34410 fi
34411fi
34412if test "${ghostscript_font_dir}x" != 'x'; then
34413 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34415$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034416else
cristyad38abe2012-12-23 23:03:21 +000034417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34418$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034419fi
34420
34421case "${build_os}" in
34422 mingw* )
34423 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34424 ;;
34425esac
34426
34427
34428
34429#
34430# Handle case where user doesn't want frozen paths
34431#
34432if test "$with_frozenpaths" != 'yes'; then
34433 # Re-set delegate definitions to default (no paths)
34434 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034435 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34436 BZIPDelegate="$BZIPDelegateDefault"
34437 BrowseDelegate="$BrowseDelegateDefault"
34438 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34439 CatDelegate="$CatDelegateDefault"
34440 ConvertDelegate="$ConvertDelegateDefault"
34441 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34442 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34443 EchoDelegate="$EchoDelegateDefault"
34444 EditorDelegate="$EditorDelegateDefault"
34445 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34446 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34447 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34448 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34449 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34450 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34451 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034452 LaunchDelegate="$LaunchDelegateDefault"
34453 MANDelegate="$MANDelegateDefault"
34454 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34455 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034456 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034457 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34458 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034459 PCLDelegate="$PCLDelegateDefault"
34460 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34461 POVDelegate="$POVDelegateDefault"
34462 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034463 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34464 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034465 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034466 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034467 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034468 ShowImageDelegate="$ShowImageDelegateDefault"
34469 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034470 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034471 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34472 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34473 XPSDelegate="$XPSDelegateDefault"
34474 ZipDelegate="$ZipDelegateDefault"
34475fi
34476
34477# Delegate substitutions
34478
34479
34480
34481
34482
34483
34484
34485
34486
34487
34488
34489
34490
34491
34492
34493
34494
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504
34505
34506
34507
34508
34509
34510
34511
34512
34513
34514
34515
34516
34517
cristy3ed852e2009-09-05 21:47:34 +000034518#
34519# RPM support.
34520#
34521RPM=''
34522for ac_prog in gnutar gtar tar
34523do
34524 # Extract the first word of "$ac_prog", so it can be a program name with args.
34525set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034527$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034528if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034529 $as_echo_n "(cached) " >&6
34530else
34531 if test -n "$TAR"; then
34532 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34533else
34534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34535for as_dir in $PATH
34536do
34537 IFS=$as_save_IFS
34538 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034541 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034543 break 2
34544 fi
34545done
cristy8b350f62009-11-15 23:12:43 +000034546 done
cristy3ed852e2009-09-05 21:47:34 +000034547IFS=$as_save_IFS
34548
34549fi
34550fi
34551TAR=$ac_cv_prog_TAR
34552if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034554$as_echo "$TAR" >&6; }
34555else
cristy8b350f62009-11-15 23:12:43 +000034556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034557$as_echo "no" >&6; }
34558fi
34559
34560
34561 test -n "$TAR" && break
34562done
34563
34564for ac_prog in perl
34565do
34566 # Extract the first word of "$ac_prog", so it can be a program name with args.
34567set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034569$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034570if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034571 $as_echo_n "(cached) " >&6
34572else
34573 if test -n "$PERL"; then
34574 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34575else
34576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34577for as_dir in $PATH
34578do
34579 IFS=$as_save_IFS
34580 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034581 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034583 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034585 break 2
34586 fi
34587done
cristy8b350f62009-11-15 23:12:43 +000034588 done
cristy3ed852e2009-09-05 21:47:34 +000034589IFS=$as_save_IFS
34590
34591fi
34592fi
34593PERL=$ac_cv_prog_PERL
34594if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034596$as_echo "$PERL" >&6; }
34597else
cristy8b350f62009-11-15 23:12:43 +000034598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034599$as_echo "no" >&6; }
34600fi
34601
34602
34603 test -n "$PERL" && break
34604done
34605
34606for ac_prog in rpmbuild rpm
34607do
34608 # Extract the first word of "$ac_prog", so it can be a program name with args.
34609set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034611$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034612if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034613 $as_echo_n "(cached) " >&6
34614else
34615 if test -n "$RPM"; then
34616 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34617else
34618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34619for as_dir in $PATH
34620do
34621 IFS=$as_save_IFS
34622 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034625 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034627 break 2
34628 fi
34629done
cristy8b350f62009-11-15 23:12:43 +000034630 done
cristy3ed852e2009-09-05 21:47:34 +000034631IFS=$as_save_IFS
34632
34633fi
34634fi
34635RPM=$ac_cv_prog_RPM
34636if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034638$as_echo "$RPM" >&6; }
34639else
cristy8b350f62009-11-15 23:12:43 +000034640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034641$as_echo "no" >&6; }
34642fi
34643
34644
34645 test -n "$RPM" && break
34646done
34647
34648
cristy73bd4a52010-10-05 11:24:23 +000034649ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34650
34651
34652AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34653
34654
34655AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34656
34657
34658AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34659
34660
34661 if test "x$RPM" != "x" ; then
34662 RPM_DELEGATE_TRUE=
34663 RPM_DELEGATE_FALSE='#'
34664else
34665 RPM_DELEGATE_TRUE='#'
34666 RPM_DELEGATE_FALSE=
34667fi
34668
cristy3ed852e2009-09-05 21:47:34 +000034669
34670#
34671# 7ZIP support (http://p7zip.sourceforge.net/)
34672#
34673P7ZIP=''
34674for ac_prog in 7za
34675do
34676 # Extract the first word of "$ac_prog", so it can be a program name with args.
34677set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034679$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034680if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034681 $as_echo_n "(cached) " >&6
34682else
34683 if test -n "$P7ZIP"; then
34684 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34685else
34686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34687for as_dir in $PATH
34688do
34689 IFS=$as_save_IFS
34690 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034693 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034695 break 2
34696 fi
34697done
cristy8b350f62009-11-15 23:12:43 +000034698 done
cristy3ed852e2009-09-05 21:47:34 +000034699IFS=$as_save_IFS
34700
34701fi
34702fi
34703P7ZIP=$ac_cv_prog_P7ZIP
34704if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034706$as_echo "$P7ZIP" >&6; }
34707else
cristy8b350f62009-11-15 23:12:43 +000034708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034709$as_echo "no" >&6; }
34710fi
34711
34712
34713 test -n "$P7ZIP" && break
34714done
34715
34716
cristy73bd4a52010-10-05 11:24:23 +000034717 if test "x$P7ZIP" != "x" ; then
34718 P7ZIP_DELEGATE_TRUE=
34719 P7ZIP_DELEGATE_FALSE='#'
34720else
34721 P7ZIP_DELEGATE_TRUE='#'
34722 P7ZIP_DELEGATE_FALSE=
34723fi
34724
cristy3ed852e2009-09-05 21:47:34 +000034725
34726#
34727# ZIP support (http://www.info-zip.org/Zip.html)
34728#
34729ZIP=''
34730for ac_prog in zip
34731do
34732 # Extract the first word of "$ac_prog", so it can be a program name with args.
34733set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034735$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034736if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034737 $as_echo_n "(cached) " >&6
34738else
34739 if test -n "$ZIP"; then
34740 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34741else
34742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34743for as_dir in $PATH
34744do
34745 IFS=$as_save_IFS
34746 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034747 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034749 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034751 break 2
34752 fi
34753done
cristy8b350f62009-11-15 23:12:43 +000034754 done
cristy3ed852e2009-09-05 21:47:34 +000034755IFS=$as_save_IFS
34756
34757fi
34758fi
34759ZIP=$ac_cv_prog_ZIP
34760if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034762$as_echo "$ZIP" >&6; }
34763else
cristy8b350f62009-11-15 23:12:43 +000034764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034765$as_echo "no" >&6; }
34766fi
34767
34768
34769 test -n "$ZIP" && break
34770done
34771
34772
cristy73bd4a52010-10-05 11:24:23 +000034773 if test "x$ZIP" != "x" ; then
34774 ZIP_DELEGATE_TRUE=
34775 ZIP_DELEGATE_FALSE='#'
34776else
34777 ZIP_DELEGATE_TRUE='#'
34778 ZIP_DELEGATE_FALSE=
34779fi
34780
cristy3ed852e2009-09-05 21:47:34 +000034781
34782#
34783# GhostPCL related configuration.
34784#
34785PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034786PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034787PCLMonoDevice=pbmraw
34788if test -z "$PCLVersion"; then
34789 PCLVersion='unknown'
34790fi
34791if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34793$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034795$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34797$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034798 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034800$as_echo_n "checking for pcl color device... " >&6; }
34801 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34802 :
34803 else
34804 PCLColorDevice=ppmraw
34805 fi
cristyad38abe2012-12-23 23:03:21 +000034806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34807$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034808
34809 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034811$as_echo_n "checking for pcl CMYK device... " >&6; }
34812 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34813 :
34814 else
34815 PCLCMYKDevice=$PCLColorDevice
34816 fi
cristyad38abe2012-12-23 23:03:21 +000034817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34818$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034819
34820 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034822$as_echo_n "checking for pcl mono device... " >&6; }
34823 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34824 :
34825 else
34826 PCLMonoDevice=$PCLColorDevice
34827 fi
cristyad38abe2012-12-23 23:03:21 +000034828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34829$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034830fi
34831
34832
34833
34834
34835
34836
34837#
34838# GhostXPS related configuration.
34839#
34840XPSColorDevice=ppmraw
34841XPSCMYKDevice=bmpsep8
34842XPSMonoDevice=pbmraw
34843if test -z "$XPSVersion"; then
34844 XPSVersion='unknown'
34845fi
34846if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34848$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034850$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34852$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034853 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034855$as_echo_n "checking for xps color device... " >&6; }
34856 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34857 :
34858 else
34859 XPSColorDevice=ppmraw
34860 fi
cristyad38abe2012-12-23 23:03:21 +000034861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
34862$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034863
34864 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034866$as_echo_n "checking for xps CMYK device... " >&6; }
34867 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34868 :
34869 else
34870 XPSCMYKDevice=$XPSColorDevice
34871 fi
cristyad38abe2012-12-23 23:03:21 +000034872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
34873$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034874
34875 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034877$as_echo_n "checking for xps mono device... " >&6; }
34878 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34879 :
34880 else
34881 XPSMonoDevice=$XPSColorDevice
34882 fi
cristyad38abe2012-12-23 23:03:21 +000034883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
34884$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034885fi
34886
34887
34888
34889
34890
34891
34892#
34893# Ghostscript related configuration.
34894#
cristya97426c2011-02-04 01:41:27 +000034895GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034896GSColorDevice=pnmraw
34897GSCMYKDevice=pam
34898GSMonoDevice=pbmraw
34899GSPDFDevice=pdfwrite
34900GSPSDevice=pswrite
34901GSEPSDevice=epswrite
34902GSVersion='unknown'
34903if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34905$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034907$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34909$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034911$as_echo_n "checking for Ghostscript version... " >&6; }
34912 if GSVersion=`$PSDelegate --version`; then
34913 :
34914 else
34915 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34916 fi
cristyad38abe2012-12-23 23:03:21 +000034917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
34918$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034919
34920 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034922$as_echo_n "checking for gs alpha device... " >&6; }
34923 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34924 :
34925 else
34926 GSAlphaDevice=pnmraw
34927 fi
cristyad38abe2012-12-23 23:03:21 +000034928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
34929$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034930
34931 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034933$as_echo_n "checking for gs color device... " >&6; }
34934 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34935 :
34936 else
34937 GSColorDevice=pnmraw
34938 fi
cristyad38abe2012-12-23 23:03:21 +000034939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
34940$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034941
34942 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034944$as_echo_n "checking for gs CMYK device... " >&6; }
34945 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34946 :
34947 else
34948 GSCMYKDevice=bmpsep8
34949 fi
cristyad38abe2012-12-23 23:03:21 +000034950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
34951$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034952
34953 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034955$as_echo_n "checking for gs mono device... " >&6; }
34956 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34957 :
34958 else
34959 GSMonoDevice=$GSColorDevice
34960 fi
cristyad38abe2012-12-23 23:03:21 +000034961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
34962$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034963
34964 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034966$as_echo_n "checking for gs PDF writing device... " >&6; }
34967 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34968 :
34969 else
34970 GSPDFDevice=nodevice
34971 fi
cristyad38abe2012-12-23 23:03:21 +000034972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
34973$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034974
34975 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034977$as_echo_n "checking for gs PS writing device... " >&6; }
34978 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34979 :
34980 else
34981 GSPSDevice=nodevice
34982 fi
cristyad38abe2012-12-23 23:03:21 +000034983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
34984$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034985
34986 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034988$as_echo_n "checking for gs EPS writing device... " >&6; }
34989 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34990 :
34991 else
34992 GSEPSDevice=nodevice
34993 fi
cristyad38abe2012-12-23 23:03:21 +000034994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
34995$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034996fi
34997
34998
34999
35000
35001
35002
35003
35004
35005
35006
35007#
35008# PerlMagick-related configuration
35009#
35010
35011# Look for PERL if PerlMagick requested
35012# If name/path of desired PERL interpreter is specified, look for that one first
35013have_perl='no'
35014if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35016$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035018$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35020$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035021 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035023$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035024if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035025 $as_echo_n "(cached) " >&6
35026else
35027 ac_cv_path_PERL="$with_perl"
35028fi
cristy8b350f62009-11-15 23:12:43 +000035029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035030$as_echo "$ac_cv_path_PERL" >&6; };
35031 PERL=$ac_cv_path_PERL
35032 have_perl="$ac_cv_path_PERL"
35033 else
35034 for ac_prog in perl perl5
35035do
35036 # Extract the first word of "$ac_prog", so it can be a program name with args.
35037set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035039$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035040if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035041 $as_echo_n "(cached) " >&6
35042else
35043 case $PERL in
35044 [\\/]* | ?:[\\/]*)
35045 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35046 ;;
35047 *)
35048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35049for as_dir in $PATH
35050do
35051 IFS=$as_save_IFS
35052 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035053 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035055 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035057 break 2
35058 fi
35059done
cristy8b350f62009-11-15 23:12:43 +000035060 done
cristy3ed852e2009-09-05 21:47:34 +000035061IFS=$as_save_IFS
35062
35063 ;;
35064esac
35065fi
35066PERL=$ac_cv_path_PERL
35067if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035069$as_echo "$PERL" >&6; }
35070else
cristy8b350f62009-11-15 23:12:43 +000035071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035072$as_echo "no" >&6; }
35073fi
35074
35075
35076 test -n "$PERL" && break
35077done
35078 if test "$ac_cv_path_PERL"; then
35079 have_perl="$ac_cv_path_PERL"
35080 fi
35081 fi
35082fi
35083
cristy949301e2010-01-06 01:38:40 +000035084if test "$with_perl" != 'yes' ; then
35085 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35086fi
35087
35088PERL_SUPPORTS_DESTDIR='no'
35089
cristy3ed852e2009-09-05 21:47:34 +000035090with_perl_static='no'
35091with_perl_dynamic='no'
35092if test "$have_perl" != 'no'; then
35093 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35094 with_perl_static='yes'
35095 fi
35096 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35097 with_perl_dynamic='yes'
35098 fi
35099 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035100
35101
35102
35103
35104 if test -n "$PERL"; then :
35105
35106 ax_perl_version="5.8.1"
35107
35108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35109$as_echo_n "checking for perl version... " >&6; }
35110
35111 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35112
35113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35114$as_echo "$perl_version" >&6; }
35115
35116 PERL_VERSION=$perl_version
35117
35118
35119
35120
35121
35122 # Used to indicate true or false condition
35123 ax_compare_version=false
35124
35125 # Convert the two version strings to be compared into a format that
35126 # allows a simple string comparison. The end result is that a version
35127 # string of the form 1.12.5-r617 will be converted to the form
35128 # 0001001200050617. In other words, each number is zero padded to four
35129 # digits, and non digits are removed.
35130
35131 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35132 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35133 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35134 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35135 -e 's/[^0-9]//g'`
35136
35137
35138 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35139 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35140 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35141 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35142 -e 's/[^0-9]//g'`
35143
35144
35145 ax_compare_version=`echo "x$ax_compare_version_A
35146x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35147
35148
35149
35150 if test "$ax_compare_version" = "true" ; then
35151
35152 :
35153 PERL_SUPPORTS_DESTDIR='yes'
35154
35155 else
35156 :
35157 PERL_SUPPORTS_DESTDIR='no'
35158
35159 fi
35160
35161
35162else
35163
35164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35165$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35166 PERL_SUPPORTS_DESTDIR='no'
35167
cristy3ed852e2009-09-05 21:47:34 +000035168fi
cristy73bd4a52010-10-05 11:24:23 +000035169
35170fi
35171 if test "$have_perl" != 'no'; then
35172 WITH_PERL_TRUE=
35173 WITH_PERL_FALSE='#'
35174else
35175 WITH_PERL_TRUE='#'
35176 WITH_PERL_FALSE=
35177fi
35178
35179 if test $with_perl_static = 'yes'; then
35180 WITH_PERL_STATIC_TRUE=
35181 WITH_PERL_STATIC_FALSE='#'
35182else
35183 WITH_PERL_STATIC_TRUE='#'
35184 WITH_PERL_STATIC_FALSE=
35185fi
35186
35187 if test $with_perl_dynamic = 'yes'; then
35188 WITH_PERL_DYNAMIC_TRUE=
35189 WITH_PERL_DYNAMIC_FALSE='#'
35190else
35191 WITH_PERL_DYNAMIC_TRUE='#'
35192 WITH_PERL_DYNAMIC_FALSE=
35193fi
35194
cristy3ed852e2009-09-05 21:47:34 +000035195
35196
35197# Determine path to pick up MagickCore library from for use with building PerlMagick
35198MAGICKCORE_PATH="${LIB_DIR}"
35199if test $with_perl_static = 'yes'; then
35200 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35201 libtool_objdir=$objdir
35202
35203 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035204 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035205fi
35206
35207
cristy2a3eb392012-12-17 13:39:20 +000035208# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035209MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035210if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035211 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035212fi
cristy2a3eb392012-12-17 13:39:20 +000035213if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035214 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035215fi
35216if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035217 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035218fi
35219if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035220 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035221fi
35222if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035223 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035224fi
35225if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035226 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035227fi
35228if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035229 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035230fi
35231if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035232 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035233fi
35234if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035235 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035236fi
35237if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035238 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035239fi
35240if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035241 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035242fi
35243if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035244 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035245fi
35246if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035247 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035248fi
35249if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035250 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035251fi
35252if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035253 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035254fi
35255if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035256 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035257fi
35258if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035259 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035260fi
35261if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035262 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035263fi
35264if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035265 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035266fi
35267if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035268 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035269fi
35270if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035271 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035272fi
35273have_ps='no'
35274if test "$have_dps" = 'yes' || \
35275 test "$have_gs" = 'yes' || \
35276 test "${native_win32_build}" = 'yes' ; then
35277 have_ps='yes'
35278fi
35279if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035280 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035281fi
35282if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035283 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035284fi
35285if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035286 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035287fi
35288if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035289 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035290fi
35291if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035292 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035293fi
35294if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035295 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035296fi
35297if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035298 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035299fi
35300if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035301 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035302fi
35303if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035304 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035305fi
35306if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035307 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035308fi
cristy2a3eb392012-12-17 13:39:20 +000035309# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035310MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035311MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035312
35313
cristyfa161182012-12-19 15:45:28 +000035314
cristy3ed852e2009-09-05 21:47:34 +000035315#
35316# Handle special compiler flags
35317#
35318
35319# Add '-p' if prof source profiling support enabled
35320if test "$enable_prof" = 'yes'; then
35321 CFLAGS="-p $CFLAGS"
35322 CXXFLAGS="-p $CXXFLAGS"
35323 LDFLAGS="-p $LDFLAGS"
35324fi
35325
35326# Add '-pg' if gprof source profiling support enabled
35327if test "$enable_gprof" = 'yes'; then
35328 CFLAGS="-pg $CFLAGS"
35329 CXXFLAGS="-pg $CXXFLAGS"
35330 LDFLAGS="-pg $LDFLAGS"
35331fi
35332
35333# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35334# This is a gcc-specific feature
35335if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035337$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035338if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035339 $as_echo_n "(cached) " >&6
35340else
35341 ac_check_lib_save_LIBS=$LIBS
35342LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035344/* end confdefs.h. */
35345
35346/* Override any GCC internal prototype to avoid an error.
35347 Use char because int might match the return type of a GCC
35348 builtin and then its argument prototype would still apply. */
35349#ifdef __cplusplus
35350extern "C"
35351#endif
35352char _gcov_init ();
35353int
35354main ()
35355{
35356return _gcov_init ();
35357 ;
35358 return 0;
35359}
35360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035361if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035362 ac_cv_lib_gcov__gcov_init=yes
35363else
cristy8b350f62009-11-15 23:12:43 +000035364 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035365fi
cristy8b350f62009-11-15 23:12:43 +000035366rm -f core conftest.err conftest.$ac_objext \
35367 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035368LIBS=$ac_check_lib_save_LIBS
35369fi
cristy8b350f62009-11-15 23:12:43 +000035370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035371$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035372if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035373 cat >>confdefs.h <<_ACEOF
35374#define HAVE_LIBGCOV 1
35375_ACEOF
35376
35377 LIBS="-lgcov $LIBS"
35378
35379fi
35380
cristy8b350f62009-11-15 23:12:43 +000035381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035382$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035383if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035384 $as_echo_n "(cached) " >&6
35385else
35386 ac_check_lib_save_LIBS=$LIBS
35387LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035389/* end confdefs.h. */
35390
35391/* Override any GCC internal prototype to avoid an error.
35392 Use char because int might match the return type of a GCC
35393 builtin and then its argument prototype would still apply. */
35394#ifdef __cplusplus
35395extern "C"
35396#endif
35397char __gcov_init ();
35398int
35399main ()
35400{
35401return __gcov_init ();
35402 ;
35403 return 0;
35404}
35405_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035406if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035407 ac_cv_lib_gcov___gcov_init=yes
35408else
cristy8b350f62009-11-15 23:12:43 +000035409 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035410fi
cristy8b350f62009-11-15 23:12:43 +000035411rm -f core conftest.err conftest.$ac_objext \
35412 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035413LIBS=$ac_check_lib_save_LIBS
35414fi
cristy8b350f62009-11-15 23:12:43 +000035415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035416$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035417if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035418 cat >>confdefs.h <<_ACEOF
35419#define HAVE_LIBGCOV 1
35420_ACEOF
35421
35422 LIBS="-lgcov $LIBS"
35423
35424fi
35425
35426 case "$target_os" in
35427 darwin*)
35428 OSX_GCOV_LDFLAG="-Wl,-single_module"
35429 ;;
35430 *)
35431 OSX_GCOV_LDFLAG=""
35432 ;;
35433 esac
35434
35435 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35436 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35437 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35438fi
35439
35440#
35441# Build library dependency list for libMagickCore
35442#
35443
cristyc6722092012-10-14 00:19:31 +000035444if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035445 MAGICK_DEP_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 $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035446else
cristy3a75f062012-09-08 23:29:40 +000035447 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_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 $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035448fi
35449
35450
35451#
35452# Remove extraneous spaces from output variables (asthetic)
35453#
35454X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35455X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35456X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35457X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35458
35459CC=`echo $CC | sed -e 's/ */ /g'`
35460CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35461CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35462CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035463DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35464LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35465TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35466MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35467#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35468
35469# Pass only user-provided LIBS as "global" libraries
35470LIBS=$USER_LIBS
35471
35472#AC_SUBST(CPPFLAGS)
35473
35474#AC_SUBST(LDFLAGS)
35475#AC_SUBST(X_PRE_LIBS)
35476#AC_SUBST(X_LIBS)
35477#AC_SUBST(X_EXTRA_LIBS)
35478
35479MAGICK_CFLAGS=$CFLAGS
35480MAGICK_CXXFLAGS="$CXXFLAGS"
35481MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35482MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35483MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035484MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035485
35486
35487
35488
35489
35490
35491
35492
35493# Set configured scripts to executable.
35494ac_config_commands="$ac_config_commands default"
35495
cristy2bd4b6e2012-07-22 15:29:11 +000035496ac_config_commands="$ac_config_commands magick.sh.in"
35497
cristy3ed852e2009-09-05 21:47:34 +000035498ac_config_commands="$ac_config_commands MagickCore-config.in"
35499
cristy3ed852e2009-09-05 21:47:34 +000035500ac_config_commands="$ac_config_commands MagickWand-config.in"
35501
cristy3ed852e2009-09-05 21:47:34 +000035502ac_config_commands="$ac_config_commands Magick++-config.in"
35503
35504ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35505
35506
cristyad38abe2012-12-23 23:03:21 +000035507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35508$as_echo "-------------------------------------------------------------" >&6; }
35509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35510$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035511cat >confcache <<\_ACEOF
35512# This file is a shell script that caches the results of configure
35513# tests run on this system so they can be shared between configure
35514# scripts and configure runs, see configure's option --config-cache.
35515# It is not useful on other systems. If it contains results you don't
35516# want to keep, you may remove or edit it.
35517#
35518# config.status only pays attention to the cache file if you give it
35519# the --recheck option to rerun configure.
35520#
35521# `ac_cv_env_foo' variables (set or unset) will be overridden when
35522# loading this file, other *unset* `ac_cv_foo' will be assigned the
35523# following values.
35524
35525_ACEOF
35526
35527# The following way of writing the cache mishandles newlines in values,
35528# but we know of no workaround that is simple, portable, and efficient.
35529# So, we kill variables containing newlines.
35530# Ultrix sh set writes to stderr and can't be redirected directly,
35531# and sets the high bit in the cache file unless we assign to the vars.
35532(
35533 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35534 eval ac_val=\$$ac_var
35535 case $ac_val in #(
35536 *${as_nl}*)
35537 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035538 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035539$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35540 esac
35541 case $ac_var in #(
35542 _ | IFS | as_nl) ;; #(
35543 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035544 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035545 esac ;;
35546 esac
35547 done
35548
35549 (set) 2>&1 |
35550 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35551 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035552 # `set' does not quote correctly, so add quotes: double-quote
35553 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035554 sed -n \
35555 "s/'/'\\\\''/g;
35556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35557 ;; #(
35558 *)
35559 # `set' quotes correctly as required by POSIX, so do not add quotes.
35560 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35561 ;;
35562 esac |
35563 sort
35564) |
35565 sed '
35566 /^ac_cv_env_/b end
35567 t clear
35568 :clear
35569 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35570 t end
35571 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35572 :end' >>confcache
35573if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35574 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035575 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035576 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035577$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035578 if test ! -f "$cache_file" || test -h "$cache_file"; then
35579 cat confcache >"$cache_file"
35580 else
35581 case $cache_file in #(
35582 */* | ?:*)
35583 mv -f confcache "$cache_file"$$ &&
35584 mv -f "$cache_file"$$ "$cache_file" ;; #(
35585 *)
35586 mv -f confcache "$cache_file" ;;
35587 esac
35588 fi
35589 fi
cristy3ed852e2009-09-05 21:47:34 +000035590 else
cristy8b350f62009-11-15 23:12:43 +000035591 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035592$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35593 fi
35594fi
35595rm -f confcache
35596
35597test "x$prefix" = xNONE && prefix=$ac_default_prefix
35598# Let make expand exec_prefix.
35599test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35600
35601DEFS=-DHAVE_CONFIG_H
35602
35603ac_libobjs=
35604ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035605U=
cristy3ed852e2009-09-05 21:47:34 +000035606for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35607 # 1. Remove the extension, and $U if already installed.
35608 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35609 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35610 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35611 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035612 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35613 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035614done
35615LIBOBJS=$ac_libobjs
35616
35617LTLIBOBJS=$ac_ltlibobjs
35618
35619
cristyc0890a62012-07-19 00:18:20 +000035620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35621$as_echo_n "checking that generated files are newer than configure... " >&6; }
35622 if test -n "$am_sleep_pid"; then
35623 # Hide warnings about reused PIDs.
35624 wait $am_sleep_pid 2>/dev/null
35625 fi
35626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35627$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035628 if test -n "$EXEEXT"; then
35629 am__EXEEXT_TRUE=
35630 am__EXEEXT_FALSE='#'
35631else
35632 am__EXEEXT_TRUE='#'
35633 am__EXEEXT_FALSE=
35634fi
cristy3ed852e2009-09-05 21:47:34 +000035635
cristy73bd4a52010-10-05 11:24:23 +000035636if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035637 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035638Usually this means the macro was only invoked conditionally." "$LINENO" 5
35639fi
35640if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035641 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035642Usually this means the macro was only invoked conditionally." "$LINENO" 5
35643fi
35644if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035645 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035646Usually this means the macro was only invoked conditionally." "$LINENO" 5
35647fi
35648if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035649 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035650Usually this means the macro was only invoked conditionally." "$LINENO" 5
35651fi
cristy9b86f202012-11-28 21:55:35 +000035652if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35653 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35654Usually this means the macro was only invoked conditionally." "$LINENO" 5
35655fi
cristy73bd4a52010-10-05 11:24:23 +000035656if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035657 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035658Usually this means the macro was only invoked conditionally." "$LINENO" 5
35659fi
35660if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035661 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035662Usually this means the macro was only invoked conditionally." "$LINENO" 5
35663fi
35664if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035665 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035666Usually this means the macro was only invoked conditionally." "$LINENO" 5
35667fi
35668if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035669 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035670Usually this means the macro was only invoked conditionally." "$LINENO" 5
35671fi
cristy73bd4a52010-10-05 11:24:23 +000035672if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035673 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035674Usually this means the macro was only invoked conditionally." "$LINENO" 5
35675fi
35676if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035677 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035678Usually this means the macro was only invoked conditionally." "$LINENO" 5
35679fi
cristy73bd4a52010-10-05 11:24:23 +000035680if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035681 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035682Usually this means the macro was only invoked conditionally." "$LINENO" 5
35683fi
cristy71d8c202012-03-20 17:05:01 +000035684if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35685 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35686Usually this means the macro was only invoked conditionally." "$LINENO" 5
35687fi
cristy73bd4a52010-10-05 11:24:23 +000035688
35689if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035690 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035691Usually this means the macro was only invoked conditionally." "$LINENO" 5
35692fi
35693if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035694 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035695Usually this means the macro was only invoked conditionally." "$LINENO" 5
35696fi
35697if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035698 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035699Usually this means the macro was only invoked conditionally." "$LINENO" 5
35700fi
35701if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035702 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035703Usually this means the macro was only invoked conditionally." "$LINENO" 5
35704fi
35705if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035706 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035707Usually this means the macro was only invoked conditionally." "$LINENO" 5
35708fi
35709if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035710 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035711Usually this means the macro was only invoked conditionally." "$LINENO" 5
35712fi
cristy5eef09f2012-10-16 12:08:28 +000035713if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35714 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35715Usually this means the macro was only invoked conditionally." "$LINENO" 5
35716fi
cristy73bd4a52010-10-05 11:24:23 +000035717if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035718 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035719Usually this means the macro was only invoked conditionally." "$LINENO" 5
35720fi
35721if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035722 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035723Usually this means the macro was only invoked conditionally." "$LINENO" 5
35724fi
35725if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035726 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035727Usually this means the macro was only invoked conditionally." "$LINENO" 5
35728fi
35729if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035730 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035731Usually this means the macro was only invoked conditionally." "$LINENO" 5
35732fi
35733if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035734 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035735Usually this means the macro was only invoked conditionally." "$LINENO" 5
35736fi
35737if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035738 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035739Usually this means the macro was only invoked conditionally." "$LINENO" 5
35740fi
35741if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035742 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035743Usually this means the macro was only invoked conditionally." "$LINENO" 5
35744fi
35745if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035746 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035747Usually this means the macro was only invoked conditionally." "$LINENO" 5
35748fi
35749if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035750 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035751Usually this means the macro was only invoked conditionally." "$LINENO" 5
35752fi
35753if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035754 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035755Usually this means the macro was only invoked conditionally." "$LINENO" 5
35756fi
35757if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035758 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035759Usually this means the macro was only invoked conditionally." "$LINENO" 5
35760fi
35761if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035762 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035763Usually this means the macro was only invoked conditionally." "$LINENO" 5
35764fi
35765if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035766 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035767Usually this means the macro was only invoked conditionally." "$LINENO" 5
35768fi
35769if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035770 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035771Usually this means the macro was only invoked conditionally." "$LINENO" 5
35772fi
cristyfbb0ef02010-12-19 02:32:11 +000035773if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35774 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35775Usually this means the macro was only invoked conditionally." "$LINENO" 5
35776fi
cristy73bd4a52010-10-05 11:24:23 +000035777if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035778 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035779Usually this means the macro was only invoked conditionally." "$LINENO" 5
35780fi
cristy41cbe8a2011-10-27 01:35:18 +000035781if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35782 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35783Usually this means the macro was only invoked conditionally." "$LINENO" 5
35784fi
cristya054b762012-03-26 23:16:00 +000035785if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35786 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035787Usually this means the macro was only invoked conditionally." "$LINENO" 5
35788fi
cristy73bd4a52010-10-05 11:24:23 +000035789if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035790 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035791Usually this means the macro was only invoked conditionally." "$LINENO" 5
35792fi
35793if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035794 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035795Usually this means the macro was only invoked conditionally." "$LINENO" 5
35796fi
35797if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035798 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035799Usually this means the macro was only invoked conditionally." "$LINENO" 5
35800fi
35801if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035802 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035803Usually this means the macro was only invoked conditionally." "$LINENO" 5
35804fi
cristyb1860752011-03-14 00:27:46 +000035805if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35806 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35807Usually this means the macro was only invoked conditionally." "$LINENO" 5
35808fi
cristy73bd4a52010-10-05 11:24:23 +000035809if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035810 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035811Usually this means the macro was only invoked conditionally." "$LINENO" 5
35812fi
35813if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035814 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035815Usually this means the macro was only invoked conditionally." "$LINENO" 5
35816fi
35817if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035818 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035819Usually this means the macro was only invoked conditionally." "$LINENO" 5
35820fi
35821if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035822 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035823Usually this means the macro was only invoked conditionally." "$LINENO" 5
35824fi
35825if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035826 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035827Usually this means the macro was only invoked conditionally." "$LINENO" 5
35828fi
35829if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035830 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035831Usually this means the macro was only invoked conditionally." "$LINENO" 5
35832fi
35833if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035834 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035835Usually this means the macro was only invoked conditionally." "$LINENO" 5
35836fi
35837if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035838 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035839Usually this means the macro was only invoked conditionally." "$LINENO" 5
35840fi
cristy3ed852e2009-09-05 21:47:34 +000035841
cristyda16f162011-02-19 23:52:17 +000035842: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035843ac_write_fail=0
35844ac_clean_files_save=$ac_clean_files
35845ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035846{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035847$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035848as_write_fail=0
35849cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035850#! $SHELL
35851# Generated by $as_me.
35852# Run this file to recreate the current configuration.
35853# Compiler output produced by configure, useful for debugging
35854# configure, is in config.log if it exists.
35855
35856debug=false
35857ac_cs_recheck=false
35858ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035859
cristy8b350f62009-11-15 23:12:43 +000035860SHELL=\${CONFIG_SHELL-$SHELL}
35861export SHELL
35862_ASEOF
35863cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35864## -------------------- ##
35865## M4sh Initialization. ##
35866## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035867
35868# Be more Bourne compatible
35869DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035870if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035871 emulate sh
35872 NULLCMD=:
35873 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35874 # is contrary to our usage. Disable this feature.
35875 alias -g '${1+"$@"}'='"$@"'
35876 setopt NO_GLOB_SUBST
35877else
cristy8b350f62009-11-15 23:12:43 +000035878 case `(set -o) 2>/dev/null` in #(
35879 *posix*) :
35880 set -o posix ;; #(
35881 *) :
35882 ;;
cristy3ed852e2009-09-05 21:47:34 +000035883esac
cristy3ed852e2009-09-05 21:47:34 +000035884fi
35885
35886
cristy3ed852e2009-09-05 21:47:34 +000035887as_nl='
35888'
35889export as_nl
35890# Printing a long string crashes Solaris 7 /usr/bin/printf.
35891as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35892as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35893as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035894# Prefer a ksh shell builtin over an external printf program on Solaris,
35895# but without wasting forks for bash or zsh.
35896if test -z "$BASH_VERSION$ZSH_VERSION" \
35897 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35898 as_echo='print -r --'
35899 as_echo_n='print -rn --'
35900elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035901 as_echo='printf %s\n'
35902 as_echo_n='printf %s'
35903else
35904 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35905 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35906 as_echo_n='/usr/ucb/echo -n'
35907 else
35908 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35909 as_echo_n_body='eval
35910 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035911 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035912 *"$as_nl"*)
35913 expr "X$arg" : "X\\(.*\\)$as_nl";
35914 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35915 esac;
35916 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35917 '
35918 export as_echo_n_body
35919 as_echo_n='sh -c $as_echo_n_body as_echo'
35920 fi
35921 export as_echo_body
35922 as_echo='sh -c $as_echo_body as_echo'
35923fi
35924
35925# The user is always right.
35926if test "${PATH_SEPARATOR+set}" != set; then
35927 PATH_SEPARATOR=:
35928 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35929 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35930 PATH_SEPARATOR=';'
35931 }
35932fi
35933
cristy3ed852e2009-09-05 21:47:34 +000035934
35935# IFS
35936# We need space, tab and new line, in precisely that order. Quoting is
35937# there to prevent editors from complaining about space-tab.
35938# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35939# splitting by setting IFS to empty value.)
35940IFS=" "" $as_nl"
35941
35942# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035943as_myself=
cristy8b350f62009-11-15 23:12:43 +000035944case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035945 *[\\/]* ) as_myself=$0 ;;
35946 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35947for as_dir in $PATH
35948do
35949 IFS=$as_save_IFS
35950 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035951 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35952 done
cristy3ed852e2009-09-05 21:47:34 +000035953IFS=$as_save_IFS
35954
35955 ;;
35956esac
35957# We did not find ourselves, most probably we were run as `sh COMMAND'
35958# in which case we are not to be found in the path.
35959if test "x$as_myself" = x; then
35960 as_myself=$0
35961fi
35962if test ! -f "$as_myself"; then
35963 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035964 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035965fi
35966
cristy8b350f62009-11-15 23:12:43 +000035967# Unset variables that we do not need and which cause bugs (e.g. in
35968# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35969# suppresses any "Segmentation fault" message there. '((' could
35970# trigger a bug in pdksh 5.2.14.
35971for as_var in BASH_ENV ENV MAIL MAILPATH
35972do eval test x\${$as_var+set} = xset \
35973 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035974done
35975PS1='$ '
35976PS2='> '
35977PS4='+ '
35978
35979# NLS nuisances.
35980LC_ALL=C
35981export LC_ALL
35982LANGUAGE=C
35983export LANGUAGE
35984
cristy8b350f62009-11-15 23:12:43 +000035985# CDPATH.
35986(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35987
35988
cristy98dddb52010-11-04 00:30:15 +000035989# as_fn_error STATUS ERROR [LINENO LOG_FD]
35990# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035991# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35992# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035993# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035994as_fn_error ()
35995{
cristy98dddb52010-11-04 00:30:15 +000035996 as_status=$1; test $as_status -eq 0 && as_status=1
35997 if test "$4"; then
35998 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35999 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036000 fi
cristy98dddb52010-11-04 00:30:15 +000036001 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036002 as_fn_exit $as_status
36003} # as_fn_error
36004
36005
36006# as_fn_set_status STATUS
36007# -----------------------
36008# Set $? to STATUS, without forking.
36009as_fn_set_status ()
36010{
36011 return $1
36012} # as_fn_set_status
36013
36014# as_fn_exit STATUS
36015# -----------------
36016# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36017as_fn_exit ()
36018{
36019 set +e
36020 as_fn_set_status $1
36021 exit $1
36022} # as_fn_exit
36023
36024# as_fn_unset VAR
36025# ---------------
36026# Portably unset VAR.
36027as_fn_unset ()
36028{
36029 { eval $1=; unset $1;}
36030}
36031as_unset=as_fn_unset
36032# as_fn_append VAR VALUE
36033# ----------------------
36034# Append the text in VALUE to the end of the definition contained in VAR. Take
36035# advantage of any shell optimizations that allow amortized linear growth over
36036# repeated appends, instead of the typical quadratic growth present in naive
36037# implementations.
36038if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36039 eval 'as_fn_append ()
36040 {
36041 eval $1+=\$2
36042 }'
36043else
36044 as_fn_append ()
36045 {
36046 eval $1=\$$1\$2
36047 }
36048fi # as_fn_append
36049
36050# as_fn_arith ARG...
36051# ------------------
36052# Perform arithmetic evaluation on the ARGs, and store the result in the
36053# global $as_val. Take advantage of shells that can avoid forks. The arguments
36054# must be portable across $(()) and expr.
36055if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36056 eval 'as_fn_arith ()
36057 {
36058 as_val=$(( $* ))
36059 }'
36060else
36061 as_fn_arith ()
36062 {
36063 as_val=`expr "$@" || test $? -eq 1`
36064 }
36065fi # as_fn_arith
36066
36067
cristy3ed852e2009-09-05 21:47:34 +000036068if expr a : '\(a\)' >/dev/null 2>&1 &&
36069 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36070 as_expr=expr
36071else
36072 as_expr=false
36073fi
36074
36075if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36076 as_basename=basename
36077else
36078 as_basename=false
36079fi
36080
cristy8b350f62009-11-15 23:12:43 +000036081if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36082 as_dirname=dirname
36083else
36084 as_dirname=false
36085fi
cristy3ed852e2009-09-05 21:47:34 +000036086
cristy3ed852e2009-09-05 21:47:34 +000036087as_me=`$as_basename -- "$0" ||
36088$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36089 X"$0" : 'X\(//\)$' \| \
36090 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36091$as_echo X/"$0" |
36092 sed '/^.*\/\([^/][^/]*\)\/*$/{
36093 s//\1/
36094 q
36095 }
36096 /^X\/\(\/\/\)$/{
36097 s//\1/
36098 q
36099 }
36100 /^X\/\(\/\).*/{
36101 s//\1/
36102 q
36103 }
36104 s/.*/./; q'`
36105
cristy8b350f62009-11-15 23:12:43 +000036106# Avoid depending upon Character Ranges.
36107as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36108as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36109as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36110as_cr_digits='0123456789'
36111as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036112
36113ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036114case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036115-n*)
cristy8b350f62009-11-15 23:12:43 +000036116 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036117 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036118 xy) ECHO_C='\c';;
36119 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36120 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036121 esac;;
36122*)
36123 ECHO_N='-n';;
36124esac
cristy3ed852e2009-09-05 21:47:34 +000036125
36126rm -f conf$$ conf$$.exe conf$$.file
36127if test -d conf$$.dir; then
36128 rm -f conf$$.dir/conf$$.file
36129else
36130 rm -f conf$$.dir
36131 mkdir conf$$.dir 2>/dev/null
36132fi
36133if (echo >conf$$.file) 2>/dev/null; then
36134 if ln -s conf$$.file conf$$ 2>/dev/null; then
36135 as_ln_s='ln -s'
36136 # ... but there are two gotchas:
36137 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36138 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036139 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036140 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036141 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036142 elif ln conf$$.file conf$$ 2>/dev/null; then
36143 as_ln_s=ln
36144 else
cristy14fefe52012-05-21 00:59:18 +000036145 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036146 fi
36147else
cristy14fefe52012-05-21 00:59:18 +000036148 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036149fi
36150rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36151rmdir conf$$.dir 2>/dev/null
36152
cristy8b350f62009-11-15 23:12:43 +000036153
36154# as_fn_mkdir_p
36155# -------------
36156# Create "$as_dir" as a directory, including parents if necessary.
36157as_fn_mkdir_p ()
36158{
36159
36160 case $as_dir in #(
36161 -*) as_dir=./$as_dir;;
36162 esac
36163 test -d "$as_dir" || eval $as_mkdir_p || {
36164 as_dirs=
36165 while :; do
36166 case $as_dir in #(
36167 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36168 *) as_qdir=$as_dir;;
36169 esac
36170 as_dirs="'$as_qdir' $as_dirs"
36171 as_dir=`$as_dirname -- "$as_dir" ||
36172$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36173 X"$as_dir" : 'X\(//\)[^/]' \| \
36174 X"$as_dir" : 'X\(//\)$' \| \
36175 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36176$as_echo X"$as_dir" |
36177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36178 s//\1/
36179 q
36180 }
36181 /^X\(\/\/\)[^/].*/{
36182 s//\1/
36183 q
36184 }
36185 /^X\(\/\/\)$/{
36186 s//\1/
36187 q
36188 }
36189 /^X\(\/\).*/{
36190 s//\1/
36191 q
36192 }
36193 s/.*/./; q'`
36194 test -d "$as_dir" && break
36195 done
36196 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036197 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036198
36199
36200} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036201if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036202 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036203else
36204 test -d ./-p && rmdir ./-p
36205 as_mkdir_p=false
36206fi
36207
cristy14fefe52012-05-21 00:59:18 +000036208
36209# as_fn_executable_p FILE
36210# -----------------------
36211# Test if FILE is an executable regular file.
36212as_fn_executable_p ()
36213{
36214 test -f "$1" && test -x "$1"
36215} # as_fn_executable_p
36216as_test_x='test -x'
36217as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036218
36219# Sed expression to map a string onto a valid CPP name.
36220as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36221
36222# Sed expression to map a string onto a valid variable name.
36223as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36224
36225
36226exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036227## ----------------------------------- ##
36228## Main body of $CONFIG_STATUS script. ##
36229## ----------------------------------- ##
36230_ASEOF
36231test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036232
cristy8b350f62009-11-15 23:12:43 +000036233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36234# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036235# report actual input values of CONFIG_FILES etc. instead of their
36236# values after options handling.
36237ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036238This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036239generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036240
36241 CONFIG_FILES = $CONFIG_FILES
36242 CONFIG_HEADERS = $CONFIG_HEADERS
36243 CONFIG_LINKS = $CONFIG_LINKS
36244 CONFIG_COMMANDS = $CONFIG_COMMANDS
36245 $ $0 $@
36246
36247on `(hostname || uname -n) 2>/dev/null | sed 1q`
36248"
36249
36250_ACEOF
36251
36252case $ac_config_files in *"
36253"*) set x $ac_config_files; shift; ac_config_files=$*;;
36254esac
36255
36256case $ac_config_headers in *"
36257"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36258esac
36259
36260
36261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36262# Files that config.status was made for.
36263config_files="$ac_config_files"
36264config_headers="$ac_config_headers"
36265config_commands="$ac_config_commands"
36266
36267_ACEOF
36268
36269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36270ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036271\`$as_me' instantiates files and other configuration actions
36272from templates according to the current configuration. Unless the files
36273and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036274
cristy8b350f62009-11-15 23:12:43 +000036275Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036276
36277 -h, --help print this help, then exit
36278 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036279 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036280 -q, --quiet, --silent
36281 do not print progress messages
36282 -d, --debug don't remove temporary files
36283 --recheck update $as_me by reconfiguring in the same conditions
36284 --file=FILE[:TEMPLATE]
36285 instantiate the configuration file FILE
36286 --header=FILE[:TEMPLATE]
36287 instantiate the configuration header FILE
36288
36289Configuration files:
36290$config_files
36291
36292Configuration headers:
36293$config_headers
36294
36295Configuration commands:
36296$config_commands
36297
cristy8b350f62009-11-15 23:12:43 +000036298Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036299
36300_ACEOF
36301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036302ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036303ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036304ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036305configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036306 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036307
cristy14fefe52012-05-21 00:59:18 +000036308Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036309This config.status script is free software; the Free Software Foundation
36310gives unlimited permission to copy, distribute and modify it."
36311
36312ac_pwd='$ac_pwd'
36313srcdir='$srcdir'
36314INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036315MKDIR_P='$MKDIR_P'
36316AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036317test -n "\$AWK" || AWK=awk
36318_ACEOF
36319
36320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36321# The default lists apply if the user does not specify any file.
36322ac_need_defaults=:
36323while test $# != 0
36324do
36325 case $1 in
cristyda16f162011-02-19 23:52:17 +000036326 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036327 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36328 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36329 ac_shift=:
36330 ;;
cristyda16f162011-02-19 23:52:17 +000036331 --*=)
36332 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36333 ac_optarg=
36334 ac_shift=:
36335 ;;
cristy3ed852e2009-09-05 21:47:34 +000036336 *)
36337 ac_option=$1
36338 ac_optarg=$2
36339 ac_shift=shift
36340 ;;
36341 esac
36342
36343 case $ac_option in
36344 # Handling of the options.
36345 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36346 ac_cs_recheck=: ;;
36347 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36348 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036349 --config | --confi | --conf | --con | --co | --c )
36350 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036351 --debug | --debu | --deb | --de | --d | -d )
36352 debug=: ;;
36353 --file | --fil | --fi | --f )
36354 $ac_shift
36355 case $ac_optarg in
36356 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036357 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036358 esac
cristy8b350f62009-11-15 23:12:43 +000036359 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036360 ac_need_defaults=false;;
36361 --header | --heade | --head | --hea )
36362 $ac_shift
36363 case $ac_optarg in
36364 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36365 esac
cristy8b350f62009-11-15 23:12:43 +000036366 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036367 ac_need_defaults=false;;
36368 --he | --h)
36369 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036370 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036371Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036372 --help | --hel | -h )
36373 $as_echo "$ac_cs_usage"; exit ;;
36374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36375 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36376 ac_cs_silent=: ;;
36377
36378 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036379 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036380Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036381
cristy8b350f62009-11-15 23:12:43 +000036382 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036383 ac_need_defaults=false ;;
36384
36385 esac
36386 shift
36387done
36388
36389ac_configure_extra_args=
36390
36391if $ac_cs_silent; then
36392 exec 6>/dev/null
36393 ac_configure_extra_args="$ac_configure_extra_args --silent"
36394fi
36395
36396_ACEOF
36397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36398if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036399 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036400 shift
36401 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36402 CONFIG_SHELL='$SHELL'
36403 export CONFIG_SHELL
36404 exec "\$@"
36405fi
36406
36407_ACEOF
36408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36409exec 5>>config.log
36410{
36411 echo
36412 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36413## Running $as_me. ##
36414_ASBOX
36415 $as_echo "$ac_log"
36416} >&5
36417
36418_ACEOF
36419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036420#
36421# INIT-COMMANDS
36422#
36423PACKAGE="$PACKAGE"
36424AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36425
36426
36427# The HP-UX ksh and POSIX shell print the target directory to stdout
36428# if CDPATH is set.
36429(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36430
36431sed_quote_subst='$sed_quote_subst'
36432double_quote_subst='$double_quote_subst'
36433delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036434SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36435Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36436GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36437EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36438FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36439SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36440ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36441LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36442macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36443macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36444AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36445DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36446OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36447enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36448enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36449pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36450enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036451PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036452host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36453host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36454host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36455build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36456build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36457build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36458NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36459LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36460max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36461ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36462exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36463lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36464lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36465lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036466lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36467lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036468reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36469reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36470deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36471file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036472file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36473want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36474sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036475AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36476AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036477archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036478STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36479RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36480old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36481old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36482old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36483lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36484CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36485CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36486compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36487GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36488lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36489lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36490lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36491lt_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 +000036492nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36493lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036494objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36495MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36496lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036497lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036498lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036499lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36500lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36501need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036502MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036503DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36504NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36505LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36506OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36507OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36508libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36509shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36510extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36511archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36512enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36513export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36514whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36515compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36516old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36517old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36518archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36519archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36520module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36521module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36522with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36523allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36524no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36525hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036526hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36527hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36528hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36529hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36530hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36531hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36532inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36533link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036534always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36535export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36536exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36537include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36538prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036539postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036540file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36541variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36542need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36543need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36544version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36545runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36546shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36547shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36548libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36549library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36550soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36551install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36552postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36553postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36554finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36555finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36556hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36557sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36558sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36559hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36560enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36561enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36562enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36563old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36564striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36565compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36566predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36567postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36568predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36569postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36570compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36571LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36572reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36573reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36574old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36575compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36576GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36577lt_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 +000036578lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036579lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036580lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36581lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36582archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36583enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36584export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36585whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36586compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36587old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36588old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36589archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36590archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36591module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36592module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36593with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36594allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36595no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36596hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036597hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36598hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36599hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36600hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36601hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36602hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36603inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36604link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036605always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36606export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36607exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36608include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36609prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036610postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036611file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36612hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36613compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36614predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36615postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36616predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36617postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36618compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036619
36620LTCC='$LTCC'
36621LTCFLAGS='$LTCFLAGS'
36622compiler='$compiler_DEFAULT'
36623
cristy0c60a692010-11-04 01:09:47 +000036624# A function that is used when there is no print builtin or printf.
36625func_fallback_echo ()
36626{
36627 eval 'cat <<_LTECHO_EOF
36628\$1
36629_LTECHO_EOF'
36630}
36631
cristy73bd4a52010-10-05 11:24:23 +000036632# Quote evaled strings.
36633for var in SED \
36634GREP \
36635EGREP \
36636FGREP \
cristy0c60a692010-11-04 01:09:47 +000036637SHELL \
36638ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036639LD \
cristy0c60a692010-11-04 01:09:47 +000036640AS \
36641DLLTOOL \
36642OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036643PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036644NM \
36645LN_S \
36646lt_SP2NL \
36647lt_NL2SP \
36648reload_flag \
36649deplibs_check_method \
36650file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036651file_magic_glob \
36652want_nocaseglob \
36653sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036654AR \
36655AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036656archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036657STRIP \
36658RANLIB \
36659CC \
36660CFLAGS \
36661compiler \
36662lt_cv_sys_global_symbol_pipe \
36663lt_cv_sys_global_symbol_to_cdecl \
36664lt_cv_sys_global_symbol_to_c_name_address \
36665lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036666nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036667lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036668lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036669lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036670lt_prog_compiler_static \
36671lt_cv_prog_compiler_c_o \
36672need_locks \
cristyda16f162011-02-19 23:52:17 +000036673MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036674DSYMUTIL \
36675NMEDIT \
36676LIPO \
36677OTOOL \
36678OTOOL64 \
36679shrext_cmds \
36680export_dynamic_flag_spec \
36681whole_archive_flag_spec \
36682compiler_needs_object \
36683with_gnu_ld \
36684allow_undefined_flag \
36685no_undefined_flag \
36686hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036687hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036688exclude_expsyms \
36689include_expsyms \
36690file_list_spec \
36691variables_saved_for_relink \
36692libname_spec \
36693library_names_spec \
36694soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036695install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036696finish_eval \
36697old_striplib \
36698striplib \
36699compiler_lib_search_dirs \
36700predep_objects \
36701postdep_objects \
36702predeps \
36703postdeps \
36704compiler_lib_search_path \
36705LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036706reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036707compiler_CXX \
36708lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036709lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036710lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036711lt_prog_compiler_static_CXX \
36712lt_cv_prog_compiler_c_o_CXX \
36713export_dynamic_flag_spec_CXX \
36714whole_archive_flag_spec_CXX \
36715compiler_needs_object_CXX \
36716with_gnu_ld_CXX \
36717allow_undefined_flag_CXX \
36718no_undefined_flag_CXX \
36719hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036720hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036721exclude_expsyms_CXX \
36722include_expsyms_CXX \
36723file_list_spec_CXX \
36724compiler_lib_search_dirs_CXX \
36725predep_objects_CXX \
36726postdep_objects_CXX \
36727predeps_CXX \
36728postdeps_CXX \
36729compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036730 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036731 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036732 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036733 ;;
36734 *)
36735 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36736 ;;
36737 esac
36738done
36739
36740# Double-quote double-evaled strings.
36741for var in reload_cmds \
36742old_postinstall_cmds \
36743old_postuninstall_cmds \
36744old_archive_cmds \
36745extract_expsyms_cmds \
36746old_archive_from_new_cmds \
36747old_archive_from_expsyms_cmds \
36748archive_cmds \
36749archive_expsym_cmds \
36750module_cmds \
36751module_expsym_cmds \
36752export_symbols_cmds \
36753prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036754postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036755postinstall_cmds \
36756postuninstall_cmds \
36757finish_cmds \
36758sys_lib_search_path_spec \
36759sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036760reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036761old_archive_cmds_CXX \
36762old_archive_from_new_cmds_CXX \
36763old_archive_from_expsyms_cmds_CXX \
36764archive_cmds_CXX \
36765archive_expsym_cmds_CXX \
36766module_cmds_CXX \
36767module_expsym_cmds_CXX \
36768export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036769prelink_cmds_CXX \
36770postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036771 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036772 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036773 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036774 ;;
36775 *)
36776 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36777 ;;
36778 esac
36779done
36780
cristy73bd4a52010-10-05 11:24:23 +000036781ac_aux_dir='$ac_aux_dir'
36782xsi_shell='$xsi_shell'
36783lt_shell_append='$lt_shell_append'
36784
36785# See if we are running on zsh, and set the options which allow our
36786# commands through without removal of \ escapes INIT.
36787if test -n "\${ZSH_VERSION+set}" ; then
36788 setopt NO_GLOB_SUBST
36789fi
36790
36791
36792 PACKAGE='$PACKAGE'
36793 VERSION='$VERSION'
36794 TIMESTAMP='$TIMESTAMP'
36795 RM='$RM'
36796 ofile='$ofile'
36797
36798
36799
36800
36801
36802
cristy3ed852e2009-09-05 21:47:34 +000036803_ACEOF
36804
36805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36806
36807# Handling of arguments.
36808for ac_config_target in $ac_config_targets
36809do
36810 case $ac_config_target in
36811 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036812 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036813 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036814 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36815 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36816 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36817 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36818 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036819 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036820 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036821 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36822 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36823 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36824 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36825 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036826 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036827 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036828 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36829 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36830 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036831 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36832 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000036833 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy3e049f82013-02-13 13:26:53 +000036834 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36835 "PerlMagick/Magick.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.xs" ;;
36836 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36837 "PerlMagick/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000036838 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36839 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36840 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36841 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36842 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36843 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36844 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36845 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36846 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36847 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36848 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36849 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036850 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36851 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036852 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36853 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036854 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036855 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036856 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036857 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036858 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36859 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36860
cristy98dddb52010-11-04 00:30:15 +000036861 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036862 esac
36863done
36864
36865
36866# If the user did not use the arguments to specify the items to instantiate,
36867# then the envvar interface is used. Set only those that are not.
36868# We use the long form for the default assignment because of an extremely
36869# bizarre bug on SunOS 4.1.3.
36870if $ac_need_defaults; then
36871 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36872 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36873 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36874fi
36875
36876# Have a temporary directory for convenience. Make it in the build tree
36877# simply because there is no reason against having it here, and in addition,
36878# creating and moving files from /tmp can sometimes cause problems.
36879# Hook for its removal unless debugging.
36880# Note that there is a small window in which the directory will not be cleaned:
36881# after its creation but before its name has been assigned to `$tmp'.
36882$debug ||
36883{
cristyda16f162011-02-19 23:52:17 +000036884 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036885 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036886 : "${ac_tmp:=$tmp}"
36887 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036888' 0
cristy8b350f62009-11-15 23:12:43 +000036889 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036890}
36891# Create a (secure) tmp directory for tmp files.
36892
36893{
36894 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036895 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036896} ||
36897{
36898 tmp=./conf$$-$RANDOM
36899 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036900} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036901ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036902
36903# Set up the scripts for CONFIG_FILES section.
36904# No need to generate them if there are no CONFIG_FILES.
36905# This happens for instance with `./config.status config.h'.
36906if test -n "$CONFIG_FILES"; then
36907
36908
cristy8b350f62009-11-15 23:12:43 +000036909ac_cr=`echo X | tr X '\015'`
36910# On cygwin, bash can eat \r inside `` if the user requested igncr.
36911# But we know of no other shell where ac_cr would be empty at this
36912# point, so we can use a bashism as a fallback.
36913if test "x$ac_cr" = x; then
36914 eval ac_cr=\$\'\\r\'
36915fi
cristy3ed852e2009-09-05 21:47:34 +000036916ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36917if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036918 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036919else
36920 ac_cs_awk_cr=$ac_cr
36921fi
36922
cristyda16f162011-02-19 23:52:17 +000036923echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036924_ACEOF
36925
36926
36927{
36928 echo "cat >conf$$subs.awk <<_ACEOF" &&
36929 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36930 echo "_ACEOF"
36931} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036932 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36933ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036934ac_delim='%!_!# '
36935for ac_last_try in false false false false false :; do
36936 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036937 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036938
36939 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36940 if test $ac_delim_n = $ac_delim_num; then
36941 break
36942 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036943 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036944 else
36945 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36946 fi
36947done
36948rm -f conf$$subs.sh
36949
36950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036951cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036952_ACEOF
36953sed -n '
36954h
36955s/^/S["/; s/!.*/"]=/
36956p
36957g
36958s/^[^!]*!//
36959:repl
36960t repl
36961s/'"$ac_delim"'$//
36962t delim
36963:nl
36964h
cristycd4c5312009-11-22 01:19:08 +000036965s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036966t more1
36967s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36968p
36969n
36970b repl
36971:more1
36972s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36973p
36974g
36975s/.\{148\}//
36976t nl
36977:delim
36978h
cristycd4c5312009-11-22 01:19:08 +000036979s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036980t more2
36981s/["\\]/\\&/g; s/^/"/; s/$/"/
36982p
36983b
36984:more2
36985s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36986p
36987g
36988s/.\{148\}//
36989t delim
36990' <conf$$subs.awk | sed '
36991/^[^""]/{
36992 N
36993 s/\n//
36994}
36995' >>$CONFIG_STATUS || ac_write_fail=1
36996rm -f conf$$subs.awk
36997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36998_ACAWK
cristyda16f162011-02-19 23:52:17 +000036999cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037000 for (key in S) S_is_set[key] = 1
37001 FS = ""
37002
37003}
37004{
37005 line = $ 0
37006 nfields = split(line, field, "@")
37007 substed = 0
37008 len = length(field[1])
37009 for (i = 2; i < nfields; i++) {
37010 key = field[i]
37011 keylen = length(key)
37012 if (S_is_set[key]) {
37013 value = S[key]
37014 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37015 len += length(value) + length(field[++i])
37016 substed = 1
37017 } else
37018 len += 1 + keylen
37019 }
37020
37021 print line
37022}
37023
37024_ACAWK
37025_ACEOF
37026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37027if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37028 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37029else
37030 cat
cristyda16f162011-02-19 23:52:17 +000037031fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037032 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037033_ACEOF
37034
cristy98dddb52010-11-04 00:30:15 +000037035# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37036# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037037# trailing colons and then remove the whole line if VPATH becomes empty
37038# (actually we leave an empty line to preserve line numbers).
37039if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037040 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37041h
37042s///
37043s/^/:/
37044s/[ ]*$/:/
37045s/:\$(srcdir):/:/g
37046s/:\${srcdir}:/:/g
37047s/:@srcdir@:/:/g
37048s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037049s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037050x
37051s/\(=[ ]*\).*/\1/
37052G
37053s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037054s/^[^=]*=[ ]*$//
37055}'
37056fi
37057
37058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37059fi # test -n "$CONFIG_FILES"
37060
37061# Set up the scripts for CONFIG_HEADERS section.
37062# No need to generate them if there are no CONFIG_HEADERS.
37063# This happens for instance with `./config.status Makefile'.
37064if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037065cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037066BEGIN {
37067_ACEOF
37068
37069# Transform confdefs.h into an awk script `defines.awk', embedded as
37070# here-document in config.status, that substitutes the proper values into
37071# config.h.in to produce config.h.
37072
37073# Create a delimiter string that does not exist in confdefs.h, to ease
37074# handling of long lines.
37075ac_delim='%!_!# '
37076for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037077 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37078 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037079 break
37080 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037081 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037082 else
37083 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37084 fi
37085done
37086
37087# For the awk script, D is an array of macro values keyed by name,
37088# likewise P contains macro parameters if any. Preserve backslash
37089# newline sequences.
37090
37091ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37092sed -n '
37093s/.\{148\}/&'"$ac_delim"'/g
37094t rset
37095:rset
37096s/^[ ]*#[ ]*define[ ][ ]*/ /
37097t def
37098d
37099:def
37100s/\\$//
37101t bsnl
37102s/["\\]/\\&/g
37103s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37104D["\1"]=" \3"/p
37105s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37106d
37107:bsnl
37108s/["\\]/\\&/g
37109s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37110D["\1"]=" \3\\\\\\n"\\/p
37111t cont
37112s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37113t cont
37114d
37115:cont
37116n
37117s/.\{148\}/&'"$ac_delim"'/g
37118t clear
37119:clear
37120s/\\$//
37121t bsnlc
37122s/["\\]/\\&/g; s/^/"/; s/$/"/p
37123d
37124:bsnlc
37125s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37126b cont
37127' <confdefs.h | sed '
37128s/'"$ac_delim"'/"\\\
37129"/g' >>$CONFIG_STATUS || ac_write_fail=1
37130
37131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37132 for (key in D) D_is_set[key] = 1
37133 FS = ""
37134}
37135/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37136 line = \$ 0
37137 split(line, arg, " ")
37138 if (arg[1] == "#") {
37139 defundef = arg[2]
37140 mac1 = arg[3]
37141 } else {
37142 defundef = substr(arg[1], 2)
37143 mac1 = arg[2]
37144 }
37145 split(mac1, mac2, "(") #)
37146 macro = mac2[1]
37147 prefix = substr(line, 1, index(line, defundef) - 1)
37148 if (D_is_set[macro]) {
37149 # Preserve the white space surrounding the "#".
37150 print prefix "define", macro P[macro] D[macro]
37151 next
37152 } else {
37153 # Replace #undef with comments. This is necessary, for example,
37154 # in the case of _POSIX_SOURCE, which is predefined and required
37155 # on some systems where configure will not decide to define it.
37156 if (defundef == "undef") {
37157 print "/*", prefix defundef, macro, "*/"
37158 next
37159 }
37160 }
37161}
37162{ print }
37163_ACAWK
37164_ACEOF
37165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037166 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037167fi # test -n "$CONFIG_HEADERS"
37168
37169
37170eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37171shift
37172for ac_tag
37173do
37174 case $ac_tag in
37175 :[FHLC]) ac_mode=$ac_tag; continue;;
37176 esac
37177 case $ac_mode$ac_tag in
37178 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037179 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037180 :[FH]-) ac_tag=-:-;;
37181 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37182 esac
37183 ac_save_IFS=$IFS
37184 IFS=:
37185 set x $ac_tag
37186 IFS=$ac_save_IFS
37187 shift
37188 ac_file=$1
37189 shift
37190
37191 case $ac_mode in
37192 :L) ac_source=$1;;
37193 :[FH])
37194 ac_file_inputs=
37195 for ac_f
37196 do
37197 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037198 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037199 *) # Look for the file first in the build tree, then in the source tree
37200 # (if the path is not absolute). The absolute path cannot be DOS-style,
37201 # because $ac_f cannot contain `:'.
37202 test -f "$ac_f" ||
37203 case $ac_f in
37204 [\\/$]*) false;;
37205 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37206 esac ||
cristy98dddb52010-11-04 00:30:15 +000037207 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037208 esac
37209 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037210 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037211 done
37212
37213 # Let's still pretend it is `configure' which instantiates (i.e., don't
37214 # use $as_me), people would be surprised to read:
37215 # /* config.h. Generated by config.status. */
37216 configure_input='Generated from '`
37217 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37218 `' by configure.'
37219 if test x"$ac_file" != x-; then
37220 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037221 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037222$as_echo "$as_me: creating $ac_file" >&6;}
37223 fi
37224 # Neutralize special characters interpreted by sed in replacement strings.
37225 case $configure_input in #(
37226 *\&* | *\|* | *\\* )
37227 ac_sed_conf_input=`$as_echo "$configure_input" |
37228 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37229 *) ac_sed_conf_input=$configure_input;;
37230 esac
37231
37232 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037233 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037234 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037235 esac
37236 ;;
37237 esac
37238
37239 ac_dir=`$as_dirname -- "$ac_file" ||
37240$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37241 X"$ac_file" : 'X\(//\)[^/]' \| \
37242 X"$ac_file" : 'X\(//\)$' \| \
37243 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37244$as_echo X"$ac_file" |
37245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37246 s//\1/
37247 q
37248 }
37249 /^X\(\/\/\)[^/].*/{
37250 s//\1/
37251 q
37252 }
37253 /^X\(\/\/\)$/{
37254 s//\1/
37255 q
37256 }
37257 /^X\(\/\).*/{
37258 s//\1/
37259 q
37260 }
37261 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037262 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037263 ac_builddir=.
37264
37265case "$ac_dir" in
37266.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37267*)
37268 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37269 # A ".." for each directory in $ac_dir_suffix.
37270 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37271 case $ac_top_builddir_sub in
37272 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37273 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37274 esac ;;
37275esac
37276ac_abs_top_builddir=$ac_pwd
37277ac_abs_builddir=$ac_pwd$ac_dir_suffix
37278# for backward compatibility:
37279ac_top_builddir=$ac_top_build_prefix
37280
37281case $srcdir in
37282 .) # We are building in place.
37283 ac_srcdir=.
37284 ac_top_srcdir=$ac_top_builddir_sub
37285 ac_abs_top_srcdir=$ac_pwd ;;
37286 [\\/]* | ?:[\\/]* ) # Absolute name.
37287 ac_srcdir=$srcdir$ac_dir_suffix;
37288 ac_top_srcdir=$srcdir
37289 ac_abs_top_srcdir=$srcdir ;;
37290 *) # Relative name.
37291 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37292 ac_top_srcdir=$ac_top_build_prefix$srcdir
37293 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37294esac
37295ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37296
37297
37298 case $ac_mode in
37299 :F)
37300 #
37301 # CONFIG_FILE
37302 #
37303
37304 case $INSTALL in
37305 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37306 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37307 esac
cristy73bd4a52010-10-05 11:24:23 +000037308 ac_MKDIR_P=$MKDIR_P
37309 case $MKDIR_P in
37310 [\\/$]* | ?:[\\/]* ) ;;
37311 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37312 esac
cristy3ed852e2009-09-05 21:47:34 +000037313_ACEOF
37314
37315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37316# If the template does not know about datarootdir, expand it.
37317# FIXME: This hack should be removed a few years after 2.60.
37318ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037319ac_sed_dataroot='
37320/datarootdir/ {
37321 p
37322 q
37323}
37324/@datadir@/p
37325/@docdir@/p
37326/@infodir@/p
37327/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037328/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037329case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37330*datarootdir*) ac_datarootdir_seen=yes;;
37331*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037333$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37334_ACEOF
37335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37336 ac_datarootdir_hack='
37337 s&@datadir@&$datadir&g
37338 s&@docdir@&$docdir&g
37339 s&@infodir@&$infodir&g
37340 s&@localedir@&$localedir&g
37341 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037342 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037343esac
37344_ACEOF
37345
37346# Neutralize VPATH when `$srcdir' = `.'.
37347# Shell code in configure.ac might set extrasub.
37348# FIXME: do we really want to maintain this feature?
37349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37350ac_sed_extra="$ac_vpsub
37351$extrasub
37352_ACEOF
37353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37354:t
37355/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37356s|@configure_input@|$ac_sed_conf_input|;t t
37357s&@top_builddir@&$ac_top_builddir_sub&;t t
37358s&@top_build_prefix@&$ac_top_build_prefix&;t t
37359s&@srcdir@&$ac_srcdir&;t t
37360s&@abs_srcdir@&$ac_abs_srcdir&;t t
37361s&@top_srcdir@&$ac_top_srcdir&;t t
37362s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37363s&@builddir@&$ac_builddir&;t t
37364s&@abs_builddir@&$ac_abs_builddir&;t t
37365s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37366s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037367s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037368$ac_datarootdir_hack
37369"
cristyda16f162011-02-19 23:52:17 +000037370eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37371 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037372
37373test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037374 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37375 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37376 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037378which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037379$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037380which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037381
cristyda16f162011-02-19 23:52:17 +000037382 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037383 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037384 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37385 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037386 esac \
cristy98dddb52010-11-04 00:30:15 +000037387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037388 ;;
37389 :H)
37390 #
37391 # CONFIG_HEADER
37392 #
37393 if test x"$ac_file" != x-; then
37394 {
37395 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037396 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37397 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037399 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037400 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037401$as_echo "$as_me: $ac_file is unchanged" >&6;}
37402 else
37403 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037404 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037406 fi
37407 else
37408 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037409 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037410 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037411 fi
cristy73bd4a52010-10-05 11:24:23 +000037412# Compute "$ac_file"'s index in $config_headers.
37413_am_arg="$ac_file"
37414_am_stamp_count=1
37415for _am_header in $config_headers :; do
37416 case $_am_header in
37417 $_am_arg | $_am_arg:* )
37418 break ;;
37419 * )
37420 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37421 esac
37422done
37423echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37424$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37425 X"$_am_arg" : 'X\(//\)[^/]' \| \
37426 X"$_am_arg" : 'X\(//\)$' \| \
37427 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37428$as_echo X"$_am_arg" |
37429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37430 s//\1/
37431 q
37432 }
37433 /^X\(\/\/\)[^/].*/{
37434 s//\1/
37435 q
37436 }
37437 /^X\(\/\/\)$/{
37438 s//\1/
37439 q
37440 }
37441 /^X\(\/\).*/{
37442 s//\1/
37443 q
37444 }
37445 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037446 ;;
37447
cristy8b350f62009-11-15 23:12:43 +000037448 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037449$as_echo "$as_me: executing $ac_file commands" >&6;}
37450 ;;
37451 esac
37452
37453
37454 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037455 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037456ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37457ac_prefix_conf_PKG=`echo MagickCore`
37458ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37459ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37460ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37461if test ".$ac_prefix_conf_INP" = "."; then
37462 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37463 case "$ac_file" in
37464 *.h) ac_prefix_conf_INP=$ac_file ;;
37465 *)
37466 esac
37467 test ".$ac_prefix_conf_INP" != "." && break
37468 done
37469fi
37470if test ".$ac_prefix_conf_INP" = "."; then
37471 case "$ac_prefix_conf_OUT" in
37472 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37473 ;;
37474 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37475 ;;
37476 *) ac_prefix_conf_INP=config.h
37477 ;;
37478 esac
37479fi
37480if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037481 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037482else
37483 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37484 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37485 fi fi
37486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37487$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37488 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037489 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37490 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37491 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37492 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37493 $as_echo "#endif/" >> conftest.prefix
37494 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37495 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37496 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037497 # now executing _script on _DEF input to create _OUT output file
37498 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37499 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37500 echo ' ' >>$tmp/pconfig.h
37501 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37502
37503 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37504 echo ' ' >>$tmp/pconfig.h
37505 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37506 echo "#endif" >>$tmp/pconfig.h
37507 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37508 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37509$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37510 else
37511 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37512$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37513 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37514 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37515 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37516$as_echo X"$ac_prefix_conf_OUT" |
37517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37518 s//\1/
37519 q
37520 }
37521 /^X\(\/\/\)[^/].*/{
37522 s//\1/
37523 q
37524 }
37525 /^X\(\/\/\)$/{
37526 s//\1/
37527 q
37528 }
37529 /^X\(\/\).*/{
37530 s//\1/
37531 q
37532 }
37533 s/.*/./; q'`
37534 as_dir="$ac_dir"; as_fn_mkdir_p
37535 rm -f "$ac_prefix_conf_OUT"
37536 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37537 fi
37538 cp conftest.prefix _configs.sed
37539 else
cristy98dddb52010-11-04 00:30:15 +000037540 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 +000037541 fi
37542 rm -f conftest.*
37543fi
37544 ;;
37545 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037546 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037547 # are listed without --file. Let's play safe and only enable the eval
37548 # if we detect the quoting.
37549 case $CONFIG_FILES in
37550 *\'*) eval set x "$CONFIG_FILES" ;;
37551 *) set x $CONFIG_FILES ;;
37552 esac
37553 shift
37554 for mf
37555 do
37556 # Strip MF so we end up with the name of the file.
37557 mf=`echo "$mf" | sed -e 's/:.*$//'`
37558 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037559 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037560 # some people rename them; so instead we look at the file content.
37561 # Grep'ing the first line is not enough: some people post-process
37562 # each Makefile.in and add a new line on top of each file to say so.
37563 # Grep'ing the whole file is not good either: AIX grep has a line
37564 # limit of 2048, but all sed's we know have understand at least 4000.
37565 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37566 dirpart=`$as_dirname -- "$mf" ||
37567$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37568 X"$mf" : 'X\(//\)[^/]' \| \
37569 X"$mf" : 'X\(//\)$' \| \
37570 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37571$as_echo X"$mf" |
37572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37573 s//\1/
37574 q
37575 }
37576 /^X\(\/\/\)[^/].*/{
37577 s//\1/
37578 q
37579 }
37580 /^X\(\/\/\)$/{
37581 s//\1/
37582 q
37583 }
37584 /^X\(\/\).*/{
37585 s//\1/
37586 q
37587 }
37588 s/.*/./; q'`
37589 else
37590 continue
37591 fi
37592 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037593 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037594 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37595 test -z "$DEPDIR" && continue
37596 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37597 test -z "am__include" && continue
37598 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037599 # Find all dependency output files, they are included files with
37600 # $(DEPDIR) in their names. We invoke sed twice because it is the
37601 # simplest approach to changing $(DEPDIR) to its actual value in the
37602 # expansion.
37603 for file in `sed -n "
37604 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037605 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037606 # Make sure the directory exists.
37607 test -f "$dirpart/$file" && continue
37608 fdir=`$as_dirname -- "$file" ||
37609$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37610 X"$file" : 'X\(//\)[^/]' \| \
37611 X"$file" : 'X\(//\)$' \| \
37612 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37613$as_echo X"$file" |
37614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37615 s//\1/
37616 q
37617 }
37618 /^X\(\/\/\)[^/].*/{
37619 s//\1/
37620 q
37621 }
37622 /^X\(\/\/\)$/{
37623 s//\1/
37624 q
37625 }
37626 /^X\(\/\).*/{
37627 s//\1/
37628 q
37629 }
37630 s/.*/./; q'`
37631 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37632 # echo "creating $dirpart/$file"
37633 echo '# dummy' > "$dirpart/$file"
37634 done
37635 done
37636}
37637 ;;
37638 "libtool":C)
37639
37640 # See if we are running on zsh, and set the options which allow our
37641 # commands through without removal of \ escapes.
37642 if test -n "${ZSH_VERSION+set}" ; then
37643 setopt NO_GLOB_SUBST
37644 fi
37645
37646 cfgfile="${ofile}T"
37647 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37648 $RM "$cfgfile"
37649
37650 cat <<_LT_EOF >> "$cfgfile"
37651#! $SHELL
37652
37653# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37654# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37655# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37656# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37657#
37658# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037659# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37660# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037661# Written by Gordon Matzigkeit, 1996
37662#
37663# This file is part of GNU Libtool.
37664#
37665# GNU Libtool is free software; you can redistribute it and/or
37666# modify it under the terms of the GNU General Public License as
37667# published by the Free Software Foundation; either version 2 of
37668# the License, or (at your option) any later version.
37669#
37670# As a special exception to the GNU General Public License,
37671# if you distribute this file as part of a program or library that
37672# is built using GNU Libtool, you may include this file under the
37673# same distribution terms that you use for the rest of that program.
37674#
37675# GNU Libtool is distributed in the hope that it will be useful,
37676# but WITHOUT ANY WARRANTY; without even the implied warranty of
37677# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37678# GNU General Public License for more details.
37679#
37680# You should have received a copy of the GNU General Public License
37681# along with GNU Libtool; see the file COPYING. If not, a copy
37682# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37683# obtained by writing to the Free Software Foundation, Inc.,
37684# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37685
37686
37687# The names of the tagged configurations supported by this script.
37688available_tags="CXX "
37689
37690# ### BEGIN LIBTOOL CONFIG
37691
37692# A sed program that does not truncate output.
37693SED=$lt_SED
37694
37695# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37696Xsed="\$SED -e 1s/^X//"
37697
37698# A grep program that handles long lines.
37699GREP=$lt_GREP
37700
37701# An ERE matcher.
37702EGREP=$lt_EGREP
37703
37704# A literal string matcher.
37705FGREP=$lt_FGREP
37706
cristy0c60a692010-11-04 01:09:47 +000037707# Shell to use when invoking shell scripts.
37708SHELL=$lt_SHELL
37709
37710# An echo program that protects backslashes.
37711ECHO=$lt_ECHO
37712
cristy73bd4a52010-10-05 11:24:23 +000037713# Which release of libtool.m4 was used?
37714macro_version=$macro_version
37715macro_revision=$macro_revision
37716
37717# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037718AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037719
37720# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037721DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037722
37723# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037724OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037725
37726# Whether or not to build shared libraries.
37727build_libtool_libs=$enable_shared
37728
37729# Whether or not to build static libraries.
37730build_old_libs=$enable_static
37731
37732# What type of objects to build.
37733pic_mode=$pic_mode
37734
37735# Whether or not to optimize for fast installation.
37736fast_install=$enable_fast_install
37737
cristy99bd5232011-12-07 14:38:20 +000037738# The PATH separator for the build system.
37739PATH_SEPARATOR=$lt_PATH_SEPARATOR
37740
cristy73bd4a52010-10-05 11:24:23 +000037741# The host system.
37742host_alias=$host_alias
37743host=$host
37744host_os=$host_os
37745
37746# The build system.
37747build_alias=$build_alias
37748build=$build
37749build_os=$build_os
37750
37751# A BSD- or MS-compatible name lister.
37752NM=$lt_NM
37753
37754# Whether we need soft or hard links.
37755LN_S=$lt_LN_S
37756
37757# What is the maximum length of a command?
37758max_cmd_len=$max_cmd_len
37759
37760# Object file suffix (normally "o").
37761objext=$ac_objext
37762
37763# Executable file suffix (normally "").
37764exeext=$exeext
37765
37766# whether the shell understands "unset".
37767lt_unset=$lt_unset
37768
37769# turn spaces into newlines.
37770SP2NL=$lt_lt_SP2NL
37771
37772# turn newlines into spaces.
37773NL2SP=$lt_lt_NL2SP
37774
cristyda16f162011-02-19 23:52:17 +000037775# convert \$build file names to \$host format.
37776to_host_file_cmd=$lt_cv_to_host_file_cmd
37777
37778# convert \$build files to toolchain format.
37779to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37780
cristy73bd4a52010-10-05 11:24:23 +000037781# Method to check whether dependent libraries are shared objects.
37782deplibs_check_method=$lt_deplibs_check_method
37783
cristyda16f162011-02-19 23:52:17 +000037784# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037785file_magic_cmd=$lt_file_magic_cmd
37786
cristyda16f162011-02-19 23:52:17 +000037787# How to find potential files when deplibs_check_method = "file_magic".
37788file_magic_glob=$lt_file_magic_glob
37789
37790# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37791want_nocaseglob=$lt_want_nocaseglob
37792
37793# Command to associate shared and link libraries.
37794sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37795
cristy73bd4a52010-10-05 11:24:23 +000037796# The archiver.
37797AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037798
37799# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037800AR_FLAGS=$lt_AR_FLAGS
37801
cristyda16f162011-02-19 23:52:17 +000037802# How to feed a file listing to the archiver.
37803archiver_list_spec=$lt_archiver_list_spec
37804
cristy73bd4a52010-10-05 11:24:23 +000037805# A symbol stripping program.
37806STRIP=$lt_STRIP
37807
37808# Commands used to install an old-style archive.
37809RANLIB=$lt_RANLIB
37810old_postinstall_cmds=$lt_old_postinstall_cmds
37811old_postuninstall_cmds=$lt_old_postuninstall_cmds
37812
cristy0c60a692010-11-04 01:09:47 +000037813# Whether to use a lock for old archive extraction.
37814lock_old_archive_extraction=$lock_old_archive_extraction
37815
cristy73bd4a52010-10-05 11:24:23 +000037816# A C compiler.
37817LTCC=$lt_CC
37818
37819# LTCC compiler flags.
37820LTCFLAGS=$lt_CFLAGS
37821
37822# Take the output of nm and produce a listing of raw symbols and C names.
37823global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37824
37825# Transform the output of nm in a proper C declaration.
37826global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37827
37828# Transform the output of nm in a C name address pair.
37829global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37830
37831# Transform the output of nm in a C name address pair when lib prefix is needed.
37832global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37833
cristyda16f162011-02-19 23:52:17 +000037834# Specify filename containing input files for \$NM.
37835nm_file_list_spec=$lt_nm_file_list_spec
37836
37837# The root where to search for dependent libraries,and in which our libraries should be installed.
37838lt_sysroot=$lt_sysroot
37839
cristy73bd4a52010-10-05 11:24:23 +000037840# The name of the directory that contains temporary libtool files.
37841objdir=$objdir
37842
cristy73bd4a52010-10-05 11:24:23 +000037843# Used to examine libraries when file_magic_cmd begins with "file".
37844MAGIC_CMD=$MAGIC_CMD
37845
37846# Must we lock files when doing compilation?
37847need_locks=$lt_need_locks
37848
cristyda16f162011-02-19 23:52:17 +000037849# Manifest tool.
37850MANIFEST_TOOL=$lt_MANIFEST_TOOL
37851
cristy73bd4a52010-10-05 11:24:23 +000037852# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37853DSYMUTIL=$lt_DSYMUTIL
37854
37855# Tool to change global to local symbols on Mac OS X.
37856NMEDIT=$lt_NMEDIT
37857
37858# Tool to manipulate fat objects and archives on Mac OS X.
37859LIPO=$lt_LIPO
37860
37861# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37862OTOOL=$lt_OTOOL
37863
37864# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37865OTOOL64=$lt_OTOOL64
37866
37867# Old archive suffix (normally "a").
37868libext=$libext
37869
37870# Shared library suffix (normally ".so").
37871shrext_cmds=$lt_shrext_cmds
37872
37873# The commands to extract the exported symbol list from a shared archive.
37874extract_expsyms_cmds=$lt_extract_expsyms_cmds
37875
37876# Variables whose values should be saved in libtool wrapper scripts and
37877# restored at link time.
37878variables_saved_for_relink=$lt_variables_saved_for_relink
37879
37880# Do we need the "lib" prefix for modules?
37881need_lib_prefix=$need_lib_prefix
37882
37883# Do we need a version for libraries?
37884need_version=$need_version
37885
37886# Library versioning type.
37887version_type=$version_type
37888
37889# Shared library runtime path variable.
37890runpath_var=$runpath_var
37891
37892# Shared library path variable.
37893shlibpath_var=$shlibpath_var
37894
37895# Is shlibpath searched before the hard-coded library search path?
37896shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37897
37898# Format of library name prefix.
37899libname_spec=$lt_libname_spec
37900
37901# List of archive names. First name is the real one, the rest are links.
37902# The last name is the one that the linker finds with -lNAME
37903library_names_spec=$lt_library_names_spec
37904
37905# The coded name of the library, if different from the real name.
37906soname_spec=$lt_soname_spec
37907
cristy0c60a692010-11-04 01:09:47 +000037908# Permission mode override for installation of shared libraries.
37909install_override_mode=$lt_install_override_mode
37910
cristy73bd4a52010-10-05 11:24:23 +000037911# Command to use after installation of a shared archive.
37912postinstall_cmds=$lt_postinstall_cmds
37913
37914# Command to use after uninstallation of a shared archive.
37915postuninstall_cmds=$lt_postuninstall_cmds
37916
37917# Commands used to finish a libtool library installation in a directory.
37918finish_cmds=$lt_finish_cmds
37919
37920# As "finish_cmds", except a single script fragment to be evaled but
37921# not shown.
37922finish_eval=$lt_finish_eval
37923
37924# Whether we should hardcode library paths into libraries.
37925hardcode_into_libs=$hardcode_into_libs
37926
37927# Compile-time system search path for libraries.
37928sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37929
37930# Run-time system search path for libraries.
37931sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37932
37933# Whether dlopen is supported.
37934dlopen_support=$enable_dlopen
37935
37936# Whether dlopen of programs is supported.
37937dlopen_self=$enable_dlopen_self
37938
37939# Whether dlopen of statically linked programs is supported.
37940dlopen_self_static=$enable_dlopen_self_static
37941
37942# Commands to strip libraries.
37943old_striplib=$lt_old_striplib
37944striplib=$lt_striplib
37945
37946
37947# The linker used to build libraries.
37948LD=$lt_LD
37949
cristy0c60a692010-11-04 01:09:47 +000037950# How to create reloadable object files.
37951reload_flag=$lt_reload_flag
37952reload_cmds=$lt_reload_cmds
37953
cristy73bd4a52010-10-05 11:24:23 +000037954# Commands used to build an old-style archive.
37955old_archive_cmds=$lt_old_archive_cmds
37956
37957# A language specific compiler.
37958CC=$lt_compiler
37959
37960# Is the compiler the GNU compiler?
37961with_gcc=$GCC
37962
37963# Compiler flag to turn off builtin functions.
37964no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37965
cristy73bd4a52010-10-05 11:24:23 +000037966# Additional compiler flags for building library objects.
37967pic_flag=$lt_lt_prog_compiler_pic
37968
cristyda16f162011-02-19 23:52:17 +000037969# How to pass a linker flag through the compiler.
37970wl=$lt_lt_prog_compiler_wl
37971
cristy73bd4a52010-10-05 11:24:23 +000037972# Compiler flag to prevent dynamic linking.
37973link_static_flag=$lt_lt_prog_compiler_static
37974
37975# Does compiler simultaneously support -c and -o options?
37976compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37977
37978# Whether or not to add -lc for building shared libraries.
37979build_libtool_need_lc=$archive_cmds_need_lc
37980
37981# Whether or not to disallow shared libs when runtime libs are static.
37982allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37983
37984# Compiler flag to allow reflexive dlopens.
37985export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37986
37987# Compiler flag to generate shared objects directly from archives.
37988whole_archive_flag_spec=$lt_whole_archive_flag_spec
37989
37990# Whether the compiler copes with passing no objects directly.
37991compiler_needs_object=$lt_compiler_needs_object
37992
37993# Create an old-style archive from a shared archive.
37994old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37995
37996# Create a temporary old-style archive to link instead of a shared archive.
37997old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37998
37999# Commands used to build a shared archive.
38000archive_cmds=$lt_archive_cmds
38001archive_expsym_cmds=$lt_archive_expsym_cmds
38002
38003# Commands used to build a loadable module if different from building
38004# a shared archive.
38005module_cmds=$lt_module_cmds
38006module_expsym_cmds=$lt_module_expsym_cmds
38007
38008# Whether we are building with GNU ld or not.
38009with_gnu_ld=$lt_with_gnu_ld
38010
38011# Flag that allows shared libraries with undefined symbols to be built.
38012allow_undefined_flag=$lt_allow_undefined_flag
38013
38014# Flag that enforces no undefined symbols.
38015no_undefined_flag=$lt_no_undefined_flag
38016
38017# Flag to hardcode \$libdir into a binary during linking.
38018# This must work even if \$libdir does not exist
38019hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38020
cristy73bd4a52010-10-05 11:24:23 +000038021# Whether we need a single "-rpath" flag with a separated argument.
38022hardcode_libdir_separator=$lt_hardcode_libdir_separator
38023
38024# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38025# DIR into the resulting binary.
38026hardcode_direct=$hardcode_direct
38027
38028# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38029# DIR into the resulting binary and the resulting library dependency is
38030# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38031# library is relocated.
38032hardcode_direct_absolute=$hardcode_direct_absolute
38033
38034# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38035# into the resulting binary.
38036hardcode_minus_L=$hardcode_minus_L
38037
38038# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38039# into the resulting binary.
38040hardcode_shlibpath_var=$hardcode_shlibpath_var
38041
38042# Set to "yes" if building a shared library automatically hardcodes DIR
38043# into the library and all subsequent libraries and executables linked
38044# against it.
38045hardcode_automatic=$hardcode_automatic
38046
38047# Set to yes if linker adds runtime paths of dependent libraries
38048# to runtime path list.
38049inherit_rpath=$inherit_rpath
38050
38051# Whether libtool must link a program against all its dependency libraries.
38052link_all_deplibs=$link_all_deplibs
38053
cristy73bd4a52010-10-05 11:24:23 +000038054# Set to "yes" if exported symbols are required.
38055always_export_symbols=$always_export_symbols
38056
38057# The commands to list exported symbols.
38058export_symbols_cmds=$lt_export_symbols_cmds
38059
38060# Symbols that should not be listed in the preloaded symbols.
38061exclude_expsyms=$lt_exclude_expsyms
38062
38063# Symbols that must always be exported.
38064include_expsyms=$lt_include_expsyms
38065
38066# Commands necessary for linking programs (against libraries) with templates.
38067prelink_cmds=$lt_prelink_cmds
38068
cristyda16f162011-02-19 23:52:17 +000038069# Commands necessary for finishing linking programs.
38070postlink_cmds=$lt_postlink_cmds
38071
cristy73bd4a52010-10-05 11:24:23 +000038072# Specify filename containing input files.
38073file_list_spec=$lt_file_list_spec
38074
38075# How to hardcode a shared library path into an executable.
38076hardcode_action=$hardcode_action
38077
38078# The directories searched by this compiler when creating a shared library.
38079compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38080
38081# Dependencies to place before and after the objects being linked to
38082# create a shared library.
38083predep_objects=$lt_predep_objects
38084postdep_objects=$lt_postdep_objects
38085predeps=$lt_predeps
38086postdeps=$lt_postdeps
38087
38088# The library search path used internally by the compiler when linking
38089# a shared library.
38090compiler_lib_search_path=$lt_compiler_lib_search_path
38091
38092# ### END LIBTOOL CONFIG
38093
38094_LT_EOF
38095
38096 case $host_os in
38097 aix3*)
38098 cat <<\_LT_EOF >> "$cfgfile"
38099# AIX sometimes has problems with the GCC collect2 program. For some
38100# reason, if we set the COLLECT_NAMES environment variable, the problems
38101# vanish in a puff of smoke.
38102if test "X${COLLECT_NAMES+set}" != Xset; then
38103 COLLECT_NAMES=
38104 export COLLECT_NAMES
38105fi
38106_LT_EOF
38107 ;;
38108 esac
38109
38110
38111ltmain="$ac_aux_dir/ltmain.sh"
38112
38113
38114 # We use sed instead of cat because bash on DJGPP gets confused if
38115 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38116 # text mode, it properly converts lines to CR/LF. This bash problem
38117 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038118 sed '$q' "$ltmain" >> "$cfgfile" \
38119 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038120
cristyda16f162011-02-19 23:52:17 +000038121 if test x"$xsi_shell" = xyes; then
38122 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38123func_dirname ()\
38124{\
38125\ case ${1} in\
38126\ */*) func_dirname_result="${1%/*}${2}" ;;\
38127\ * ) func_dirname_result="${3}" ;;\
38128\ esac\
38129} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38130 && mv -f "$cfgfile.tmp" "$cfgfile" \
38131 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38132test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038133
38134
cristyda16f162011-02-19 23:52:17 +000038135 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38136func_basename ()\
38137{\
38138\ func_basename_result="${1##*/}"\
38139} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38140 && mv -f "$cfgfile.tmp" "$cfgfile" \
38141 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38142test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038143
38144
cristyda16f162011-02-19 23:52:17 +000038145 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38146func_dirname_and_basename ()\
38147{\
38148\ case ${1} in\
38149\ */*) func_dirname_result="${1%/*}${2}" ;;\
38150\ * ) func_dirname_result="${3}" ;;\
38151\ esac\
38152\ func_basename_result="${1##*/}"\
38153} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38154 && mv -f "$cfgfile.tmp" "$cfgfile" \
38155 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38156test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038157
cristyda16f162011-02-19 23:52:17 +000038158
38159 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38160func_stripname ()\
38161{\
38162\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38163\ # positional parameters, so assign one to ordinary parameter first.\
38164\ func_stripname_result=${3}\
38165\ func_stripname_result=${func_stripname_result#"${1}"}\
38166\ func_stripname_result=${func_stripname_result%"${2}"}\
38167} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38168 && mv -f "$cfgfile.tmp" "$cfgfile" \
38169 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38170test 0 -eq $? || _lt_function_replace_fail=:
38171
38172
38173 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38174func_split_long_opt ()\
38175{\
38176\ func_split_long_opt_name=${1%%=*}\
38177\ func_split_long_opt_arg=${1#*=}\
38178} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38179 && mv -f "$cfgfile.tmp" "$cfgfile" \
38180 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38181test 0 -eq $? || _lt_function_replace_fail=:
38182
38183
38184 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38185func_split_short_opt ()\
38186{\
38187\ func_split_short_opt_arg=${1#??}\
38188\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38189} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38190 && mv -f "$cfgfile.tmp" "$cfgfile" \
38191 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38192test 0 -eq $? || _lt_function_replace_fail=:
38193
38194
38195 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38196func_lo2o ()\
38197{\
38198\ case ${1} in\
38199\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38200\ *) func_lo2o_result=${1} ;;\
38201\ esac\
38202} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38203 && mv -f "$cfgfile.tmp" "$cfgfile" \
38204 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38205test 0 -eq $? || _lt_function_replace_fail=:
38206
38207
38208 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38209func_xform ()\
38210{\
38211 func_xform_result=${1%.*}.lo\
38212} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38213 && mv -f "$cfgfile.tmp" "$cfgfile" \
38214 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38215test 0 -eq $? || _lt_function_replace_fail=:
38216
38217
38218 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38219func_arith ()\
38220{\
38221 func_arith_result=$(( $* ))\
38222} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38223 && mv -f "$cfgfile.tmp" "$cfgfile" \
38224 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38225test 0 -eq $? || _lt_function_replace_fail=:
38226
38227
38228 sed -e '/^func_len ()$/,/^} # func_len /c\
38229func_len ()\
38230{\
38231 func_len_result=${#1}\
38232} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38233 && mv -f "$cfgfile.tmp" "$cfgfile" \
38234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38235test 0 -eq $? || _lt_function_replace_fail=:
38236
38237fi
38238
38239if test x"$lt_shell_append" = xyes; then
38240 sed -e '/^func_append ()$/,/^} # func_append /c\
38241func_append ()\
38242{\
38243 eval "${1}+=\\${2}"\
38244} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38245 && mv -f "$cfgfile.tmp" "$cfgfile" \
38246 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38247test 0 -eq $? || _lt_function_replace_fail=:
38248
38249
38250 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38251func_append_quoted ()\
38252{\
38253\ func_quote_for_eval "${2}"\
38254\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38255} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38256 && mv -f "$cfgfile.tmp" "$cfgfile" \
38257 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38258test 0 -eq $? || _lt_function_replace_fail=:
38259
38260
38261 # Save a `func_append' function call where possible by direct use of '+='
38262 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38263 && mv -f "$cfgfile.tmp" "$cfgfile" \
38264 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38265 test 0 -eq $? || _lt_function_replace_fail=:
38266else
38267 # Save a `func_append' function call even when '+=' is not available
38268 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38269 && mv -f "$cfgfile.tmp" "$cfgfile" \
38270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38271 test 0 -eq $? || _lt_function_replace_fail=:
38272fi
38273
38274if test x"$_lt_function_replace_fail" = x":"; then
38275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38276$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38277fi
38278
38279
38280 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038281 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38282 chmod +x "$ofile"
38283
38284
38285 cat <<_LT_EOF >> "$ofile"
38286
38287# ### BEGIN LIBTOOL TAG CONFIG: CXX
38288
38289# The linker used to build libraries.
38290LD=$lt_LD_CXX
38291
cristy0c60a692010-11-04 01:09:47 +000038292# How to create reloadable object files.
38293reload_flag=$lt_reload_flag_CXX
38294reload_cmds=$lt_reload_cmds_CXX
38295
cristy73bd4a52010-10-05 11:24:23 +000038296# Commands used to build an old-style archive.
38297old_archive_cmds=$lt_old_archive_cmds_CXX
38298
38299# A language specific compiler.
38300CC=$lt_compiler_CXX
38301
38302# Is the compiler the GNU compiler?
38303with_gcc=$GCC_CXX
38304
38305# Compiler flag to turn off builtin functions.
38306no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38307
cristy73bd4a52010-10-05 11:24:23 +000038308# Additional compiler flags for building library objects.
38309pic_flag=$lt_lt_prog_compiler_pic_CXX
38310
cristyda16f162011-02-19 23:52:17 +000038311# How to pass a linker flag through the compiler.
38312wl=$lt_lt_prog_compiler_wl_CXX
38313
cristy73bd4a52010-10-05 11:24:23 +000038314# Compiler flag to prevent dynamic linking.
38315link_static_flag=$lt_lt_prog_compiler_static_CXX
38316
38317# Does compiler simultaneously support -c and -o options?
38318compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38319
38320# Whether or not to add -lc for building shared libraries.
38321build_libtool_need_lc=$archive_cmds_need_lc_CXX
38322
38323# Whether or not to disallow shared libs when runtime libs are static.
38324allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38325
38326# Compiler flag to allow reflexive dlopens.
38327export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38328
38329# Compiler flag to generate shared objects directly from archives.
38330whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38331
38332# Whether the compiler copes with passing no objects directly.
38333compiler_needs_object=$lt_compiler_needs_object_CXX
38334
38335# Create an old-style archive from a shared archive.
38336old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38337
38338# Create a temporary old-style archive to link instead of a shared archive.
38339old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38340
38341# Commands used to build a shared archive.
38342archive_cmds=$lt_archive_cmds_CXX
38343archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38344
38345# Commands used to build a loadable module if different from building
38346# a shared archive.
38347module_cmds=$lt_module_cmds_CXX
38348module_expsym_cmds=$lt_module_expsym_cmds_CXX
38349
38350# Whether we are building with GNU ld or not.
38351with_gnu_ld=$lt_with_gnu_ld_CXX
38352
38353# Flag that allows shared libraries with undefined symbols to be built.
38354allow_undefined_flag=$lt_allow_undefined_flag_CXX
38355
38356# Flag that enforces no undefined symbols.
38357no_undefined_flag=$lt_no_undefined_flag_CXX
38358
38359# Flag to hardcode \$libdir into a binary during linking.
38360# This must work even if \$libdir does not exist
38361hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38362
cristy73bd4a52010-10-05 11:24:23 +000038363# Whether we need a single "-rpath" flag with a separated argument.
38364hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38365
38366# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38367# DIR into the resulting binary.
38368hardcode_direct=$hardcode_direct_CXX
38369
38370# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38371# DIR into the resulting binary and the resulting library dependency is
38372# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38373# library is relocated.
38374hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38375
38376# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38377# into the resulting binary.
38378hardcode_minus_L=$hardcode_minus_L_CXX
38379
38380# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38381# into the resulting binary.
38382hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38383
38384# Set to "yes" if building a shared library automatically hardcodes DIR
38385# into the library and all subsequent libraries and executables linked
38386# against it.
38387hardcode_automatic=$hardcode_automatic_CXX
38388
38389# Set to yes if linker adds runtime paths of dependent libraries
38390# to runtime path list.
38391inherit_rpath=$inherit_rpath_CXX
38392
38393# Whether libtool must link a program against all its dependency libraries.
38394link_all_deplibs=$link_all_deplibs_CXX
38395
cristy73bd4a52010-10-05 11:24:23 +000038396# Set to "yes" if exported symbols are required.
38397always_export_symbols=$always_export_symbols_CXX
38398
38399# The commands to list exported symbols.
38400export_symbols_cmds=$lt_export_symbols_cmds_CXX
38401
38402# Symbols that should not be listed in the preloaded symbols.
38403exclude_expsyms=$lt_exclude_expsyms_CXX
38404
38405# Symbols that must always be exported.
38406include_expsyms=$lt_include_expsyms_CXX
38407
38408# Commands necessary for linking programs (against libraries) with templates.
38409prelink_cmds=$lt_prelink_cmds_CXX
38410
cristyda16f162011-02-19 23:52:17 +000038411# Commands necessary for finishing linking programs.
38412postlink_cmds=$lt_postlink_cmds_CXX
38413
cristy73bd4a52010-10-05 11:24:23 +000038414# Specify filename containing input files.
38415file_list_spec=$lt_file_list_spec_CXX
38416
38417# How to hardcode a shared library path into an executable.
38418hardcode_action=$hardcode_action_CXX
38419
38420# The directories searched by this compiler when creating a shared library.
38421compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38422
38423# Dependencies to place before and after the objects being linked to
38424# create a shared library.
38425predep_objects=$lt_predep_objects_CXX
38426postdep_objects=$lt_postdep_objects_CXX
38427predeps=$lt_predeps_CXX
38428postdeps=$lt_postdeps_CXX
38429
38430# The library search path used internally by the compiler when linking
38431# a shared library.
38432compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38433
38434# ### END LIBTOOL TAG CONFIG: CXX
38435_LT_EOF
38436
38437 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038438 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038439 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038440 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038441 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38442 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38443
38444 esac
38445done # for ac_tag
38446
38447
cristy8b350f62009-11-15 23:12:43 +000038448as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038449_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038450ac_clean_files=$ac_clean_files_save
38451
38452test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038453 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038454
38455
38456# configure is writing to config.log, and then calls config.status.
38457# config.status does its own redirection, appending to config.log.
38458# Unfortunately, on DOS this fails, as config.log is still kept open
38459# by configure, so config.status won't be able to write to it; its
38460# output is simply discarded. So we exec the FD to /dev/null,
38461# effectively closing config.log, so it can be properly (re)opened and
38462# appended to by config.status. When coming back to configure, we
38463# need to make the FD available again.
38464if test "$no_create" != yes; then
38465 ac_cs_success=:
38466 ac_config_status_args=
38467 test "$silent" = yes &&
38468 ac_config_status_args="$ac_config_status_args --quiet"
38469 exec 5>/dev/null
38470 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38471 exec 5>>config.log
38472 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38473 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038474 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038475fi
38476if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038478$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38479fi
38480
38481
38482rm -f magick-version
38483
cristy430a7312010-01-21 20:44:04 +000038484result_dejavu_font_dir='none'
38485if test "${dejavu_font_dir}x" != 'x'; then
38486 result_dejavu_font_dir=$dejavu_font_dir
38487fi
38488
cristy3ed852e2009-09-05 21:47:34 +000038489result_ghostscript_font_dir='none'
38490if test "${ghostscript_font_dir}x" != 'x'; then
38491 result_ghostscript_font_dir=$ghostscript_font_dir
38492fi
38493
38494result_windows_font_dir='none'
38495if test "${windows_font_dir}x" != 'x'; then
38496 result_windows_font_dir=${windows_font_dir}
38497fi
38498
cristyad38abe2012-12-23 23:03:21 +000038499{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038500ImageMagick is configured as follows. Please verify that this configuration
38501matches your expectations.
38502
38503Host system type: $host
38504Build system type: $build
38505
38506 Option Value
38507-------------------------------------------------------------------------------
38508Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38509Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038510Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038511GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38512Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38513High Dynamic Range Imagery
38514 --enable-hdri=$enable_hdri $enable_hdri
38515
38516Delegate Configuration:
38517BZLIB --with-bzlib=$with_bzlib $have_bzlib
38518Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038519Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038520DJVU --with-djvu=$with_djvu $have_djvu
38521DPS --with-dps=$with_dps $have_dps
38522FFTW --with-fftw=$with_fftw $have_fftw
38523FlashPIX --with-fpx=$with_fpx $have_fpx
38524FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38525FreeType --with-freetype=$with_freetype $have_freetype
38526GhostPCL None $PCLDelegate ($PCLVersion)
38527GhostXPS None $XPSDelegate ($XPSVersion)
38528Ghostscript None $PSDelegate ($GSVersion)
38529Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38530Ghostscript lib --with-gslib=$with_gslib $have_gslib
38531Graphviz --with-gvc=$with_gvc $have_gvc
38532JBIG --with-jbig=$with_jbig $have_jbig
38533JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38534JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038535LCMS v1 --with-lcms=$with_lcms $have_lcms
38536LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038537LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038538LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038539LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038540Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38541OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038542PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038543PERL --with-perl=$with_perl $have_perl
38544PNG --with-png=$with_png $have_png
38545RSVG --with-rsvg=$with_rsvg $have_rsvg
38546TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038547WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038548Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038549WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038550X11 --with-x=$with_x $have_x
38551XML --with-xml=$with_xml $have_xml
38552ZLIB --with-zlib=$with_zlib $have_zlib
38553
38554X11 Configuration:
38555 X_CFLAGS = $X_CFLAGS
38556 X_PRE_LIBS = $X_PRE_LIBS
38557 X_LIBS = $X_LIBS
38558 X_EXTRA_LIBS = $X_EXTRA_LIBS
38559
38560Options used to compile and link:
38561 PREFIX = $PREFIX_DIR
38562 EXEC-PREFIX = $EXEC_PREFIX_DIR
38563 VERSION = $PACKAGE_VERSION
38564 CC = $CC
38565 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038566 CPPFLAGS = $MAGICK_CPPFLAGS
38567 PCFLAGS = $MAGICK_PCFLAGS
38568 DEFS = $DEFS
38569 LDFLAGS = $LDFLAGS
38570 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38571 LIBS = $MAGICK_LIBS
38572 CXX = $CXX
38573 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038574 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038575 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038576" >&5
cristyad38abe2012-12-23 23:03:21 +000038577$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038578ImageMagick is configured as follows. Please verify that this configuration
38579matches your expectations.
38580
38581Host system type: $host
38582Build system type: $build
38583
38584 Option Value
38585-------------------------------------------------------------------------------
38586Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38587Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038588Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038589GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38590Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38591High Dynamic Range Imagery
38592 --enable-hdri=$enable_hdri $enable_hdri
38593
38594Delegate Configuration:
38595BZLIB --with-bzlib=$with_bzlib $have_bzlib
38596Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038597Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038598DJVU --with-djvu=$with_djvu $have_djvu
38599DPS --with-dps=$with_dps $have_dps
38600FFTW --with-fftw=$with_fftw $have_fftw
38601FlashPIX --with-fpx=$with_fpx $have_fpx
38602FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38603FreeType --with-freetype=$with_freetype $have_freetype
38604GhostPCL None $PCLDelegate ($PCLVersion)
38605GhostXPS None $XPSDelegate ($XPSVersion)
38606Ghostscript None $PSDelegate ($GSVersion)
38607Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38608Ghostscript lib --with-gslib=$with_gslib $have_gslib
38609Graphviz --with-gvc=$with_gvc $have_gvc
38610JBIG --with-jbig=$with_jbig $have_jbig
38611JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38612JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038613LCMS v1 --with-lcms=$with_lcms $have_lcms
38614LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038615LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038616LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038617LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038618Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38619OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038620PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038621PERL --with-perl=$with_perl $have_perl
38622PNG --with-png=$with_png $have_png
38623RSVG --with-rsvg=$with_rsvg $have_rsvg
38624TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038625WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038626Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038627WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038628X11 --with-x=$with_x $have_x
38629XML --with-xml=$with_xml $have_xml
38630ZLIB --with-zlib=$with_zlib $have_zlib
38631
38632X11 Configuration:
38633 X_CFLAGS = $X_CFLAGS
38634 X_PRE_LIBS = $X_PRE_LIBS
38635 X_LIBS = $X_LIBS
38636 X_EXTRA_LIBS = $X_EXTRA_LIBS
38637
38638Options used to compile and link:
38639 PREFIX = $PREFIX_DIR
38640 EXEC-PREFIX = $EXEC_PREFIX_DIR
38641 VERSION = $PACKAGE_VERSION
38642 CC = $CC
38643 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038644 CPPFLAGS = $MAGICK_CPPFLAGS
38645 PCFLAGS = $MAGICK_PCFLAGS
38646 DEFS = $DEFS
38647 LDFLAGS = $LDFLAGS
38648 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38649 LIBS = $MAGICK_LIBS
38650 CXX = $CXX
38651 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038652 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038653 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038654" >&6; }