blob: 922e5eda2e2358b07b0fdece9e3a829e49cdce4c [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
cristy71f53d52013-04-27 13:33:59 +0000714JXREncodeDelegate
715JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716ILBMEncodeDelegate
717ILBMDecodeDelegate
718HTMLDecodeDelegate
719HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000720GnuplotDecodeDelegate
721MogrifyDelegate
722DisplayDelegate
723ConvertDelegate
724FIGDecodeDelegate
725EditorDelegate
726EchoDelegate
727DVIDecodeDelegate
728GVCDecodeDelegate
729DNGDecodeDelegate
730CatDelegate
731CGMDecodeDelegate
732BrowseDelegate
733BZIPDelegate
734BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000735AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000736SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000737SHAREARCH_RELATIVE_PATH
738SHAREARCH_DIRNAME
739SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000740SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000741CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000742DOCUMENTATION_PATH
743FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000745CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000746CODER_DIRNAME
747MODULES_PATH
748MODULES_RELATIVE_PATH
749MODULES_DIRNAME
750MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000751LIB_BIN_DIR_PATH
752LIB_BIN_DIR_RELATIVE_PATH
753LIB_BIN_DIR
754LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000755LIBRARY_PATH
756EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000757INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000758INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000759PERLMAINCC
760XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000761XML_DELEGATE_FALSE
762XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000763xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000764WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000765WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766WMF_DELEGATE_FALSE
767WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000768WEBP_LIBS
769WEBP_DELEGATE_FALSE
770WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772TIFF_DELEGATE_FALSE
773TIFF_DELEGATE_TRUE
774CAIRO_DELEGATE_FALSE
775CAIRO_DELEGATE_TRUE
776RSVG_DELEGATE_FALSE
777RSVG_DELEGATE_TRUE
778CAIRO_SVG_LIBS
779CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000780RSVG_LIBS
781RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000782PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783PNG_DELEGATE_FALSE
784PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000785PANGOCAIRO_DELEGATE_FALSE
786PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000787PANGO_DELEGATE_FALSE
788PANGO_DELEGATE_TRUE
789PANGO_LIBS
790PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000791OPENEXR_DELEGATE_FALSE
792OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793OPENEXR_LIBS
794OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000795LZMA_DELEGATE_FALSE
796LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000797LZMA_LIBS
798LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000799LQR_DELEGATE_FALSE
800LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000801LQR_LIBS
802LQR_CFLAGS
803LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804LCMS_DELEGATE_FALSE
805LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807JP2_DELEGATE_FALSE
808JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810JPEG_DELEGATE_FALSE
811JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813JBIG_DELEGATE_FALSE
814JBIG_DELEGATE_TRUE
815GVC_DELEGATE_FALSE
816GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000817GVC_LIBS
818GVC_CFLAGS
819GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000820GS_DELEGATE_FALSE
821GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000822FREETYPE_DELEGATE_FALSE
823FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000824FREETYPE_LIBS
825FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000826FONTCONFIG_DELEGATE_FALSE
827FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828FONTCONFIG_LIBS
829FONTCONFIG_CFLAGS
830FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831FPX_DELEGATE_FALSE
832FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834FFTW_DELEGATE_FALSE
835FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000837DJVU_DELEGATE_FALSE
838DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000840DPS_DELEGATE_FALSE
841DPS_DELEGATE_TRUE
842AUTOTRACE_DELEGATE_FALSE
843AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844AUTOTRACE_LIBS
845AUTOTRACE_CFLAGS
846LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000847WITH_LTDL_FALSE
848WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000849ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000850ZLIB_DELEGATE_FALSE
851ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000852XEXT_LIBS
853X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000854X11_DELEGATE_FALSE
855X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856X_EXTRA_LIBS
857X_LIBS
858X_PRE_LIBS
859X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000860XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000861BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000862BZLIB_DELEGATE_FALSE
863BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000864CCMALLOCDelegate
865UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000866HasUMEM_FALSE
867HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000868THREAD_LIBS
869GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000870WITH_MAGICK_PLUS_PLUS_FALSE
871WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000872OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000873MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000874POW_LIB
875LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000876UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000877UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000878UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000879UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000880UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000881UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000882INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000883INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000884UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000885UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000886INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000887INT32_T
888UINT16_T
889INT16_T
890UINT8_T
891INT8_T
892LIBRARY_EXTRA_CPPFLAGS
893MODULE_EXTRA_CPPFLAGS
894LIBSTDCLDFLAGS
895PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000896MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000897MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000898QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000899LEGACY_SUPPORT_FALSE
900LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000901MAINT
902MAINTAINER_MODE_FALSE
903MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000904MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000905WITH_MODULES_FALSE
906WITH_MODULES_TRUE
907WITH_SHARED_LIBS_FALSE
908WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000909LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000910CXXCPP
911OTOOL64
912OTOOL
913LIPO
914NMEDIT
915DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000916MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000917RANLIB
cristyda16f162011-02-19 23:52:17 +0000918ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000919AR
920NM
921ac_ct_DUMPBIN
922DUMPBIN
923LIBTOOL
924OBJDUMP
925DLLTOOL
926AS
cristy3ed852e2009-09-05 21:47:34 +0000927LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000928CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000929CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000930OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000931PTHREAD_CFLAGS
932PTHREAD_LIBS
933PTHREAD_CC
934ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000935pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000936SHAREARCH_DIR
937INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000938WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000939USING_CL_FALSE
940USING_CL_TRUE
941CYGWIN_BUILD_FALSE
942CYGWIN_BUILD_TRUE
943WIN32_NATIVE_BUILD_FALSE
944WIN32_NATIVE_BUILD_TRUE
945WINGDI32_DELEGATE_FALSE
946WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000947GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000948HAVE_LD_VERSION_SCRIPT_FALSE
949HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000950PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000951PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000952LN_S
cristy3ed852e2009-09-05 21:47:34 +0000953LD
cristy73bd4a52010-10-05 11:24:23 +0000954FGREP
955SED
956am__fastdepCXX_FALSE
957am__fastdepCXX_TRUE
958CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000959ac_ct_CXX
960CXXFLAGS
961CXX
cristya0b81c32010-01-22 02:54:33 +0000962EGREP
963GREP
964CPP
cristy73bd4a52010-10-05 11:24:23 +0000965am__fastdepCC_FALSE
966am__fastdepCC_TRUE
967CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000968am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000969AMDEPBACKSLASH
970AMDEP_FALSE
971AMDEP_TRUE
972am__quote
973am__include
974DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000975OBJEXT
976EXEEXT
977ac_ct_CC
978CPPFLAGS
979LDFLAGS
980CFLAGS
981CC
982DIRSEP
983MAGICK_FILTER_MODULE_PATH
984MAGICK_CONFIGURE_BUILD_PATH
985MAGICK_CONFIGURE_SRC_PATH
986MAGICK_CODER_MODULE_PATH
987MAN_DIR
988INFO_DIR
989PERSISTINCLUDE_DIR
990INCLUDE_DIR
991LIB_DIR
992LOCALSTATE_DIR
993SHAREDSTATE_DIR
994SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000995DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000996DATA_DIR
997LIBEXEC_DIR
998SBIN_DIR
999BIN_DIR
1000EXEC_PREFIX_DIR
1001PREFIX_DIR
1002CONFIG_STATUS_DEPENDENCIES
1003MAGICK_LIB_VERSION_NUMBER
1004MAGICK_LIB_VERSION_TEXT
1005MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001006AM_BACKSLASH
1007AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001008AM_DEFAULT_V
1009AM_V
cristy73bd4a52010-10-05 11:24:23 +00001010am__untar
1011am__tar
1012AMTAR
1013am__leading_dot
1014SET_MAKE
1015AWK
1016mkdir_p
1017MKDIR_P
1018INSTALL_STRIP_PROGRAM
1019STRIP
1020install_sh
1021MAKEINFO
1022AUTOHEADER
1023AUTOMAKE
1024AUTOCONF
1025ACLOCAL
1026VERSION
1027PACKAGE
1028CYGPATH_W
1029am__isrc
1030INSTALL_DATA
1031INSTALL_SCRIPT
1032INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001033PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001034PACKAGE_RELEASE_DATE
1035PACKAGE_LIB_VERSION_NUMBER
1036PACKAGE_LIB_VERSION
1037PACKAGE_CHANGE_DATE
1038PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001039PACKAGE_PERL_VERSION
cristybab87c32010-02-09 20:54:22 +00001040MAGICK_LIBRARY_VERSION_INFO
1041MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001042MAGICK_LIBRARY_AGE
1043MAGICK_LIBRARY_REVISION
1044MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001045MAGICK_SVN_REVISION
1046MAGICK_VERSION
1047MAGICK_PATCHLEVEL_VERSION
1048MAGICK_MICRO_VERSION
1049MAGICK_MINOR_VERSION
1050MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001051MAGICK_TARGET_OS
1052MAGICK_TARGET_VENDOR
1053MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001054target_os
1055target_vendor
1056target_cpu
1057target
1058host_os
1059host_vendor
1060host_cpu
1061host
1062build_os
1063build_vendor
1064build_cpu
1065build
1066CONFIGURE_ARGS
1067DISTCHECK_CONFIG_FLAGS
1068target_alias
1069host_alias
1070build_alias
1071LIBS
1072ECHO_T
1073ECHO_N
1074ECHO_C
1075DEFS
1076mandir
1077localedir
1078libdir
1079psdir
1080pdfdir
1081dvidir
1082htmldir
1083infodir
1084docdir
1085oldincludedir
1086includedir
1087localstatedir
1088sharedstatedir
1089sysconfdir
1090datadir
1091datarootdir
1092libexecdir
1093sbindir
1094bindir
1095program_transform_name
1096prefix
1097exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001098PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001099PACKAGE_BUGREPORT
1100PACKAGE_STRING
1101PACKAGE_VERSION
1102PACKAGE_TARNAME
1103PACKAGE_NAME
1104PATH_SEPARATOR
1105SHELL'
1106ac_subst_files=''
1107ac_user_opts='
1108enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001109enable_silent_rules
1110enable_dependency_tracking
1111with_gnu_ld
1112with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001113with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001114enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001115enable_bounds_checking
1116enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001117with_includearch_dir
1118with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001119with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001120with_threads
1121enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001122enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001123enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001124enable_shared
1125enable_static
1126with_pic
1127enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001128with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001129enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001130with_modules
1131enable_delegate_build
1132enable_deprecated
1133enable_installed
1134enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001135enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001136enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001137enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001138enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001139enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001140enable_ccmalloc
1141enable_efence
1142enable_prof
1143enable_gprof
1144enable_gcov
1145with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001146enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001147with_quantum_depth
1148with_cache
1149with_frozenpaths
1150with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001151with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001152with_perl
1153with_perl_options
1154with_umem
1155with_libstdc
1156with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001157with_x
cristy3ed852e2009-09-05 21:47:34 +00001158with_zlib
1159with_autotrace
1160with_dps
1161with_djvu
cristy430a7312010-01-21 20:44:04 +00001162with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001163with_fftw
1164with_fpx
1165with_fontconfig
1166with_freetype
1167with_gslib
1168with_fontpath
1169with_gs_font_dir
1170with_gvc
1171with_jbig
1172with_jpeg
1173with_jp2
1174with_lcms
cristy71203402010-06-18 13:12:03 +00001175with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001176with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001177with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001178with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001179with_pango
cristy3ed852e2009-09-05 21:47:34 +00001180with_png
1181with_rsvg
1182with_tiff
cristyb1860752011-03-14 00:27:46 +00001183with_webp
cristy3ed852e2009-09-05 21:47:34 +00001184with_windows_font_dir
1185with_wmf
1186with_xml
1187'
1188 ac_precious_vars='build_alias
1189host_alias
1190target_alias
1191CC
1192CFLAGS
1193LDFLAGS
1194LIBS
1195CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001196CPP
cristy3ed852e2009-09-05 21:47:34 +00001197CXX
1198CXXFLAGS
1199CCC
cristy73bd4a52010-10-05 11:24:23 +00001200PKG_CONFIG
1201CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001202XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001203AUTOTRACE_CFLAGS
1204AUTOTRACE_LIBS
1205FONTCONFIG_CFLAGS
1206FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001207FREETYPE_CFLAGS
1208FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001209GVC_CFLAGS
1210GVC_LIBS
1211LQR_CFLAGS
1212LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001213LZMA_CFLAGS
1214LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001215OPENEXR_CFLAGS
1216OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001217PANGO_CFLAGS
1218PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001219RSVG_CFLAGS
1220RSVG_LIBS
1221CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001222CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001223
1224
1225# Initialize some variables set by options.
1226ac_init_help=
1227ac_init_version=false
1228ac_unrecognized_opts=
1229ac_unrecognized_sep=
1230# The variables have the same names as the options, with
1231# dashes changed to underlines.
1232cache_file=/dev/null
1233exec_prefix=NONE
1234no_create=
1235no_recursion=
1236prefix=NONE
1237program_prefix=NONE
1238program_suffix=NONE
1239program_transform_name=s,x,x,
1240silent=
1241site=
1242srcdir=
1243verbose=
1244x_includes=NONE
1245x_libraries=NONE
1246
1247# Installation directory options.
1248# These are left unexpanded so users can "make install exec_prefix=/foo"
1249# and all the variables that are supposed to be based on exec_prefix
1250# by default will actually change.
1251# Use braces instead of parens because sh, perl, etc. also accept them.
1252# (The list follows the same order as the GNU Coding Standards.)
1253bindir='${exec_prefix}/bin'
1254sbindir='${exec_prefix}/sbin'
1255libexecdir='${exec_prefix}/libexec'
1256datarootdir='${prefix}/share'
1257datadir='${datarootdir}'
1258sysconfdir='${prefix}/etc'
1259sharedstatedir='${prefix}/com'
1260localstatedir='${prefix}/var'
1261includedir='${prefix}/include'
1262oldincludedir='/usr/include'
1263docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1264infodir='${datarootdir}/info'
1265htmldir='${docdir}'
1266dvidir='${docdir}'
1267pdfdir='${docdir}'
1268psdir='${docdir}'
1269libdir='${exec_prefix}/lib'
1270localedir='${datarootdir}/locale'
1271mandir='${datarootdir}/man'
1272
1273ac_prev=
1274ac_dashdash=
1275for ac_option
1276do
1277 # If the previous option needs an argument, assign it.
1278 if test -n "$ac_prev"; then
1279 eval $ac_prev=\$ac_option
1280 ac_prev=
1281 continue
1282 fi
1283
1284 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001285 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1286 *=) ac_optarg= ;;
1287 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001288 esac
1289
1290 # Accept the important Cygnus configure options, so we can diagnose typos.
1291
1292 case $ac_dashdash$ac_option in
1293 --)
1294 ac_dashdash=yes ;;
1295
1296 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1297 ac_prev=bindir ;;
1298 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1299 bindir=$ac_optarg ;;
1300
1301 -build | --build | --buil | --bui | --bu)
1302 ac_prev=build_alias ;;
1303 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1304 build_alias=$ac_optarg ;;
1305
1306 -cache-file | --cache-file | --cache-fil | --cache-fi \
1307 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1308 ac_prev=cache_file ;;
1309 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1310 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1311 cache_file=$ac_optarg ;;
1312
1313 --config-cache | -C)
1314 cache_file=config.cache ;;
1315
1316 -datadir | --datadir | --datadi | --datad)
1317 ac_prev=datadir ;;
1318 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1319 datadir=$ac_optarg ;;
1320
1321 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1322 | --dataroo | --dataro | --datar)
1323 ac_prev=datarootdir ;;
1324 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1325 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1326 datarootdir=$ac_optarg ;;
1327
1328 -disable-* | --disable-*)
1329 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001332 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001333 ac_useropt_orig=$ac_useropt
1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1336 *"
1337"enable_$ac_useropt"
1338"*) ;;
1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1340 ac_unrecognized_sep=', ';;
1341 esac
1342 eval enable_$ac_useropt=no ;;
1343
1344 -docdir | --docdir | --docdi | --doc | --do)
1345 ac_prev=docdir ;;
1346 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1347 docdir=$ac_optarg ;;
1348
1349 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1350 ac_prev=dvidir ;;
1351 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1352 dvidir=$ac_optarg ;;
1353
1354 -enable-* | --enable-*)
1355 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001358 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001359 ac_useropt_orig=$ac_useropt
1360 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361 case $ac_user_opts in
1362 *"
1363"enable_$ac_useropt"
1364"*) ;;
1365 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1366 ac_unrecognized_sep=', ';;
1367 esac
1368 eval enable_$ac_useropt=\$ac_optarg ;;
1369
1370 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1371 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1372 | --exec | --exe | --ex)
1373 ac_prev=exec_prefix ;;
1374 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1375 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1376 | --exec=* | --exe=* | --ex=*)
1377 exec_prefix=$ac_optarg ;;
1378
1379 -gas | --gas | --ga | --g)
1380 # Obsolete; use --with-gas.
1381 with_gas=yes ;;
1382
1383 -help | --help | --hel | --he | -h)
1384 ac_init_help=long ;;
1385 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1386 ac_init_help=recursive ;;
1387 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1388 ac_init_help=short ;;
1389
1390 -host | --host | --hos | --ho)
1391 ac_prev=host_alias ;;
1392 -host=* | --host=* | --hos=* | --ho=*)
1393 host_alias=$ac_optarg ;;
1394
1395 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1396 ac_prev=htmldir ;;
1397 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1398 | --ht=*)
1399 htmldir=$ac_optarg ;;
1400
1401 -includedir | --includedir | --includedi | --included | --include \
1402 | --includ | --inclu | --incl | --inc)
1403 ac_prev=includedir ;;
1404 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1405 | --includ=* | --inclu=* | --incl=* | --inc=*)
1406 includedir=$ac_optarg ;;
1407
1408 -infodir | --infodir | --infodi | --infod | --info | --inf)
1409 ac_prev=infodir ;;
1410 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1411 infodir=$ac_optarg ;;
1412
1413 -libdir | --libdir | --libdi | --libd)
1414 ac_prev=libdir ;;
1415 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1416 libdir=$ac_optarg ;;
1417
1418 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1419 | --libexe | --libex | --libe)
1420 ac_prev=libexecdir ;;
1421 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1422 | --libexe=* | --libex=* | --libe=*)
1423 libexecdir=$ac_optarg ;;
1424
1425 -localedir | --localedir | --localedi | --localed | --locale)
1426 ac_prev=localedir ;;
1427 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1428 localedir=$ac_optarg ;;
1429
1430 -localstatedir | --localstatedir | --localstatedi | --localstated \
1431 | --localstate | --localstat | --localsta | --localst | --locals)
1432 ac_prev=localstatedir ;;
1433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1434 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1435 localstatedir=$ac_optarg ;;
1436
1437 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1438 ac_prev=mandir ;;
1439 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1440 mandir=$ac_optarg ;;
1441
1442 -nfp | --nfp | --nf)
1443 # Obsolete; use --without-fp.
1444 with_fp=no ;;
1445
1446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1447 | --no-cr | --no-c | -n)
1448 no_create=yes ;;
1449
1450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1452 no_recursion=yes ;;
1453
1454 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1455 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1456 | --oldin | --oldi | --old | --ol | --o)
1457 ac_prev=oldincludedir ;;
1458 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1459 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1460 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1461 oldincludedir=$ac_optarg ;;
1462
1463 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1464 ac_prev=prefix ;;
1465 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1466 prefix=$ac_optarg ;;
1467
1468 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1469 | --program-pre | --program-pr | --program-p)
1470 ac_prev=program_prefix ;;
1471 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1472 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1473 program_prefix=$ac_optarg ;;
1474
1475 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1476 | --program-suf | --program-su | --program-s)
1477 ac_prev=program_suffix ;;
1478 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1479 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1480 program_suffix=$ac_optarg ;;
1481
1482 -program-transform-name | --program-transform-name \
1483 | --program-transform-nam | --program-transform-na \
1484 | --program-transform-n | --program-transform- \
1485 | --program-transform | --program-transfor \
1486 | --program-transfo | --program-transf \
1487 | --program-trans | --program-tran \
1488 | --progr-tra | --program-tr | --program-t)
1489 ac_prev=program_transform_name ;;
1490 -program-transform-name=* | --program-transform-name=* \
1491 | --program-transform-nam=* | --program-transform-na=* \
1492 | --program-transform-n=* | --program-transform-=* \
1493 | --program-transform=* | --program-transfor=* \
1494 | --program-transfo=* | --program-transf=* \
1495 | --program-trans=* | --program-tran=* \
1496 | --progr-tra=* | --program-tr=* | --program-t=*)
1497 program_transform_name=$ac_optarg ;;
1498
1499 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1500 ac_prev=pdfdir ;;
1501 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1502 pdfdir=$ac_optarg ;;
1503
1504 -psdir | --psdir | --psdi | --psd | --ps)
1505 ac_prev=psdir ;;
1506 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1507 psdir=$ac_optarg ;;
1508
1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1510 | -silent | --silent | --silen | --sile | --sil)
1511 silent=yes ;;
1512
1513 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1514 ac_prev=sbindir ;;
1515 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1516 | --sbi=* | --sb=*)
1517 sbindir=$ac_optarg ;;
1518
1519 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1520 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1521 | --sharedst | --shareds | --shared | --share | --shar \
1522 | --sha | --sh)
1523 ac_prev=sharedstatedir ;;
1524 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1525 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1526 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1527 | --sha=* | --sh=*)
1528 sharedstatedir=$ac_optarg ;;
1529
1530 -site | --site | --sit)
1531 ac_prev=site ;;
1532 -site=* | --site=* | --sit=*)
1533 site=$ac_optarg ;;
1534
1535 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1536 ac_prev=srcdir ;;
1537 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1538 srcdir=$ac_optarg ;;
1539
1540 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1541 | --syscon | --sysco | --sysc | --sys | --sy)
1542 ac_prev=sysconfdir ;;
1543 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1544 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1545 sysconfdir=$ac_optarg ;;
1546
1547 -target | --target | --targe | --targ | --tar | --ta | --t)
1548 ac_prev=target_alias ;;
1549 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1550 target_alias=$ac_optarg ;;
1551
1552 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1553 verbose=yes ;;
1554
1555 -version | --version | --versio | --versi | --vers | -V)
1556 ac_init_version=: ;;
1557
1558 -with-* | --with-*)
1559 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1560 # Reject names that are not valid shell variable names.
1561 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001562 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001563 ac_useropt_orig=$ac_useropt
1564 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1565 case $ac_user_opts in
1566 *"
1567"with_$ac_useropt"
1568"*) ;;
1569 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1570 ac_unrecognized_sep=', ';;
1571 esac
1572 eval with_$ac_useropt=\$ac_optarg ;;
1573
1574 -without-* | --without-*)
1575 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1576 # Reject names that are not valid shell variable names.
1577 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001578 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001579 ac_useropt_orig=$ac_useropt
1580 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1581 case $ac_user_opts in
1582 *"
1583"with_$ac_useropt"
1584"*) ;;
1585 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1586 ac_unrecognized_sep=', ';;
1587 esac
1588 eval with_$ac_useropt=no ;;
1589
1590 --x)
1591 # Obsolete; use --with-x.
1592 with_x=yes ;;
1593
1594 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1595 | --x-incl | --x-inc | --x-in | --x-i)
1596 ac_prev=x_includes ;;
1597 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1598 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1599 x_includes=$ac_optarg ;;
1600
1601 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1602 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1603 ac_prev=x_libraries ;;
1604 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1605 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1606 x_libraries=$ac_optarg ;;
1607
cristy98dddb52010-11-04 00:30:15 +00001608 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1609Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001610 ;;
1611
1612 *=*)
1613 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1614 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001615 case $ac_envvar in #(
1616 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001617 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001618 esac
cristy3ed852e2009-09-05 21:47:34 +00001619 eval $ac_envvar=\$ac_optarg
1620 export $ac_envvar ;;
1621
1622 *)
1623 # FIXME: should be removed in autoconf 3.0.
1624 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1625 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1626 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001627 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001628 ;;
1629
1630 esac
1631done
1632
1633if test -n "$ac_prev"; then
1634 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001635 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001636fi
1637
1638if test -n "$ac_unrecognized_opts"; then
1639 case $enable_option_checking in
1640 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001641 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001642 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1643 esac
1644fi
1645
1646# Check all directory arguments for consistency.
1647for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1648 datadir sysconfdir sharedstatedir localstatedir includedir \
1649 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1650 libdir localedir mandir
1651do
1652 eval ac_val=\$$ac_var
1653 # Remove trailing slashes.
1654 case $ac_val in
1655 */ )
1656 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1657 eval $ac_var=\$ac_val;;
1658 esac
1659 # Be sure to have absolute directory names.
1660 case $ac_val in
1661 [\\/$]* | ?:[\\/]* ) continue;;
1662 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1663 esac
cristy98dddb52010-11-04 00:30:15 +00001664 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001665done
1666
1667# There might be people who depend on the old broken behavior: `$host'
1668# used to hold the argument of --host etc.
1669# FIXME: To remove some day.
1670build=$build_alias
1671host=$host_alias
1672target=$target_alias
1673
1674# FIXME: To remove some day.
1675if test "x$host_alias" != x; then
1676 if test "x$build_alias" = x; then
1677 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001678 elif test "x$build_alias" != "x$host_alias"; then
1679 cross_compiling=yes
1680 fi
1681fi
1682
1683ac_tool_prefix=
1684test -n "$host_alias" && ac_tool_prefix=$host_alias-
1685
1686test "$silent" = yes && exec 6>/dev/null
1687
1688
1689ac_pwd=`pwd` && test -n "$ac_pwd" &&
1690ac_ls_di=`ls -di .` &&
1691ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001692 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001693test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001694 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001695
1696
1697# Find the source files, if location was not specified.
1698if test -z "$srcdir"; then
1699 ac_srcdir_defaulted=yes
1700 # Try the directory containing this script, then the parent directory.
1701 ac_confdir=`$as_dirname -- "$as_myself" ||
1702$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1703 X"$as_myself" : 'X\(//\)[^/]' \| \
1704 X"$as_myself" : 'X\(//\)$' \| \
1705 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1706$as_echo X"$as_myself" |
1707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1708 s//\1/
1709 q
1710 }
1711 /^X\(\/\/\)[^/].*/{
1712 s//\1/
1713 q
1714 }
1715 /^X\(\/\/\)$/{
1716 s//\1/
1717 q
1718 }
1719 /^X\(\/\).*/{
1720 s//\1/
1721 q
1722 }
1723 s/.*/./; q'`
1724 srcdir=$ac_confdir
1725 if test ! -r "$srcdir/$ac_unique_file"; then
1726 srcdir=..
1727 fi
1728else
1729 ac_srcdir_defaulted=no
1730fi
1731if test ! -r "$srcdir/$ac_unique_file"; then
1732 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001733 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001734fi
1735ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1736ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001737 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001738 pwd)`
1739# When building in place, set srcdir=.
1740if test "$ac_abs_confdir" = "$ac_pwd"; then
1741 srcdir=.
1742fi
1743# Remove unnecessary trailing slashes from srcdir.
1744# Double slashes in file names in object file debugging info
1745# mess up M-x gdb in Emacs.
1746case $srcdir in
1747*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1748esac
1749for ac_var in $ac_precious_vars; do
1750 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1751 eval ac_env_${ac_var}_value=\$${ac_var}
1752 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1753 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1754done
1755
1756#
1757# Report the --help message.
1758#
1759if test "$ac_init_help" = "long"; then
1760 # Omit some internal or obsolete options to make the list less imposing.
1761 # This message is too long to be a string in the A/UX 3.1 sh.
1762 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001763\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001764
1765Usage: $0 [OPTION]... [VAR=VALUE]...
1766
1767To assign environment variables (e.g., CC, CFLAGS...), specify them as
1768VAR=VALUE. See below for descriptions of some of the useful variables.
1769
1770Defaults for the options are specified in brackets.
1771
1772Configuration:
1773 -h, --help display this help and exit
1774 --help=short display options specific to this package
1775 --help=recursive display the short help of all the included packages
1776 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001777 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001778 --cache-file=FILE cache test results in FILE [disabled]
1779 -C, --config-cache alias for \`--cache-file=config.cache'
1780 -n, --no-create do not create output files
1781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1782
1783Installation directories:
1784 --prefix=PREFIX install architecture-independent files in PREFIX
1785 [$ac_default_prefix]
1786 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1787 [PREFIX]
1788
1789By default, \`make install' will install all the files in
1790\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1791an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1792for instance \`--prefix=\$HOME'.
1793
1794For better control, use the options below.
1795
1796Fine tuning of the installation directories:
1797 --bindir=DIR user executables [EPREFIX/bin]
1798 --sbindir=DIR system admin executables [EPREFIX/sbin]
1799 --libexecdir=DIR program executables [EPREFIX/libexec]
1800 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1801 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1802 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1803 --libdir=DIR object code libraries [EPREFIX/lib]
1804 --includedir=DIR C header files [PREFIX/include]
1805 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1806 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1807 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1808 --infodir=DIR info documentation [DATAROOTDIR/info]
1809 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1810 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001811 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001812 --htmldir=DIR html documentation [DOCDIR]
1813 --dvidir=DIR dvi documentation [DOCDIR]
1814 --pdfdir=DIR pdf documentation [DOCDIR]
1815 --psdir=DIR ps documentation [DOCDIR]
1816_ACEOF
1817
1818 cat <<\_ACEOF
1819
cristy73bd4a52010-10-05 11:24:23 +00001820Program names:
1821 --program-prefix=PREFIX prepend PREFIX to installed program names
1822 --program-suffix=SUFFIX append SUFFIX to installed program names
1823 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1824
cristy3ed852e2009-09-05 21:47:34 +00001825X features:
1826 --x-includes=DIR X include files are in DIR
1827 --x-libraries=DIR X library files are in DIR
1828
1829System types:
1830 --build=BUILD configure for building on BUILD [guessed]
1831 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1832 --target=TARGET configure for building compilers for TARGET [HOST]
1833_ACEOF
1834fi
1835
1836if test -n "$ac_init_help"; then
1837 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001838 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001839 esac
1840 cat <<\_ACEOF
1841
1842Optional Features:
1843 --disable-option-checking ignore unrecognized --enable/--with options
1844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001846 --enable-silent-rules less verbose build output (undo: "make V=1")
1847 --disable-silent-rules verbose build output (undo: "make V=0")
1848 --enable-dependency-tracking
1849 do not reject slow dependency extractors
1850 --disable-dependency-tracking
1851 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001852 --enable-ld-version-script
1853 enable linker version script (default is enabled
1854 when possible)
cristya3824692012-03-30 17:22:07 +00001855 --enable-bounds-checking
1856 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001857 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001858 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001859 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001860 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001861 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001862 --enable-shared[=PKGS] build shared libraries [default=yes]
1863 --enable-static[=PKGS] build static libraries [default=yes]
1864 --enable-fast-install[=PKGS]
1865 optimize for fast installation [default=yes]
1866 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001867 --enable-delegate-build look for delegate libraries in build directory
1868 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001869 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001870 --disable-installed Formally install ImageMagick under PREFIX
1871 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001872 --enable-zero-configuration
1873 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001874 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001875 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001876 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001877 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001878 --enable-maintainer-mode
1879 enable make rules and dependencies not useful (and
1880 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001881 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001882 --enable-ccmalloc enable 'ccmalloc' memory debug support
1883 --enable-efence enable 'efence' memory debug support
1884 --enable-prof enable 'prof' profiling support
1885 --enable-gprof enable 'gprof' profiling support
1886 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001887 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001888 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001889
1890Optional Packages:
1891 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1892 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001893 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001894 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001895 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1896 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001897 --includearch-dir=DIR ARCH specific include directory
1898 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001899 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001900 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001901 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001902 both]
cristyda16f162011-02-19 23:52:17 +00001903 --with-sysroot=DIR Search for dependent libraries within DIR
1904 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001905 --with-modules enable building dynamically loadable modules
1906 --with-method-prefix=PREFIX
1907 prefix MagickCore API methods
1908 --with-quantum-depth=DEPTH
1909 number of bits in a pixel quantum (default 16)
1910 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1911 memory)
1912 --with-frozenpaths freeze delegate paths
1913 --without-magick-plus-plus
1914 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001915 --with-package-release-name=NAME
1916 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001917 --with-perl enable build/install of PerlMagick
1918 --with-perl-options=OPTIONS
1919 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001920 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001921 --with-umem enable umem memory allocation library support
1922 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1923 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001924 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001925 --without-zlib disable ZLIB support
1926 --with-autotrace enable autotrace support
1927 --without-dps disable Display Postscript support
1928 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001929 --with-dejavu-font-dir=DIR
1930 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001931 --without-fftw disable FFTW support
1932 --without-fpx disable FlashPIX support
1933 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001934 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001935 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001936 --with-fontpath=DIR prepend to default font search path
1937 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001938 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001939 --without-jbig disable JBIG support
1940 --without-jpeg disable JPEG support
1941 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001942 --without-lcms disable lcms (v1.1X) support
1943 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001944 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001945 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001947 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001948 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001949 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001950 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001951 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001952 --with-windows-font-dir=DIR
1953 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001954 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001955 --without-xml disable XML support
1956
1957Some influential environment variables:
1958 CC C compiler command
1959 CFLAGS C compiler flags
1960 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1961 nonstandard directory <lib dir>
1962 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001963 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001964 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001965 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001966 CXX C++ compiler command
1967 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001968 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001969 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001970 XMKMF Path to xmkmf, Makefile generator for X Window System
1971 AUTOTRACE_CFLAGS
1972 C compiler flags for AUTOTRACE, overriding pkg-config
1973 AUTOTRACE_LIBS
1974 linker flags for AUTOTRACE, overriding pkg-config
1975 FONTCONFIG_CFLAGS
1976 C compiler flags for FONTCONFIG, overriding pkg-config
1977 FONTCONFIG_LIBS
1978 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001979 FREETYPE_CFLAGS
1980 C compiler flags for FREETYPE, overriding pkg-config
1981 FREETYPE_LIBS
1982 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001983 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1984 GVC_LIBS linker flags for GVC, overriding pkg-config
1985 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1986 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001987 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1988 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001989 OPENEXR_CFLAGS
1990 C compiler flags for OPENEXR, overriding pkg-config
1991 OPENEXR_LIBS
1992 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001993 PANGO_CFLAGS
1994 C compiler flags for PANGO, overriding pkg-config
1995 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001996 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1997 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1998 CAIRO_SVG_CFLAGS
1999 C compiler flags for CAIRO_SVG, overriding pkg-config
2000 CAIRO_SVG_LIBS
2001 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002002
2003Use these variables to override the choices made by `configure' or to help
2004it to find libraries and programs with nonstandard names/locations.
2005
2006Report bugs to <http://www.imagemagick.org>.
2007_ACEOF
2008ac_status=$?
2009fi
2010
2011if test "$ac_init_help" = "recursive"; then
2012 # If there are subdirs, report their specific --help.
2013 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2014 test -d "$ac_dir" ||
2015 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2016 continue
2017 ac_builddir=.
2018
2019case "$ac_dir" in
2020.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2021*)
2022 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2023 # A ".." for each directory in $ac_dir_suffix.
2024 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2025 case $ac_top_builddir_sub in
2026 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2027 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2028 esac ;;
2029esac
2030ac_abs_top_builddir=$ac_pwd
2031ac_abs_builddir=$ac_pwd$ac_dir_suffix
2032# for backward compatibility:
2033ac_top_builddir=$ac_top_build_prefix
2034
2035case $srcdir in
2036 .) # We are building in place.
2037 ac_srcdir=.
2038 ac_top_srcdir=$ac_top_builddir_sub
2039 ac_abs_top_srcdir=$ac_pwd ;;
2040 [\\/]* | ?:[\\/]* ) # Absolute name.
2041 ac_srcdir=$srcdir$ac_dir_suffix;
2042 ac_top_srcdir=$srcdir
2043 ac_abs_top_srcdir=$srcdir ;;
2044 *) # Relative name.
2045 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2046 ac_top_srcdir=$ac_top_build_prefix$srcdir
2047 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2048esac
2049ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2050
2051 cd "$ac_dir" || { ac_status=$?; continue; }
2052 # Check for guested configure.
2053 if test -f "$ac_srcdir/configure.gnu"; then
2054 echo &&
2055 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2056 elif test -f "$ac_srcdir/configure"; then
2057 echo &&
2058 $SHELL "$ac_srcdir/configure" --help=recursive
2059 else
2060 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2061 fi || ac_status=$?
2062 cd "$ac_pwd" || { ac_status=$?; break; }
2063 done
2064fi
2065
2066test -n "$ac_init_help" && exit $ac_status
2067if $ac_init_version; then
2068 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002069ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002070generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002071
cristy14fefe52012-05-21 00:59:18 +00002072Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002073This configure script is free software; the Free Software Foundation
2074gives unlimited permission to copy, distribute and modify it.
2075_ACEOF
2076 exit
2077fi
cristy8b350f62009-11-15 23:12:43 +00002078
2079## ------------------------ ##
2080## Autoconf initialization. ##
2081## ------------------------ ##
2082
2083# ac_fn_c_try_compile LINENO
2084# --------------------------
2085# Try to compile conftest.$ac_ext, and return whether this succeeded.
2086ac_fn_c_try_compile ()
2087{
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 rm -f conftest.$ac_objext
2090 if { { ac_try="$ac_compile"
2091case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094esac
2095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096$as_echo "$ac_try_echo"; } >&5
2097 (eval "$ac_compile") 2>conftest.err
2098 ac_status=$?
2099 if test -s conftest.err; then
2100 grep -v '^ *+' conftest.err >conftest.er1
2101 cat conftest.er1 >&5
2102 mv -f conftest.er1 conftest.err
2103 fi
2104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105 test $ac_status = 0; } && {
2106 test -z "$ac_c_werror_flag" ||
2107 test ! -s conftest.err
2108 } && test -s conftest.$ac_objext; then :
2109 ac_retval=0
2110else
2111 $as_echo "$as_me: failed program was:" >&5
2112sed 's/^/| /' conftest.$ac_ext >&5
2113
2114 ac_retval=1
2115fi
cristyda16f162011-02-19 23:52:17 +00002116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002117 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002118
2119} # ac_fn_c_try_compile
2120
cristy95646052009-11-28 23:05:30 +00002121# ac_fn_c_try_cpp LINENO
2122# ----------------------
2123# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2124ac_fn_c_try_cpp ()
2125{
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if { { ac_try="$ac_cpp conftest.$ac_ext"
2128case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131esac
2132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133$as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2135 ac_status=$?
2136 if test -s conftest.err; then
2137 grep -v '^ *+' conftest.err >conftest.er1
2138 cat conftest.er1 >&5
2139 mv -f conftest.er1 conftest.err
2140 fi
2141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002142 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2144 test ! -s conftest.err
2145 }; then :
2146 ac_retval=0
2147else
2148 $as_echo "$as_me: failed program was:" >&5
2149sed 's/^/| /' conftest.$ac_ext >&5
2150
2151 ac_retval=1
2152fi
cristyda16f162011-02-19 23:52:17 +00002153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002154 as_fn_set_status $ac_retval
2155
2156} # ac_fn_c_try_cpp
2157
cristy8b350f62009-11-15 23:12:43 +00002158# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2159# -------------------------------------------------------
2160# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2161# the include files in INCLUDES and setting the cache variable VAR
2162# accordingly.
2163ac_fn_c_check_header_mongrel ()
2164{
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002166 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2168$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002169if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002170 $as_echo_n "(cached) " >&6
2171fi
2172eval ac_res=\$$3
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174$as_echo "$ac_res" >&6; }
2175else
2176 # Is the header compilable?
2177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2178$as_echo_n "checking $2 usability... " >&6; }
2179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$4
2182#include <$2>
2183_ACEOF
2184if ac_fn_c_try_compile "$LINENO"; then :
2185 ac_header_compiler=yes
2186else
2187 ac_header_compiler=no
2188fi
2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2191$as_echo "$ac_header_compiler" >&6; }
2192
2193# Is the header present?
2194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2195$as_echo_n "checking $2 presence... " >&6; }
2196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197/* end confdefs.h. */
2198#include <$2>
2199_ACEOF
2200if ac_fn_c_try_cpp "$LINENO"; then :
2201 ac_header_preproc=yes
2202else
2203 ac_header_preproc=no
2204fi
cristyda16f162011-02-19 23:52:17 +00002205rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2207$as_echo "$ac_header_preproc" >&6; }
2208
2209# So? What about this header?
2210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2211 yes:no: )
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2213$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2215$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2216 ;;
2217 no:yes:* )
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2219$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2221$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2223$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2225$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2227$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002228( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002229## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002230## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002231 ) | sed "s/^/$as_me: WARNING: /" >&2
2232 ;;
2233esac
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002236if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002237 $as_echo_n "(cached) " >&6
2238else
2239 eval "$3=\$ac_header_compiler"
2240fi
2241eval ac_res=\$$3
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243$as_echo "$ac_res" >&6; }
2244fi
cristyda16f162011-02-19 23:52:17 +00002245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002246
2247} # ac_fn_c_check_header_mongrel
2248
2249# ac_fn_c_try_run LINENO
2250# ----------------------
2251# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2252# that executables *can* be run.
2253ac_fn_c_try_run ()
2254{
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 if { { ac_try="$ac_link"
2257case "(($ac_try" in
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2260esac
2261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2262$as_echo "$ac_try_echo"; } >&5
2263 (eval "$ac_link") 2>&5
2264 ac_status=$?
2265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2266 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2267 { { case "(($ac_try" in
2268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269 *) ac_try_echo=$ac_try;;
2270esac
2271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2272$as_echo "$ac_try_echo"; } >&5
2273 (eval "$ac_try") 2>&5
2274 ac_status=$?
2275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2276 test $ac_status = 0; }; }; then :
2277 ac_retval=0
2278else
2279 $as_echo "$as_me: program exited with status $ac_status" >&5
2280 $as_echo "$as_me: failed program was:" >&5
2281sed 's/^/| /' conftest.$ac_ext >&5
2282
2283 ac_retval=$ac_status
2284fi
2285 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002287 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002288
2289} # ac_fn_c_try_run
2290
2291# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2292# -------------------------------------------------------
2293# Tests whether HEADER exists and can be compiled using the include files in
2294# INCLUDES, setting the cache variable VAR accordingly.
2295ac_fn_c_check_header_compile ()
2296{
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2299$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002300if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002301 $as_echo_n "(cached) " >&6
2302else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304/* end confdefs.h. */
2305$4
2306#include <$2>
2307_ACEOF
2308if ac_fn_c_try_compile "$LINENO"; then :
2309 eval "$3=yes"
2310else
2311 eval "$3=no"
2312fi
2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314fi
2315eval ac_res=\$$3
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002319
2320} # ac_fn_c_check_header_compile
2321
cristya0b81c32010-01-22 02:54:33 +00002322# ac_fn_cxx_try_compile LINENO
2323# ----------------------------
2324# Try to compile conftest.$ac_ext, and return whether this succeeded.
2325ac_fn_cxx_try_compile ()
2326{
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 rm -f conftest.$ac_objext
2329 if { { ac_try="$ac_compile"
2330case "(($ac_try" in
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;;
2333esac
2334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2335$as_echo "$ac_try_echo"; } >&5
2336 (eval "$ac_compile") 2>conftest.err
2337 ac_status=$?
2338 if test -s conftest.err; then
2339 grep -v '^ *+' conftest.err >conftest.er1
2340 cat conftest.er1 >&5
2341 mv -f conftest.er1 conftest.err
2342 fi
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } && {
2345 test -z "$ac_cxx_werror_flag" ||
2346 test ! -s conftest.err
2347 } && test -s conftest.$ac_objext; then :
2348 ac_retval=0
2349else
2350 $as_echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353 ac_retval=1
2354fi
cristyda16f162011-02-19 23:52:17 +00002355 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002356 as_fn_set_status $ac_retval
2357
2358} # ac_fn_cxx_try_compile
2359
cristy8b350f62009-11-15 23:12:43 +00002360# ac_fn_c_try_link LINENO
2361# -----------------------
2362# Try to link conftest.$ac_ext, and return whether this succeeded.
2363ac_fn_c_try_link ()
2364{
2365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366 rm -f conftest.$ac_objext conftest$ac_exeext
2367 if { { ac_try="$ac_link"
2368case "(($ac_try" in
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2371esac
2372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2373$as_echo "$ac_try_echo"; } >&5
2374 (eval "$ac_link") 2>conftest.err
2375 ac_status=$?
2376 if test -s conftest.err; then
2377 grep -v '^ *+' conftest.err >conftest.er1
2378 cat conftest.er1 >&5
2379 mv -f conftest.er1 conftest.err
2380 fi
2381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2382 test $ac_status = 0; } && {
2383 test -z "$ac_c_werror_flag" ||
2384 test ! -s conftest.err
2385 } && test -s conftest$ac_exeext && {
2386 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002387 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002388 }; then :
2389 ac_retval=0
2390else
2391 $as_echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 ac_retval=1
2395fi
2396 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2397 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2398 # interfere with the next link command; also delete a directory that is
2399 # left behind by Apple's compiler. We do this before executing the actions.
2400 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002401 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002402 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002403
2404} # ac_fn_c_try_link
2405
cristy73bd4a52010-10-05 11:24:23 +00002406# ac_fn_c_check_func LINENO FUNC VAR
2407# ----------------------------------
2408# Tests whether FUNC exists, setting the cache variable VAR accordingly
2409ac_fn_c_check_func ()
2410{
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002414if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002415 $as_echo_n "(cached) " >&6
2416else
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418/* end confdefs.h. */
2419/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2421#define $2 innocuous_$2
2422
2423/* System header to define __stub macros and hopefully few prototypes,
2424 which can conflict with char $2 (); below.
2425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2426 <limits.h> exists even on freestanding compilers. */
2427
2428#ifdef __STDC__
2429# include <limits.h>
2430#else
2431# include <assert.h>
2432#endif
2433
2434#undef $2
2435
2436/* Override any GCC internal prototype to avoid an error.
2437 Use char because int might match the return type of a GCC
2438 builtin and then its argument prototype would still apply. */
2439#ifdef __cplusplus
2440extern "C"
2441#endif
2442char $2 ();
2443/* The GNU C library defines this for functions which it implements
2444 to always fail with ENOSYS. Some functions are actually named
2445 something starting with __ and the normal name is an alias. */
2446#if defined __stub_$2 || defined __stub___$2
2447choke me
2448#endif
2449
2450int
2451main ()
2452{
2453return $2 ();
2454 ;
2455 return 0;
2456}
2457_ACEOF
2458if ac_fn_c_try_link "$LINENO"; then :
2459 eval "$3=yes"
2460else
2461 eval "$3=no"
2462fi
2463rm -f core conftest.err conftest.$ac_objext \
2464 conftest$ac_exeext conftest.$ac_ext
2465fi
2466eval ac_res=\$$3
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2468$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002470
2471} # ac_fn_c_check_func
2472
2473# ac_fn_cxx_try_cpp LINENO
2474# ------------------------
2475# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2476ac_fn_cxx_try_cpp ()
2477{
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 if { { ac_try="$ac_cpp conftest.$ac_ext"
2480case "(($ac_try" in
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2483esac
2484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2485$as_echo "$ac_try_echo"; } >&5
2486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2487 ac_status=$?
2488 if test -s conftest.err; then
2489 grep -v '^ *+' conftest.err >conftest.er1
2490 cat conftest.er1 >&5
2491 mv -f conftest.er1 conftest.err
2492 fi
2493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002494 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002495 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2496 test ! -s conftest.err
2497 }; then :
2498 ac_retval=0
2499else
2500 $as_echo "$as_me: failed program was:" >&5
2501sed 's/^/| /' conftest.$ac_ext >&5
2502
2503 ac_retval=1
2504fi
cristyda16f162011-02-19 23:52:17 +00002505 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002506 as_fn_set_status $ac_retval
2507
2508} # ac_fn_cxx_try_cpp
2509
2510# ac_fn_cxx_try_link LINENO
2511# -------------------------
2512# Try to link conftest.$ac_ext, and return whether this succeeded.
2513ac_fn_cxx_try_link ()
2514{
2515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516 rm -f conftest.$ac_objext conftest$ac_exeext
2517 if { { ac_try="$ac_link"
2518case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2523$as_echo "$ac_try_echo"; } >&5
2524 (eval "$ac_link") 2>conftest.err
2525 ac_status=$?
2526 if test -s conftest.err; then
2527 grep -v '^ *+' conftest.err >conftest.er1
2528 cat conftest.er1 >&5
2529 mv -f conftest.er1 conftest.err
2530 fi
2531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2532 test $ac_status = 0; } && {
2533 test -z "$ac_cxx_werror_flag" ||
2534 test ! -s conftest.err
2535 } && test -s conftest$ac_exeext && {
2536 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002537 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002538 }; then :
2539 ac_retval=0
2540else
2541 $as_echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_retval=1
2545fi
2546 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2547 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2548 # interfere with the next link command; also delete a directory that is
2549 # left behind by Apple's compiler. We do this before executing the actions.
2550 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002552 as_fn_set_status $ac_retval
2553
2554} # ac_fn_cxx_try_link
2555
cristy8b350f62009-11-15 23:12:43 +00002556# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2557# -------------------------------------------
2558# Tests whether TYPE exists after having included INCLUDES, setting cache
2559# variable VAR accordingly.
2560ac_fn_c_check_type ()
2561{
2562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2564$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002565if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002566 $as_echo_n "(cached) " >&6
2567else
2568 eval "$3=no"
2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570/* end confdefs.h. */
2571$4
2572int
2573main ()
2574{
2575if (sizeof ($2))
2576 return 0;
2577 ;
2578 return 0;
2579}
2580_ACEOF
2581if ac_fn_c_try_compile "$LINENO"; then :
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583/* end confdefs.h. */
2584$4
2585int
2586main ()
2587{
2588if (sizeof (($2)))
2589 return 0;
2590 ;
2591 return 0;
2592}
2593_ACEOF
2594if ac_fn_c_try_compile "$LINENO"; then :
2595
2596else
2597 eval "$3=yes"
2598fi
2599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600fi
2601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602fi
2603eval ac_res=\$$3
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002607
2608} # ac_fn_c_check_type
2609
cristy92703d82010-04-26 00:18:18 +00002610# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2611# ----------------------------------------------------
2612# Tries to find if the field MEMBER exists in type AGGR, after including
2613# INCLUDES, setting cache variable VAR accordingly.
2614ac_fn_c_check_member ()
2615{
2616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2618$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002619if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002620 $as_echo_n "(cached) " >&6
2621else
2622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2623/* end confdefs.h. */
2624$5
2625int
2626main ()
2627{
2628static $2 ac_aggr;
2629if (ac_aggr.$3)
2630return 0;
2631 ;
2632 return 0;
2633}
2634_ACEOF
2635if ac_fn_c_try_compile "$LINENO"; then :
2636 eval "$4=yes"
2637else
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639/* end confdefs.h. */
2640$5
2641int
2642main ()
2643{
2644static $2 ac_aggr;
2645if (sizeof ac_aggr.$3)
2646return 0;
2647 ;
2648 return 0;
2649}
2650_ACEOF
2651if ac_fn_c_try_compile "$LINENO"; then :
2652 eval "$4=yes"
2653else
2654 eval "$4=no"
2655fi
2656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657fi
2658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659fi
2660eval ac_res=\$$4
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2662$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002664
2665} # ac_fn_c_check_member
2666
cristy5eef09f2012-10-16 12:08:28 +00002667# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2668# ---------------------------------------------
2669# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2670# accordingly.
2671ac_fn_c_check_decl ()
2672{
2673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674 as_decl_name=`echo $2|sed 's/ *(.*//'`
2675 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2677$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2678if eval \${$3+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680else
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682/* end confdefs.h. */
2683$4
2684int
2685main ()
2686{
2687#ifndef $as_decl_name
2688#ifdef __cplusplus
2689 (void) $as_decl_use;
2690#else
2691 (void) $as_decl_name;
2692#endif
2693#endif
2694
2695 ;
2696 return 0;
2697}
2698_ACEOF
2699if ac_fn_c_try_compile "$LINENO"; then :
2700 eval "$3=yes"
2701else
2702 eval "$3=no"
2703fi
2704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705fi
2706eval ac_res=\$$3
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2708$as_echo "$ac_res" >&6; }
2709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2710
2711} # ac_fn_c_check_decl
2712
cristy501c8042011-05-26 17:46:28 +00002713# ac_fn_c_find_intX_t LINENO BITS VAR
2714# -----------------------------------
2715# Finds a signed integer type with width BITS, setting cache variable VAR
2716# accordingly.
2717ac_fn_c_find_intX_t ()
2718{
2719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2721$as_echo_n "checking for int$2_t... " >&6; }
2722if eval \${$3+:} false; then :
2723 $as_echo_n "(cached) " >&6
2724else
2725 eval "$3=no"
2726 # Order is important - never check a type that is potentially smaller
2727 # than half of the expected target width.
2728 for ac_type in int$2_t 'int' 'long int' \
2729 'long long int' 'short int' 'signed char'; do
2730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731/* end confdefs.h. */
2732$ac_includes_default
2733 enum { N = $2 / 2 - 1 };
2734int
2735main ()
2736{
2737static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002738test_array [0] = 0;
2739return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002740
2741 ;
2742 return 0;
2743}
2744_ACEOF
2745if ac_fn_c_try_compile "$LINENO"; then :
2746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2747/* end confdefs.h. */
2748$ac_includes_default
2749 enum { N = $2 / 2 - 1 };
2750int
2751main ()
2752{
2753static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2754 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002755test_array [0] = 0;
2756return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002757
2758 ;
2759 return 0;
2760}
2761_ACEOF
2762if ac_fn_c_try_compile "$LINENO"; then :
2763
2764else
2765 case $ac_type in #(
2766 int$2_t) :
2767 eval "$3=yes" ;; #(
2768 *) :
2769 eval "$3=\$ac_type" ;;
2770esac
2771fi
2772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773fi
2774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2775 if eval test \"x\$"$3"\" = x"no"; then :
2776
2777else
2778 break
2779fi
2780 done
2781fi
2782eval ac_res=\$$3
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2784$as_echo "$ac_res" >&6; }
2785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2786
2787} # ac_fn_c_find_intX_t
2788
2789# ac_fn_c_find_uintX_t LINENO BITS VAR
2790# ------------------------------------
2791# Finds an unsigned integer type with width BITS, setting cache variable VAR
2792# accordingly.
2793ac_fn_c_find_uintX_t ()
2794{
2795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2797$as_echo_n "checking for uint$2_t... " >&6; }
2798if eval \${$3+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800else
2801 eval "$3=no"
2802 # Order is important - never check a type that is potentially smaller
2803 # than half of the expected target width.
2804 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2805 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807/* end confdefs.h. */
2808$ac_includes_default
2809int
2810main ()
2811{
2812static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002813test_array [0] = 0;
2814return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002815
2816 ;
2817 return 0;
2818}
2819_ACEOF
2820if ac_fn_c_try_compile "$LINENO"; then :
2821 case $ac_type in #(
2822 uint$2_t) :
2823 eval "$3=yes" ;; #(
2824 *) :
2825 eval "$3=\$ac_type" ;;
2826esac
2827fi
2828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2829 if eval test \"x\$"$3"\" = x"no"; then :
2830
2831else
2832 break
2833fi
2834 done
2835fi
2836eval ac_res=\$$3
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2838$as_echo "$ac_res" >&6; }
2839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2840
2841} # ac_fn_c_find_uintX_t
2842
cristy8b350f62009-11-15 23:12:43 +00002843# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2844# --------------------------------------------
2845# Tries to find the compile-time value of EXPR in a program that includes
2846# INCLUDES, setting VAR accordingly. Returns whether the value could be
2847# computed
2848ac_fn_c_compute_int ()
2849{
2850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2851 if test "$cross_compiling" = yes; then
2852 # Depending upon the size, compute the lo and hi bounds.
2853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854/* end confdefs.h. */
2855$4
2856int
2857main ()
2858{
2859static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002860test_array [0] = 0;
2861return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002862
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867if ac_fn_c_try_compile "$LINENO"; then :
2868 ac_lo=0 ac_mid=0
2869 while :; do
2870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871/* end confdefs.h. */
2872$4
2873int
2874main ()
2875{
2876static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002877test_array [0] = 0;
2878return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002879
2880 ;
2881 return 0;
2882}
2883_ACEOF
2884if ac_fn_c_try_compile "$LINENO"; then :
2885 ac_hi=$ac_mid; break
2886else
2887 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2888 if test $ac_lo -le $ac_mid; then
2889 ac_lo= ac_hi=
2890 break
2891 fi
2892 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2893fi
2894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 done
2896else
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898/* end confdefs.h. */
2899$4
2900int
2901main ()
2902{
2903static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002904test_array [0] = 0;
2905return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002906
2907 ;
2908 return 0;
2909}
2910_ACEOF
2911if ac_fn_c_try_compile "$LINENO"; then :
2912 ac_hi=-1 ac_mid=-1
2913 while :; do
2914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915/* end confdefs.h. */
2916$4
2917int
2918main ()
2919{
2920static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002921test_array [0] = 0;
2922return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002923
2924 ;
2925 return 0;
2926}
2927_ACEOF
2928if ac_fn_c_try_compile "$LINENO"; then :
2929 ac_lo=$ac_mid; break
2930else
2931 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2932 if test $ac_mid -le $ac_hi; then
2933 ac_lo= ac_hi=
2934 break
2935 fi
2936 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2937fi
2938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2939 done
2940else
2941 ac_lo= ac_hi=
2942fi
2943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2944fi
2945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946# Binary search between lo and hi bounds.
2947while test "x$ac_lo" != "x$ac_hi"; do
2948 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950/* end confdefs.h. */
2951$4
2952int
2953main ()
2954{
2955static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002956test_array [0] = 0;
2957return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002958
2959 ;
2960 return 0;
2961}
2962_ACEOF
2963if ac_fn_c_try_compile "$LINENO"; then :
2964 ac_hi=$ac_mid
2965else
2966 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2967fi
2968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969done
2970case $ac_lo in #((
2971?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2972'') ac_retval=1 ;;
2973esac
2974 else
2975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2976/* end confdefs.h. */
2977$4
2978static long int longval () { return $2; }
2979static unsigned long int ulongval () { return $2; }
2980#include <stdio.h>
2981#include <stdlib.h>
2982int
2983main ()
2984{
2985
2986 FILE *f = fopen ("conftest.val", "w");
2987 if (! f)
2988 return 1;
2989 if (($2) < 0)
2990 {
2991 long int i = longval ();
2992 if (i != ($2))
2993 return 1;
2994 fprintf (f, "%ld", i);
2995 }
2996 else
2997 {
2998 unsigned long int i = ulongval ();
2999 if (i != ($2))
3000 return 1;
3001 fprintf (f, "%lu", i);
3002 }
3003 /* Do not output a trailing newline, as this causes \r\n confusion
3004 on some platforms. */
3005 return ferror (f) || fclose (f) != 0;
3006
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011if ac_fn_c_try_run "$LINENO"; then :
3012 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3013else
3014 ac_retval=1
3015fi
3016rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3017 conftest.$ac_objext conftest.beam conftest.$ac_ext
3018rm -f conftest.val
3019
3020 fi
cristyda16f162011-02-19 23:52:17 +00003021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003022 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003023
3024} # ac_fn_c_compute_int
3025
3026# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3027# ---------------------------------------------------------
3028# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3029# the include files in INCLUDES and setting the cache variable VAR
3030# accordingly.
3031ac_fn_cxx_check_header_mongrel ()
3032{
3033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003034 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3036$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003037if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003038 $as_echo_n "(cached) " >&6
3039fi
3040eval ac_res=\$$3
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3042$as_echo "$ac_res" >&6; }
3043else
3044 # Is the header compilable?
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3046$as_echo_n "checking $2 usability... " >&6; }
3047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048/* end confdefs.h. */
3049$4
3050#include <$2>
3051_ACEOF
3052if ac_fn_cxx_try_compile "$LINENO"; then :
3053 ac_header_compiler=yes
3054else
3055 ac_header_compiler=no
3056fi
3057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3059$as_echo "$ac_header_compiler" >&6; }
3060
3061# Is the header present?
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3063$as_echo_n "checking $2 presence... " >&6; }
3064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065/* end confdefs.h. */
3066#include <$2>
3067_ACEOF
3068if ac_fn_cxx_try_cpp "$LINENO"; then :
3069 ac_header_preproc=yes
3070else
3071 ac_header_preproc=no
3072fi
cristyda16f162011-02-19 23:52:17 +00003073rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3075$as_echo "$ac_header_preproc" >&6; }
3076
3077# So? What about this header?
3078case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3079 yes:no: )
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3081$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3083$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3084 ;;
3085 no:yes:* )
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3087$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3089$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3091$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3093$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3095$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003096( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003097## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003098## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003099 ) | sed "s/^/$as_me: WARNING: /" >&2
3100 ;;
3101esac
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3103$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003104if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003105 $as_echo_n "(cached) " >&6
3106else
3107 eval "$3=\$ac_header_compiler"
3108fi
3109eval ac_res=\$$3
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3111$as_echo "$ac_res" >&6; }
3112fi
cristyda16f162011-02-19 23:52:17 +00003113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003114
3115} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003116cat >config.log <<_ACEOF
3117This file contains any messages produced by compilers while
3118running configure, to aid debugging if configure makes a mistake.
3119
cristy29eb34e2011-10-16 00:46:08 +00003120It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003121generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003122
3123 $ $0 $@
3124
3125_ACEOF
3126exec 5>>config.log
3127{
3128cat <<_ASUNAME
3129## --------- ##
3130## Platform. ##
3131## --------- ##
3132
3133hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3134uname -m = `(uname -m) 2>/dev/null || echo unknown`
3135uname -r = `(uname -r) 2>/dev/null || echo unknown`
3136uname -s = `(uname -s) 2>/dev/null || echo unknown`
3137uname -v = `(uname -v) 2>/dev/null || echo unknown`
3138
3139/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3140/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3141
3142/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3143/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3144/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3145/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3146/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3147/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3148/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3149
3150_ASUNAME
3151
3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153for as_dir in $PATH
3154do
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003157 $as_echo "PATH: $as_dir"
3158 done
cristy3ed852e2009-09-05 21:47:34 +00003159IFS=$as_save_IFS
3160
3161} >&5
3162
3163cat >&5 <<_ACEOF
3164
3165
3166## ----------- ##
3167## Core tests. ##
3168## ----------- ##
3169
3170_ACEOF
3171
3172
3173# Keep a trace of the command line.
3174# Strip out --no-create and --no-recursion so they do not pile up.
3175# Strip out --silent because we don't want to record it for future runs.
3176# Also quote any args containing shell meta-characters.
3177# Make two passes to allow for proper duplicate-argument suppression.
3178ac_configure_args=
3179ac_configure_args0=
3180ac_configure_args1=
3181ac_must_keep_next=false
3182for ac_pass in 1 2
3183do
3184 for ac_arg
3185 do
3186 case $ac_arg in
3187 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3189 | -silent | --silent | --silen | --sile | --sil)
3190 continue ;;
3191 *\'*)
3192 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3193 esac
3194 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003195 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003196 2)
cristy8b350f62009-11-15 23:12:43 +00003197 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003198 if test $ac_must_keep_next = true; then
3199 ac_must_keep_next=false # Got value, back to normal.
3200 else
3201 case $ac_arg in
3202 *=* | --config-cache | -C | -disable-* | --disable-* \
3203 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3204 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3205 | -with-* | --with-* | -without-* | --without-* | --x)
3206 case "$ac_configure_args0 " in
3207 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3208 esac
3209 ;;
3210 -* ) ac_must_keep_next=true ;;
3211 esac
3212 fi
cristy8b350f62009-11-15 23:12:43 +00003213 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003214 ;;
3215 esac
3216 done
3217done
cristy8b350f62009-11-15 23:12:43 +00003218{ ac_configure_args0=; unset ac_configure_args0;}
3219{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003220
3221# When interrupted or exit'd, cleanup temporary files, and complete
3222# config.log. We remove comments because anyway the quotes in there
3223# would cause problems or look ugly.
3224# WARNING: Use '\'' to represent an apostrophe within the trap.
3225# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3226trap 'exit_status=$?
3227 # Save into config.log some information that might help in debugging.
3228 {
3229 echo
3230
cristy98dddb52010-11-04 00:30:15 +00003231 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003232## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003233## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003234 echo
3235 # The following way of writing the cache mishandles newlines in values,
3236(
3237 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3238 eval ac_val=\$$ac_var
3239 case $ac_val in #(
3240 *${as_nl}*)
3241 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003242 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003243$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3244 esac
3245 case $ac_var in #(
3246 _ | IFS | as_nl) ;; #(
3247 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003248 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003249 esac ;;
3250 esac
3251 done
3252 (set) 2>&1 |
3253 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3254 *${as_nl}ac_space=\ *)
3255 sed -n \
3256 "s/'\''/'\''\\\\'\'''\''/g;
3257 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3258 ;; #(
3259 *)
3260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3261 ;;
3262 esac |
3263 sort
3264)
3265 echo
3266
cristy98dddb52010-11-04 00:30:15 +00003267 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003268## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003269## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003270 echo
3271 for ac_var in $ac_subst_vars
3272 do
3273 eval ac_val=\$$ac_var
3274 case $ac_val in
3275 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3276 esac
3277 $as_echo "$ac_var='\''$ac_val'\''"
3278 done | sort
3279 echo
3280
3281 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003282 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003283## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003284## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003285 echo
3286 for ac_var in $ac_subst_files
3287 do
3288 eval ac_val=\$$ac_var
3289 case $ac_val in
3290 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3291 esac
3292 $as_echo "$ac_var='\''$ac_val'\''"
3293 done | sort
3294 echo
3295 fi
3296
3297 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003298 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003299## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003300## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003301 echo
3302 cat confdefs.h
3303 echo
3304 fi
3305 test "$ac_signal" != 0 &&
3306 $as_echo "$as_me: caught signal $ac_signal"
3307 $as_echo "$as_me: exit $exit_status"
3308 } >&5
3309 rm -f core *.core core.conftest.* &&
3310 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3311 exit $exit_status
3312' 0
3313for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003314 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003315done
3316ac_signal=0
3317
3318# confdefs.h avoids OS command line length limits that DEFS can exceed.
3319rm -f -r conftest* confdefs.h
3320
cristy8b350f62009-11-15 23:12:43 +00003321$as_echo "/* confdefs.h */" > confdefs.h
3322
cristy3ed852e2009-09-05 21:47:34 +00003323# Predefined preprocessor variables.
3324
3325cat >>confdefs.h <<_ACEOF
3326#define PACKAGE_NAME "$PACKAGE_NAME"
3327_ACEOF
3328
cristy3ed852e2009-09-05 21:47:34 +00003329cat >>confdefs.h <<_ACEOF
3330#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3331_ACEOF
3332
cristy3ed852e2009-09-05 21:47:34 +00003333cat >>confdefs.h <<_ACEOF
3334#define PACKAGE_VERSION "$PACKAGE_VERSION"
3335_ACEOF
3336
cristy3ed852e2009-09-05 21:47:34 +00003337cat >>confdefs.h <<_ACEOF
3338#define PACKAGE_STRING "$PACKAGE_STRING"
3339_ACEOF
3340
cristy3ed852e2009-09-05 21:47:34 +00003341cat >>confdefs.h <<_ACEOF
3342#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3343_ACEOF
3344
cristy8b350f62009-11-15 23:12:43 +00003345cat >>confdefs.h <<_ACEOF
3346#define PACKAGE_URL "$PACKAGE_URL"
3347_ACEOF
3348
cristy3ed852e2009-09-05 21:47:34 +00003349
3350# Let the site file select an alternate cache file if it wants to.
3351# Prefer an explicitly selected file to automatically selected ones.
3352ac_site_file1=NONE
3353ac_site_file2=NONE
3354if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003355 # We do not want a PATH search for config.site.
3356 case $CONFIG_SITE in #((
3357 -*) ac_site_file1=./$CONFIG_SITE;;
3358 */*) ac_site_file1=$CONFIG_SITE;;
3359 *) ac_site_file1=./$CONFIG_SITE;;
3360 esac
cristy3ed852e2009-09-05 21:47:34 +00003361elif test "x$prefix" != xNONE; then
3362 ac_site_file1=$prefix/share/config.site
3363 ac_site_file2=$prefix/etc/config.site
3364else
3365 ac_site_file1=$ac_default_prefix/share/config.site
3366 ac_site_file2=$ac_default_prefix/etc/config.site
3367fi
3368for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3369do
3370 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003371 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003372 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003373$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3374 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003375 . "$ac_site_file" \
3376 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378as_fn_error $? "failed to load site script $ac_site_file
3379See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003380 fi
3381done
3382
3383if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003384 # Some versions of bash will fail to source /dev/null (special files
3385 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3386 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003387 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003388$as_echo "$as_me: loading cache $cache_file" >&6;}
3389 case $cache_file in
3390 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3391 *) . "./$cache_file";;
3392 esac
3393 fi
3394else
cristy8b350f62009-11-15 23:12:43 +00003395 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003396$as_echo "$as_me: creating cache $cache_file" >&6;}
3397 >$cache_file
3398fi
3399
cristycd4c5312009-11-22 01:19:08 +00003400as_fn_append ac_header_list " stdlib.h"
3401as_fn_append ac_header_list " unistd.h"
3402as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003403# Check that the precious variables saved in the cache have kept the same
3404# value.
3405ac_cache_corrupted=false
3406for ac_var in $ac_precious_vars; do
3407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3408 eval ac_new_set=\$ac_env_${ac_var}_set
3409 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3410 eval ac_new_val=\$ac_env_${ac_var}_value
3411 case $ac_old_set,$ac_new_set in
3412 set,)
cristy8b350f62009-11-15 23:12:43 +00003413 { $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 +00003414$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3415 ac_cache_corrupted=: ;;
3416 ,set)
cristy8b350f62009-11-15 23:12:43 +00003417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003418$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3419 ac_cache_corrupted=: ;;
3420 ,);;
3421 *)
3422 if test "x$ac_old_val" != "x$ac_new_val"; then
3423 # differences in whitespace do not lead to failure.
3424 ac_old_val_w=`echo x $ac_old_val`
3425 ac_new_val_w=`echo x $ac_new_val`
3426 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003428$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3429 ac_cache_corrupted=:
3430 else
cristy8b350f62009-11-15 23:12:43 +00003431 { $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 +00003432$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3433 eval $ac_var=\$ac_old_val
3434 fi
cristy8b350f62009-11-15 23:12:43 +00003435 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003436$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003437 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003438$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3439 fi;;
3440 esac
3441 # Pass precious variables to config.status.
3442 if test "$ac_new_set" = set; then
3443 case $ac_new_val in
3444 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3445 *) ac_arg=$ac_var=$ac_new_val ;;
3446 esac
3447 case " $ac_configure_args " in
3448 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003449 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003450 esac
3451 fi
3452done
3453if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003457$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003458 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003459fi
cristy8b350f62009-11-15 23:12:43 +00003460## -------------------- ##
3461## Main body of script. ##
3462## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003463
3464ac_ext=c
3465ac_cpp='$CPP $CPPFLAGS'
3466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469
3470
3471
3472ac_aux_dir=
3473for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003474 if test -f "$ac_dir/install-sh"; then
3475 ac_aux_dir=$ac_dir
3476 ac_install_sh="$ac_aux_dir/install-sh -c"
3477 break
3478 elif test -f "$ac_dir/install.sh"; then
3479 ac_aux_dir=$ac_dir
3480 ac_install_sh="$ac_aux_dir/install.sh -c"
3481 break
3482 elif test -f "$ac_dir/shtool"; then
3483 ac_aux_dir=$ac_dir
3484 ac_install_sh="$ac_aux_dir/shtool install -c"
3485 break
3486 fi
cristy3ed852e2009-09-05 21:47:34 +00003487done
3488if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003489 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003490fi
3491
3492# These three variables are undocumented and unsupported,
3493# and are intended to be withdrawn in a future Autoconf release.
3494# They can cause serious problems if a builder's source tree is in a directory
3495# whose full name contains unusual characters.
3496ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3497ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3498ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3499
3500
3501
3502
3503ac_config_headers="$ac_config_headers config/config.h"
3504
cristy24fc1fe2010-10-23 21:13:01 +00003505
cristy01ff9f32012-12-01 18:15:29 +00003506ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003507
cristy8d0ff762013-03-10 20:33:28 +00003508ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003509
3510
3511#
3512# Save initial user-tunable values
3513#
3514USER_LIBS=$LIBS
3515for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3516 eval isset=\${$var+set}
3517 if test "$isset" = 'set'; then
3518 eval val=$`echo $var`
3519 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3520 fi
3521done
3522
3523
3524CONFIGURE_ARGS="$0 ${ac_configure_args}"
3525
3526
3527# Source file containing package/library versioning information.
3528. ${srcdir}/version.sh
3529
cristy15a88782010-01-31 23:24:49 +00003530echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003531# Make sure we can run config.sub.
3532$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003533 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003534
cristy8b350f62009-11-15 23:12:43 +00003535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003536$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003537if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003538 $as_echo_n "(cached) " >&6
3539else
3540 ac_build_alias=$build_alias
3541test "x$ac_build_alias" = x &&
3542 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3543test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003544 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003545ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003546 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003547
3548fi
cristy8b350f62009-11-15 23:12:43 +00003549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003550$as_echo "$ac_cv_build" >&6; }
3551case $ac_cv_build in
3552*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003553*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003554esac
3555build=$ac_cv_build
3556ac_save_IFS=$IFS; IFS='-'
3557set x $ac_cv_build
3558shift
3559build_cpu=$1
3560build_vendor=$2
3561shift; shift
3562# Remember, the first character of IFS is used to create $*,
3563# except with old shells:
3564build_os=$*
3565IFS=$ac_save_IFS
3566case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3567
3568
cristy8b350f62009-11-15 23:12:43 +00003569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003570$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003571if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003572 $as_echo_n "(cached) " >&6
3573else
3574 if test "x$host_alias" = x; then
3575 ac_cv_host=$ac_cv_build
3576else
3577 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003578 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003579fi
3580
3581fi
cristy8b350f62009-11-15 23:12:43 +00003582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003583$as_echo "$ac_cv_host" >&6; }
3584case $ac_cv_host in
3585*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003586*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003587esac
3588host=$ac_cv_host
3589ac_save_IFS=$IFS; IFS='-'
3590set x $ac_cv_host
3591shift
3592host_cpu=$1
3593host_vendor=$2
3594shift; shift
3595# Remember, the first character of IFS is used to create $*,
3596# except with old shells:
3597host_os=$*
3598IFS=$ac_save_IFS
3599case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3600
3601
cristy8b350f62009-11-15 23:12:43 +00003602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003603$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003604if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003605 $as_echo_n "(cached) " >&6
3606else
3607 if test "x$target_alias" = x; then
3608 ac_cv_target=$ac_cv_host
3609else
3610 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003611 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003612fi
3613
3614fi
cristy8b350f62009-11-15 23:12:43 +00003615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003616$as_echo "$ac_cv_target" >&6; }
3617case $ac_cv_target in
3618*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003619*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003620esac
3621target=$ac_cv_target
3622ac_save_IFS=$IFS; IFS='-'
3623set x $ac_cv_target
3624shift
3625target_cpu=$1
3626target_vendor=$2
3627shift; shift
3628# Remember, the first character of IFS is used to create $*,
3629# except with old shells:
3630target_os=$*
3631IFS=$ac_save_IFS
3632case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3633
3634
3635# The aliases save the names the user supplied, while $host etc.
3636# will get canonicalized.
3637test -n "$target_alias" &&
3638 test "$program_prefix$program_suffix$program_transform_name" = \
3639 NONENONEs,x,x, &&
3640 program_prefix=${target_alias}-
3641
cristy837d6dc2010-02-27 01:16:57 +00003642
3643
3644
cristy8be34142012-06-17 14:07:18 +00003645
cristy19615b82011-04-13 20:02:01 +00003646MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003647
3648
cristy27d53d62012-07-29 23:30:07 +00003649cat >>confdefs.h <<_ACEOF
3650#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3651_ACEOF
3652
3653
cristy19615b82011-04-13 20:02:01 +00003654MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003655
3656
cristy27d53d62012-07-29 23:30:07 +00003657cat >>confdefs.h <<_ACEOF
3658#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3659_ACEOF
3660
3661
cristy19615b82011-04-13 20:02:01 +00003662MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003663
3664
cristy27d53d62012-07-29 23:30:07 +00003665cat >>confdefs.h <<_ACEOF
3666#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3667_ACEOF
3668
3669
cristy37442762013-02-10 21:07:23 +00003670
3671# Substitute versioning
3672MAGICK_MAJOR_VERSION=7
3673
3674MAGICK_MINOR_VERSION=0
3675
3676MAGICK_MICRO_VERSION=0
3677
3678MAGICK_PATCHLEVEL_VERSION=0
3679
3680MAGICK_VERSION=7.0.0-0
3681
cristy71f53d52013-04-27 13:33:59 +00003682MAGICK_SVN_REVISION=12018M
cristy37442762013-02-10 21:07:23 +00003683
3684
cristy3ed852e2009-09-05 21:47:34 +00003685# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003686MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3687
3688MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3689
cristy37442762013-02-10 21:07:23 +00003690
cristyd694ca32011-03-27 21:42:54 +00003691
cristy3ed852e2009-09-05 21:47:34 +00003692# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3694$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003695# Reject unsafe characters in $srcdir or the absolute working directory
3696# name. Accept space and tab only in the latter.
3697am_lf='
3698'
3699case `pwd` in
3700 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003701 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003702esac
3703case $srcdir in
3704 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003705 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003706esac
cristy3ed852e2009-09-05 21:47:34 +00003707
cristyc0890a62012-07-19 00:18:20 +00003708# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003709# arguments. Must try -L first in case configure is actually a
3710# symlink; some systems play weird games with the mod time of symlinks
3711# (eg FreeBSD returns the mod time of the symlink's containing
3712# directory).
3713if (
cristyc0890a62012-07-19 00:18:20 +00003714 am_has_slept=no
3715 for am_try in 1 2; do
3716 echo "timestamp, slept: $am_has_slept" > conftest.file
3717 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3718 if test "$*" = "X"; then
3719 # -L didn't work.
3720 set X `ls -t "$srcdir/configure" conftest.file`
3721 fi
3722 if test "$*" != "X $srcdir/configure conftest.file" \
3723 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003724
cristyc0890a62012-07-19 00:18:20 +00003725 # If neither matched, then we have a broken ls. This can happen
3726 # if, for instance, CONFIG_SHELL is bash and it inherits a
3727 # broken ls alias from the environment. This has actually
3728 # happened. Such a system could not be considered "sane".
3729 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3730 alias in your environment" "$LINENO" 5
3731 fi
3732 if test "$2" = conftest.file || test $am_try -eq 2; then
3733 break
3734 fi
3735 # Just in case.
3736 sleep 1
3737 am_has_slept=yes
3738 done
cristy73bd4a52010-10-05 11:24:23 +00003739 test "$2" = conftest.file
3740 )
3741then
3742 # Ok.
3743 :
3744else
cristy98dddb52010-11-04 00:30:15 +00003745 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003746Check your system clock" "$LINENO" 5
3747fi
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3749$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003750# If we didn't sleep, we still need to ensure time stamps of config.status and
3751# generated files are strictly newer.
3752am_sleep_pid=
3753if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3754 ( sleep 1 ) &
3755 am_sleep_pid=$!
3756fi
cristy73bd4a52010-10-05 11:24:23 +00003757
cristyc0890a62012-07-19 00:18:20 +00003758rm -f conftest.file
3759
3760
cristy58d34aa2013-01-24 15:11:54 +00003761am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003762
3763# Find a good install program. We prefer a C program (faster),
3764# so one script is as good as another. But avoid the broken or
3765# incompatible versions:
3766# SysV /etc/install, /usr/sbin/install
3767# SunOS /usr/etc/install
3768# IRIX /sbin/install
3769# AIX /bin/install
3770# AmigaOS /C/install, which installs bootblocks on floppy discs
3771# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3772# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3773# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3774# OS/2's system install, which has a completely different semantic
3775# ./install, which can be erroneously created by make from ./install.sh.
3776# Reject install programs that cannot install multiple files.
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3778$as_echo_n "checking for a BSD-compatible install... " >&6; }
3779if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003780if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003781 $as_echo_n "(cached) " >&6
3782else
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH
3785do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 # Account for people who put trailing slashes in PATH elements.
3789case $as_dir/ in #((
3790 ./ | .// | /[cC]/* | \
3791 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3792 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3793 /usr/ucb/* ) ;;
3794 *)
3795 # OSF1 and SCO ODT 3.0 have their own names for install.
3796 # Don't use installbsd from OSF since it installs stuff as root
3797 # by default.
3798 for ac_prog in ginstall scoinst install; do
3799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003800 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003801 if test $ac_prog = install &&
3802 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3803 # AIX install. It has an incompatible calling convention.
3804 :
3805 elif test $ac_prog = install &&
3806 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3807 # program-specific install script used by HP pwplus--don't use.
3808 :
3809 else
3810 rm -rf conftest.one conftest.two conftest.dir
3811 echo one > conftest.one
3812 echo two > conftest.two
3813 mkdir conftest.dir
3814 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3815 test -s conftest.one && test -s conftest.two &&
3816 test -s conftest.dir/conftest.one &&
3817 test -s conftest.dir/conftest.two
3818 then
3819 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3820 break 3
3821 fi
3822 fi
3823 fi
3824 done
3825 done
3826 ;;
3827esac
3828
3829 done
3830IFS=$as_save_IFS
3831
3832rm -rf conftest.one conftest.two conftest.dir
3833
3834fi
3835 if test "${ac_cv_path_install+set}" = set; then
3836 INSTALL=$ac_cv_path_install
3837 else
3838 # As a last resort, use the slow shell script. Don't cache a
3839 # value for INSTALL within a source directory, because that will
3840 # break other packages using the cache if that directory is
3841 # removed, or if the value is a relative name.
3842 INSTALL=$ac_install_sh
3843 fi
3844fi
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3846$as_echo "$INSTALL" >&6; }
3847
3848# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3849# It thinks the first close brace ends the variable substitution.
3850test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3851
3852test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3853
3854test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3855
3856test "$program_prefix" != NONE &&
3857 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3858# Use a double $ so make ignores it.
3859test "$program_suffix" != NONE &&
3860 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3861# Double any \ or $.
3862# By default was `s,x,x', remove it if useless.
3863ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3864program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3865
3866# expand $ac_aux_dir to an absolute path
3867am_aux_dir=`cd $ac_aux_dir && pwd`
3868
3869if test x"${MISSING+set}" != xset; then
3870 case $am_aux_dir in
3871 *\ * | *\ *)
3872 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3873 *)
3874 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3875 esac
3876fi
3877# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003878if eval "$MISSING --is-lightweight"; then
3879 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003880else
3881 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3883$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003884fi
3885
3886if test x"${install_sh}" != xset; then
3887 case $am_aux_dir in
3888 *\ * | *\ *)
3889 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3890 *)
3891 install_sh="\${SHELL} $am_aux_dir/install-sh"
3892 esac
3893fi
3894
cristyc0890a62012-07-19 00:18:20 +00003895# Installed binaries are usually stripped using 'strip' when the user
3896# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003897# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003898# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003899if test "$cross_compiling" != no; then
3900 if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3902set dummy ${ac_tool_prefix}strip; ac_word=$2
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003905if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003906 $as_echo_n "(cached) " >&6
3907else
3908 if test -n "$STRIP"; then
3909 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003918 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 break 2
3921 fi
3922done
3923 done
3924IFS=$as_save_IFS
3925
3926fi
3927fi
3928STRIP=$ac_cv_prog_STRIP
3929if test -n "$STRIP"; then
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3931$as_echo "$STRIP" >&6; }
3932else
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934$as_echo "no" >&6; }
3935fi
3936
3937
3938fi
3939if test -z "$ac_cv_prog_STRIP"; then
3940 ac_ct_STRIP=$STRIP
3941 # Extract the first word of "strip", so it can be a program name with args.
3942set dummy strip; ac_word=$2
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003945if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003946 $as_echo_n "(cached) " >&6
3947else
3948 if test -n "$ac_ct_STRIP"; then
3949 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3950else
3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952for as_dir in $PATH
3953do
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003958 ac_cv_prog_ac_ct_STRIP="strip"
3959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 break 2
3961 fi
3962done
3963 done
3964IFS=$as_save_IFS
3965
3966fi
3967fi
3968ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3969if test -n "$ac_ct_STRIP"; then
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3971$as_echo "$ac_ct_STRIP" >&6; }
3972else
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974$as_echo "no" >&6; }
3975fi
3976
3977 if test "x$ac_ct_STRIP" = x; then
3978 STRIP=":"
3979 else
3980 case $cross_compiling:$ac_tool_warned in
3981yes:)
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3984ac_tool_warned=yes ;;
3985esac
3986 STRIP=$ac_ct_STRIP
3987 fi
3988else
3989 STRIP="$ac_cv_prog_STRIP"
3990fi
3991
3992fi
3993INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3994
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3996$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3997if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003998 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003999 $as_echo_n "(cached) " >&6
4000else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4003do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_prog in mkdir gmkdir; do
4007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004008 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004009 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4010 'mkdir (GNU coreutils) '* | \
4011 'mkdir (coreutils) '* | \
4012 'mkdir (fileutils) '4.1*)
4013 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4014 break 3;;
4015 esac
4016 done
4017 done
4018 done
4019IFS=$as_save_IFS
4020
4021fi
4022
4023 test -d ./--version && rmdir ./--version
4024 if test "${ac_cv_path_mkdir+set}" = set; then
4025 MKDIR_P="$ac_cv_path_mkdir -p"
4026 else
4027 # As a last resort, use the slow shell script. Don't cache a
4028 # value for MKDIR_P within a source directory, because that will
4029 # break other packages using the cache if that directory is
4030 # removed, or if the value is a relative name.
4031 MKDIR_P="$ac_install_sh -d"
4032 fi
4033fi
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4035$as_echo "$MKDIR_P" >&6; }
4036
cristy73bd4a52010-10-05 11:24:23 +00004037for ac_prog in gawk mawk nawk awk
4038do
4039 # Extract the first word of "$ac_prog", so it can be a program name with args.
4040set dummy $ac_prog; ac_word=$2
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004043if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004044 $as_echo_n "(cached) " >&6
4045else
4046 if test -n "$AWK"; then
4047 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004056 ac_cv_prog_AWK="$ac_prog"
4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4059 fi
4060done
4061 done
4062IFS=$as_save_IFS
4063
4064fi
4065fi
4066AWK=$ac_cv_prog_AWK
4067if test -n "$AWK"; then
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4069$as_echo "$AWK" >&6; }
4070else
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072$as_echo "no" >&6; }
4073fi
4074
4075
4076 test -n "$AWK" && break
4077done
4078
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4080$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4081set x ${MAKE-make}
4082ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004083if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004084 $as_echo_n "(cached) " >&6
4085else
4086 cat >conftest.make <<\_ACEOF
4087SHELL = /bin/sh
4088all:
4089 @echo '@@@%%%=$(MAKE)=@@@%%%'
4090_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004091# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004092case `${MAKE-make} -f conftest.make 2>/dev/null` in
4093 *@@@%%%=?*=@@@%%%*)
4094 eval ac_cv_prog_make_${ac_make}_set=yes;;
4095 *)
4096 eval ac_cv_prog_make_${ac_make}_set=no;;
4097esac
4098rm -f conftest.make
4099fi
4100if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4102$as_echo "yes" >&6; }
4103 SET_MAKE=
4104else
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106$as_echo "no" >&6; }
4107 SET_MAKE="MAKE=${MAKE-make}"
4108fi
4109
4110rm -rf .tst 2>/dev/null
4111mkdir .tst 2>/dev/null
4112if test -d .tst; then
4113 am__leading_dot=.
4114else
4115 am__leading_dot=_
4116fi
4117rmdir .tst 2>/dev/null
4118
cristya448bd22011-10-14 12:38:13 +00004119# Check whether --enable-silent-rules was given.
4120if test "${enable_silent_rules+set}" = set; then :
4121 enableval=$enable_silent_rules;
4122fi
4123
cristyc0890a62012-07-19 00:18:20 +00004124case $enable_silent_rules in # (((
4125 yes) AM_DEFAULT_VERBOSITY=0;;
4126 no) AM_DEFAULT_VERBOSITY=1;;
4127 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004128esac
cristyc3fb77b2012-02-06 01:49:41 +00004129am_make=${MAKE-make}
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4131$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4132if ${am_cv_make_support_nested_variables+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134else
4135 if $as_echo 'TRUE=$(BAR$(V))
4136BAR0=false
4137BAR1=true
4138V=1
4139am__doit:
4140 @$(TRUE)
4141.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4142 am_cv_make_support_nested_variables=yes
4143else
4144 am_cv_make_support_nested_variables=no
4145fi
4146fi
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4148$as_echo "$am_cv_make_support_nested_variables" >&6; }
4149if test $am_cv_make_support_nested_variables = yes; then
4150 AM_V='$(V)'
4151 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4152else
4153 AM_V=$AM_DEFAULT_VERBOSITY
4154 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4155fi
cristya448bd22011-10-14 12:38:13 +00004156AM_BACKSLASH='\'
4157
cristy73bd4a52010-10-05 11:24:23 +00004158if test "`cd $srcdir && pwd`" != "`pwd`"; then
4159 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4160 # is not polluted with repeated "-I."
4161 am__isrc=' -I$(srcdir)'
4162 # test to see if srcdir already configured
4163 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004164 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004165 fi
4166fi
4167
4168# test whether we have cygpath
4169if test -z "$CYGPATH_W"; then
4170 if (cygpath --version) >/dev/null 2>/dev/null; then
4171 CYGPATH_W='cygpath -w'
4172 else
4173 CYGPATH_W=echo
4174 fi
4175fi
4176
4177
4178# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004179 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004180 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004181
4182
cristya448bd22011-10-14 12:38:13 +00004183cat >>confdefs.h <<_ACEOF
4184#define PACKAGE "$PACKAGE"
4185_ACEOF
4186
4187
4188cat >>confdefs.h <<_ACEOF
4189#define VERSION "$VERSION"
4190_ACEOF
4191
cristy73bd4a52010-10-05 11:24:23 +00004192# Some tools Automake needs.
4193
4194ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4195
4196
4197AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4198
4199
4200AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4201
4202
4203AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4204
4205
4206MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4207
cristyc0890a62012-07-19 00:18:20 +00004208# For better backward compatibility. To be removed once Automake 1.9.x
4209# dies out for good. For more background, see:
4210# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4211# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4212mkdir_p='$(MKDIR_P)'
4213
cristy73bd4a52010-10-05 11:24:23 +00004214# We need awk for the "check" target. The system "awk" is bad on
4215# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004216# Always define AMTAR for backward compatibility. Yes, it's still used
4217# in the wild :-( We should find a proper way to deprecate it ...
4218AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004219
cristyc3fb77b2012-02-06 01:49:41 +00004220am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004221
4222
4223
4224
4225
cristy3ed852e2009-09-05 21:47:34 +00004226
4227# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004228# Check whether --enable-silent-rules was given.
4229if test "${enable_silent_rules+set}" = set; then :
4230 enableval=$enable_silent_rules;
4231fi
4232
cristyc0890a62012-07-19 00:18:20 +00004233case $enable_silent_rules in # (((
4234 yes) AM_DEFAULT_VERBOSITY=0;;
4235 no) AM_DEFAULT_VERBOSITY=1;;
4236 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004237esac
cristyc3fb77b2012-02-06 01:49:41 +00004238am_make=${MAKE-make}
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4240$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4241if ${am_cv_make_support_nested_variables+:} false; then :
4242 $as_echo_n "(cached) " >&6
4243else
4244 if $as_echo 'TRUE=$(BAR$(V))
4245BAR0=false
4246BAR1=true
4247V=1
4248am__doit:
4249 @$(TRUE)
4250.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4251 am_cv_make_support_nested_variables=yes
4252else
4253 am_cv_make_support_nested_variables=no
4254fi
4255fi
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4257$as_echo "$am_cv_make_support_nested_variables" >&6; }
4258if test $am_cv_make_support_nested_variables = yes; then
4259 AM_V='$(V)'
4260 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4261else
4262 AM_V=$AM_DEFAULT_VERBOSITY
4263 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4264fi
cristy73bd4a52010-10-05 11:24:23 +00004265AM_BACKSLASH='\'
4266
cristy3ed852e2009-09-05 21:47:34 +00004267
4268MAGICK_LIB_VERSION="0x"
4269if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4270 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4271fi
4272MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4273if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4274 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4275fi
4276MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4277if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4278 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4279fi
4280MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4281
4282
4283# Definition used to define MagickLibVersionText in version.h
4284MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4285
4286
4287# Definition used to define MagickLibVersionNumber in version.h
4288MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4289
4290
4291# Regenerate config.status if ChangeLog or version.sh is updated.
4292CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4293
4294
4295PERLMAINCC=$CC
4296
4297MAGICK_CFLAGS=''
4298MAGICK_CPPFLAGS=$CPPFLAGS_USER
4299MAGICK_PCFLAGS=$CPPFLAGS_USER
4300MAGICK_LDFLAGS=''
4301MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004302MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004303
4304#
4305# Evaluate shell variable equivalents to Makefile directory variables
4306#
4307if test "x$prefix" = xNONE; then
4308 prefix=$ac_default_prefix
4309fi
4310# Let make expand exec_prefix.
4311if test "x$exec_prefix" = xNONE; then
4312 exec_prefix='${prefix}'
4313fi
4314
4315#
4316eval "eval PREFIX_DIR=${prefix}"
4317
4318eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4319
4320eval "eval BIN_DIR=$bindir"
4321
4322eval "eval SBIN_DIR=$sbindir"
4323
4324eval "eval LIBEXEC_DIR=$libexecdir"
4325
4326eval "eval DATA_DIR=$datadir"
4327
cristy4e65ec22012-04-08 01:33:27 +00004328eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004329
cristy3ed852e2009-09-05 21:47:34 +00004330eval "eval SYSCONF_DIR=$sysconfdir"
4331
4332eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4333
4334eval "eval LOCALSTATE_DIR=$localstatedir"
4335
4336eval "eval LIB_DIR=$libdir"
4337
4338eval "eval INCLUDE_DIR=$includedir"
4339
4340eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4341
4342eval "eval INFO_DIR=$infodir"
4343
4344eval "eval MAN_DIR=$mandir"
4345
4346
4347# Get full paths to source and build directories
4348srcdirfull="`cd $srcdir && pwd`"
4349builddir="`pwd`"
4350
4351#
4352# Compute variables useful for running uninstalled software.
4353#
4354MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4355MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4356MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4357MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4358DIRSEP=':'
4359case "${build_os}" in
4360 mingw* )
4361 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4362 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4363 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4364 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4365 DIRSEP=';'
4366 ;;
4367esac
4368case "${host_os}" in
4369 mingw* )
4370 DIRSEP=';'
4371 ;;
4372esac
4373
4374
4375
4376
4377
4378
cristya0b81c32010-01-22 02:54:33 +00004379
4380#
4381# Enable OS features.
4382#
cristy73bd4a52010-10-05 11:24:23 +00004383DEPDIR="${am__leading_dot}deps"
4384
4385ac_config_commands="$ac_config_commands depfiles"
4386
4387
4388am_make=${MAKE-make}
4389cat > confinc << 'END'
4390am__doit:
4391 @echo this is the am__doit target
4392.PHONY: am__doit
4393END
4394# If we don't find an include directive, just comment out the code.
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4396$as_echo_n "checking for style of include used by $am_make... " >&6; }
4397am__include="#"
4398am__quote=
4399_am_result=none
4400# First try GNU make style include.
4401echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004402# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004403case `$am_make -s -f confmf 2> /dev/null` in #(
4404*the\ am__doit\ target*)
4405 am__include=include
4406 am__quote=
4407 _am_result=GNU
4408 ;;
4409esac
4410# Now try BSD make style include.
4411if test "$am__include" = "#"; then
4412 echo '.include "confinc"' > confmf
4413 case `$am_make -s -f confmf 2> /dev/null` in #(
4414 *the\ am__doit\ target*)
4415 am__include=.include
4416 am__quote="\""
4417 _am_result=BSD
4418 ;;
4419 esac
4420fi
4421
4422
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4424$as_echo "$_am_result" >&6; }
4425rm -f confinc confmf
4426
4427# Check whether --enable-dependency-tracking was given.
4428if test "${enable_dependency_tracking+set}" = set; then :
4429 enableval=$enable_dependency_tracking;
4430fi
4431
4432if test "x$enable_dependency_tracking" != xno; then
4433 am_depcomp="$ac_aux_dir/depcomp"
4434 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004435 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004436fi
4437 if test "x$enable_dependency_tracking" != xno; then
4438 AMDEP_TRUE=
4439 AMDEP_FALSE='#'
4440else
4441 AMDEP_TRUE='#'
4442 AMDEP_FALSE=
4443fi
4444
4445
cristy3ed852e2009-09-05 21:47:34 +00004446ac_ext=c
4447ac_cpp='$CPP $CPPFLAGS'
4448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4450ac_compiler_gnu=$ac_cv_c_compiler_gnu
4451if test -n "$ac_tool_prefix"; then
4452 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4453set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004455$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004456if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004457 $as_echo_n "(cached) " >&6
4458else
4459 if test -n "$CC"; then
4460 ac_cv_prog_CC="$CC" # Let the user override the test.
4461else
4462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH
4464do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004467 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004469 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004471 break 2
4472 fi
4473done
cristy8b350f62009-11-15 23:12:43 +00004474 done
cristy3ed852e2009-09-05 21:47:34 +00004475IFS=$as_save_IFS
4476
4477fi
4478fi
4479CC=$ac_cv_prog_CC
4480if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004482$as_echo "$CC" >&6; }
4483else
cristy8b350f62009-11-15 23:12:43 +00004484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004485$as_echo "no" >&6; }
4486fi
4487
4488
4489fi
4490if test -z "$ac_cv_prog_CC"; then
4491 ac_ct_CC=$CC
4492 # Extract the first word of "gcc", so it can be a program name with args.
4493set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004496if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004497 $as_echo_n "(cached) " >&6
4498else
4499 if test -n "$ac_ct_CC"; then
4500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4501else
4502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503for as_dir in $PATH
4504do
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004507 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004509 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004511 break 2
4512 fi
4513done
cristy8b350f62009-11-15 23:12:43 +00004514 done
cristy3ed852e2009-09-05 21:47:34 +00004515IFS=$as_save_IFS
4516
4517fi
4518fi
4519ac_ct_CC=$ac_cv_prog_ac_ct_CC
4520if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004522$as_echo "$ac_ct_CC" >&6; }
4523else
cristy8b350f62009-11-15 23:12:43 +00004524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004525$as_echo "no" >&6; }
4526fi
4527
4528 if test "x$ac_ct_CC" = x; then
4529 CC=""
4530 else
4531 case $cross_compiling:$ac_tool_warned in
4532yes:)
cristy8b350f62009-11-15 23:12:43 +00004533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4535ac_tool_warned=yes ;;
4536esac
4537 CC=$ac_ct_CC
4538 fi
4539else
4540 CC="$ac_cv_prog_CC"
4541fi
4542
4543if test -z "$CC"; then
4544 if test -n "$ac_tool_prefix"; then
4545 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4546set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004548$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004549if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004550 $as_echo_n "(cached) " >&6
4551else
4552 if test -n "$CC"; then
4553 ac_cv_prog_CC="$CC" # Let the user override the test.
4554else
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004562 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004564 break 2
4565 fi
4566done
cristy8b350f62009-11-15 23:12:43 +00004567 done
cristy3ed852e2009-09-05 21:47:34 +00004568IFS=$as_save_IFS
4569
4570fi
4571fi
4572CC=$ac_cv_prog_CC
4573if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004575$as_echo "$CC" >&6; }
4576else
cristy8b350f62009-11-15 23:12:43 +00004577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004578$as_echo "no" >&6; }
4579fi
4580
4581
4582 fi
4583fi
4584if test -z "$CC"; then
4585 # Extract the first word of "cc", so it can be a program name with args.
4586set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004588$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004589if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004590 $as_echo_n "(cached) " >&6
4591else
4592 if test -n "$CC"; then
4593 ac_cv_prog_CC="$CC" # Let the user override the test.
4594else
4595 ac_prog_rejected=no
4596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004603 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4604 ac_prog_rejected=yes
4605 continue
4606 fi
4607 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004609 break 2
4610 fi
4611done
cristy8b350f62009-11-15 23:12:43 +00004612 done
cristy3ed852e2009-09-05 21:47:34 +00004613IFS=$as_save_IFS
4614
4615if test $ac_prog_rejected = yes; then
4616 # We found a bogon in the path, so make sure we never use it.
4617 set dummy $ac_cv_prog_CC
4618 shift
4619 if test $# != 0; then
4620 # We chose a different compiler from the bogus one.
4621 # However, it has the same basename, so the bogon will be chosen
4622 # first if we set CC to just the basename; use the full file name.
4623 shift
4624 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4625 fi
4626fi
4627fi
4628fi
4629CC=$ac_cv_prog_CC
4630if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004632$as_echo "$CC" >&6; }
4633else
cristy8b350f62009-11-15 23:12:43 +00004634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004635$as_echo "no" >&6; }
4636fi
4637
4638
4639fi
4640if test -z "$CC"; then
4641 if test -n "$ac_tool_prefix"; then
4642 for ac_prog in cl.exe
4643 do
4644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4645set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004647$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004648if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004649 $as_echo_n "(cached) " >&6
4650else
4651 if test -n "$CC"; then
4652 ac_cv_prog_CC="$CC" # Let the user override the test.
4653else
4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004661 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004663 break 2
4664 fi
4665done
cristy8b350f62009-11-15 23:12:43 +00004666 done
cristy3ed852e2009-09-05 21:47:34 +00004667IFS=$as_save_IFS
4668
4669fi
4670fi
4671CC=$ac_cv_prog_CC
4672if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004674$as_echo "$CC" >&6; }
4675else
cristy8b350f62009-11-15 23:12:43 +00004676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004677$as_echo "no" >&6; }
4678fi
4679
4680
4681 test -n "$CC" && break
4682 done
4683fi
4684if test -z "$CC"; then
4685 ac_ct_CC=$CC
4686 for ac_prog in cl.exe
4687do
4688 # Extract the first word of "$ac_prog", so it can be a program name with args.
4689set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004691$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004692if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004693 $as_echo_n "(cached) " >&6
4694else
4695 if test -n "$ac_ct_CC"; then
4696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004705 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004707 break 2
4708 fi
4709done
cristy8b350f62009-11-15 23:12:43 +00004710 done
cristy3ed852e2009-09-05 21:47:34 +00004711IFS=$as_save_IFS
4712
4713fi
4714fi
4715ac_ct_CC=$ac_cv_prog_ac_ct_CC
4716if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718$as_echo "$ac_ct_CC" >&6; }
4719else
cristy8b350f62009-11-15 23:12:43 +00004720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004721$as_echo "no" >&6; }
4722fi
4723
4724
4725 test -n "$ac_ct_CC" && break
4726done
4727
4728 if test "x$ac_ct_CC" = x; then
4729 CC=""
4730 else
4731 case $cross_compiling:$ac_tool_warned in
4732yes:)
cristy8b350f62009-11-15 23:12:43 +00004733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735ac_tool_warned=yes ;;
4736esac
4737 CC=$ac_ct_CC
4738 fi
4739fi
4740
4741fi
4742
4743
cristy8b350f62009-11-15 23:12:43 +00004744test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004746as_fn_error $? "no acceptable C compiler found in \$PATH
4747See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004748
4749# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004750$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004751set X $ac_compile
4752ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004753for ac_option in --version -v -V -qversion; do
4754 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004755case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4758esac
cristy8b350f62009-11-15 23:12:43 +00004759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4760$as_echo "$ac_try_echo"; } >&5
4761 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004762 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004763 if test -s conftest.err; then
4764 sed '10a\
4765... rest of stderr output deleted ...
4766 10q' conftest.err >conftest.er1
4767 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004768 fi
cristycd4c5312009-11-22 01:19:08 +00004769 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4771 test $ac_status = 0; }
4772done
cristy3ed852e2009-09-05 21:47:34 +00004773
cristy8b350f62009-11-15 23:12:43 +00004774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004775/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004776
cristy3ed852e2009-09-05 21:47:34 +00004777int
4778main ()
4779{
4780
4781 ;
4782 return 0;
4783}
4784_ACEOF
4785ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004786ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004787# Try to create an executable without -o first, disregard a.out.
4788# It will help us diagnose broken compilers, and finding out an intuition
4789# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4791$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004792ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4793
4794# The possible output files:
4795ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4796
4797ac_rmfiles=
4798for ac_file in $ac_files
4799do
4800 case $ac_file in
4801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4802 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4803 esac
4804done
4805rm -f $ac_rmfiles
4806
cristy8b350f62009-11-15 23:12:43 +00004807if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004808case "(($ac_try" in
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4811esac
cristy8b350f62009-11-15 23:12:43 +00004812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4813$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004814 (eval "$ac_link_default") 2>&5
4815 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4817 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004818 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4819# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4820# in a Makefile. We should not override ac_cv_exeext if it was cached,
4821# so that the user can short-circuit this test for compilers unknown to
4822# Autoconf.
4823for ac_file in $ac_files ''
4824do
4825 test -f "$ac_file" || continue
4826 case $ac_file in
4827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4828 ;;
4829 [ab].out )
4830 # We found the default executable, but exeext='' is most
4831 # certainly right.
4832 break;;
4833 *.* )
cristy8b350f62009-11-15 23:12:43 +00004834 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004835 then :; else
4836 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4837 fi
4838 # We set ac_cv_exeext here because the later test for it is not
4839 # safe: cross compilers may not add the suffix if given an `-o'
4840 # argument, so we may need to know it at that point already.
4841 # Even if this section looks crufty: it has the advantage of
4842 # actually working.
4843 break;;
4844 * )
4845 break;;
4846 esac
4847done
4848test "$ac_cv_exeext" = no && ac_cv_exeext=
4849
4850else
4851 ac_file=''
4852fi
cristy8b350f62009-11-15 23:12:43 +00004853if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855$as_echo "no" >&6; }
4856$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004857sed 's/^/| /' conftest.$ac_ext >&5
4858
cristy8b350f62009-11-15 23:12:43 +00004859{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004861as_fn_error 77 "C compiler cannot create executables
4862See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004863else
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4865$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004866fi
cristycd4c5312009-11-22 01:19:08 +00004867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4868$as_echo_n "checking for C compiler default output file name... " >&6; }
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4870$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004871ac_exeext=$ac_cv_exeext
4872
cristycd4c5312009-11-22 01:19:08 +00004873rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004874ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004876$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004877if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004878case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881esac
cristy8b350f62009-11-15 23:12:43 +00004882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4883$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004884 (eval "$ac_link") 2>&5
4885 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4887 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4889# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4890# work properly (i.e., refer to `conftest.exe'), while it won't with
4891# `rm'.
4892for ac_file in conftest.exe conftest conftest.*; do
4893 test -f "$ac_file" || continue
4894 case $ac_file in
4895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4897 break;;
4898 * ) break;;
4899 esac
4900done
4901else
cristy8b350f62009-11-15 23:12:43 +00004902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004904as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4905See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004906fi
cristycd4c5312009-11-22 01:19:08 +00004907rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004909$as_echo "$ac_cv_exeext" >&6; }
4910
4911rm -f conftest.$ac_ext
4912EXEEXT=$ac_cv_exeext
4913ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915/* end confdefs.h. */
4916#include <stdio.h>
4917int
4918main ()
4919{
4920FILE *f = fopen ("conftest.out", "w");
4921 return ferror (f) || fclose (f) != 0;
4922
4923 ;
4924 return 0;
4925}
4926_ACEOF
4927ac_clean_files="$ac_clean_files conftest.out"
4928# Check that the compiler produces executables we can run. If not, either
4929# the compiler is broken, or we cross compile.
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4931$as_echo_n "checking whether we are cross compiling... " >&6; }
4932if test "$cross_compiling" != yes; then
4933 { { ac_try="$ac_link"
4934case "(($ac_try" in
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4937esac
4938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4939$as_echo "$ac_try_echo"; } >&5
4940 (eval "$ac_link") 2>&5
4941 ac_status=$?
4942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4943 test $ac_status = 0; }
4944 if { ac_try='./conftest$ac_cv_exeext'
4945 { { case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948esac
4949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4950$as_echo "$ac_try_echo"; } >&5
4951 (eval "$ac_try") 2>&5
4952 ac_status=$?
4953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4954 test $ac_status = 0; }; }; then
4955 cross_compiling=no
4956 else
4957 if test "$cross_compiling" = maybe; then
4958 cross_compiling=yes
4959 else
4960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004962as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004963If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004964See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004965 fi
4966 fi
4967fi
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4969$as_echo "$cross_compiling" >&6; }
4970
4971rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4972ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004974$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004975if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004976 $as_echo_n "(cached) " >&6
4977else
cristy8b350f62009-11-15 23:12:43 +00004978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004979/* end confdefs.h. */
4980
4981int
4982main ()
4983{
4984
4985 ;
4986 return 0;
4987}
4988_ACEOF
4989rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004990if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004991case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994esac
cristy8b350f62009-11-15 23:12:43 +00004995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4996$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004997 (eval "$ac_compile") 2>&5
4998 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5000 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005001 for ac_file in conftest.o conftest.obj conftest.*; do
5002 test -f "$ac_file" || continue;
5003 case $ac_file in
5004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5005 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5006 break;;
5007 esac
5008done
5009else
5010 $as_echo "$as_me: failed program was:" >&5
5011sed 's/^/| /' conftest.$ac_ext >&5
5012
cristy8b350f62009-11-15 23:12:43 +00005013{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005015as_fn_error $? "cannot compute suffix of object files: cannot compile
5016See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005017fi
cristy3ed852e2009-09-05 21:47:34 +00005018rm -f conftest.$ac_cv_objext conftest.$ac_ext
5019fi
cristy8b350f62009-11-15 23:12:43 +00005020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005021$as_echo "$ac_cv_objext" >&6; }
5022OBJEXT=$ac_cv_objext
5023ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005025$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005026if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005027 $as_echo_n "(cached) " >&6
5028else
cristy8b350f62009-11-15 23:12:43 +00005029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005030/* end confdefs.h. */
5031
5032int
5033main ()
5034{
5035#ifndef __GNUC__
5036 choke me
5037#endif
5038
5039 ;
5040 return 0;
5041}
5042_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005043if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005044 ac_compiler_gnu=yes
5045else
cristy8b350f62009-11-15 23:12:43 +00005046 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005047fi
cristy3ed852e2009-09-05 21:47:34 +00005048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049ac_cv_c_compiler_gnu=$ac_compiler_gnu
5050
5051fi
cristy8b350f62009-11-15 23:12:43 +00005052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005053$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5054if test $ac_compiler_gnu = yes; then
5055 GCC=yes
5056else
5057 GCC=
5058fi
5059ac_test_CFLAGS=${CFLAGS+set}
5060ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005062$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005063if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005064 $as_echo_n "(cached) " >&6
5065else
5066 ac_save_c_werror_flag=$ac_c_werror_flag
5067 ac_c_werror_flag=yes
5068 ac_cv_prog_cc_g=no
5069 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005071/* end confdefs.h. */
5072
5073int
5074main ()
5075{
5076
5077 ;
5078 return 0;
5079}
5080_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005081if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005082 ac_cv_prog_cc_g=yes
5083else
cristy8b350f62009-11-15 23:12:43 +00005084 CFLAGS=""
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005086/* end confdefs.h. */
5087
5088int
5089main ()
5090{
5091
5092 ;
5093 return 0;
5094}
5095_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005096if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005097
cristy8b350f62009-11-15 23:12:43 +00005098else
5099 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005100 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005102/* end confdefs.h. */
5103
5104int
5105main ()
5106{
5107
5108 ;
5109 return 0;
5110}
5111_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005112if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005113 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005114fi
cristy3ed852e2009-09-05 21:47:34 +00005115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116fi
cristy3ed852e2009-09-05 21:47:34 +00005117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118fi
cristy3ed852e2009-09-05 21:47:34 +00005119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120 ac_c_werror_flag=$ac_save_c_werror_flag
5121fi
cristy8b350f62009-11-15 23:12:43 +00005122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005123$as_echo "$ac_cv_prog_cc_g" >&6; }
5124if test "$ac_test_CFLAGS" = set; then
5125 CFLAGS=$ac_save_CFLAGS
5126elif test $ac_cv_prog_cc_g = yes; then
5127 if test "$GCC" = yes; then
5128 CFLAGS="-g -O2"
5129 else
5130 CFLAGS="-g"
5131 fi
5132else
5133 if test "$GCC" = yes; then
5134 CFLAGS="-O2"
5135 else
5136 CFLAGS=
5137 fi
5138fi
cristy8b350f62009-11-15 23:12:43 +00005139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005140$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005141if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005142 $as_echo_n "(cached) " >&6
5143else
5144 ac_cv_prog_cc_c89=no
5145ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005147/* end confdefs.h. */
5148#include <stdarg.h>
5149#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005150struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005151/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5152struct buf { int x; };
5153FILE * (*rcsopen) (struct buf *, struct stat *, int);
5154static char *e (p, i)
5155 char **p;
5156 int i;
5157{
5158 return p[i];
5159}
5160static char *f (char * (*g) (char **, int), char **p, ...)
5161{
5162 char *s;
5163 va_list v;
5164 va_start (v,p);
5165 s = g (p, va_arg (v,int));
5166 va_end (v);
5167 return s;
5168}
5169
5170/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5171 function prototypes and stuff, but not '\xHH' hex character constants.
5172 These don't provoke an error unfortunately, instead are silently treated
5173 as 'x'. The following induces an error, until -std is added to get
5174 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5175 array size at least. It's necessary to write '\x00'==0 to get something
5176 that's true only with -std. */
5177int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5178
5179/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5180 inside strings and character constants. */
5181#define FOO(x) 'x'
5182int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5183
5184int test (int i, double x);
5185struct s1 {int (*f) (int a);};
5186struct s2 {int (*f) (double a);};
5187int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5188int argc;
5189char **argv;
5190int
5191main ()
5192{
5193return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5194 ;
5195 return 0;
5196}
5197_ACEOF
5198for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5199 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5200do
5201 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005202 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005203 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005204fi
cristy3ed852e2009-09-05 21:47:34 +00005205rm -f core conftest.err conftest.$ac_objext
5206 test "x$ac_cv_prog_cc_c89" != "xno" && break
5207done
5208rm -f conftest.$ac_ext
5209CC=$ac_save_CC
5210
5211fi
5212# AC_CACHE_VAL
5213case "x$ac_cv_prog_cc_c89" in
5214 x)
cristy8b350f62009-11-15 23:12:43 +00005215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005216$as_echo "none needed" >&6; } ;;
5217 xno)
cristy8b350f62009-11-15 23:12:43 +00005218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005219$as_echo "unsupported" >&6; } ;;
5220 *)
5221 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005223$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5224esac
cristy8b350f62009-11-15 23:12:43 +00005225if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005226
cristy8b350f62009-11-15 23:12:43 +00005227fi
cristy3ed852e2009-09-05 21:47:34 +00005228
5229ac_ext=c
5230ac_cpp='$CPP $CPPFLAGS'
5231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5233ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005234
cristy73bd4a52010-10-05 11:24:23 +00005235depcc="$CC" am_compiler_list=
5236
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5238$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005239if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005240 $as_echo_n "(cached) " >&6
5241else
5242 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5243 # We make a subdir and do the tests there. Otherwise we can end up
5244 # making bogus files that we don't know about and never remove. For
5245 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005246 # making a dummy file named 'D' -- because '-MD' means "put the output
5247 # in D".
cristy7247bba2012-02-05 16:37:27 +00005248 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005249 mkdir conftest.dir
5250 # Copy depcomp to subdir because otherwise we won't find it if we're
5251 # using a relative directory.
5252 cp "$am_depcomp" conftest.dir
5253 cd conftest.dir
5254 # We will build objects and dependencies in a subdirectory because
5255 # it helps to detect inapplicable dependency modes. For instance
5256 # both Tru64's cc and ICC support -MD to output dependencies as a
5257 # side effect of compilation, but ICC will put the dependencies in
5258 # the current directory while Tru64 will put them in the object
5259 # directory.
5260 mkdir sub
5261
5262 am_cv_CC_dependencies_compiler_type=none
5263 if test "$am_compiler_list" = ""; then
5264 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5265 fi
5266 am__universal=false
5267 case " $depcc " in #(
5268 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5269 esac
5270
5271 for depmode in $am_compiler_list; do
5272 # Setup a source with many dependencies, because some compilers
5273 # like to wrap large dependency lists on column 80 (with \), and
5274 # we should not choose a depcomp mode which is confused by this.
5275 #
5276 # We need to recreate these files for each test, as the compiler may
5277 # overwrite some of them when testing with obscure command lines.
5278 # This happens at least with the AIX C compiler.
5279 : > sub/conftest.c
5280 for i in 1 2 3 4 5 6; do
5281 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005282 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5283 # Solaris 10 /bin/sh.
5284 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005285 done
5286 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5287
cristyc0890a62012-07-19 00:18:20 +00005288 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005289 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005290 # handle '-M -o', and we need to detect this. Also, some Intel
5291 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005292 am__obj=sub/conftest.${OBJEXT-o}
5293 am__minus_obj="-o $am__obj"
5294 case $depmode in
5295 gcc)
5296 # This depmode causes a compiler race in universal mode.
5297 test "$am__universal" = false || continue
5298 ;;
5299 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005300 # After this tag, mechanisms are not by side-effect, so they'll
5301 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005302 if test "x$enable_dependency_tracking" = xyes; then
5303 continue
5304 else
5305 break
5306 fi
5307 ;;
cristy7247bba2012-02-05 16:37:27 +00005308 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005309 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005310 # not run yet. These depmodes are late enough in the game, and
5311 # so weak that their functioning should not be impacted.
5312 am__obj=conftest.${OBJEXT-o}
5313 am__minus_obj=
5314 ;;
5315 none) break ;;
5316 esac
5317 if depmode=$depmode \
5318 source=sub/conftest.c object=$am__obj \
5319 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5320 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5321 >/dev/null 2>conftest.err &&
5322 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5323 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5324 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5325 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5326 # icc doesn't choke on unknown options, it will just issue warnings
5327 # or remarks (even with -Werror). So we grep stderr for any message
5328 # that says an option was ignored or not supported.
5329 # When given -MP, icc 7.0 and 7.1 complain thusly:
5330 # icc: Command line warning: ignoring option '-M'; no argument required
5331 # The diagnosis changed in icc 8.0:
5332 # icc: Command line remark: option '-MP' not supported
5333 if (grep 'ignoring option' conftest.err ||
5334 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5335 am_cv_CC_dependencies_compiler_type=$depmode
5336 break
5337 fi
5338 fi
5339 done
5340
5341 cd ..
5342 rm -rf conftest.dir
5343else
5344 am_cv_CC_dependencies_compiler_type=none
5345fi
5346
5347fi
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5349$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5350CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5351
5352 if
5353 test "x$enable_dependency_tracking" != xno \
5354 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5355 am__fastdepCC_TRUE=
5356 am__fastdepCC_FALSE='#'
5357else
5358 am__fastdepCC_TRUE='#'
5359 am__fastdepCC_FALSE=
5360fi
5361
5362
cristy3ed852e2009-09-05 21:47:34 +00005363
cristya0b81c32010-01-22 02:54:33 +00005364ac_ext=c
5365ac_cpp='$CPP $CPPFLAGS'
5366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5368ac_compiler_gnu=$ac_cv_c_compiler_gnu
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5370$as_echo_n "checking how to run the C preprocessor... " >&6; }
5371# On Suns, sometimes $CPP names a directory.
5372if test -n "$CPP" && test -d "$CPP"; then
5373 CPP=
5374fi
5375if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005376 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005377 $as_echo_n "(cached) " >&6
5378else
5379 # Double quotes because CPP needs to be expanded
5380 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5381 do
5382 ac_preproc_ok=false
5383for ac_c_preproc_warn_flag in '' yes
5384do
5385 # Use a header file that comes with gcc, so configuring glibc
5386 # with a fresh cross-compiler works.
5387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5388 # <limits.h> exists even on freestanding compilers.
5389 # On the NeXT, cc -E runs the code through the compiler's parser,
5390 # not just through cpp. "Syntax error" is here to catch this case.
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h. */
5393#ifdef __STDC__
5394# include <limits.h>
5395#else
5396# include <assert.h>
5397#endif
5398 Syntax error
5399_ACEOF
5400if ac_fn_c_try_cpp "$LINENO"; then :
5401
5402else
5403 # Broken: fails on valid input.
5404continue
5405fi
cristyda16f162011-02-19 23:52:17 +00005406rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005407
5408 # OK, works on sane cases. Now check whether nonexistent headers
5409 # can be detected and how.
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411/* end confdefs.h. */
5412#include <ac_nonexistent.h>
5413_ACEOF
5414if ac_fn_c_try_cpp "$LINENO"; then :
5415 # Broken: success on invalid input.
5416continue
5417else
5418 # Passes both tests.
5419ac_preproc_ok=:
5420break
5421fi
cristyda16f162011-02-19 23:52:17 +00005422rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005423
5424done
5425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005426rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005427if $ac_preproc_ok; then :
5428 break
5429fi
5430
5431 done
5432 ac_cv_prog_CPP=$CPP
5433
5434fi
5435 CPP=$ac_cv_prog_CPP
5436else
5437 ac_cv_prog_CPP=$CPP
5438fi
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5440$as_echo "$CPP" >&6; }
5441ac_preproc_ok=false
5442for ac_c_preproc_warn_flag in '' yes
5443do
5444 # Use a header file that comes with gcc, so configuring glibc
5445 # with a fresh cross-compiler works.
5446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5447 # <limits.h> exists even on freestanding compilers.
5448 # On the NeXT, cc -E runs the code through the compiler's parser,
5449 # not just through cpp. "Syntax error" is here to catch this case.
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h. */
5452#ifdef __STDC__
5453# include <limits.h>
5454#else
5455# include <assert.h>
5456#endif
5457 Syntax error
5458_ACEOF
5459if ac_fn_c_try_cpp "$LINENO"; then :
5460
5461else
5462 # Broken: fails on valid input.
5463continue
5464fi
cristyda16f162011-02-19 23:52:17 +00005465rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005466
5467 # OK, works on sane cases. Now check whether nonexistent headers
5468 # can be detected and how.
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h. */
5471#include <ac_nonexistent.h>
5472_ACEOF
5473if ac_fn_c_try_cpp "$LINENO"; then :
5474 # Broken: success on invalid input.
5475continue
5476else
5477 # Passes both tests.
5478ac_preproc_ok=:
5479break
5480fi
cristyda16f162011-02-19 23:52:17 +00005481rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005482
5483done
5484# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005485rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005486if $ac_preproc_ok; then :
5487
5488else
5489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005491as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5492See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005493fi
5494
5495ac_ext=c
5496ac_cpp='$CPP $CPPFLAGS'
5497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499ac_compiler_gnu=$ac_cv_c_compiler_gnu
5500
5501
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5503$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005504if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005505 $as_echo_n "(cached) " >&6
5506else
5507 if test -z "$GREP"; then
5508 ac_path_GREP_found=false
5509 # Loop through the user's path and test for each of PROGNAME-LIST
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5512do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_prog in grep ggrep; do
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005518 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005519# Check for GNU ac_path_GREP and select it if it is found.
5520 # Check for GNU $ac_path_GREP
5521case `"$ac_path_GREP" --version 2>&1` in
5522*GNU*)
5523 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5524*)
5525 ac_count=0
5526 $as_echo_n 0123456789 >"conftest.in"
5527 while :
5528 do
5529 cat "conftest.in" "conftest.in" >"conftest.tmp"
5530 mv "conftest.tmp" "conftest.in"
5531 cp "conftest.in" "conftest.nl"
5532 $as_echo 'GREP' >> "conftest.nl"
5533 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5535 as_fn_arith $ac_count + 1 && ac_count=$as_val
5536 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5537 # Best one so far, save it but keep looking for a better one
5538 ac_cv_path_GREP="$ac_path_GREP"
5539 ac_path_GREP_max=$ac_count
5540 fi
5541 # 10*(2^10) chars as input seems more than enough
5542 test $ac_count -gt 10 && break
5543 done
5544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5545esac
5546
5547 $ac_path_GREP_found && break 3
5548 done
5549 done
5550 done
5551IFS=$as_save_IFS
5552 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005553 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005554 fi
5555else
5556 ac_cv_path_GREP=$GREP
5557fi
5558
5559fi
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5561$as_echo "$ac_cv_path_GREP" >&6; }
5562 GREP="$ac_cv_path_GREP"
5563
5564
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5566$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005567if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005568 $as_echo_n "(cached) " >&6
5569else
5570 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5571 then ac_cv_path_EGREP="$GREP -E"
5572 else
5573 if test -z "$EGREP"; then
5574 ac_path_EGREP_found=false
5575 # Loop through the user's path and test for each of PROGNAME-LIST
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5578do
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_prog in egrep; do
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005584 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005585# Check for GNU ac_path_EGREP and select it if it is found.
5586 # Check for GNU $ac_path_EGREP
5587case `"$ac_path_EGREP" --version 2>&1` in
5588*GNU*)
5589 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5590*)
5591 ac_count=0
5592 $as_echo_n 0123456789 >"conftest.in"
5593 while :
5594 do
5595 cat "conftest.in" "conftest.in" >"conftest.tmp"
5596 mv "conftest.tmp" "conftest.in"
5597 cp "conftest.in" "conftest.nl"
5598 $as_echo 'EGREP' >> "conftest.nl"
5599 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5601 as_fn_arith $ac_count + 1 && ac_count=$as_val
5602 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5603 # Best one so far, save it but keep looking for a better one
5604 ac_cv_path_EGREP="$ac_path_EGREP"
5605 ac_path_EGREP_max=$ac_count
5606 fi
5607 # 10*(2^10) chars as input seems more than enough
5608 test $ac_count -gt 10 && break
5609 done
5610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5611esac
5612
5613 $ac_path_EGREP_found && break 3
5614 done
5615 done
5616 done
5617IFS=$as_save_IFS
5618 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005619 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005620 fi
5621else
5622 ac_cv_path_EGREP=$EGREP
5623fi
5624
5625 fi
5626fi
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5628$as_echo "$ac_cv_path_EGREP" >&6; }
5629 EGREP="$ac_cv_path_EGREP"
5630
5631
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5633$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005634if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005635 $as_echo_n "(cached) " >&6
5636else
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638/* end confdefs.h. */
5639#include <stdlib.h>
5640#include <stdarg.h>
5641#include <string.h>
5642#include <float.h>
5643
5644int
5645main ()
5646{
5647
5648 ;
5649 return 0;
5650}
5651_ACEOF
5652if ac_fn_c_try_compile "$LINENO"; then :
5653 ac_cv_header_stdc=yes
5654else
5655 ac_cv_header_stdc=no
5656fi
5657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658
5659if test $ac_cv_header_stdc = yes; then
5660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662/* end confdefs.h. */
5663#include <string.h>
5664
5665_ACEOF
5666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5667 $EGREP "memchr" >/dev/null 2>&1; then :
5668
5669else
5670 ac_cv_header_stdc=no
5671fi
5672rm -f conftest*
5673
5674fi
5675
5676if test $ac_cv_header_stdc = yes; then
5677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679/* end confdefs.h. */
5680#include <stdlib.h>
5681
5682_ACEOF
5683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5684 $EGREP "free" >/dev/null 2>&1; then :
5685
5686else
5687 ac_cv_header_stdc=no
5688fi
5689rm -f conftest*
5690
5691fi
5692
5693if test $ac_cv_header_stdc = yes; then
5694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5695 if test "$cross_compiling" = yes; then :
5696 :
5697else
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699/* end confdefs.h. */
5700#include <ctype.h>
5701#include <stdlib.h>
5702#if ((' ' & 0x0FF) == 0x020)
5703# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5704# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5705#else
5706# define ISLOWER(c) \
5707 (('a' <= (c) && (c) <= 'i') \
5708 || ('j' <= (c) && (c) <= 'r') \
5709 || ('s' <= (c) && (c) <= 'z'))
5710# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5711#endif
5712
5713#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5714int
5715main ()
5716{
5717 int i;
5718 for (i = 0; i < 256; i++)
5719 if (XOR (islower (i), ISLOWER (i))
5720 || toupper (i) != TOUPPER (i))
5721 return 2;
5722 return 0;
5723}
5724_ACEOF
5725if ac_fn_c_try_run "$LINENO"; then :
5726
5727else
5728 ac_cv_header_stdc=no
5729fi
5730rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5731 conftest.$ac_objext conftest.beam conftest.$ac_ext
5732fi
5733
5734fi
5735fi
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5737$as_echo "$ac_cv_header_stdc" >&6; }
5738if test $ac_cv_header_stdc = yes; then
5739
5740$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5741
5742fi
5743
5744# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5745for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5746 inttypes.h stdint.h unistd.h
5747do :
5748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5749ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5750"
cristy98dddb52010-11-04 00:30:15 +00005751if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005752 cat >>confdefs.h <<_ACEOF
5753#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5754_ACEOF
5755
5756fi
5757
5758done
5759
5760
5761
5762 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 +00005763if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005764 MINIX=yes
5765else
5766 MINIX=
5767fi
5768
5769
5770 if test "$MINIX" = yes; then
5771
5772$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5773
5774
5775$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5776
5777
5778$as_echo "#define _MINIX 1" >>confdefs.h
5779
5780 fi
5781
5782
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5784$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005785if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005786 $as_echo_n "(cached) " >&6
5787else
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789/* end confdefs.h. */
5790
cristy14fefe52012-05-21 00:59:18 +00005791# define __EXTENSIONS__ 1
5792 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005793int
5794main ()
5795{
5796
5797 ;
5798 return 0;
5799}
5800_ACEOF
5801if ac_fn_c_try_compile "$LINENO"; then :
5802 ac_cv_safe_to_define___extensions__=yes
5803else
5804 ac_cv_safe_to_define___extensions__=no
5805fi
5806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807fi
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5809$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5810 test $ac_cv_safe_to_define___extensions__ = yes &&
5811 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5812
5813 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5814
5815 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5816
5817 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5818
5819 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5820
5821
5822
5823# Check for programs
5824ac_ext=c
5825ac_cpp='$CPP $CPPFLAGS'
5826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828ac_compiler_gnu=$ac_cv_c_compiler_gnu
5829if test -n "$ac_tool_prefix"; then
5830 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5831set dummy ${ac_tool_prefix}gcc; ac_word=$2
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005834if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005835 $as_echo_n "(cached) " >&6
5836else
5837 if test -n "$CC"; then
5838 ac_cv_prog_CC="$CC" # Let the user override the test.
5839else
5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005847 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5850 fi
5851done
5852 done
5853IFS=$as_save_IFS
5854
5855fi
5856fi
5857CC=$ac_cv_prog_CC
5858if test -n "$CC"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5860$as_echo "$CC" >&6; }
5861else
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863$as_echo "no" >&6; }
5864fi
5865
5866
5867fi
5868if test -z "$ac_cv_prog_CC"; then
5869 ac_ct_CC=$CC
5870 # Extract the first word of "gcc", so it can be a program name with args.
5871set dummy gcc; ac_word=$2
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5873$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005874if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005875 $as_echo_n "(cached) " >&6
5876else
5877 if test -n "$ac_ct_CC"; then
5878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5879else
5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005887 ac_cv_prog_ac_ct_CC="gcc"
5888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 break 2
5890 fi
5891done
5892 done
5893IFS=$as_save_IFS
5894
5895fi
5896fi
5897ac_ct_CC=$ac_cv_prog_ac_ct_CC
5898if test -n "$ac_ct_CC"; then
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5900$as_echo "$ac_ct_CC" >&6; }
5901else
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903$as_echo "no" >&6; }
5904fi
5905
5906 if test "x$ac_ct_CC" = x; then
5907 CC=""
5908 else
5909 case $cross_compiling:$ac_tool_warned in
5910yes:)
5911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5913ac_tool_warned=yes ;;
5914esac
5915 CC=$ac_ct_CC
5916 fi
5917else
5918 CC="$ac_cv_prog_CC"
5919fi
5920
5921if test -z "$CC"; then
5922 if test -n "$ac_tool_prefix"; then
5923 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5924set dummy ${ac_tool_prefix}cc; ac_word=$2
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005927if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005928 $as_echo_n "(cached) " >&6
5929else
5930 if test -n "$CC"; then
5931 ac_cv_prog_CC="$CC" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005940 ac_cv_prog_CC="${ac_tool_prefix}cc"
5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944done
5945 done
5946IFS=$as_save_IFS
5947
5948fi
5949fi
5950CC=$ac_cv_prog_CC
5951if test -n "$CC"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5953$as_echo "$CC" >&6; }
5954else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956$as_echo "no" >&6; }
5957fi
5958
5959
5960 fi
5961fi
5962if test -z "$CC"; then
5963 # Extract the first word of "cc", so it can be a program name with args.
5964set dummy cc; ac_word=$2
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005967if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005968 $as_echo_n "(cached) " >&6
5969else
5970 if test -n "$CC"; then
5971 ac_cv_prog_CC="$CC" # Let the user override the test.
5972else
5973 ac_prog_rejected=no
5974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975for as_dir in $PATH
5976do
5977 IFS=$as_save_IFS
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005981 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5982 ac_prog_rejected=yes
5983 continue
5984 fi
5985 ac_cv_prog_CC="cc"
5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5988 fi
5989done
5990 done
5991IFS=$as_save_IFS
5992
5993if test $ac_prog_rejected = yes; then
5994 # We found a bogon in the path, so make sure we never use it.
5995 set dummy $ac_cv_prog_CC
5996 shift
5997 if test $# != 0; then
5998 # We chose a different compiler from the bogus one.
5999 # However, it has the same basename, so the bogon will be chosen
6000 # first if we set CC to just the basename; use the full file name.
6001 shift
6002 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6003 fi
6004fi
6005fi
6006fi
6007CC=$ac_cv_prog_CC
6008if test -n "$CC"; then
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6010$as_echo "$CC" >&6; }
6011else
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013$as_echo "no" >&6; }
6014fi
6015
6016
6017fi
6018if test -z "$CC"; then
6019 if test -n "$ac_tool_prefix"; then
6020 for ac_prog in cl.exe
6021 do
6022 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6023set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006026if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006027 $as_echo_n "(cached) " >&6
6028else
6029 if test -n "$CC"; then
6030 ac_cv_prog_CC="$CC" # Let the user override the test.
6031else
6032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033for as_dir in $PATH
6034do
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006039 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 break 2
6042 fi
6043done
6044 done
6045IFS=$as_save_IFS
6046
6047fi
6048fi
6049CC=$ac_cv_prog_CC
6050if test -n "$CC"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6052$as_echo "$CC" >&6; }
6053else
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055$as_echo "no" >&6; }
6056fi
6057
6058
6059 test -n "$CC" && break
6060 done
6061fi
6062if test -z "$CC"; then
6063 ac_ct_CC=$CC
6064 for ac_prog in cl.exe
6065do
6066 # Extract the first word of "$ac_prog", so it can be a program name with args.
6067set dummy $ac_prog; ac_word=$2
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006070if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006071 $as_echo_n "(cached) " >&6
6072else
6073 if test -n "$ac_ct_CC"; then
6074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6075else
6076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077for as_dir in $PATH
6078do
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006083 ac_cv_prog_ac_ct_CC="$ac_prog"
6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 break 2
6086 fi
6087done
6088 done
6089IFS=$as_save_IFS
6090
6091fi
6092fi
6093ac_ct_CC=$ac_cv_prog_ac_ct_CC
6094if test -n "$ac_ct_CC"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6096$as_echo "$ac_ct_CC" >&6; }
6097else
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099$as_echo "no" >&6; }
6100fi
6101
6102
6103 test -n "$ac_ct_CC" && break
6104done
6105
6106 if test "x$ac_ct_CC" = x; then
6107 CC=""
6108 else
6109 case $cross_compiling:$ac_tool_warned in
6110yes:)
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6113ac_tool_warned=yes ;;
6114esac
6115 CC=$ac_ct_CC
6116 fi
6117fi
6118
6119fi
6120
6121
6122test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006124as_fn_error $? "no acceptable C compiler found in \$PATH
6125See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006126
6127# Provide some information about the compiler.
6128$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6129set X $ac_compile
6130ac_compiler=$2
6131for ac_option in --version -v -V -qversion; do
6132 { { ac_try="$ac_compiler $ac_option >&5"
6133case "(($ac_try" in
6134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135 *) ac_try_echo=$ac_try;;
6136esac
6137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6138$as_echo "$ac_try_echo"; } >&5
6139 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6140 ac_status=$?
6141 if test -s conftest.err; then
6142 sed '10a\
6143... rest of stderr output deleted ...
6144 10q' conftest.err >conftest.er1
6145 cat conftest.er1 >&5
6146 fi
6147 rm -f conftest.er1 conftest.err
6148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6149 test $ac_status = 0; }
6150done
6151
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6153$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006154if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006155 $as_echo_n "(cached) " >&6
6156else
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158/* end confdefs.h. */
6159
6160int
6161main ()
6162{
6163#ifndef __GNUC__
6164 choke me
6165#endif
6166
6167 ;
6168 return 0;
6169}
6170_ACEOF
6171if ac_fn_c_try_compile "$LINENO"; then :
6172 ac_compiler_gnu=yes
6173else
6174 ac_compiler_gnu=no
6175fi
6176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177ac_cv_c_compiler_gnu=$ac_compiler_gnu
6178
6179fi
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6181$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6182if test $ac_compiler_gnu = yes; then
6183 GCC=yes
6184else
6185 GCC=
6186fi
6187ac_test_CFLAGS=${CFLAGS+set}
6188ac_save_CFLAGS=$CFLAGS
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6190$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006191if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006192 $as_echo_n "(cached) " >&6
6193else
6194 ac_save_c_werror_flag=$ac_c_werror_flag
6195 ac_c_werror_flag=yes
6196 ac_cv_prog_cc_g=no
6197 CFLAGS="-g"
6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199/* end confdefs.h. */
6200
6201int
6202main ()
6203{
6204
6205 ;
6206 return 0;
6207}
6208_ACEOF
6209if ac_fn_c_try_compile "$LINENO"; then :
6210 ac_cv_prog_cc_g=yes
6211else
6212 CFLAGS=""
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214/* end confdefs.h. */
6215
6216int
6217main ()
6218{
6219
6220 ;
6221 return 0;
6222}
6223_ACEOF
6224if ac_fn_c_try_compile "$LINENO"; then :
6225
6226else
6227 ac_c_werror_flag=$ac_save_c_werror_flag
6228 CFLAGS="-g"
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230/* end confdefs.h. */
6231
6232int
6233main ()
6234{
6235
6236 ;
6237 return 0;
6238}
6239_ACEOF
6240if ac_fn_c_try_compile "$LINENO"; then :
6241 ac_cv_prog_cc_g=yes
6242fi
6243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244fi
6245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246fi
6247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6248 ac_c_werror_flag=$ac_save_c_werror_flag
6249fi
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6251$as_echo "$ac_cv_prog_cc_g" >&6; }
6252if test "$ac_test_CFLAGS" = set; then
6253 CFLAGS=$ac_save_CFLAGS
6254elif test $ac_cv_prog_cc_g = yes; then
6255 if test "$GCC" = yes; then
6256 CFLAGS="-g -O2"
6257 else
6258 CFLAGS="-g"
6259 fi
6260else
6261 if test "$GCC" = yes; then
6262 CFLAGS="-O2"
6263 else
6264 CFLAGS=
6265 fi
6266fi
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6268$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006269if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006270 $as_echo_n "(cached) " >&6
6271else
6272 ac_cv_prog_cc_c89=no
6273ac_save_CC=$CC
6274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275/* end confdefs.h. */
6276#include <stdarg.h>
6277#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006278struct stat;
cristya0b81c32010-01-22 02:54:33 +00006279/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6280struct buf { int x; };
6281FILE * (*rcsopen) (struct buf *, struct stat *, int);
6282static char *e (p, i)
6283 char **p;
6284 int i;
6285{
6286 return p[i];
6287}
6288static char *f (char * (*g) (char **, int), char **p, ...)
6289{
6290 char *s;
6291 va_list v;
6292 va_start (v,p);
6293 s = g (p, va_arg (v,int));
6294 va_end (v);
6295 return s;
6296}
6297
6298/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6299 function prototypes and stuff, but not '\xHH' hex character constants.
6300 These don't provoke an error unfortunately, instead are silently treated
6301 as 'x'. The following induces an error, until -std is added to get
6302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6303 array size at least. It's necessary to write '\x00'==0 to get something
6304 that's true only with -std. */
6305int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6306
6307/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6308 inside strings and character constants. */
6309#define FOO(x) 'x'
6310int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6311
6312int test (int i, double x);
6313struct s1 {int (*f) (int a);};
6314struct s2 {int (*f) (double a);};
6315int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6316int argc;
6317char **argv;
6318int
6319main ()
6320{
6321return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6322 ;
6323 return 0;
6324}
6325_ACEOF
6326for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6328do
6329 CC="$ac_save_CC $ac_arg"
6330 if ac_fn_c_try_compile "$LINENO"; then :
6331 ac_cv_prog_cc_c89=$ac_arg
6332fi
6333rm -f core conftest.err conftest.$ac_objext
6334 test "x$ac_cv_prog_cc_c89" != "xno" && break
6335done
6336rm -f conftest.$ac_ext
6337CC=$ac_save_CC
6338
6339fi
6340# AC_CACHE_VAL
6341case "x$ac_cv_prog_cc_c89" in
6342 x)
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6344$as_echo "none needed" >&6; } ;;
6345 xno)
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6347$as_echo "unsupported" >&6; } ;;
6348 *)
6349 CC="$CC $ac_cv_prog_cc_c89"
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6351$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6352esac
6353if test "x$ac_cv_prog_cc_c89" != xno; then :
6354
6355fi
6356
6357ac_ext=c
6358ac_cpp='$CPP $CPPFLAGS'
6359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6361ac_compiler_gnu=$ac_cv_c_compiler_gnu
6362
cristy73bd4a52010-10-05 11:24:23 +00006363depcc="$CC" am_compiler_list=
6364
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6366$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006367if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006368 $as_echo_n "(cached) " >&6
6369else
6370 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6371 # We make a subdir and do the tests there. Otherwise we can end up
6372 # making bogus files that we don't know about and never remove. For
6373 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006374 # making a dummy file named 'D' -- because '-MD' means "put the output
6375 # in D".
cristy7247bba2012-02-05 16:37:27 +00006376 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006377 mkdir conftest.dir
6378 # Copy depcomp to subdir because otherwise we won't find it if we're
6379 # using a relative directory.
6380 cp "$am_depcomp" conftest.dir
6381 cd conftest.dir
6382 # We will build objects and dependencies in a subdirectory because
6383 # it helps to detect inapplicable dependency modes. For instance
6384 # both Tru64's cc and ICC support -MD to output dependencies as a
6385 # side effect of compilation, but ICC will put the dependencies in
6386 # the current directory while Tru64 will put them in the object
6387 # directory.
6388 mkdir sub
6389
6390 am_cv_CC_dependencies_compiler_type=none
6391 if test "$am_compiler_list" = ""; then
6392 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6393 fi
6394 am__universal=false
6395 case " $depcc " in #(
6396 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6397 esac
6398
6399 for depmode in $am_compiler_list; do
6400 # Setup a source with many dependencies, because some compilers
6401 # like to wrap large dependency lists on column 80 (with \), and
6402 # we should not choose a depcomp mode which is confused by this.
6403 #
6404 # We need to recreate these files for each test, as the compiler may
6405 # overwrite some of them when testing with obscure command lines.
6406 # This happens at least with the AIX C compiler.
6407 : > sub/conftest.c
6408 for i in 1 2 3 4 5 6; do
6409 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006410 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6411 # Solaris 10 /bin/sh.
6412 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006413 done
6414 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6415
cristyc0890a62012-07-19 00:18:20 +00006416 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006417 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006418 # handle '-M -o', and we need to detect this. Also, some Intel
6419 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006420 am__obj=sub/conftest.${OBJEXT-o}
6421 am__minus_obj="-o $am__obj"
6422 case $depmode in
6423 gcc)
6424 # This depmode causes a compiler race in universal mode.
6425 test "$am__universal" = false || continue
6426 ;;
6427 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006428 # After this tag, mechanisms are not by side-effect, so they'll
6429 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006430 if test "x$enable_dependency_tracking" = xyes; then
6431 continue
6432 else
6433 break
6434 fi
6435 ;;
cristy7247bba2012-02-05 16:37:27 +00006436 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006437 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006438 # not run yet. These depmodes are late enough in the game, and
6439 # so weak that their functioning should not be impacted.
6440 am__obj=conftest.${OBJEXT-o}
6441 am__minus_obj=
6442 ;;
6443 none) break ;;
6444 esac
6445 if depmode=$depmode \
6446 source=sub/conftest.c object=$am__obj \
6447 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6448 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6449 >/dev/null 2>conftest.err &&
6450 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6451 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6452 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6453 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6454 # icc doesn't choke on unknown options, it will just issue warnings
6455 # or remarks (even with -Werror). So we grep stderr for any message
6456 # that says an option was ignored or not supported.
6457 # When given -MP, icc 7.0 and 7.1 complain thusly:
6458 # icc: Command line warning: ignoring option '-M'; no argument required
6459 # The diagnosis changed in icc 8.0:
6460 # icc: Command line remark: option '-MP' not supported
6461 if (grep 'ignoring option' conftest.err ||
6462 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6463 am_cv_CC_dependencies_compiler_type=$depmode
6464 break
6465 fi
6466 fi
6467 done
6468
6469 cd ..
6470 rm -rf conftest.dir
6471else
6472 am_cv_CC_dependencies_compiler_type=none
6473fi
6474
6475fi
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6477$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6478CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6479
6480 if
6481 test "x$enable_dependency_tracking" != xno \
6482 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6483 am__fastdepCC_TRUE=
6484 am__fastdepCC_FALSE='#'
6485else
6486 am__fastdepCC_TRUE='#'
6487 am__fastdepCC_FALSE=
6488fi
6489
6490
cristy95646052009-11-28 23:05:30 +00006491ac_ext=cpp
6492ac_cpp='$CXXCPP $CPPFLAGS'
6493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6496if test -z "$CXX"; then
6497 if test -n "$CCC"; then
6498 CXX=$CCC
6499 else
6500 if test -n "$ac_tool_prefix"; then
6501 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6502 do
6503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6504set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006507if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006508 $as_echo_n "(cached) " >&6
6509else
6510 if test -n "$CXX"; then
6511 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6512else
6513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514for as_dir in $PATH
6515do
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006520 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6523 fi
6524done
6525 done
6526IFS=$as_save_IFS
6527
6528fi
6529fi
6530CXX=$ac_cv_prog_CXX
6531if test -n "$CXX"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6533$as_echo "$CXX" >&6; }
6534else
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536$as_echo "no" >&6; }
6537fi
6538
6539
6540 test -n "$CXX" && break
6541 done
6542fi
6543if test -z "$CXX"; then
6544 ac_ct_CXX=$CXX
6545 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6546do
6547 # Extract the first word of "$ac_prog", so it can be a program name with args.
6548set dummy $ac_prog; ac_word=$2
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006551if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006552 $as_echo_n "(cached) " >&6
6553else
6554 if test -n "$ac_ct_CXX"; then
6555 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6556else
6557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558for as_dir in $PATH
6559do
6560 IFS=$as_save_IFS
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006564 ac_cv_prog_ac_ct_CXX="$ac_prog"
6565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 break 2
6567 fi
6568done
6569 done
6570IFS=$as_save_IFS
6571
6572fi
6573fi
6574ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6575if test -n "$ac_ct_CXX"; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6577$as_echo "$ac_ct_CXX" >&6; }
6578else
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580$as_echo "no" >&6; }
6581fi
6582
6583
6584 test -n "$ac_ct_CXX" && break
6585done
6586
6587 if test "x$ac_ct_CXX" = x; then
6588 CXX="g++"
6589 else
6590 case $cross_compiling:$ac_tool_warned in
6591yes:)
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6594ac_tool_warned=yes ;;
6595esac
6596 CXX=$ac_ct_CXX
6597 fi
6598fi
6599
6600 fi
6601fi
6602# Provide some information about the compiler.
6603$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6604set X $ac_compile
6605ac_compiler=$2
6606for ac_option in --version -v -V -qversion; do
6607 { { ac_try="$ac_compiler $ac_option >&5"
6608case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6611esac
6612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6613$as_echo "$ac_try_echo"; } >&5
6614 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6615 ac_status=$?
6616 if test -s conftest.err; then
6617 sed '10a\
6618... rest of stderr output deleted ...
6619 10q' conftest.err >conftest.er1
6620 cat conftest.er1 >&5
6621 fi
6622 rm -f conftest.er1 conftest.err
6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }
6625done
6626
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6628$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006629if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006630 $as_echo_n "(cached) " >&6
6631else
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633/* end confdefs.h. */
6634
6635int
6636main ()
6637{
6638#ifndef __GNUC__
6639 choke me
6640#endif
6641
6642 ;
6643 return 0;
6644}
6645_ACEOF
6646if ac_fn_cxx_try_compile "$LINENO"; then :
6647 ac_compiler_gnu=yes
6648else
6649 ac_compiler_gnu=no
6650fi
6651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6653
6654fi
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6656$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6657if test $ac_compiler_gnu = yes; then
6658 GXX=yes
6659else
6660 GXX=
6661fi
6662ac_test_CXXFLAGS=${CXXFLAGS+set}
6663ac_save_CXXFLAGS=$CXXFLAGS
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6665$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006666if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006667 $as_echo_n "(cached) " >&6
6668else
6669 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6670 ac_cxx_werror_flag=yes
6671 ac_cv_prog_cxx_g=no
6672 CXXFLAGS="-g"
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h. */
6675
6676int
6677main ()
6678{
6679
6680 ;
6681 return 0;
6682}
6683_ACEOF
6684if ac_fn_cxx_try_compile "$LINENO"; then :
6685 ac_cv_prog_cxx_g=yes
6686else
6687 CXXFLAGS=""
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689/* end confdefs.h. */
6690
6691int
6692main ()
6693{
6694
6695 ;
6696 return 0;
6697}
6698_ACEOF
6699if ac_fn_cxx_try_compile "$LINENO"; then :
6700
6701else
6702 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6703 CXXFLAGS="-g"
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705/* end confdefs.h. */
6706
6707int
6708main ()
6709{
6710
6711 ;
6712 return 0;
6713}
6714_ACEOF
6715if ac_fn_cxx_try_compile "$LINENO"; then :
6716 ac_cv_prog_cxx_g=yes
6717fi
6718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719fi
6720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721fi
6722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6724fi
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6726$as_echo "$ac_cv_prog_cxx_g" >&6; }
6727if test "$ac_test_CXXFLAGS" = set; then
6728 CXXFLAGS=$ac_save_CXXFLAGS
6729elif test $ac_cv_prog_cxx_g = yes; then
6730 if test "$GXX" = yes; then
6731 CXXFLAGS="-g -O2"
6732 else
6733 CXXFLAGS="-g"
6734 fi
6735else
6736 if test "$GXX" = yes; then
6737 CXXFLAGS="-O2"
6738 else
6739 CXXFLAGS=
6740 fi
6741fi
6742ac_ext=c
6743ac_cpp='$CPP $CPPFLAGS'
6744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6746ac_compiler_gnu=$ac_cv_c_compiler_gnu
6747
cristy73bd4a52010-10-05 11:24:23 +00006748depcc="$CXX" am_compiler_list=
6749
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6751$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006752if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006753 $as_echo_n "(cached) " >&6
6754else
6755 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6756 # We make a subdir and do the tests there. Otherwise we can end up
6757 # making bogus files that we don't know about and never remove. For
6758 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006759 # making a dummy file named 'D' -- because '-MD' means "put the output
6760 # in D".
cristy7247bba2012-02-05 16:37:27 +00006761 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006762 mkdir conftest.dir
6763 # Copy depcomp to subdir because otherwise we won't find it if we're
6764 # using a relative directory.
6765 cp "$am_depcomp" conftest.dir
6766 cd conftest.dir
6767 # We will build objects and dependencies in a subdirectory because
6768 # it helps to detect inapplicable dependency modes. For instance
6769 # both Tru64's cc and ICC support -MD to output dependencies as a
6770 # side effect of compilation, but ICC will put the dependencies in
6771 # the current directory while Tru64 will put them in the object
6772 # directory.
6773 mkdir sub
6774
6775 am_cv_CXX_dependencies_compiler_type=none
6776 if test "$am_compiler_list" = ""; then
6777 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6778 fi
6779 am__universal=false
6780 case " $depcc " in #(
6781 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6782 esac
6783
6784 for depmode in $am_compiler_list; do
6785 # Setup a source with many dependencies, because some compilers
6786 # like to wrap large dependency lists on column 80 (with \), and
6787 # we should not choose a depcomp mode which is confused by this.
6788 #
6789 # We need to recreate these files for each test, as the compiler may
6790 # overwrite some of them when testing with obscure command lines.
6791 # This happens at least with the AIX C compiler.
6792 : > sub/conftest.c
6793 for i in 1 2 3 4 5 6; do
6794 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006795 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6796 # Solaris 10 /bin/sh.
6797 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006798 done
6799 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6800
cristyc0890a62012-07-19 00:18:20 +00006801 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006802 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006803 # handle '-M -o', and we need to detect this. Also, some Intel
6804 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006805 am__obj=sub/conftest.${OBJEXT-o}
6806 am__minus_obj="-o $am__obj"
6807 case $depmode in
6808 gcc)
6809 # This depmode causes a compiler race in universal mode.
6810 test "$am__universal" = false || continue
6811 ;;
6812 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006813 # After this tag, mechanisms are not by side-effect, so they'll
6814 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006815 if test "x$enable_dependency_tracking" = xyes; then
6816 continue
6817 else
6818 break
6819 fi
6820 ;;
cristy7247bba2012-02-05 16:37:27 +00006821 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006822 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006823 # not run yet. These depmodes are late enough in the game, and
6824 # so weak that their functioning should not be impacted.
6825 am__obj=conftest.${OBJEXT-o}
6826 am__minus_obj=
6827 ;;
6828 none) break ;;
6829 esac
6830 if depmode=$depmode \
6831 source=sub/conftest.c object=$am__obj \
6832 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6833 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6834 >/dev/null 2>conftest.err &&
6835 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6836 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6837 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6838 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6839 # icc doesn't choke on unknown options, it will just issue warnings
6840 # or remarks (even with -Werror). So we grep stderr for any message
6841 # that says an option was ignored or not supported.
6842 # When given -MP, icc 7.0 and 7.1 complain thusly:
6843 # icc: Command line warning: ignoring option '-M'; no argument required
6844 # The diagnosis changed in icc 8.0:
6845 # icc: Command line remark: option '-MP' not supported
6846 if (grep 'ignoring option' conftest.err ||
6847 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6848 am_cv_CXX_dependencies_compiler_type=$depmode
6849 break
6850 fi
6851 fi
6852 done
6853
6854 cd ..
6855 rm -rf conftest.dir
6856else
6857 am_cv_CXX_dependencies_compiler_type=none
6858fi
6859
6860fi
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6862$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6863CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6864
6865 if
6866 test "x$enable_dependency_tracking" != xno \
6867 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6868 am__fastdepCXX_TRUE=
6869 am__fastdepCXX_FALSE='#'
6870else
6871 am__fastdepCXX_TRUE='#'
6872 am__fastdepCXX_FALSE=
6873fi
6874
6875
cristy8b350f62009-11-15 23:12:43 +00006876 case $ac_cv_prog_cc_stdc in #(
6877 no) :
6878 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6879 *) :
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006881$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006882if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006883 $as_echo_n "(cached) " >&6
6884else
6885 ac_cv_prog_cc_c99=no
6886ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006888/* end confdefs.h. */
6889#include <stdarg.h>
6890#include <stdbool.h>
6891#include <stdlib.h>
6892#include <wchar.h>
6893#include <stdio.h>
6894
6895// Check varargs macros. These examples are taken from C99 6.10.3.5.
6896#define debug(...) fprintf (stderr, __VA_ARGS__)
6897#define showlist(...) puts (#__VA_ARGS__)
6898#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6899static void
6900test_varargs_macros (void)
6901{
6902 int x = 1234;
6903 int y = 5678;
6904 debug ("Flag");
6905 debug ("X = %d\n", x);
6906 showlist (The first, second, and third items.);
6907 report (x>y, "x is %d but y is %d", x, y);
6908}
6909
6910// Check long long types.
6911#define BIG64 18446744073709551615ull
6912#define BIG32 4294967295ul
6913#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6914#if !BIG_OK
6915 your preprocessor is broken;
6916#endif
6917#if BIG_OK
6918#else
6919 your preprocessor is broken;
6920#endif
6921static long long int bignum = -9223372036854775807LL;
6922static unsigned long long int ubignum = BIG64;
6923
6924struct incomplete_array
6925{
6926 int datasize;
6927 double data[];
6928};
6929
6930struct named_init {
6931 int number;
6932 const wchar_t *name;
6933 double average;
6934};
6935
6936typedef const char *ccp;
6937
6938static inline int
6939test_restrict (ccp restrict text)
6940{
6941 // See if C++-style comments work.
6942 // Iterate through items via the restricted pointer.
6943 // Also check for declarations in for loops.
6944 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6945 continue;
6946 return 0;
6947}
6948
6949// Check varargs and va_copy.
6950static void
6951test_varargs (const char *format, ...)
6952{
6953 va_list args;
6954 va_start (args, format);
6955 va_list args_copy;
6956 va_copy (args_copy, args);
6957
6958 const char *str;
6959 int number;
6960 float fnumber;
6961
6962 while (*format)
6963 {
6964 switch (*format++)
6965 {
6966 case 's': // string
6967 str = va_arg (args_copy, const char *);
6968 break;
6969 case 'd': // int
6970 number = va_arg (args_copy, int);
6971 break;
6972 case 'f': // float
6973 fnumber = va_arg (args_copy, double);
6974 break;
6975 default:
6976 break;
6977 }
6978 }
6979 va_end (args_copy);
6980 va_end (args);
6981}
6982
6983int
6984main ()
6985{
6986
6987 // Check bool.
6988 _Bool success = false;
6989
6990 // Check restrict.
6991 if (test_restrict ("String literal") == 0)
6992 success = true;
6993 char *restrict newvar = "Another string";
6994
6995 // Check varargs.
6996 test_varargs ("s, d' f .", "string", 65, 34.234);
6997 test_varargs_macros ();
6998
6999 // Check flexible array members.
7000 struct incomplete_array *ia =
7001 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7002 ia->datasize = 10;
7003 for (int i = 0; i < ia->datasize; ++i)
7004 ia->data[i] = i * 1.234;
7005
7006 // Check named initializers.
7007 struct named_init ni = {
7008 .number = 34,
7009 .name = L"Test wide string",
7010 .average = 543.34343,
7011 };
7012
7013 ni.number = 58;
7014
7015 int dynamic_array[ni.number];
7016 dynamic_array[ni.number - 1] = 543;
7017
7018 // work around unused variable warnings
7019 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7020 || dynamic_array[ni.number - 1] != 543);
7021
7022 ;
7023 return 0;
7024}
7025_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007026for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007027do
7028 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007029 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007030 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007031fi
cristy3ed852e2009-09-05 21:47:34 +00007032rm -f core conftest.err conftest.$ac_objext
7033 test "x$ac_cv_prog_cc_c99" != "xno" && break
7034done
7035rm -f conftest.$ac_ext
7036CC=$ac_save_CC
7037
7038fi
7039# AC_CACHE_VAL
7040case "x$ac_cv_prog_cc_c99" in
7041 x)
cristy8b350f62009-11-15 23:12:43 +00007042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007043$as_echo "none needed" >&6; } ;;
7044 xno)
cristy8b350f62009-11-15 23:12:43 +00007045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007046$as_echo "unsupported" >&6; } ;;
7047 *)
7048 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007050$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7051esac
cristy8b350f62009-11-15 23:12:43 +00007052if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007053 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7054else
cristy8b350f62009-11-15 23:12:43 +00007055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007056$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007057if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007058 $as_echo_n "(cached) " >&6
7059else
7060 ac_cv_prog_cc_c89=no
7061ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007063/* end confdefs.h. */
7064#include <stdarg.h>
7065#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007066struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007067/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7068struct buf { int x; };
7069FILE * (*rcsopen) (struct buf *, struct stat *, int);
7070static char *e (p, i)
7071 char **p;
7072 int i;
7073{
7074 return p[i];
7075}
7076static char *f (char * (*g) (char **, int), char **p, ...)
7077{
7078 char *s;
7079 va_list v;
7080 va_start (v,p);
7081 s = g (p, va_arg (v,int));
7082 va_end (v);
7083 return s;
7084}
7085
7086/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7087 function prototypes and stuff, but not '\xHH' hex character constants.
7088 These don't provoke an error unfortunately, instead are silently treated
7089 as 'x'. The following induces an error, until -std is added to get
7090 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7091 array size at least. It's necessary to write '\x00'==0 to get something
7092 that's true only with -std. */
7093int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7094
7095/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7096 inside strings and character constants. */
7097#define FOO(x) 'x'
7098int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7099
7100int test (int i, double x);
7101struct s1 {int (*f) (int a);};
7102struct s2 {int (*f) (double a);};
7103int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7104int argc;
7105char **argv;
7106int
7107main ()
7108{
7109return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7110 ;
7111 return 0;
7112}
7113_ACEOF
7114for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7115 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7116do
7117 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007118 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007119 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007120fi
cristy3ed852e2009-09-05 21:47:34 +00007121rm -f core conftest.err conftest.$ac_objext
7122 test "x$ac_cv_prog_cc_c89" != "xno" && break
7123done
7124rm -f conftest.$ac_ext
7125CC=$ac_save_CC
7126
7127fi
7128# AC_CACHE_VAL
7129case "x$ac_cv_prog_cc_c89" in
7130 x)
cristy8b350f62009-11-15 23:12:43 +00007131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007132$as_echo "none needed" >&6; } ;;
7133 xno)
cristy8b350f62009-11-15 23:12:43 +00007134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007135$as_echo "unsupported" >&6; } ;;
7136 *)
7137 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007139$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7140esac
cristy8b350f62009-11-15 23:12:43 +00007141if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007142 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7143else
7144 ac_cv_prog_cc_stdc=no
7145fi
7146
cristy3ed852e2009-09-05 21:47:34 +00007147fi
cristy3ed852e2009-09-05 21:47:34 +00007148 ;;
7149esac
cristy8b350f62009-11-15 23:12:43 +00007150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007151$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007152 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007153 $as_echo_n "(cached) " >&6
7154fi
7155
cristy8b350f62009-11-15 23:12:43 +00007156 case $ac_cv_prog_cc_stdc in #(
7157 no) :
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7159$as_echo "unsupported" >&6; } ;; #(
7160 '') :
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7162$as_echo "none needed" >&6; } ;; #(
7163 *) :
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007165$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7166esac
7167
cristy3ed852e2009-09-05 21:47:34 +00007168ac_ext=c
7169ac_cpp='$CPP $CPPFLAGS'
7170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7172ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007174$as_echo_n "checking how to run the C preprocessor... " >&6; }
7175# On Suns, sometimes $CPP names a directory.
7176if test -n "$CPP" && test -d "$CPP"; then
7177 CPP=
7178fi
7179if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007180 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007181 $as_echo_n "(cached) " >&6
7182else
7183 # Double quotes because CPP needs to be expanded
7184 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7185 do
7186 ac_preproc_ok=false
7187for ac_c_preproc_warn_flag in '' yes
7188do
7189 # Use a header file that comes with gcc, so configuring glibc
7190 # with a fresh cross-compiler works.
7191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7192 # <limits.h> exists even on freestanding compilers.
7193 # On the NeXT, cc -E runs the code through the compiler's parser,
7194 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007196/* end confdefs.h. */
7197#ifdef __STDC__
7198# include <limits.h>
7199#else
7200# include <assert.h>
7201#endif
7202 Syntax error
7203_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007204if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007205
cristy8b350f62009-11-15 23:12:43 +00007206else
cristy3ed852e2009-09-05 21:47:34 +00007207 # Broken: fails on valid input.
7208continue
7209fi
cristyda16f162011-02-19 23:52:17 +00007210rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007211
7212 # OK, works on sane cases. Now check whether nonexistent headers
7213 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007215/* end confdefs.h. */
7216#include <ac_nonexistent.h>
7217_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007218if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007219 # Broken: success on invalid input.
7220continue
7221else
cristy3ed852e2009-09-05 21:47:34 +00007222 # Passes both tests.
7223ac_preproc_ok=:
7224break
7225fi
cristyda16f162011-02-19 23:52:17 +00007226rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007227
7228done
7229# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007230rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007231if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007232 break
7233fi
7234
7235 done
7236 ac_cv_prog_CPP=$CPP
7237
7238fi
7239 CPP=$ac_cv_prog_CPP
7240else
7241 ac_cv_prog_CPP=$CPP
7242fi
cristy8b350f62009-11-15 23:12:43 +00007243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007244$as_echo "$CPP" >&6; }
7245ac_preproc_ok=false
7246for ac_c_preproc_warn_flag in '' yes
7247do
7248 # Use a header file that comes with gcc, so configuring glibc
7249 # with a fresh cross-compiler works.
7250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7251 # <limits.h> exists even on freestanding compilers.
7252 # On the NeXT, cc -E runs the code through the compiler's parser,
7253 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007255/* end confdefs.h. */
7256#ifdef __STDC__
7257# include <limits.h>
7258#else
7259# include <assert.h>
7260#endif
7261 Syntax error
7262_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007263if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007264
cristy8b350f62009-11-15 23:12:43 +00007265else
cristy3ed852e2009-09-05 21:47:34 +00007266 # Broken: fails on valid input.
7267continue
7268fi
cristyda16f162011-02-19 23:52:17 +00007269rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007270
7271 # OK, works on sane cases. Now check whether nonexistent headers
7272 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007274/* end confdefs.h. */
7275#include <ac_nonexistent.h>
7276_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007277if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007278 # Broken: success on invalid input.
7279continue
7280else
cristy3ed852e2009-09-05 21:47:34 +00007281 # Passes both tests.
7282ac_preproc_ok=:
7283break
7284fi
cristyda16f162011-02-19 23:52:17 +00007285rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007286
7287done
7288# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007289rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007290if $ac_preproc_ok; then :
7291
cristy3ed852e2009-09-05 21:47:34 +00007292else
cristy8b350f62009-11-15 23:12:43 +00007293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007295as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7296See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007297fi
7298
7299ac_ext=c
7300ac_cpp='$CPP $CPPFLAGS'
7301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7303ac_compiler_gnu=$ac_cv_c_compiler_gnu
7304
cristy73bd4a52010-10-05 11:24:23 +00007305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7306$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007307if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007308 $as_echo_n "(cached) " >&6
7309else
7310 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7311 for ac_i in 1 2 3 4 5 6 7; do
7312 ac_script="$ac_script$as_nl$ac_script"
7313 done
7314 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7315 { ac_script=; unset ac_script;}
7316 if test -z "$SED"; then
7317 ac_path_SED_found=false
7318 # Loop through the user's path and test for each of PROGNAME-LIST
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_prog in sed gsed; do
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007327 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007328# Check for GNU ac_path_SED and select it if it is found.
7329 # Check for GNU $ac_path_SED
7330case `"$ac_path_SED" --version 2>&1` in
7331*GNU*)
7332 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7333*)
7334 ac_count=0
7335 $as_echo_n 0123456789 >"conftest.in"
7336 while :
7337 do
7338 cat "conftest.in" "conftest.in" >"conftest.tmp"
7339 mv "conftest.tmp" "conftest.in"
7340 cp "conftest.in" "conftest.nl"
7341 $as_echo '' >> "conftest.nl"
7342 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7343 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7344 as_fn_arith $ac_count + 1 && ac_count=$as_val
7345 if test $ac_count -gt ${ac_path_SED_max-0}; then
7346 # Best one so far, save it but keep looking for a better one
7347 ac_cv_path_SED="$ac_path_SED"
7348 ac_path_SED_max=$ac_count
7349 fi
7350 # 10*(2^10) chars as input seems more than enough
7351 test $ac_count -gt 10 && break
7352 done
7353 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7354esac
7355
7356 $ac_path_SED_found && break 3
7357 done
7358 done
7359 done
7360IFS=$as_save_IFS
7361 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007362 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007363 fi
7364else
7365 ac_cv_path_SED=$SED
7366fi
7367
7368fi
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7370$as_echo "$ac_cv_path_SED" >&6; }
7371 SED="$ac_cv_path_SED"
7372 rm -f conftest.sed
7373
7374test -z "$SED" && SED=sed
7375Xsed="$SED -e 1s/^X//"
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7388$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007389if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007390 $as_echo_n "(cached) " >&6
7391else
7392 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7393 then ac_cv_path_FGREP="$GREP -F"
7394 else
7395 if test -z "$FGREP"; then
7396 ac_path_FGREP_found=false
7397 # Loop through the user's path and test for each of PROGNAME-LIST
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7400do
7401 IFS=$as_save_IFS
7402 test -z "$as_dir" && as_dir=.
7403 for ac_prog in fgrep; do
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007406 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007407# Check for GNU ac_path_FGREP and select it if it is found.
7408 # Check for GNU $ac_path_FGREP
7409case `"$ac_path_FGREP" --version 2>&1` in
7410*GNU*)
7411 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7412*)
7413 ac_count=0
7414 $as_echo_n 0123456789 >"conftest.in"
7415 while :
7416 do
7417 cat "conftest.in" "conftest.in" >"conftest.tmp"
7418 mv "conftest.tmp" "conftest.in"
7419 cp "conftest.in" "conftest.nl"
7420 $as_echo 'FGREP' >> "conftest.nl"
7421 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7423 as_fn_arith $ac_count + 1 && ac_count=$as_val
7424 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7425 # Best one so far, save it but keep looking for a better one
7426 ac_cv_path_FGREP="$ac_path_FGREP"
7427 ac_path_FGREP_max=$ac_count
7428 fi
7429 # 10*(2^10) chars as input seems more than enough
7430 test $ac_count -gt 10 && break
7431 done
7432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7433esac
7434
7435 $ac_path_FGREP_found && break 3
7436 done
7437 done
7438 done
7439IFS=$as_save_IFS
7440 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007441 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007442 fi
7443else
7444 ac_cv_path_FGREP=$FGREP
7445fi
7446
7447 fi
7448fi
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7450$as_echo "$ac_cv_path_FGREP" >&6; }
7451 FGREP="$ac_cv_path_FGREP"
7452
7453
7454test -z "$GREP" && GREP=grep
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
cristy0c60a692010-11-04 01:09:47 +00007472ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7473ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7474ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7475
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7477$as_echo_n "checking how to print strings... " >&6; }
7478# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007479if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007480 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7481 ECHO='print -r --'
7482elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7483 ECHO='printf %s\n'
7484else
7485 # Use this function as a fallback that always works.
7486 func_fallback_echo ()
7487 {
7488 eval 'cat <<_LTECHO_EOF
7489$1
7490_LTECHO_EOF'
7491 }
7492 ECHO='func_fallback_echo'
7493fi
7494
7495# func_echo_all arg...
7496# Invoke $ECHO with all args, space-separated.
7497func_echo_all ()
7498{
7499 $ECHO ""
7500}
7501
7502case "$ECHO" in
7503 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7504$as_echo "printf" >&6; } ;;
7505 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7506$as_echo "print -r" >&6; } ;;
7507 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7508$as_echo "cat" >&6; } ;;
7509esac
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
cristy73bd4a52010-10-05 11:24:23 +00007524
7525
7526# Check whether --with-gnu-ld was given.
7527if test "${with_gnu_ld+set}" = set; then :
7528 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7529else
7530 with_gnu_ld=no
7531fi
7532
7533ac_prog=ld
7534if test "$GCC" = yes; then
7535 # Check if gcc -print-prog-name=ld gives a path.
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7537$as_echo_n "checking for ld used by $CC... " >&6; }
7538 case $host in
7539 *-*-mingw*)
7540 # gcc leaves a trailing carriage return which upsets mingw
7541 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7542 *)
7543 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7544 esac
7545 case $ac_prog in
7546 # Accept absolute paths.
7547 [\\/]* | ?:[\\/]*)
7548 re_direlt='/[^/][^/]*/\.\./'
7549 # Canonicalize the pathname of ld
7550 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7551 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7552 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7553 done
7554 test -z "$LD" && LD="$ac_prog"
7555 ;;
7556 "")
7557 # If it fails, then pretend we aren't using GCC.
7558 ac_prog=ld
7559 ;;
7560 *)
7561 # If it is relative, then search for the first ld in PATH.
7562 with_gnu_ld=unknown
7563 ;;
7564 esac
7565elif test "$with_gnu_ld" = yes; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7567$as_echo_n "checking for GNU ld... " >&6; }
7568else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7570$as_echo_n "checking for non-GNU ld... " >&6; }
7571fi
cristyda16f162011-02-19 23:52:17 +00007572if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007573 $as_echo_n "(cached) " >&6
7574else
7575 if test -z "$LD"; then
7576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7577 for ac_dir in $PATH; do
7578 IFS="$lt_save_ifs"
7579 test -z "$ac_dir" && ac_dir=.
7580 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7581 lt_cv_path_LD="$ac_dir/$ac_prog"
7582 # Check to see if the program is GNU ld. I'd rather use --version,
7583 # but apparently some variants of GNU ld only accept -v.
7584 # Break only if it was the GNU/non-GNU ld that we prefer.
7585 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7586 *GNU* | *'with BFD'*)
7587 test "$with_gnu_ld" != no && break
7588 ;;
7589 *)
7590 test "$with_gnu_ld" != yes && break
7591 ;;
7592 esac
7593 fi
7594 done
7595 IFS="$lt_save_ifs"
7596else
7597 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7598fi
7599fi
7600
7601LD="$lt_cv_path_LD"
7602if test -n "$LD"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7604$as_echo "$LD" >&6; }
7605else
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607$as_echo "no" >&6; }
7608fi
cristy98dddb52010-11-04 00:30:15 +00007609test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7611$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007612if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007613 $as_echo_n "(cached) " >&6
7614else
7615 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7616case `$LD -v 2>&1 </dev/null` in
7617*GNU* | *'with BFD'*)
7618 lt_cv_prog_gnu_ld=yes
7619 ;;
7620*)
7621 lt_cv_prog_gnu_ld=no
7622 ;;
7623esac
7624fi
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7626$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7627with_gnu_ld=$lt_cv_prog_gnu_ld
7628
7629
7630
7631
7632
7633
7634
7635
7636
cristy3ed852e2009-09-05 21:47:34 +00007637
cristy837d6dc2010-02-27 01:16:57 +00007638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7639$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007640if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007641 $as_echo_n "(cached) " >&6
7642else
7643 ac_cv_prog_cc_c99=no
7644ac_save_CC=$CC
7645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646/* end confdefs.h. */
7647#include <stdarg.h>
7648#include <stdbool.h>
7649#include <stdlib.h>
7650#include <wchar.h>
7651#include <stdio.h>
7652
7653// Check varargs macros. These examples are taken from C99 6.10.3.5.
7654#define debug(...) fprintf (stderr, __VA_ARGS__)
7655#define showlist(...) puts (#__VA_ARGS__)
7656#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7657static void
7658test_varargs_macros (void)
7659{
7660 int x = 1234;
7661 int y = 5678;
7662 debug ("Flag");
7663 debug ("X = %d\n", x);
7664 showlist (The first, second, and third items.);
7665 report (x>y, "x is %d but y is %d", x, y);
7666}
7667
7668// Check long long types.
7669#define BIG64 18446744073709551615ull
7670#define BIG32 4294967295ul
7671#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7672#if !BIG_OK
7673 your preprocessor is broken;
7674#endif
7675#if BIG_OK
7676#else
7677 your preprocessor is broken;
7678#endif
7679static long long int bignum = -9223372036854775807LL;
7680static unsigned long long int ubignum = BIG64;
7681
7682struct incomplete_array
7683{
7684 int datasize;
7685 double data[];
7686};
7687
7688struct named_init {
7689 int number;
7690 const wchar_t *name;
7691 double average;
7692};
7693
7694typedef const char *ccp;
7695
7696static inline int
7697test_restrict (ccp restrict text)
7698{
7699 // See if C++-style comments work.
7700 // Iterate through items via the restricted pointer.
7701 // Also check for declarations in for loops.
7702 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7703 continue;
7704 return 0;
7705}
7706
7707// Check varargs and va_copy.
7708static void
7709test_varargs (const char *format, ...)
7710{
7711 va_list args;
7712 va_start (args, format);
7713 va_list args_copy;
7714 va_copy (args_copy, args);
7715
7716 const char *str;
7717 int number;
7718 float fnumber;
7719
7720 while (*format)
7721 {
7722 switch (*format++)
7723 {
7724 case 's': // string
7725 str = va_arg (args_copy, const char *);
7726 break;
7727 case 'd': // int
7728 number = va_arg (args_copy, int);
7729 break;
7730 case 'f': // float
7731 fnumber = va_arg (args_copy, double);
7732 break;
7733 default:
7734 break;
7735 }
7736 }
7737 va_end (args_copy);
7738 va_end (args);
7739}
7740
7741int
7742main ()
7743{
7744
7745 // Check bool.
7746 _Bool success = false;
7747
7748 // Check restrict.
7749 if (test_restrict ("String literal") == 0)
7750 success = true;
7751 char *restrict newvar = "Another string";
7752
7753 // Check varargs.
7754 test_varargs ("s, d' f .", "string", 65, 34.234);
7755 test_varargs_macros ();
7756
7757 // Check flexible array members.
7758 struct incomplete_array *ia =
7759 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7760 ia->datasize = 10;
7761 for (int i = 0; i < ia->datasize; ++i)
7762 ia->data[i] = i * 1.234;
7763
7764 // Check named initializers.
7765 struct named_init ni = {
7766 .number = 34,
7767 .name = L"Test wide string",
7768 .average = 543.34343,
7769 };
7770
7771 ni.number = 58;
7772
7773 int dynamic_array[ni.number];
7774 dynamic_array[ni.number - 1] = 543;
7775
7776 // work around unused variable warnings
7777 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7778 || dynamic_array[ni.number - 1] != 543);
7779
7780 ;
7781 return 0;
7782}
7783_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007784for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007785do
7786 CC="$ac_save_CC $ac_arg"
7787 if ac_fn_c_try_compile "$LINENO"; then :
7788 ac_cv_prog_cc_c99=$ac_arg
7789fi
7790rm -f core conftest.err conftest.$ac_objext
7791 test "x$ac_cv_prog_cc_c99" != "xno" && break
7792done
7793rm -f conftest.$ac_ext
7794CC=$ac_save_CC
7795
7796fi
7797# AC_CACHE_VAL
7798case "x$ac_cv_prog_cc_c99" in
7799 x)
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7801$as_echo "none needed" >&6; } ;;
7802 xno)
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7804$as_echo "unsupported" >&6; } ;;
7805 *)
7806 CC="$CC $ac_cv_prog_cc_c99"
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7808$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7809esac
7810if test "x$ac_cv_prog_cc_c99" != xno; then :
7811
7812fi
7813
7814
cristy73bd4a52010-10-05 11:24:23 +00007815if test "x$CC" != xcc; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7817$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7818else
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7820$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7821fi
7822set dummy $CC; ac_cc=`$as_echo "$2" |
7823 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007824if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007825 $as_echo_n "(cached) " >&6
7826else
cristy73bd4a52010-10-05 11:24:23 +00007827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828/* end confdefs.h. */
7829
7830int
7831main ()
7832{
7833
7834 ;
7835 return 0;
7836}
7837_ACEOF
7838# Make sure it works both with $CC and with simple cc.
7839# We do the test twice because some compilers refuse to overwrite an
7840# existing .o file with -o, though they will create one.
7841ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7842rm -f conftest2.*
7843if { { case "(($ac_try" in
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7846esac
7847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7848$as_echo "$ac_try_echo"; } >&5
7849 (eval "$ac_try") 2>&5
7850 ac_status=$?
7851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7852 test $ac_status = 0; } &&
7853 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7856esac
7857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7858$as_echo "$ac_try_echo"; } >&5
7859 (eval "$ac_try") 2>&5
7860 ac_status=$?
7861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7862 test $ac_status = 0; };
7863then
7864 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7865 if test "x$CC" != xcc; then
7866 # Test first that cc exists at all.
7867 if { ac_try='cc -c conftest.$ac_ext >&5'
7868 { { case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871esac
7872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7873$as_echo "$ac_try_echo"; } >&5
7874 (eval "$ac_try") 2>&5
7875 ac_status=$?
7876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7877 test $ac_status = 0; }; }; then
7878 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7879 rm -f conftest2.*
7880 if { { case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883esac
7884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7885$as_echo "$ac_try_echo"; } >&5
7886 (eval "$ac_try") 2>&5
7887 ac_status=$?
7888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7889 test $ac_status = 0; } &&
7890 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7893esac
7894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7895$as_echo "$ac_try_echo"; } >&5
7896 (eval "$ac_try") 2>&5
7897 ac_status=$?
7898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7899 test $ac_status = 0; };
7900 then
7901 # cc works too.
7902 :
7903 else
7904 # cc exists but doesn't like -o.
7905 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7906 fi
7907 fi
7908 fi
7909else
7910 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7911fi
7912rm -f core conftest*
7913
7914fi
7915if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7917$as_echo "yes" >&6; }
7918else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920$as_echo "no" >&6; }
7921
7922$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7923
7924fi
7925
7926# FIXME: we rely on the cache variable name because
7927# there is no other way.
7928set dummy $CC
7929am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7930eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7931if test "$am_t" != yes; then
7932 # Losing compiler, so override with the script.
7933 # FIXME: It is wrong to rewrite CC.
7934 # But if we don't then we get into trouble of one sort or another.
7935 # A longer-term fix would be to have automake use am__CC in this case,
7936 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7937 CC="$am_aux_dir/compile $CC"
7938fi
7939
7940
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7942$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007943if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007944 $as_echo_n "(cached) " >&6
7945else
7946 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007947 ac_ext=c
7948ac_cpp='$CPP $CPPFLAGS'
7949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7951ac_compiler_gnu=$ac_cv_c_compiler_gnu
7952
7953 ac_save_CFLAGS="$CFLAGS"
7954for 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" #
7955do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957/* end confdefs.h. */
7958
7959int
7960main ()
7961{
cristy24fc1fe2010-10-23 21:13:01 +00007962
cristy73bd4a52010-10-05 11:24:23 +00007963 ;
7964 return 0;
7965}
7966_ACEOF
7967if ac_fn_c_try_compile "$LINENO"; then :
7968 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7969fi
7970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7971done
7972 CFLAGS="$ac_save_CFLAGS"
7973 ac_ext=c
7974ac_cpp='$CPP $CPPFLAGS'
7975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7977ac_compiler_gnu=$ac_cv_c_compiler_gnu
7978
7979
7980fi
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7982$as_echo "$ac_cv_cflags_warn_all" >&6; }
7983case ".$ac_cv_cflags_warn_all" in
7984 .ok|.ok,*) ;;
7985 .|.no|.no,*)
7986 ;;
7987 *)
7988 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7989 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7990 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7991 ac_status=$?
7992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7993 test $ac_status = 0; }
7994 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7995 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7996 ac_status=$?
7997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7998 test $ac_status = 0; }
7999 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8000 fi
8001 ;;
nicolas6237c462010-10-05 06:11:49 +00008002esac
cristy3ed852e2009-09-05 21:47:34 +00008003
cristy016e8b82012-12-26 12:11:06 +00008004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8005$as_echo_n "checking for C compiler vendor... " >&6; }
8006if ${ax_cv_c_compiler_vendor+:} false; then :
8007 $as_echo_n "(cached) " >&6
8008else
8009 # note: don't check for gcc first since some other compilers define __GNUC__
8010 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8011 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8012 pathscale: __PATHCC__,__PATHSCALE__
8013 clang: __clang__
8014 gnu: __GNUC__
8015 sun: __SUNPRO_C,__SUNPRO_CC
8016 hp: __HP_cc,__HP_aCC
8017 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8018 borland: __BORLANDC__,__TURBOC__
8019 comeau: __COMO__
8020 cray: _CRAYC
8021 kai: __KCC
8022 lcc: __LCC__
8023 sgi: __sgi,sgi
8024 microsoft: _MSC_VER
8025 metrowerks: __MWERKS__
8026 watcom: __WATCOMC__
8027 portland: __PGI
8028 unknown: UNKNOWN"
8029 for ventest in $vendors; do
8030 case $ventest in
8031 *:) vendor=$ventest; continue ;;
8032 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8033 esac
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035/* end confdefs.h. */
8036
8037int
8038main ()
8039{
8040
8041 #if !($vencpp)
8042 thisisanerror;
8043 #endif
8044
8045 ;
8046 return 0;
8047}
8048_ACEOF
8049if ac_fn_c_try_compile "$LINENO"; then :
8050 break
8051fi
8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 done
8054 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8055
8056fi
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8058$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8059
cristya0b81c32010-01-22 02:54:33 +00008060
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8062$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8063set x ${MAKE-make}
8064ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008065if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008066 $as_echo_n "(cached) " >&6
8067else
8068 cat >conftest.make <<\_ACEOF
8069SHELL = /bin/sh
8070all:
8071 @echo '@@@%%%=$(MAKE)=@@@%%%'
8072_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008073# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008074case `${MAKE-make} -f conftest.make 2>/dev/null` in
8075 *@@@%%%=?*=@@@%%%*)
8076 eval ac_cv_prog_make_${ac_make}_set=yes;;
8077 *)
8078 eval ac_cv_prog_make_${ac_make}_set=no;;
8079esac
8080rm -f conftest.make
8081fi
8082if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8084$as_echo "yes" >&6; }
8085 SET_MAKE=
8086else
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088$as_echo "no" >&6; }
8089 SET_MAKE="MAKE=${MAKE-make}"
8090fi
8091
cristy8b350f62009-11-15 23:12:43 +00008092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008093$as_echo_n "checking whether ln -s works... " >&6; }
8094LN_S=$as_ln_s
8095if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008097$as_echo "yes" >&6; }
8098else
cristy8b350f62009-11-15 23:12:43 +00008099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008100$as_echo "no, using $LN_S" >&6; }
8101fi
8102
cristy8d0ff762013-03-10 20:33:28 +00008103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8104$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8105if ${ac_cv_path_SED+:} false; then :
8106 $as_echo_n "(cached) " >&6
8107else
8108 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8109 for ac_i in 1 2 3 4 5 6 7; do
8110 ac_script="$ac_script$as_nl$ac_script"
8111 done
8112 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8113 { ac_script=; unset ac_script;}
8114 if test -z "$SED"; then
8115 ac_path_SED_found=false
8116 # Loop through the user's path and test for each of PROGNAME-LIST
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_prog in sed gsed; do
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8125 as_fn_executable_p "$ac_path_SED" || continue
8126# Check for GNU ac_path_SED and select it if it is found.
8127 # Check for GNU $ac_path_SED
8128case `"$ac_path_SED" --version 2>&1` in
8129*GNU*)
8130 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8131*)
8132 ac_count=0
8133 $as_echo_n 0123456789 >"conftest.in"
8134 while :
8135 do
8136 cat "conftest.in" "conftest.in" >"conftest.tmp"
8137 mv "conftest.tmp" "conftest.in"
8138 cp "conftest.in" "conftest.nl"
8139 $as_echo '' >> "conftest.nl"
8140 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8142 as_fn_arith $ac_count + 1 && ac_count=$as_val
8143 if test $ac_count -gt ${ac_path_SED_max-0}; then
8144 # Best one so far, save it but keep looking for a better one
8145 ac_cv_path_SED="$ac_path_SED"
8146 ac_path_SED_max=$ac_count
8147 fi
8148 # 10*(2^10) chars as input seems more than enough
8149 test $ac_count -gt 10 && break
8150 done
8151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8152esac
8153
8154 $ac_path_SED_found && break 3
8155 done
8156 done
8157 done
8158IFS=$as_save_IFS
8159 if test -z "$ac_cv_path_SED"; then
8160 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8161 fi
8162else
8163 ac_cv_path_SED=$SED
8164fi
8165
8166fi
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8168$as_echo "$ac_cv_path_SED" >&6; }
8169 SED="$ac_cv_path_SED"
8170 rm -f conftest.sed
8171
cristybc556452012-08-17 19:44:03 +00008172for ac_prog in gawk mawk nawk awk
8173do
8174 # Extract the first word of "$ac_prog", so it can be a program name with args.
8175set dummy $ac_prog; ac_word=$2
8176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177$as_echo_n "checking for $ac_word... " >&6; }
8178if ${ac_cv_prog_AWK+:} false; then :
8179 $as_echo_n "(cached) " >&6
8180else
8181 if test -n "$AWK"; then
8182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8183else
8184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185for as_dir in $PATH
8186do
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8191 ac_cv_prog_AWK="$ac_prog"
8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 break 2
8194 fi
8195done
8196 done
8197IFS=$as_save_IFS
8198
8199fi
8200fi
8201AWK=$ac_cv_prog_AWK
8202if test -n "$AWK"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8204$as_echo "$AWK" >&6; }
8205else
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207$as_echo "no" >&6; }
8208fi
8209
8210
8211 test -n "$AWK" && break
8212done
8213
cristy73bd4a52010-10-05 11:24:23 +00008214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8215$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8216
8217# Check whether --with-dmalloc was given.
8218if test "${with_dmalloc+set}" = set; then :
8219 withval=$with_dmalloc; if test "$withval" = yes; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8221$as_echo "yes" >&6; }
8222
8223$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8224
8225 LIBS="$LIBS -ldmalloc"
8226 LDFLAGS="$LDFLAGS -g"
8227else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229$as_echo "no" >&6; }
8230fi
8231else
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233$as_echo "no" >&6; }
8234fi
8235
8236
8237
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8239$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008240if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008241 $as_echo_n "(cached) " >&6
8242else
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244/* end confdefs.h. */
8245#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008246 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008247 static void
8248 foo(void) {
8249 exit(1);
8250 }
8251
8252int
8253main ()
8254{
8255
8256 ;
8257 return 0;
8258}
8259_ACEOF
8260if ac_fn_c_try_compile "$LINENO"; then :
8261 ax_cv___attribute__=yes
8262else
8263 ax_cv___attribute__=no
8264
8265fi
8266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267
8268fi
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8270$as_echo "$ax_cv___attribute__" >&6; }
8271 if test "$ax_cv___attribute__" = "yes"; then
8272
8273$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8274
8275 fi
8276
8277
8278
cristy37110d62012-03-01 18:38:20 +00008279
8280
8281# Check whether --with-gcc-arch was given.
8282if test "${with_gcc_arch+set}" = set; then :
8283 withval=$with_gcc_arch; ax_gcc_arch=$withval
8284else
cristya32d1812012-03-02 19:24:21 +00008285 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008286fi
8287
8288
8289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8290$as_echo_n "checking for gcc architecture flag... " >&6; }
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8292$as_echo "" >&6; }
8293if ${ax_cv_gcc_archflag+:} false; then :
8294 $as_echo_n "(cached) " >&6
8295else
8296
8297ax_cv_gcc_archflag="unknown"
8298
8299if test "$GCC" = yes; then
8300
8301if test "x$ax_gcc_arch" = xyes; then
8302ax_gcc_arch=""
8303if test "$cross_compiling" = no; then
8304case $host_cpu in
8305 i[3456]86*|x86_64*) # use cpuid codes
8306
8307ac_ext=c
8308ac_cpp='$CPP $CPPFLAGS'
8309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8311ac_compiler_gnu=$ac_cv_c_compiler_gnu
8312
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8314$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8315if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8316 $as_echo_n "(cached) " >&6
8317else
8318 if test "$cross_compiling" = yes; then :
8319 ax_cv_gcc_x86_cpuid_0=unknown
8320else
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322/* end confdefs.h. */
8323#include <stdio.h>
8324int
8325main ()
8326{
8327
8328 int op = 0, eax, ebx, ecx, edx;
8329 FILE *f;
8330 __asm__("cpuid"
8331 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8332 : "a" (op));
8333 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8334 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8335 fclose(f);
8336 return 0;
8337
8338 ;
8339 return 0;
8340}
8341_ACEOF
8342if ac_fn_c_try_run "$LINENO"; then :
8343 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8344else
8345 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8346fi
8347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8348 conftest.$ac_objext conftest.beam conftest.$ac_ext
8349fi
8350
8351fi
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8353$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8354ac_ext=c
8355ac_cpp='$CPP $CPPFLAGS'
8356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8358ac_compiler_gnu=$ac_cv_c_compiler_gnu
8359
8360
8361
8362ac_ext=c
8363ac_cpp='$CPP $CPPFLAGS'
8364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8366ac_compiler_gnu=$ac_cv_c_compiler_gnu
8367
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8369$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8370if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8371 $as_echo_n "(cached) " >&6
8372else
8373 if test "$cross_compiling" = yes; then :
8374 ax_cv_gcc_x86_cpuid_1=unknown
8375else
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377/* end confdefs.h. */
8378#include <stdio.h>
8379int
8380main ()
8381{
8382
8383 int op = 1, eax, ebx, ecx, edx;
8384 FILE *f;
8385 __asm__("cpuid"
8386 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8387 : "a" (op));
8388 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8389 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8390 fclose(f);
8391 return 0;
8392
8393 ;
8394 return 0;
8395}
8396_ACEOF
8397if ac_fn_c_try_run "$LINENO"; then :
8398 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8399else
8400 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8401fi
8402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8403 conftest.$ac_objext conftest.beam conftest.$ac_ext
8404fi
8405
8406fi
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8408$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8409ac_ext=c
8410ac_cpp='$CPP $CPPFLAGS'
8411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8413ac_compiler_gnu=$ac_cv_c_compiler_gnu
8414
8415
8416 case $ax_cv_gcc_x86_cpuid_0 in
8417 *:756e6547:*:*) # Intel
8418 case $ax_cv_gcc_x86_cpuid_1 in
8419 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8420 *5??:*:*:*) ax_gcc_arch=pentium ;;
8421 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8422 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8423 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8424 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8425 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8426 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8427 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8428 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8429 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8430 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8431 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8432 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8433 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8434 case $host_cpu in
8435 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8436 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8437 esac ;;
8438 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8439 esac ;;
8440 *:68747541:*:*) # AMD
8441 case $ax_cv_gcc_x86_cpuid_1 in
8442 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8443 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8444 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8445 *60?:*:*:*) ax_gcc_arch=k7 ;;
8446 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8447 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8448 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8449 *6[68a]?:*:*:*)
8450
8451ac_ext=c
8452ac_cpp='$CPP $CPPFLAGS'
8453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8455ac_compiler_gnu=$ac_cv_c_compiler_gnu
8456
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8458$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8459if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8460 $as_echo_n "(cached) " >&6
8461else
8462 if test "$cross_compiling" = yes; then :
8463 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8464else
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466/* end confdefs.h. */
8467#include <stdio.h>
8468int
8469main ()
8470{
8471
8472 int op = 0x80000006, eax, ebx, ecx, edx;
8473 FILE *f;
8474 __asm__("cpuid"
8475 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8476 : "a" (op));
8477 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8478 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8479 fclose(f);
8480 return 0;
8481
8482 ;
8483 return 0;
8484}
8485_ACEOF
8486if ac_fn_c_try_run "$LINENO"; then :
8487 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8488else
8489 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8490fi
8491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8492 conftest.$ac_objext conftest.beam conftest.$ac_ext
8493fi
8494
8495fi
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8497$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8498ac_ext=c
8499ac_cpp='$CPP $CPPFLAGS'
8500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8502ac_compiler_gnu=$ac_cv_c_compiler_gnu
8503
8504 # L2 cache size
8505 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8506 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8507 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8508 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8509 esac ;;
8510 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8511 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8512 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8513 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8514 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8515 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8516 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8517 esac ;;
8518 *:746e6543:*:*) # IDT
8519 case $ax_cv_gcc_x86_cpuid_1 in
8520 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8521 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8522 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8523 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8524 esac ;;
8525 esac
8526 if test x"$ax_gcc_arch" = x; then # fallback
8527 case $host_cpu in
8528 i586*) ax_gcc_arch=pentium ;;
8529 i686*) ax_gcc_arch=pentiumpro ;;
8530 esac
8531 fi
8532 ;;
8533
8534 sparc*)
8535 # Extract the first word of "prtdiag", so it can be a program name with args.
8536set dummy prtdiag; ac_word=$2
8537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538$as_echo_n "checking for $ac_word... " >&6; }
8539if ${ac_cv_path_PRTDIAG+:} false; then :
8540 $as_echo_n "(cached) " >&6
8541else
8542 case $PRTDIAG in
8543 [\\/]* | ?:[\\/]*)
8544 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8545 ;;
8546 *)
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8549for as_dir in $as_dummy
8550do
8551 IFS=$as_save_IFS
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008555 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 break 2
8558 fi
8559done
8560 done
8561IFS=$as_save_IFS
8562
8563 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8564 ;;
8565esac
8566fi
8567PRTDIAG=$ac_cv_path_PRTDIAG
8568if test -n "$PRTDIAG"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8570$as_echo "$PRTDIAG" >&6; }
8571else
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573$as_echo "no" >&6; }
8574fi
8575
8576
8577 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`
8578 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8579 case $cputype in
8580 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8581 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8582 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8583 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8584 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8585 *cypress*) ax_gcc_arch=cypress ;;
8586 esac ;;
8587
8588 alphaev5) ax_gcc_arch=ev5 ;;
8589 alphaev56) ax_gcc_arch=ev56 ;;
8590 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8591 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8592 alphaev6) ax_gcc_arch=ev6 ;;
8593 alphaev67) ax_gcc_arch=ev67 ;;
8594 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8595 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8596 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8597 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8598
8599 powerpc*)
8600 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`
8601 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8602 case $cputype in
8603 *750*) ax_gcc_arch="750 G3" ;;
8604 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8605 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8606 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8607 *970*) ax_gcc_arch="970 G5 power4";;
8608 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8609 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8610 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8611 *) ax_gcc_arch=$cputype ;;
8612 esac
8613 ax_gcc_arch="$ax_gcc_arch powerpc"
8614 ;;
8615esac
8616fi # not cross-compiling
8617fi # guess arch
8618
8619if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8620for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008621 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008622 flags="-mtune=$arch"
8623 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8624 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8625 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8626 else
8627 flags="-march=$arch -mcpu=$arch -m$arch"
8628 fi
8629 for flag in $flags; do
8630 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8632$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8633if eval \${$as_CACHEVAR+:} false; then :
8634 $as_echo_n "(cached) " >&6
8635else
8636
8637 ax_check_save_flags=$CFLAGS
8638 CFLAGS="$CFLAGS $flag"
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640/* end confdefs.h. */
8641
8642int
8643main ()
8644{
8645
8646 ;
8647 return 0;
8648}
8649_ACEOF
8650if ac_fn_c_try_compile "$LINENO"; then :
8651 eval "$as_CACHEVAR=yes"
8652else
8653 eval "$as_CACHEVAR=no"
8654fi
8655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8656 CFLAGS=$ax_check_save_flags
8657fi
8658eval ac_res=\$$as_CACHEVAR
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8660$as_echo "$ac_res" >&6; }
8661if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8662 ax_cv_gcc_archflag=$flag; break
8663else
8664 :
8665fi
8666
8667 done
8668 test "x$ax_cv_gcc_archflag" = xunknown || break
8669done
8670fi
8671
8672fi # $GCC=yes
8673
8674fi
8675
8676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8677$as_echo_n "checking for gcc architecture flag... " >&6; }
8678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8679$as_echo "$ax_cv_gcc_archflag" >&6; }
8680if test "x$ax_cv_gcc_archflag" = xunknown; then
8681 :
8682else
8683 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8684fi
8685
8686
8687
cristy73bd4a52010-10-05 11:24:23 +00008688if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8689 if test -n "$ac_tool_prefix"; then
8690 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8691set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008694if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008695 $as_echo_n "(cached) " >&6
8696else
8697 case $PKG_CONFIG in
8698 [\\/]* | ?:[\\/]*)
8699 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8700 ;;
8701 *)
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703for as_dir in $PATH
8704do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008709 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8712 fi
8713done
8714 done
8715IFS=$as_save_IFS
8716
8717 ;;
8718esac
8719fi
8720PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8721if test -n "$PKG_CONFIG"; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8723$as_echo "$PKG_CONFIG" >&6; }
8724else
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726$as_echo "no" >&6; }
8727fi
8728
8729
8730fi
8731if test -z "$ac_cv_path_PKG_CONFIG"; then
8732 ac_pt_PKG_CONFIG=$PKG_CONFIG
8733 # Extract the first word of "pkg-config", so it can be a program name with args.
8734set dummy pkg-config; ac_word=$2
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008737if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008738 $as_echo_n "(cached) " >&6
8739else
8740 case $ac_pt_PKG_CONFIG in
8741 [\\/]* | ?:[\\/]*)
8742 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8743 ;;
8744 *)
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008752 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756done
8757 done
8758IFS=$as_save_IFS
8759
8760 ;;
8761esac
8762fi
8763ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8764if test -n "$ac_pt_PKG_CONFIG"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8766$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8767else
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769$as_echo "no" >&6; }
8770fi
8771
8772 if test "x$ac_pt_PKG_CONFIG" = x; then
8773 PKG_CONFIG=""
8774 else
8775 case $cross_compiling:$ac_tool_warned in
8776yes:)
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8779ac_tool_warned=yes ;;
8780esac
8781 PKG_CONFIG=$ac_pt_PKG_CONFIG
8782 fi
8783else
8784 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8785fi
8786
8787fi
8788if test -n "$PKG_CONFIG"; then
8789 _pkg_min_version=0.9.0
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8791$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8792 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8794$as_echo "yes" >&6; }
8795 else
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797$as_echo "no" >&6; }
8798 PKG_CONFIG=""
8799 fi
8800
8801fi
cristy3ed852e2009-09-05 21:47:34 +00008802
cristy9b86f202012-11-28 21:55:35 +00008803# Check for linker script support
8804
8805 # Check whether --enable-ld-version-script was given.
8806if test "${enable_ld_version_script+set}" = set; then :
8807 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8808fi
8809
8810 if test -z "$have_ld_version_script"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8812$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8813 save_LDFLAGS="$LDFLAGS"
8814 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8815 cat > conftest.map <<EOF
8816foo
8817EOF
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819/* end confdefs.h. */
8820
8821int
8822main ()
8823{
8824
8825 ;
8826 return 0;
8827}
8828_ACEOF
8829if ac_fn_c_try_link "$LINENO"; then :
8830 accepts_syntax_errors=yes
8831else
8832 accepts_syntax_errors=no
8833fi
8834rm -f core conftest.err conftest.$ac_objext \
8835 conftest$ac_exeext conftest.$ac_ext
8836 if test "$accepts_syntax_errors" = no; then
8837 cat > conftest.map <<EOF
8838VERS_1 {
8839 global: sym;
8840};
8841
8842VERS_2 {
8843 global: sym;
8844} VERS_1;
8845EOF
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847/* end confdefs.h. */
8848
8849int
8850main ()
8851{
8852
8853 ;
8854 return 0;
8855}
8856_ACEOF
8857if ac_fn_c_try_link "$LINENO"; then :
8858 have_ld_version_script=yes
8859else
8860 have_ld_version_script=no
8861fi
8862rm -f core conftest.err conftest.$ac_objext \
8863 conftest$ac_exeext conftest.$ac_ext
8864 else
8865 have_ld_version_script=no
8866 fi
8867 rm -f conftest.map
8868 LDFLAGS="$save_LDFLAGS"
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8870$as_echo "$have_ld_version_script" >&6; }
8871 fi
8872 if test "$have_ld_version_script" = "yes"; then
8873 HAVE_LD_VERSION_SCRIPT_TRUE=
8874 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8875else
8876 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8877 HAVE_LD_VERSION_SCRIPT_FALSE=
8878fi
8879
8880
8881
cristy3ed852e2009-09-05 21:47:34 +00008882#
cristy3ed852e2009-09-05 21:47:34 +00008883# Enable run-time checking.
8884#
8885# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008886if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008887 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8888else
8889 enable_bounds_checking='no'
8890fi
8891
8892
8893if test "$enable_bounds_checking" = yes; then
8894
cristy8b350f62009-11-15 23:12:43 +00008895$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008896
8897fi
8898
8899#
8900# Tests for Windows
8901#
8902
8903
8904
8905GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008906native_win32_build='no'
8907cygwin_build='no'
8908case "${host_os}" in
8909 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008910 cygwin_build='yes'
8911 GDI32_LIBS='-lgdi32'
8912 ;;
8913 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008914 native_win32_build='yes'
8915 GDI32_LIBS='-lgdi32'
8916 ;;
8917esac
8918if test "${GDI32_LIBS}x" != 'x'; then
8919
cristy8b350f62009-11-15 23:12:43 +00008920$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008921
8922fi
8923
cristy73bd4a52010-10-05 11:24:23 +00008924 if test "${GDI32_LIBS}x" != 'x' ; then
8925 WINGDI32_DELEGATE_TRUE=
8926 WINGDI32_DELEGATE_FALSE='#'
8927else
8928 WINGDI32_DELEGATE_TRUE='#'
8929 WINGDI32_DELEGATE_FALSE=
8930fi
8931
8932 if test "${native_win32_build}" = 'yes' ; then
8933 WIN32_NATIVE_BUILD_TRUE=
8934 WIN32_NATIVE_BUILD_FALSE='#'
8935else
8936 WIN32_NATIVE_BUILD_TRUE='#'
8937 WIN32_NATIVE_BUILD_FALSE=
8938fi
8939
8940 if test "${cygwin_build}" = 'yes' ; then
8941 CYGWIN_BUILD_TRUE=
8942 CYGWIN_BUILD_FALSE='#'
8943else
8944 CYGWIN_BUILD_TRUE='#'
8945 CYGWIN_BUILD_FALSE=
8946fi
8947
8948 if test "x${CC}" = 'xcl.exe' ; then
8949 USING_CL_TRUE=
8950 USING_CL_FALSE='#'
8951else
8952 USING_CL_TRUE='#'
8953 USING_CL_FALSE=
8954fi
8955
cristy3ed852e2009-09-05 21:47:34 +00008956
8957WinPathScript="${srcdirfull}/winpath.sh"
8958
8959
8960#
8961# Compiler flags tweaks
8962#
8963if test "${GCC}" != "yes"; then
8964 case "${host}" in
8965 *-*-hpux* )
8966 # aCC: HP ANSI C++ B3910B A.03.34
8967 CFLAGS="${CFLAGS} -Wp,-H30000"
8968 if test -n "${CXXFLAGS}"; then
8969 CXXFLAGS='-AA'
8970 else
8971 CXXFLAGS="${CXXFLAGS} -AA"
8972 fi
8973 ;;
8974 *-dec-osf5.* )
8975 # Compaq alphaev68-dec-osf5.1 compiler
8976 if test -n "${CXXFLAGS}"; then
8977 CXXFLAGS='-std strict_ansi -noimplicit_include'
8978 else
8979 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8980 fi
8981 esac
8982fi
8983
8984# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008986$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008987if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008988 $as_echo_n "(cached) " >&6
8989else
8990
8991im_cv_ld_lazyload='none'
8992case "${host}" in
8993 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8994 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8995 im_cv_ld_lazyload='-Wl,-zlazyload'
8996 fi
8997 ;;
8998esac
8999
9000fi
cristy8b350f62009-11-15 23:12:43 +00009001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009002$as_echo "$im_cv_ld_lazyload" >&6; }
9003if test "${im_cv_ld_lazyload}" != 'none' ; then
9004 if test -z "${LDFLAGS}" ; then
9005 LDFLAGS="${im_cv_ld_lazyload}"
9006 else
9007 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9008 fi
9009fi
9010
9011case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009012 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009013 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009014 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009015if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009016 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9017else
9018 build_osxuniversal=no
9019fi
9020
9021
cristyc37574e2013-02-16 01:04:55 +00009022 if test "${build_osxuniversal}" != no ; then
9023 if test "$enable_dependency_tracking" != no ; then
9024 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009025Please re-run configure with these options:
9026 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009027 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009028 fi
9029 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9030 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9031 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009032 fi
9033 ;;
9034esac
9035
cristy0151ae12011-10-28 16:32:29 +00009036#
9037# ARCH specific include directory
9038#
9039
cristy670aa3c2011-11-03 00:54:00 +00009040# Check whether --with-includearch-dir was given.
9041if test "${with_includearch_dir+set}" = set; then :
9042 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009043else
cristy670aa3c2011-11-03 00:54:00 +00009044 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009045fi
9046
9047
cristyd286fd72013-02-24 19:25:33 +00009048eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009049
cristy0151ae12011-10-28 16:32:29 +00009050
9051#
9052# ARCH specific configuration directory
9053#
9054
cristy670aa3c2011-11-03 00:54:00 +00009055# Check whether --with-sharearch-dir was given.
9056if test "${with_sharearch_dir+set}" = set; then :
9057 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009058else
cristy408ebcd2011-11-14 01:36:57 +00009059 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009060fi
9061
9062
cristy670aa3c2011-11-03 00:54:00 +00009063eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009064
cristy0151ae12011-10-28 16:32:29 +00009065
cristy2ec87cc2013-02-18 17:46:50 +00009066# Path to the pkgconfig folder
9067
9068# Check whether --with-pkgconfigdir was given.
9069if test "${with_pkgconfigdir+set}" = set; then :
9070 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9071else
9072 pkgconfigdir='${libdir}/pkgconfig'
9073fi
9074
9075
9076
cristy0151ae12011-10-28 16:32:29 +00009077#
cristy3ed852e2009-09-05 21:47:34 +00009078# Enable support for threads
9079
9080# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009081if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009082 withval=$with_threads; with_threads=$withval
9083else
9084 with_threads='yes'
9085fi
9086
9087
9088have_threads=no
9089if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009090
9091
cristy73bd4a52010-10-05 11:24:23 +00009092ac_ext=c
9093ac_cpp='$CPP $CPPFLAGS'
9094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9096ac_compiler_gnu=$ac_cv_c_compiler_gnu
9097
9098ax_pthread_ok=no
9099
9100# We used to check for pthread.h first, but this fails if pthread.h
9101# requires special compiler flags (e.g. on True64 or Sequent).
9102# It gets checked for in the link test anyway.
9103
9104# First of all, check if the user has set any of the PTHREAD_LIBS,
9105# etcetera environment variables, and if threads linking works using
9106# them:
9107if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9108 save_CFLAGS="$CFLAGS"
9109 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9110 save_LIBS="$LIBS"
9111 LIBS="$PTHREAD_LIBS $LIBS"
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9113$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115/* end confdefs.h. */
9116
9117/* Override any GCC internal prototype to avoid an error.
9118 Use char because int might match the return type of a GCC
9119 builtin and then its argument prototype would still apply. */
9120#ifdef __cplusplus
9121extern "C"
9122#endif
9123char pthread_join ();
9124int
9125main ()
9126{
9127return pthread_join ();
9128 ;
9129 return 0;
9130}
9131_ACEOF
9132if ac_fn_c_try_link "$LINENO"; then :
9133 ax_pthread_ok=yes
9134fi
9135rm -f core conftest.err conftest.$ac_objext \
9136 conftest$ac_exeext conftest.$ac_ext
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9138$as_echo "$ax_pthread_ok" >&6; }
9139 if test x"$ax_pthread_ok" = xno; then
9140 PTHREAD_LIBS=""
9141 PTHREAD_CFLAGS=""
9142 fi
9143 LIBS="$save_LIBS"
9144 CFLAGS="$save_CFLAGS"
9145fi
9146
9147# We must check for the threads library under a number of different
9148# names; the ordering is very important because some systems
9149# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9150# libraries is broken (non-POSIX).
9151
9152# Create a list of thread flags to try. Items starting with a "-" are
9153# C compiler flags, and other items are library names, except for "none"
9154# which indicates that we try without any flags at all, and "pthread-config"
9155# which is a program returning the flags for the Pth emulation library.
9156
cristy2ec87cc2013-02-18 17:46:50 +00009157ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009158
9159# The ordering *is* (sometimes) important. Some notes on the
9160# individual items follow:
9161
9162# pthreads: AIX (must check this before -lpthread)
9163# none: in case threads are in libc; should be tried before -Kthread and
9164# other compiler flags to prevent continual compiler warnings
9165# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9166# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9167# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9168# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9169# -pthreads: Solaris/gcc
9170# -mthreads: Mingw32/gcc, Lynx/gcc
9171# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9172# doesn't hurt to check since this sometimes defines pthreads too;
9173# also defines -D_REENTRANT)
9174# ... -mt is also the pthreads flag for HP/aCC
9175# pthread: Linux, etcetera
9176# --thread-safe: KAI C++
9177# pthread-config: use pthread-config program (for GNU Pth library)
9178
cristy2ec87cc2013-02-18 17:46:50 +00009179case ${host_os} in
9180 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009181
9182 # On Solaris (at least, for some versions), libc contains stubbed
9183 # (non-functional) versions of the pthreads routines, so link-based
9184 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9185 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9186 # a function called by this macro, so we could check for that, but
9187 # who knows whether they'll stub that too in a future libc.) So,
9188 # we'll just look for -pthreads and -lpthread first:
9189
9190 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9191 ;;
9192
cristy2ec87cc2013-02-18 17:46:50 +00009193 darwin*)
cristya316db12011-10-24 00:49:45 +00009194 ax_pthread_flags="-pthread $ax_pthread_flags"
9195 ;;
cristy73bd4a52010-10-05 11:24:23 +00009196esac
9197
9198if test x"$ax_pthread_ok" = xno; then
9199for flag in $ax_pthread_flags; do
9200
9201 case $flag in
9202 none)
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9204$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9205 ;;
9206
9207 -*)
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9209$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9210 PTHREAD_CFLAGS="$flag"
9211 ;;
9212
cristya316db12011-10-24 00:49:45 +00009213 pthread-config)
9214 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009215set dummy pthread-config; ac_word=$2
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009218if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009219 $as_echo_n "(cached) " >&6
9220else
9221 if test -n "$ax_pthread_config"; then
9222 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9223else
9224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225for as_dir in $PATH
9226do
9227 IFS=$as_save_IFS
9228 test -z "$as_dir" && as_dir=.
9229 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009231 ac_cv_prog_ax_pthread_config="yes"
9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9233 break 2
9234 fi
9235done
9236 done
9237IFS=$as_save_IFS
9238
9239 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9240fi
9241fi
9242ax_pthread_config=$ac_cv_prog_ax_pthread_config
9243if test -n "$ax_pthread_config"; then
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9245$as_echo "$ax_pthread_config" >&6; }
9246else
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248$as_echo "no" >&6; }
9249fi
9250
9251
cristya316db12011-10-24 00:49:45 +00009252 if test x"$ax_pthread_config" = xno; then continue; fi
9253 PTHREAD_CFLAGS="`pthread-config --cflags`"
9254 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9255 ;;
cristy73bd4a52010-10-05 11:24:23 +00009256
9257 *)
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9259$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9260 PTHREAD_LIBS="-l$flag"
9261 ;;
9262 esac
9263
9264 save_LIBS="$LIBS"
9265 save_CFLAGS="$CFLAGS"
9266 LIBS="$PTHREAD_LIBS $LIBS"
9267 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9268
9269 # Check for various functions. We must include pthread.h,
9270 # since some functions may be macros. (On the Sequent, we
9271 # need a special flag -Kthread to make this header compile.)
9272 # We check for pthread_join because it is in -lpthread on IRIX
9273 # while pthread_create is in libc. We check for pthread_attr_init
9274 # due to DEC craziness with -lpthreads. We check for
9275 # pthread_cleanup_push because it is one of the few pthread
9276 # functions on Solaris that doesn't have a non-functional libc stub.
9277 # We try pthread_create on general principles.
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279/* end confdefs.h. */
9280#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009281 static void routine(void *a) { a = 0; }
9282 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009283int
9284main ()
9285{
9286pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009287 pthread_create(&th, 0, start_routine, 0);
9288 pthread_join(th, 0);
9289 pthread_attr_init(&attr);
9290 pthread_cleanup_push(routine, 0);
9291 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009292 ;
9293 return 0;
9294}
9295_ACEOF
9296if ac_fn_c_try_link "$LINENO"; then :
9297 ax_pthread_ok=yes
9298fi
9299rm -f core conftest.err conftest.$ac_objext \
9300 conftest$ac_exeext conftest.$ac_ext
9301
9302 LIBS="$save_LIBS"
9303 CFLAGS="$save_CFLAGS"
9304
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9306$as_echo "$ax_pthread_ok" >&6; }
9307 if test "x$ax_pthread_ok" = xyes; then
9308 break;
9309 fi
9310
9311 PTHREAD_LIBS=""
9312 PTHREAD_CFLAGS=""
9313done
9314fi
9315
9316# Various other checks:
9317if test "x$ax_pthread_ok" = xyes; then
9318 save_LIBS="$LIBS"
9319 LIBS="$PTHREAD_LIBS $LIBS"
9320 save_CFLAGS="$CFLAGS"
9321 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9322
9323 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009325$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009326 attr_name=unknown
9327 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009329/* end confdefs.h. */
9330#include <pthread.h>
9331int
9332main ()
9333{
cristya316db12011-10-24 00:49:45 +00009334int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009335 ;
9336 return 0;
9337}
9338_ACEOF
9339if ac_fn_c_try_link "$LINENO"; then :
9340 attr_name=$attr; break
9341fi
9342rm -f core conftest.err conftest.$ac_objext \
9343 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009344 done
cristy73bd4a52010-10-05 11:24:23 +00009345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9346$as_echo "$attr_name" >&6; }
9347 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9348
9349cat >>confdefs.h <<_ACEOF
9350#define PTHREAD_CREATE_JOINABLE $attr_name
9351_ACEOF
9352
9353 fi
9354
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9356$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9357 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009358 case ${host_os} in
9359 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9360 osf* | hpux*) flag="-D_REENTRANT";;
9361 solaris*)
9362 if test "$GCC" = "yes"; then
9363 flag="-D_REENTRANT"
9364 else
9365 flag="-mt -D_REENTRANT"
9366 fi
9367 ;;
cristy73bd4a52010-10-05 11:24:23 +00009368 esac
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9370$as_echo "${flag}" >&6; }
9371 if test "x$flag" != xno; then
9372 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9373 fi
9374
cristya316db12011-10-24 00:49:45 +00009375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9376$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9377if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9378 $as_echo_n "(cached) " >&6
9379else
9380
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382/* end confdefs.h. */
9383
9384 #include <pthread.h>
9385int
9386main ()
9387{
9388int i = PTHREAD_PRIO_INHERIT;
9389 ;
9390 return 0;
9391}
9392_ACEOF
9393if ac_fn_c_try_link "$LINENO"; then :
9394 ax_cv_PTHREAD_PRIO_INHERIT=yes
9395else
9396 ax_cv_PTHREAD_PRIO_INHERIT=no
9397fi
9398rm -f core conftest.err conftest.$ac_objext \
9399 conftest$ac_exeext conftest.$ac_ext
9400
9401fi
9402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9403$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9404 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9405
9406$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9407
9408fi
9409
cristy73bd4a52010-10-05 11:24:23 +00009410 LIBS="$save_LIBS"
9411 CFLAGS="$save_CFLAGS"
9412
cristy23493c42013-04-11 16:04:59 +00009413 # More AIX lossage: compile with *_r variant
9414 if test "x$GCC" != xyes; then
9415 case $host_os in
9416 aix*)
9417 case "x/$CC" in #(
9418 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9419 #handle absolute path differently from PATH based program lookup
9420 case "x$CC" in #(
9421 x/*) :
9422 if as_fn_executable_p ${CC}_r; then :
9423 PTHREAD_CC="${CC}_r"
9424fi ;; #(
9425 *) :
9426 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009427do
9428 # Extract the first word of "$ac_prog", so it can be a program name with args.
9429set dummy $ac_prog; ac_word=$2
9430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009432if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009433 $as_echo_n "(cached) " >&6
9434else
9435 if test -n "$PTHREAD_CC"; then
9436 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9437else
9438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439for as_dir in $PATH
9440do
9441 IFS=$as_save_IFS
9442 test -z "$as_dir" && as_dir=.
9443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009445 ac_cv_prog_PTHREAD_CC="$ac_prog"
9446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9447 break 2
9448 fi
9449done
9450 done
9451IFS=$as_save_IFS
9452
9453fi
9454fi
9455PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9456if test -n "$PTHREAD_CC"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9458$as_echo "$PTHREAD_CC" >&6; }
9459else
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461$as_echo "no" >&6; }
9462fi
9463
9464
9465 test -n "$PTHREAD_CC" && break
9466done
cristy23493c42013-04-11 16:04:59 +00009467test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9468 ;;
9469esac ;; #(
9470 *) :
9471 ;;
9472esac
9473 ;;
9474 esac
cristya316db12011-10-24 00:49:45 +00009475 fi
cristy73bd4a52010-10-05 11:24:23 +00009476fi
9477
cristy23493c42013-04-11 16:04:59 +00009478test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9479
cristy73bd4a52010-10-05 11:24:23 +00009480
9481
9482
9483
9484# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9485if test x"$ax_pthread_ok" = xyes; then
9486
9487$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9488
9489 :
9490else
9491 ax_pthread_ok=no
9492
9493fi
9494ac_ext=c
9495ac_cpp='$CPP $CPPFLAGS'
9496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9498ac_compiler_gnu=$ac_cv_c_compiler_gnu
9499
9500
cristy7acf8fb2010-09-23 19:58:53 +00009501 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009502 have_threads=yes
9503 DEF_THREAD="$PTHREAD_CFLAGS"
9504 CFLAGS="$CFLAGS $DEF_THREAD"
9505 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9506 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009507 { $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 +00009508$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9509 CC="$PTHREAD_CC"
9510 fi
cristy55bf91c2010-09-24 00:29:41 +00009511
9512$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9513
cristy3ed852e2009-09-05 21:47:34 +00009514 fi
9515fi
9516
9517# Enable support for OpenMP
9518if test "$have_threads" != 'yes'; then
9519 ac_cv_prog_c_openmp=unsupported
9520fi
9521
9522 OPENMP_CFLAGS=
9523 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009524if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009525 enableval=$enable_openmp;
9526fi
9527
9528 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009530$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009531if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009532 $as_echo_n "(cached) " >&6
9533else
cristy8b350f62009-11-15 23:12:43 +00009534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009536
9537#ifndef _OPENMP
9538 choke me
9539#endif
9540#include <omp.h>
9541int main () { return omp_get_num_threads (); }
9542
9543_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009544if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009545 ac_cv_prog_c_openmp='none needed'
9546else
cristy8b350f62009-11-15 23:12:43 +00009547 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009548 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9549 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009550 ac_save_CFLAGS=$CFLAGS
9551 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009554
9555#ifndef _OPENMP
9556 choke me
9557#endif
9558#include <omp.h>
9559int main () { return omp_get_num_threads (); }
9560
9561_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009562if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009563 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009564fi
cristy8b350f62009-11-15 23:12:43 +00009565rm -f core conftest.err conftest.$ac_objext \
9566 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009567 CFLAGS=$ac_save_CFLAGS
9568 if test "$ac_cv_prog_c_openmp" != unsupported; then
9569 break
9570 fi
9571 done
9572fi
cristy8b350f62009-11-15 23:12:43 +00009573rm -f core conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009575fi
cristy8b350f62009-11-15 23:12:43 +00009576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009577$as_echo "$ac_cv_prog_c_openmp" >&6; }
9578 case $ac_cv_prog_c_openmp in #(
9579 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009580 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009581 *)
cristy8b350f62009-11-15 23:12:43 +00009582 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009583 esac
9584 fi
9585
9586
9587CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9588MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9589
cristy391f1ce2010-09-09 17:23:28 +00009590if test "$enable_openmp" != no; then
9591 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9592 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9593 fi
9594fi
cristy3ed852e2009-09-05 21:47:34 +00009595
cristy736173a2009-09-20 21:18:22 +00009596# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009597
9598
cristy73bd4a52010-10-05 11:24:23 +00009599ac_ext=c
9600ac_cpp='$CPP $CPPFLAGS'
9601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9603ac_compiler_gnu=$ac_cv_c_compiler_gnu
9604
9605ax_pthread_ok=no
9606
9607# We used to check for pthread.h first, but this fails if pthread.h
9608# requires special compiler flags (e.g. on True64 or Sequent).
9609# It gets checked for in the link test anyway.
9610
9611# First of all, check if the user has set any of the PTHREAD_LIBS,
9612# etcetera environment variables, and if threads linking works using
9613# them:
9614if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9615 save_CFLAGS="$CFLAGS"
9616 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9617 save_LIBS="$LIBS"
9618 LIBS="$PTHREAD_LIBS $LIBS"
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9620$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622/* end confdefs.h. */
9623
9624/* Override any GCC internal prototype to avoid an error.
9625 Use char because int might match the return type of a GCC
9626 builtin and then its argument prototype would still apply. */
9627#ifdef __cplusplus
9628extern "C"
9629#endif
9630char pthread_join ();
9631int
9632main ()
9633{
9634return pthread_join ();
9635 ;
9636 return 0;
9637}
9638_ACEOF
9639if ac_fn_c_try_link "$LINENO"; then :
9640 ax_pthread_ok=yes
9641fi
9642rm -f core conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9645$as_echo "$ax_pthread_ok" >&6; }
9646 if test x"$ax_pthread_ok" = xno; then
9647 PTHREAD_LIBS=""
9648 PTHREAD_CFLAGS=""
9649 fi
9650 LIBS="$save_LIBS"
9651 CFLAGS="$save_CFLAGS"
9652fi
9653
9654# We must check for the threads library under a number of different
9655# names; the ordering is very important because some systems
9656# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9657# libraries is broken (non-POSIX).
9658
9659# Create a list of thread flags to try. Items starting with a "-" are
9660# C compiler flags, and other items are library names, except for "none"
9661# which indicates that we try without any flags at all, and "pthread-config"
9662# which is a program returning the flags for the Pth emulation library.
9663
cristy2ec87cc2013-02-18 17:46:50 +00009664ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009665
9666# The ordering *is* (sometimes) important. Some notes on the
9667# individual items follow:
9668
9669# pthreads: AIX (must check this before -lpthread)
9670# none: in case threads are in libc; should be tried before -Kthread and
9671# other compiler flags to prevent continual compiler warnings
9672# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9673# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9674# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9675# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9676# -pthreads: Solaris/gcc
9677# -mthreads: Mingw32/gcc, Lynx/gcc
9678# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9679# doesn't hurt to check since this sometimes defines pthreads too;
9680# also defines -D_REENTRANT)
9681# ... -mt is also the pthreads flag for HP/aCC
9682# pthread: Linux, etcetera
9683# --thread-safe: KAI C++
9684# pthread-config: use pthread-config program (for GNU Pth library)
9685
cristy2ec87cc2013-02-18 17:46:50 +00009686case ${host_os} in
9687 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009688
9689 # On Solaris (at least, for some versions), libc contains stubbed
9690 # (non-functional) versions of the pthreads routines, so link-based
9691 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9692 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9693 # a function called by this macro, so we could check for that, but
9694 # who knows whether they'll stub that too in a future libc.) So,
9695 # we'll just look for -pthreads and -lpthread first:
9696
9697 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9698 ;;
9699
cristy2ec87cc2013-02-18 17:46:50 +00009700 darwin*)
cristya316db12011-10-24 00:49:45 +00009701 ax_pthread_flags="-pthread $ax_pthread_flags"
9702 ;;
cristy73bd4a52010-10-05 11:24:23 +00009703esac
9704
9705if test x"$ax_pthread_ok" = xno; then
9706for flag in $ax_pthread_flags; do
9707
9708 case $flag in
9709 none)
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9711$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9712 ;;
9713
9714 -*)
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9716$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9717 PTHREAD_CFLAGS="$flag"
9718 ;;
9719
cristya316db12011-10-24 00:49:45 +00009720 pthread-config)
9721 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009722set dummy pthread-config; ac_word=$2
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009725if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009726 $as_echo_n "(cached) " >&6
9727else
9728 if test -n "$ax_pthread_config"; then
9729 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9730else
9731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732for as_dir in $PATH
9733do
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009738 ac_cv_prog_ax_pthread_config="yes"
9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9741 fi
9742done
9743 done
9744IFS=$as_save_IFS
9745
9746 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9747fi
9748fi
9749ax_pthread_config=$ac_cv_prog_ax_pthread_config
9750if test -n "$ax_pthread_config"; then
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9752$as_echo "$ax_pthread_config" >&6; }
9753else
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9755$as_echo "no" >&6; }
9756fi
9757
9758
cristya316db12011-10-24 00:49:45 +00009759 if test x"$ax_pthread_config" = xno; then continue; fi
9760 PTHREAD_CFLAGS="`pthread-config --cflags`"
9761 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9762 ;;
cristy73bd4a52010-10-05 11:24:23 +00009763
9764 *)
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9766$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9767 PTHREAD_LIBS="-l$flag"
9768 ;;
9769 esac
9770
9771 save_LIBS="$LIBS"
9772 save_CFLAGS="$CFLAGS"
9773 LIBS="$PTHREAD_LIBS $LIBS"
9774 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9775
9776 # Check for various functions. We must include pthread.h,
9777 # since some functions may be macros. (On the Sequent, we
9778 # need a special flag -Kthread to make this header compile.)
9779 # We check for pthread_join because it is in -lpthread on IRIX
9780 # while pthread_create is in libc. We check for pthread_attr_init
9781 # due to DEC craziness with -lpthreads. We check for
9782 # pthread_cleanup_push because it is one of the few pthread
9783 # functions on Solaris that doesn't have a non-functional libc stub.
9784 # We try pthread_create on general principles.
9785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786/* end confdefs.h. */
9787#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009788 static void routine(void *a) { a = 0; }
9789 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009790int
9791main ()
9792{
9793pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009794 pthread_create(&th, 0, start_routine, 0);
9795 pthread_join(th, 0);
9796 pthread_attr_init(&attr);
9797 pthread_cleanup_push(routine, 0);
9798 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009799 ;
9800 return 0;
9801}
9802_ACEOF
9803if ac_fn_c_try_link "$LINENO"; then :
9804 ax_pthread_ok=yes
9805fi
9806rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9808
9809 LIBS="$save_LIBS"
9810 CFLAGS="$save_CFLAGS"
9811
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9813$as_echo "$ax_pthread_ok" >&6; }
9814 if test "x$ax_pthread_ok" = xyes; then
9815 break;
9816 fi
9817
9818 PTHREAD_LIBS=""
9819 PTHREAD_CFLAGS=""
9820done
9821fi
9822
9823# Various other checks:
9824if test "x$ax_pthread_ok" = xyes; then
9825 save_LIBS="$LIBS"
9826 LIBS="$PTHREAD_LIBS $LIBS"
9827 save_CFLAGS="$CFLAGS"
9828 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9829
9830 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009832$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009833 attr_name=unknown
9834 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009836/* end confdefs.h. */
9837#include <pthread.h>
9838int
9839main ()
9840{
cristya316db12011-10-24 00:49:45 +00009841int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009842 ;
9843 return 0;
9844}
9845_ACEOF
9846if ac_fn_c_try_link "$LINENO"; then :
9847 attr_name=$attr; break
9848fi
9849rm -f core conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009851 done
cristy73bd4a52010-10-05 11:24:23 +00009852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9853$as_echo "$attr_name" >&6; }
9854 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9855
9856cat >>confdefs.h <<_ACEOF
9857#define PTHREAD_CREATE_JOINABLE $attr_name
9858_ACEOF
9859
9860 fi
9861
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9863$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9864 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009865 case ${host_os} in
9866 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9867 osf* | hpux*) flag="-D_REENTRANT";;
9868 solaris*)
9869 if test "$GCC" = "yes"; then
9870 flag="-D_REENTRANT"
9871 else
9872 flag="-mt -D_REENTRANT"
9873 fi
9874 ;;
cristy73bd4a52010-10-05 11:24:23 +00009875 esac
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9877$as_echo "${flag}" >&6; }
9878 if test "x$flag" != xno; then
9879 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9880 fi
9881
cristya316db12011-10-24 00:49:45 +00009882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9883$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9884if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9885 $as_echo_n "(cached) " >&6
9886else
9887
9888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889/* end confdefs.h. */
9890
9891 #include <pthread.h>
9892int
9893main ()
9894{
9895int i = PTHREAD_PRIO_INHERIT;
9896 ;
9897 return 0;
9898}
9899_ACEOF
9900if ac_fn_c_try_link "$LINENO"; then :
9901 ax_cv_PTHREAD_PRIO_INHERIT=yes
9902else
9903 ax_cv_PTHREAD_PRIO_INHERIT=no
9904fi
9905rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907
9908fi
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9910$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9911 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9912
9913$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9914
9915fi
9916
cristy73bd4a52010-10-05 11:24:23 +00009917 LIBS="$save_LIBS"
9918 CFLAGS="$save_CFLAGS"
9919
cristy23493c42013-04-11 16:04:59 +00009920 # More AIX lossage: compile with *_r variant
9921 if test "x$GCC" != xyes; then
9922 case $host_os in
9923 aix*)
9924 case "x/$CC" in #(
9925 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9926 #handle absolute path differently from PATH based program lookup
9927 case "x$CC" in #(
9928 x/*) :
9929 if as_fn_executable_p ${CC}_r; then :
9930 PTHREAD_CC="${CC}_r"
9931fi ;; #(
9932 *) :
9933 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009934do
9935 # Extract the first word of "$ac_prog", so it can be a program name with args.
9936set dummy $ac_prog; ac_word=$2
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009939if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009940 $as_echo_n "(cached) " >&6
9941else
9942 if test -n "$PTHREAD_CC"; then
9943 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9944else
9945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946for as_dir in $PATH
9947do
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
9950 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009952 ac_cv_prog_PTHREAD_CC="$ac_prog"
9953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 break 2
9955 fi
9956done
9957 done
9958IFS=$as_save_IFS
9959
9960fi
9961fi
9962PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9963if test -n "$PTHREAD_CC"; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9965$as_echo "$PTHREAD_CC" >&6; }
9966else
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968$as_echo "no" >&6; }
9969fi
9970
9971
9972 test -n "$PTHREAD_CC" && break
9973done
cristy23493c42013-04-11 16:04:59 +00009974test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9975 ;;
9976esac ;; #(
9977 *) :
9978 ;;
9979esac
9980 ;;
9981 esac
cristya316db12011-10-24 00:49:45 +00009982 fi
cristy73bd4a52010-10-05 11:24:23 +00009983fi
9984
cristy23493c42013-04-11 16:04:59 +00009985test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9986
cristy73bd4a52010-10-05 11:24:23 +00009987
9988
9989
9990
9991# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9992if test x"$ax_pthread_ok" = xyes; then
9993
9994$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9995
9996 :
9997else
9998 ax_pthread_ok=no
9999
10000fi
10001ac_ext=c
10002ac_cpp='$CPP $CPPFLAGS'
10003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10005ac_compiler_gnu=$ac_cv_c_compiler_gnu
10006
10007
10008
10009# Check whether --enable-opencl was given.
10010if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010011 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010012else
cristy48794642012-09-02 15:19:08 +000010013 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010014fi
10015
10016
cristy48794642012-09-02 15:19:08 +000010017if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010018 ac_ext=c
10019ac_cpp='$CPP $CPPFLAGS'
10020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10022ac_compiler_gnu=$ac_cv_c_compiler_gnu
10023
cristy75314cc2012-09-15 23:08:29 +000010024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10025$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10026if ${ax_cv_c_compiler_ms+:} false; then :
10027 $as_echo_n "(cached) " >&6
10028else
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030/* end confdefs.h. */
10031
10032int
10033main ()
10034{
10035#ifndef _MSC_VER
10036 choke me
10037#endif
10038
10039 ;
10040 return 0;
10041}
10042_ACEOF
10043if ac_fn_c_try_compile "$LINENO"; then :
10044 ax_compiler_ms=yes
10045else
10046 ax_compiler_ms=no
10047fi
10048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10049ax_cv_c_compiler_ms=$ax_compiler_ms
10050
10051fi
10052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10053$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010054 if test X$ax_compiler_ms = Xno; then :
10055 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10056fi
10057
10058 ax_save_CPPFLAGS=$CPPFLAGS
10059 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10060 for ac_header in CL/cl.h OpenCL/cl.h
10061do :
10062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10063ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010064if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010065 cat >>confdefs.h <<_ACEOF
10066#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10067_ACEOF
10068
10069fi
10070
10071done
10072
10073 CPPFLAGS=$ax_save_CPPFLAGS
10074
10075 for ac_header in windows.h
10076do :
10077 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010078if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010079 cat >>confdefs.h <<_ACEOF
10080#define HAVE_WINDOWS_H 1
10081_ACEOF
10082
10083fi
10084
10085done
10086
10087
10088
10089
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10091$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010092if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010093 $as_echo_n "(cached) " >&6
10094else
10095 ax_cv_check_cl_libcl=no
10096 case $host_cpu in
10097 x86_64) ax_check_cl_libdir=lib64 ;;
10098 *) ax_check_cl_libdir=lib ;;
10099 esac
10100 ax_save_CPPFLAGS=$CPPFLAGS
10101 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10102 ax_save_LIBS=$LIBS
10103 LIBS=""
10104 ax_check_libs="-lOpenCL -lCL -lclparser"
10105 for ax_lib in $ax_check_libs; do
10106 if test X$ax_compiler_ms = Xyes; then :
10107 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10108else
10109 ax_try_lib=$ax_lib
10110fi
10111 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113/* end confdefs.h. */
10114
10115 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10116 # include <windows.h>
10117 # endif
10118 # ifdef HAVE_CL_CL_H
10119 # include <CL/cl.h>
10120 # elif defined(HAVE_OPENCL_CL_H)
10121 # include <OpenCL/cl.h>
10122 # else
10123 # error no CL.h
10124 # endif
10125int
10126main ()
10127{
10128clCreateContextFromType(0,0,0,0,0)
10129 ;
10130 return 0;
10131}
10132_ACEOF
10133if ac_fn_c_try_link "$LINENO"; then :
10134 ax_cv_check_cl_libcl=$ax_try_lib; break
10135else
10136 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"
10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138/* end confdefs.h. */
10139
10140 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10141 # include <windows.h>
10142 # endif
10143 # ifdef HAVE_CL_CL_H
10144 # include <CL/cl.h>
10145 # elif defined(HAVE_OPENCL_CL_H)
10146 # include <OpenCL/cl.h>
10147 # else
10148 # error no CL.h
10149 # endif
10150int
10151main ()
10152{
10153clCreateContextFromType(0,0,0,0,0)
10154 ;
10155 return 0;
10156}
10157_ACEOF
10158if ac_fn_c_try_link "$LINENO"; then :
10159 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10160else
cristy78c5a0c2010-12-04 20:00:59 +000010161 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 +000010162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163/* end confdefs.h. */
10164
10165 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10166 # include <windows.h>
10167 # endif
10168 # ifdef HAVE_CL_CL_H
10169 # include <CL/cl.h>
10170 # elif defined(HAVE_OPENCL_CL_H)
10171 # include <OpenCL/cl.h>
10172 # else
10173 # error no CL.h
10174 # endif
10175int
10176main ()
10177{
10178clCreateContextFromType(0,0,0,0,0)
10179 ;
10180 return 0;
10181}
10182_ACEOF
10183if ac_fn_c_try_link "$LINENO"; then :
10184 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10185fi
10186rm -f core conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
10188fi
10189rm -f core conftest.err conftest.$ac_objext \
10190 conftest$ac_exeext conftest.$ac_ext
10191fi
10192rm -f core conftest.err conftest.$ac_objext \
10193 conftest$ac_exeext conftest.$ac_ext
10194 done
10195
cristyc3f8b8e2011-12-22 14:55:16 +000010196 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010197 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199/* end confdefs.h. */
10200
10201 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10202 # include <windows.h>
10203 # endif
10204 # ifdef HAVE_CL_CL_H
10205 # include <CL/cl.h>
10206 # elif defined(HAVE_OPENCL_CL_H)
10207 # include <OpenCL/cl.h>
10208 # else
10209 # error no CL.h
10210 # endif
10211int
10212main ()
10213{
10214clCreateContextFromType(0,0,0,0,0)
10215 ;
10216 return 0;
10217}
10218_ACEOF
10219if ac_fn_c_try_link "$LINENO"; then :
10220 ax_cv_check_cl_libcl=$LIBS
10221fi
10222rm -f core conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224fi
10225
10226 LIBS=$ax_save_LIBS
10227 CPPFLAGS=$ax_save_CPPFLAGS
10228fi
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10230$as_echo "$ax_cv_check_cl_libcl" >&6; }
10231
10232 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10233 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10234else
10235 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10236$as_echo "#define _OPENCL 1" >>confdefs.h
10237
10238fi
10239 ac_ext=c
10240ac_cpp='$CPP $CPPFLAGS'
10241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10243ac_compiler_gnu=$ac_cv_c_compiler_gnu
10244
10245fi
10246
10247
10248
10249
cristyc7083c12009-10-14 03:16:55 +000010250CFLAGS="$CL_CFLAGS $CFLAGS"
10251LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010252
cristy391f1ce2010-09-09 17:23:28 +000010253if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010254 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010255 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10256 fi
cristyfd9dcd42010-08-08 18:07:02 +000010257fi
cristy2e8b51d2009-10-17 18:26:15 +000010258
cristy3ed852e2009-09-05 21:47:34 +000010259########
10260#
10261# Check for large file support
10262#
10263########
10264# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010265if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010266 enableval=$enable_largefile;
10267fi
10268
10269if test "$enable_largefile" != no; then
10270
cristy8b350f62009-11-15 23:12:43 +000010271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010272$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010273if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010274 $as_echo_n "(cached) " >&6
10275else
10276 ac_cv_sys_largefile_CC=no
10277 if test "$GCC" != yes; then
10278 ac_save_CC=$CC
10279 while :; do
10280 # IRIX 6.2 and later do not support large files by default,
10281 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010283/* end confdefs.h. */
10284#include <sys/types.h>
10285 /* Check that off_t can represent 2**63 - 1 correctly.
10286 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10287 since some C++ compilers masquerading as C compilers
10288 incorrectly reject 9223372036854775807. */
10289#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10291 && LARGE_OFF_T % 2147483647 == 1)
10292 ? 1 : -1];
10293int
10294main ()
10295{
10296
10297 ;
10298 return 0;
10299}
10300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010301 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010302 break
cristy3ed852e2009-09-05 21:47:34 +000010303fi
cristy3ed852e2009-09-05 21:47:34 +000010304rm -f core conftest.err conftest.$ac_objext
10305 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010306 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010307 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010308fi
cristy3ed852e2009-09-05 21:47:34 +000010309rm -f core conftest.err conftest.$ac_objext
10310 break
10311 done
10312 CC=$ac_save_CC
10313 rm -f conftest.$ac_ext
10314 fi
10315fi
cristy8b350f62009-11-15 23:12:43 +000010316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010317$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10318 if test "$ac_cv_sys_largefile_CC" != no; then
10319 CC=$CC$ac_cv_sys_largefile_CC
10320 fi
10321
cristy8b350f62009-11-15 23:12:43 +000010322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010323$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010324if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010325 $as_echo_n "(cached) " >&6
10326else
10327 while :; do
cristy8b350f62009-11-15 23:12:43 +000010328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010329/* end confdefs.h. */
10330#include <sys/types.h>
10331 /* Check that off_t can represent 2**63 - 1 correctly.
10332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10333 since some C++ compilers masquerading as C compilers
10334 incorrectly reject 9223372036854775807. */
10335#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10337 && LARGE_OFF_T % 2147483647 == 1)
10338 ? 1 : -1];
10339int
10340main ()
10341{
10342
10343 ;
10344 return 0;
10345}
10346_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010347if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010348 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010349fi
cristy3ed852e2009-09-05 21:47:34 +000010350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010352/* end confdefs.h. */
10353#define _FILE_OFFSET_BITS 64
10354#include <sys/types.h>
10355 /* Check that off_t can represent 2**63 - 1 correctly.
10356 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10357 since some C++ compilers masquerading as C compilers
10358 incorrectly reject 9223372036854775807. */
10359#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10360 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10361 && LARGE_OFF_T % 2147483647 == 1)
10362 ? 1 : -1];
10363int
10364main ()
10365{
10366
10367 ;
10368 return 0;
10369}
10370_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010371if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010372 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010373fi
cristy3ed852e2009-09-05 21:47:34 +000010374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375 ac_cv_sys_file_offset_bits=unknown
10376 break
10377done
10378fi
cristy8b350f62009-11-15 23:12:43 +000010379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010380$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10381case $ac_cv_sys_file_offset_bits in #(
10382 no | unknown) ;;
10383 *)
10384cat >>confdefs.h <<_ACEOF
10385#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10386_ACEOF
10387;;
10388esac
10389rm -rf conftest*
10390 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010392$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010393if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010394 $as_echo_n "(cached) " >&6
10395else
10396 while :; do
cristy8b350f62009-11-15 23:12:43 +000010397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010398/* end confdefs.h. */
10399#include <sys/types.h>
10400 /* Check that off_t can represent 2**63 - 1 correctly.
10401 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10402 since some C++ compilers masquerading as C compilers
10403 incorrectly reject 9223372036854775807. */
10404#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10405 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10406 && LARGE_OFF_T % 2147483647 == 1)
10407 ? 1 : -1];
10408int
10409main ()
10410{
10411
10412 ;
10413 return 0;
10414}
10415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010416if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010417 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010418fi
cristy3ed852e2009-09-05 21:47:34 +000010419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010421/* end confdefs.h. */
10422#define _LARGE_FILES 1
10423#include <sys/types.h>
10424 /* Check that off_t can represent 2**63 - 1 correctly.
10425 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10426 since some C++ compilers masquerading as C compilers
10427 incorrectly reject 9223372036854775807. */
10428#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10429 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10430 && LARGE_OFF_T % 2147483647 == 1)
10431 ? 1 : -1];
10432int
10433main ()
10434{
10435
10436 ;
10437 return 0;
10438}
10439_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010440if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010441 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010442fi
cristy3ed852e2009-09-05 21:47:34 +000010443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10444 ac_cv_sys_large_files=unknown
10445 break
10446done
10447fi
cristy8b350f62009-11-15 23:12:43 +000010448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010449$as_echo "$ac_cv_sys_large_files" >&6; }
10450case $ac_cv_sys_large_files in #(
10451 no | unknown) ;;
10452 *)
10453cat >>confdefs.h <<_ACEOF
10454#define _LARGE_FILES $ac_cv_sys_large_files
10455_ACEOF
10456;;
10457esac
10458rm -rf conftest*
10459 fi
cristy14fefe52012-05-21 00:59:18 +000010460
10461
cristy3ed852e2009-09-05 21:47:34 +000010462fi
10463
cristy8b350f62009-11-15 23:12:43 +000010464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010465$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010466if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010467 $as_echo_n "(cached) " >&6
10468else
10469 while :; do
cristy8b350f62009-11-15 23:12:43 +000010470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010471/* end confdefs.h. */
10472#include <sys/types.h> /* for off_t */
10473 #include <stdio.h>
10474int
10475main ()
10476{
10477int (*fp) (FILE *, off_t, int) = fseeko;
10478 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10479 ;
10480 return 0;
10481}
10482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010483if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010484 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010485fi
cristy8b350f62009-11-15 23:12:43 +000010486rm -f core conftest.err conftest.$ac_objext \
10487 conftest$ac_exeext conftest.$ac_ext
10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010489/* end confdefs.h. */
10490#define _LARGEFILE_SOURCE 1
10491#include <sys/types.h> /* for off_t */
10492 #include <stdio.h>
10493int
10494main ()
10495{
10496int (*fp) (FILE *, off_t, int) = fseeko;
10497 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10498 ;
10499 return 0;
10500}
10501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010502if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010503 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010504fi
cristy8b350f62009-11-15 23:12:43 +000010505rm -f core conftest.err conftest.$ac_objext \
10506 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010507 ac_cv_sys_largefile_source=unknown
10508 break
10509done
10510fi
cristy8b350f62009-11-15 23:12:43 +000010511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010512$as_echo "$ac_cv_sys_largefile_source" >&6; }
10513case $ac_cv_sys_largefile_source in #(
10514 no | unknown) ;;
10515 *)
10516cat >>confdefs.h <<_ACEOF
10517#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10518_ACEOF
10519;;
10520esac
10521rm -rf conftest*
10522
10523# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10524# in glibc 2.1.3, but that breaks too many other things.
10525# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10526if test $ac_cv_sys_largefile_source != unknown; then
10527
cristy8b350f62009-11-15 23:12:43 +000010528$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010529
10530fi
10531
10532LFS_CPPFLAGS=''
10533if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010534 case $ac_cv_sys_file_offset_bits in
10535 no)
10536 # nothing to do here as the host supports LFS fine
10537 ;;
10538 unknown)
cristy8b350f62009-11-15 23:12:43 +000010539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010540$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010541 if test "$cross_compiling" = yes; then :
10542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010544as_fn_error $? "cannot run test program while cross compiling
10545See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010546else
cristy8b350f62009-11-15 23:12:43 +000010547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010549#include <unistd.h>
10550 main () {
10551 exit(!(sizeof(off_t) == 8));
10552 }
cristyda16f162011-02-19 23:52:17 +000010553int
10554main ()
10555{
10556
10557 ;
10558 return 0;
10559}
cristy3ed852e2009-09-05 21:47:34 +000010560_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010561if ac_fn_c_try_run "$LINENO"; then :
10562 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010563
cristyad38abe2012-12-23 23:03:21 +000010564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10565$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010566else
cristyad38abe2012-12-23 23:03:21 +000010567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010569fi
cristy8b350f62009-11-15 23:12:43 +000010570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10571 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010572fi
10573
cristyc1e0cc12011-09-21 16:41:16 +000010574 ;;
10575 *)
10576 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10577 ;;
10578 esac
cristy3ed852e2009-09-05 21:47:34 +000010579 if test "$ac_cv_sys_large_files" != 'no'; then
10580 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10581 fi
10582 if test "$ac_cv_sys_largefile_source" != 'no'; then
10583 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10584 fi
10585fi
10586
10587
cristy3ed852e2009-09-05 21:47:34 +000010588# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010589enable_dlopen=yes
10590
10591
10592
10593case `pwd` in
10594 *\ * | *\ *)
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10596$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10597esac
10598
10599
10600
cristy99bd5232011-12-07 14:38:20 +000010601macro_version='2.4.2'
10602macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616ltmain="$ac_aux_dir/ltmain.sh"
10617
cristy0c60a692010-11-04 01:09:47 +000010618# Backslashify metacharacters that are still active within
10619# double-quoted strings.
10620sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10621
10622# Same as above, but do not quote variable references.
10623double_quote_subst='s/\(["`\\]\)/\\\1/g'
10624
10625# Sed substitution to delay expansion of an escaped shell variable in a
10626# double_quote_subst'ed string.
10627delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10628
10629# Sed substitution to delay expansion of an escaped single quote.
10630delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10631
10632# Sed substitution to avoid accidental globbing in evaled expressions
10633no_glob_subst='s/\*/\\\*/g'
10634
cristy73bd4a52010-10-05 11:24:23 +000010635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10636$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010637if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010638 $as_echo_n "(cached) " >&6
10639else
10640 if test -n "$NM"; then
10641 # Let the user override the test.
10642 lt_cv_path_NM="$NM"
10643else
10644 lt_nm_to_check="${ac_tool_prefix}nm"
10645 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10646 lt_nm_to_check="$lt_nm_to_check nm"
10647 fi
10648 for lt_tmp_nm in $lt_nm_to_check; do
10649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10650 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10651 IFS="$lt_save_ifs"
10652 test -z "$ac_dir" && ac_dir=.
10653 tmp_nm="$ac_dir/$lt_tmp_nm"
10654 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10655 # Check to see if the nm accepts a BSD-compat flag.
10656 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10657 # nm: unknown option "B" ignored
10658 # Tru64's nm complains that /dev/null is an invalid object file
10659 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10660 */dev/null* | *'Invalid file or object type'*)
10661 lt_cv_path_NM="$tmp_nm -B"
10662 break
10663 ;;
10664 *)
10665 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10666 */dev/null*)
10667 lt_cv_path_NM="$tmp_nm -p"
10668 break
10669 ;;
10670 *)
10671 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10672 continue # so that we can try to find one that supports BSD flags
10673 ;;
10674 esac
10675 ;;
10676 esac
10677 fi
10678 done
10679 IFS="$lt_save_ifs"
10680 done
10681 : ${lt_cv_path_NM=no}
10682fi
10683fi
10684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10685$as_echo "$lt_cv_path_NM" >&6; }
10686if test "$lt_cv_path_NM" != "no"; then
10687 NM="$lt_cv_path_NM"
10688else
10689 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010690 if test -n "$DUMPBIN"; then :
10691 # Let the user override the test.
10692 else
10693 if test -n "$ac_tool_prefix"; then
10694 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010695 do
10696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10697set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010700if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010701 $as_echo_n "(cached) " >&6
10702else
10703 if test -n "$DUMPBIN"; then
10704 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10705else
10706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10707for as_dir in $PATH
10708do
10709 IFS=$as_save_IFS
10710 test -z "$as_dir" && as_dir=.
10711 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010713 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10715 break 2
10716 fi
10717done
10718 done
10719IFS=$as_save_IFS
10720
10721fi
10722fi
10723DUMPBIN=$ac_cv_prog_DUMPBIN
10724if test -n "$DUMPBIN"; then
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10726$as_echo "$DUMPBIN" >&6; }
10727else
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729$as_echo "no" >&6; }
10730fi
10731
10732
10733 test -n "$DUMPBIN" && break
10734 done
10735fi
10736if test -z "$DUMPBIN"; then
10737 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010738 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010739do
10740 # Extract the first word of "$ac_prog", so it can be a program name with args.
10741set dummy $ac_prog; ac_word=$2
10742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10743$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010744if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010745 $as_echo_n "(cached) " >&6
10746else
10747 if test -n "$ac_ct_DUMPBIN"; then
10748 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10749else
10750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10751for as_dir in $PATH
10752do
10753 IFS=$as_save_IFS
10754 test -z "$as_dir" && as_dir=.
10755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010757 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10759 break 2
10760 fi
10761done
10762 done
10763IFS=$as_save_IFS
10764
10765fi
10766fi
10767ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10768if test -n "$ac_ct_DUMPBIN"; then
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10770$as_echo "$ac_ct_DUMPBIN" >&6; }
10771else
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773$as_echo "no" >&6; }
10774fi
10775
10776
10777 test -n "$ac_ct_DUMPBIN" && break
10778done
10779
10780 if test "x$ac_ct_DUMPBIN" = x; then
10781 DUMPBIN=":"
10782 else
10783 case $cross_compiling:$ac_tool_warned in
10784yes:)
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10787ac_tool_warned=yes ;;
10788esac
10789 DUMPBIN=$ac_ct_DUMPBIN
10790 fi
10791fi
10792
cristy0c60a692010-11-04 01:09:47 +000010793 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10794 *COFF*)
10795 DUMPBIN="$DUMPBIN -symbols"
10796 ;;
10797 *)
10798 DUMPBIN=:
10799 ;;
10800 esac
10801 fi
cristy73bd4a52010-10-05 11:24:23 +000010802
10803 if test "$DUMPBIN" != ":"; then
10804 NM="$DUMPBIN"
10805 fi
10806fi
10807test -z "$NM" && NM=nm
10808
10809
10810
10811
10812
10813
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10815$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010816if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010817 $as_echo_n "(cached) " >&6
10818else
10819 lt_cv_nm_interface="BSD nm"
10820 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010821 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010822 (eval "$ac_compile" 2>conftest.err)
10823 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010824 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010825 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10826 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010827 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010828 cat conftest.out >&5
10829 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10830 lt_cv_nm_interface="MS dumpbin"
10831 fi
10832 rm -f conftest*
10833fi
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10835$as_echo "$lt_cv_nm_interface" >&6; }
10836
10837# find the maximum length of command line arguments
10838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10839$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010840if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010841 $as_echo_n "(cached) " >&6
10842else
10843 i=0
10844 teststring="ABCD"
10845
10846 case $build_os in
10847 msdosdjgpp*)
10848 # On DJGPP, this test can blow up pretty badly due to problems in libc
10849 # (any single argument exceeding 2000 bytes causes a buffer overrun
10850 # during glob expansion). Even if it were fixed, the result of this
10851 # check would be larger than it should be.
10852 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10853 ;;
10854
10855 gnu*)
10856 # Under GNU Hurd, this test is not required because there is
10857 # no limit to the length of command line arguments.
10858 # Libtool will interpret -1 as no limit whatsoever
10859 lt_cv_sys_max_cmd_len=-1;
10860 ;;
10861
10862 cygwin* | mingw* | cegcc*)
10863 # On Win9x/ME, this test blows up -- it succeeds, but takes
10864 # about 5 minutes as the teststring grows exponentially.
10865 # Worse, since 9x/ME are not pre-emptively multitasking,
10866 # you end up with a "frozen" computer, even though with patience
10867 # the test eventually succeeds (with a max line length of 256k).
10868 # Instead, let's just punt: use the minimum linelength reported by
10869 # all of the supported platforms: 8192 (on NT/2K/XP).
10870 lt_cv_sys_max_cmd_len=8192;
10871 ;;
10872
cristy0c60a692010-11-04 01:09:47 +000010873 mint*)
10874 # On MiNT this can take a long time and run out of memory.
10875 lt_cv_sys_max_cmd_len=8192;
10876 ;;
10877
cristy73bd4a52010-10-05 11:24:23 +000010878 amigaos*)
10879 # On AmigaOS with pdksh, this test takes hours, literally.
10880 # So we just punt and use a minimum line length of 8192.
10881 lt_cv_sys_max_cmd_len=8192;
10882 ;;
10883
10884 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10885 # This has been around since 386BSD, at least. Likely further.
10886 if test -x /sbin/sysctl; then
10887 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10888 elif test -x /usr/sbin/sysctl; then
10889 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10890 else
10891 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10892 fi
10893 # And add a safety zone
10894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10896 ;;
10897
10898 interix*)
10899 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10900 lt_cv_sys_max_cmd_len=196608
10901 ;;
10902
cristy99bd5232011-12-07 14:38:20 +000010903 os2*)
10904 # The test takes a long time on OS/2.
10905 lt_cv_sys_max_cmd_len=8192
10906 ;;
10907
cristy73bd4a52010-10-05 11:24:23 +000010908 osf*)
10909 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10910 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10911 # nice to cause kernel panics so lets avoid the loop below.
10912 # First set a reasonable default.
10913 lt_cv_sys_max_cmd_len=16384
10914 #
10915 if test -x /sbin/sysconfig; then
10916 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10917 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10918 esac
10919 fi
10920 ;;
10921 sco3.2v5*)
10922 lt_cv_sys_max_cmd_len=102400
10923 ;;
10924 sysv5* | sco5v6* | sysv4.2uw2*)
10925 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10926 if test -n "$kargmax"; then
10927 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10928 else
10929 lt_cv_sys_max_cmd_len=32768
10930 fi
10931 ;;
10932 *)
10933 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10934 if test -n "$lt_cv_sys_max_cmd_len"; then
10935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10937 else
10938 # Make teststring a little bigger before we do anything with it.
10939 # a 1K string should be a reasonable start.
10940 for i in 1 2 3 4 5 6 7 8 ; do
10941 teststring=$teststring$teststring
10942 done
10943 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10944 # If test is not a shell built-in, we'll probably end up computing a
10945 # maximum length that is only half of the actual maximum length, but
10946 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010947 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010948 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010949 test $i != 17 # 1/2 MB should be enough
10950 do
10951 i=`expr $i + 1`
10952 teststring=$teststring$teststring
10953 done
10954 # Only check the string length outside the loop.
10955 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10956 teststring=
10957 # Add a significant safety factor because C++ compilers can tack on
10958 # massive amounts of additional arguments before passing them to the
10959 # linker. It appears as though 1/2 is a usable value.
10960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10961 fi
10962 ;;
10963 esac
10964
10965fi
10966
10967if test -n $lt_cv_sys_max_cmd_len ; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10969$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10970else
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10972$as_echo "none" >&6; }
10973fi
10974max_cmd_len=$lt_cv_sys_max_cmd_len
10975
10976
10977
10978
10979
10980
10981: ${CP="cp -f"}
10982: ${MV="mv -f"}
10983: ${RM="rm -f"}
10984
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10986$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10987# Try some XSI features
10988xsi_shell=no
10989( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010990 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10991 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010992 && eval 'test $(( 1 + 1 )) -eq 2 \
10993 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10994 && xsi_shell=yes
10995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10996$as_echo "$xsi_shell" >&6; }
10997
10998
10999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11000$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11001lt_shell_append=no
11002( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11003 >/dev/null 2>&1 \
11004 && lt_shell_append=yes
11005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11006$as_echo "$lt_shell_append" >&6; }
11007
11008
11009if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11010 lt_unset=unset
11011else
11012 lt_unset=false
11013fi
11014
11015
11016
11017
11018
11019# test EBCDIC or ASCII
11020case `echo X|tr X '\101'` in
11021 A) # ASCII based system
11022 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11023 lt_SP2NL='tr \040 \012'
11024 lt_NL2SP='tr \015\012 \040\040'
11025 ;;
11026 *) # EBCDIC based system
11027 lt_SP2NL='tr \100 \n'
11028 lt_NL2SP='tr \r\n \100\100'
11029 ;;
11030esac
11031
11032
11033
11034
11035
11036
11037
11038
11039
cristyda16f162011-02-19 23:52:17 +000011040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11041$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11042if ${lt_cv_to_host_file_cmd+:} false; then :
11043 $as_echo_n "(cached) " >&6
11044else
11045 case $host in
11046 *-*-mingw* )
11047 case $build in
11048 *-*-mingw* ) # actually msys
11049 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11050 ;;
11051 *-*-cygwin* )
11052 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11053 ;;
11054 * ) # otherwise, assume *nix
11055 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11056 ;;
11057 esac
11058 ;;
11059 *-*-cygwin* )
11060 case $build in
11061 *-*-mingw* ) # actually msys
11062 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11063 ;;
11064 *-*-cygwin* )
11065 lt_cv_to_host_file_cmd=func_convert_file_noop
11066 ;;
11067 * ) # otherwise, assume *nix
11068 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11069 ;;
11070 esac
11071 ;;
11072 * ) # unhandled hosts (and "normal" native builds)
11073 lt_cv_to_host_file_cmd=func_convert_file_noop
11074 ;;
11075esac
11076
11077fi
11078
11079to_host_file_cmd=$lt_cv_to_host_file_cmd
11080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11081$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11082
11083
11084
11085
11086
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11088$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11089if ${lt_cv_to_tool_file_cmd+:} false; then :
11090 $as_echo_n "(cached) " >&6
11091else
11092 #assume ordinary cross tools, or native build.
11093lt_cv_to_tool_file_cmd=func_convert_file_noop
11094case $host in
11095 *-*-mingw* )
11096 case $build in
11097 *-*-mingw* ) # actually msys
11098 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11099 ;;
11100 esac
11101 ;;
11102esac
11103
11104fi
11105
11106to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11108$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11109
11110
11111
11112
11113
cristy73bd4a52010-10-05 11:24:23 +000011114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11115$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011116if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011117 $as_echo_n "(cached) " >&6
11118else
11119 lt_cv_ld_reload_flag='-r'
11120fi
11121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11122$as_echo "$lt_cv_ld_reload_flag" >&6; }
11123reload_flag=$lt_cv_ld_reload_flag
11124case $reload_flag in
11125"" | " "*) ;;
11126*) reload_flag=" $reload_flag" ;;
11127esac
11128reload_cmds='$LD$reload_flag -o $output$reload_objs'
11129case $host_os in
cristyda16f162011-02-19 23:52:17 +000011130 cygwin* | mingw* | pw32* | cegcc*)
11131 if test "$GCC" != yes; then
11132 reload_cmds=false
11133 fi
11134 ;;
cristy73bd4a52010-10-05 11:24:23 +000011135 darwin*)
11136 if test "$GCC" = yes; then
11137 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11138 else
11139 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11140 fi
11141 ;;
11142esac
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152if test -n "$ac_tool_prefix"; then
11153 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11154set dummy ${ac_tool_prefix}objdump; ac_word=$2
11155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011157if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011158 $as_echo_n "(cached) " >&6
11159else
11160 if test -n "$OBJDUMP"; then
11161 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11162else
11163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164for as_dir in $PATH
11165do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011170 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11173 fi
11174done
11175 done
11176IFS=$as_save_IFS
11177
11178fi
11179fi
11180OBJDUMP=$ac_cv_prog_OBJDUMP
11181if test -n "$OBJDUMP"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11183$as_echo "$OBJDUMP" >&6; }
11184else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186$as_echo "no" >&6; }
11187fi
11188
11189
11190fi
11191if test -z "$ac_cv_prog_OBJDUMP"; then
11192 ac_ct_OBJDUMP=$OBJDUMP
11193 # Extract the first word of "objdump", so it can be a program name with args.
11194set dummy objdump; ac_word=$2
11195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011197if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011198 $as_echo_n "(cached) " >&6
11199else
11200 if test -n "$ac_ct_OBJDUMP"; then
11201 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11202else
11203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204for as_dir in $PATH
11205do
11206 IFS=$as_save_IFS
11207 test -z "$as_dir" && as_dir=.
11208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011210 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11212 break 2
11213 fi
11214done
11215 done
11216IFS=$as_save_IFS
11217
11218fi
11219fi
11220ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11221if test -n "$ac_ct_OBJDUMP"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11223$as_echo "$ac_ct_OBJDUMP" >&6; }
11224else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226$as_echo "no" >&6; }
11227fi
11228
11229 if test "x$ac_ct_OBJDUMP" = x; then
11230 OBJDUMP="false"
11231 else
11232 case $cross_compiling:$ac_tool_warned in
11233yes:)
11234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11236ac_tool_warned=yes ;;
11237esac
11238 OBJDUMP=$ac_ct_OBJDUMP
11239 fi
11240else
11241 OBJDUMP="$ac_cv_prog_OBJDUMP"
11242fi
11243
11244test -z "$OBJDUMP" && OBJDUMP=objdump
11245
11246
11247
11248
11249
11250
11251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11252$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011253if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011254 $as_echo_n "(cached) " >&6
11255else
11256 lt_cv_file_magic_cmd='$MAGIC_CMD'
11257lt_cv_file_magic_test_file=
11258lt_cv_deplibs_check_method='unknown'
11259# Need to set the preceding variable on all platforms that support
11260# interlibrary dependencies.
11261# 'none' -- dependencies not supported.
11262# `unknown' -- same as none, but documents that we really don't know.
11263# 'pass_all' -- all dependencies passed with no checks.
11264# 'test_compile' -- check by making test program.
11265# 'file_magic [[regex]]' -- check by looking for files in library path
11266# which responds to the $file_magic_cmd with a given extended regex.
11267# If you have `file' or equivalent on your system and you're not sure
11268# whether `pass_all' will *always* work, you probably want this one.
11269
11270case $host_os in
11271aix[4-9]*)
11272 lt_cv_deplibs_check_method=pass_all
11273 ;;
11274
11275beos*)
11276 lt_cv_deplibs_check_method=pass_all
11277 ;;
11278
11279bsdi[45]*)
11280 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11281 lt_cv_file_magic_cmd='/usr/bin/file -L'
11282 lt_cv_file_magic_test_file=/shlib/libc.so
11283 ;;
11284
11285cygwin*)
11286 # func_win32_libid is a shell function defined in ltmain.sh
11287 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11288 lt_cv_file_magic_cmd='func_win32_libid'
11289 ;;
11290
11291mingw* | pw32*)
11292 # Base MSYS/MinGW do not provide the 'file' command needed by
11293 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11294 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011295 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11296 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11298 lt_cv_file_magic_cmd='func_win32_libid'
11299 else
cristy0c60a692010-11-04 01:09:47 +000011300 # Keep this pattern in sync with the one in func_win32_libid.
11301 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 +000011302 lt_cv_file_magic_cmd='$OBJDUMP -f'
11303 fi
11304 ;;
11305
cristy0c60a692010-11-04 01:09:47 +000011306cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011307 # use the weaker test based on 'objdump'. See mingw*.
11308 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11309 lt_cv_file_magic_cmd='$OBJDUMP -f'
11310 ;;
11311
11312darwin* | rhapsody*)
11313 lt_cv_deplibs_check_method=pass_all
11314 ;;
11315
11316freebsd* | dragonfly*)
11317 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11318 case $host_cpu in
11319 i*86 )
11320 # Not sure whether the presence of OpenBSD here was a mistake.
11321 # Let's accept both of them until this is cleared up.
11322 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11323 lt_cv_file_magic_cmd=/usr/bin/file
11324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11325 ;;
11326 esac
11327 else
11328 lt_cv_deplibs_check_method=pass_all
11329 fi
11330 ;;
11331
11332gnu*)
11333 lt_cv_deplibs_check_method=pass_all
11334 ;;
11335
cristy0c60a692010-11-04 01:09:47 +000011336haiku*)
11337 lt_cv_deplibs_check_method=pass_all
11338 ;;
11339
cristy73bd4a52010-10-05 11:24:23 +000011340hpux10.20* | hpux11*)
11341 lt_cv_file_magic_cmd=/usr/bin/file
11342 case $host_cpu in
11343 ia64*)
11344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11345 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11346 ;;
11347 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011348 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 +000011349 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11350 ;;
11351 *)
cristy0c60a692010-11-04 01:09:47 +000011352 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 +000011353 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11354 ;;
11355 esac
11356 ;;
11357
11358interix[3-9]*)
11359 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11361 ;;
11362
11363irix5* | irix6* | nonstopux*)
11364 case $LD in
11365 *-32|*"-32 ") libmagic=32-bit;;
11366 *-n32|*"-n32 ") libmagic=N32;;
11367 *-64|*"-64 ") libmagic=64-bit;;
11368 *) libmagic=never-match;;
11369 esac
11370 lt_cv_deplibs_check_method=pass_all
11371 ;;
11372
cristy99bd5232011-12-07 14:38:20 +000011373# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011374linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011375 lt_cv_deplibs_check_method=pass_all
11376 ;;
11377
11378netbsd*)
11379 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11381 else
11382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11383 fi
11384 ;;
11385
11386newos6*)
11387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11388 lt_cv_file_magic_cmd=/usr/bin/file
11389 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11390 ;;
11391
11392*nto* | *qnx*)
11393 lt_cv_deplibs_check_method=pass_all
11394 ;;
11395
11396openbsd*)
11397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11399 else
11400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11401 fi
11402 ;;
11403
11404osf3* | osf4* | osf5*)
11405 lt_cv_deplibs_check_method=pass_all
11406 ;;
11407
11408rdos*)
11409 lt_cv_deplibs_check_method=pass_all
11410 ;;
11411
11412solaris*)
11413 lt_cv_deplibs_check_method=pass_all
11414 ;;
11415
11416sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11417 lt_cv_deplibs_check_method=pass_all
11418 ;;
11419
11420sysv4 | sysv4.3*)
11421 case $host_vendor in
11422 motorola)
11423 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]'
11424 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11425 ;;
11426 ncr)
11427 lt_cv_deplibs_check_method=pass_all
11428 ;;
11429 sequent)
11430 lt_cv_file_magic_cmd='/bin/file'
11431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11432 ;;
11433 sni)
11434 lt_cv_file_magic_cmd='/bin/file'
11435 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11436 lt_cv_file_magic_test_file=/lib/libc.so
11437 ;;
11438 siemens)
11439 lt_cv_deplibs_check_method=pass_all
11440 ;;
11441 pc)
11442 lt_cv_deplibs_check_method=pass_all
11443 ;;
11444 esac
11445 ;;
11446
11447tpf*)
11448 lt_cv_deplibs_check_method=pass_all
11449 ;;
11450esac
11451
11452fi
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11454$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011455
11456file_magic_glob=
11457want_nocaseglob=no
11458if test "$build" = "$host"; then
11459 case $host_os in
11460 mingw* | pw32*)
11461 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11462 want_nocaseglob=yes
11463 else
11464 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11465 fi
11466 ;;
11467 esac
11468fi
11469
cristy73bd4a52010-10-05 11:24:23 +000011470file_magic_cmd=$lt_cv_file_magic_cmd
11471deplibs_check_method=$lt_cv_deplibs_check_method
11472test -z "$deplibs_check_method" && deplibs_check_method=unknown
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
cristyda16f162011-02-19 23:52:17 +000011485
11486
11487
11488
11489
11490
11491
11492
11493
11494
cristy73bd4a52010-10-05 11:24:23 +000011495if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011496 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11497set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011500if ${ac_cv_prog_DLLTOOL+:} false; then :
11501 $as_echo_n "(cached) " >&6
11502else
11503 if test -n "$DLLTOOL"; then
11504 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11505else
11506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507for as_dir in $PATH
11508do
11509 IFS=$as_save_IFS
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011513 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11515 break 2
11516 fi
11517done
11518 done
11519IFS=$as_save_IFS
11520
11521fi
11522fi
11523DLLTOOL=$ac_cv_prog_DLLTOOL
11524if test -n "$DLLTOOL"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11526$as_echo "$DLLTOOL" >&6; }
11527else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529$as_echo "no" >&6; }
11530fi
11531
11532
11533fi
11534if test -z "$ac_cv_prog_DLLTOOL"; then
11535 ac_ct_DLLTOOL=$DLLTOOL
11536 # Extract the first word of "dlltool", so it can be a program name with args.
11537set dummy dlltool; ac_word=$2
11538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11539$as_echo_n "checking for $ac_word... " >&6; }
11540if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11541 $as_echo_n "(cached) " >&6
11542else
11543 if test -n "$ac_ct_DLLTOOL"; then
11544 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11545else
11546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547for as_dir in $PATH
11548do
11549 IFS=$as_save_IFS
11550 test -z "$as_dir" && as_dir=.
11551 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011553 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11555 break 2
11556 fi
11557done
11558 done
11559IFS=$as_save_IFS
11560
11561fi
11562fi
11563ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11564if test -n "$ac_ct_DLLTOOL"; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11566$as_echo "$ac_ct_DLLTOOL" >&6; }
11567else
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569$as_echo "no" >&6; }
11570fi
11571
11572 if test "x$ac_ct_DLLTOOL" = x; then
11573 DLLTOOL="false"
11574 else
11575 case $cross_compiling:$ac_tool_warned in
11576yes:)
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11579ac_tool_warned=yes ;;
11580esac
11581 DLLTOOL=$ac_ct_DLLTOOL
11582 fi
11583else
11584 DLLTOOL="$ac_cv_prog_DLLTOOL"
11585fi
11586
11587test -z "$DLLTOOL" && DLLTOOL=dlltool
11588
11589
11590
11591
11592
11593
11594
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11596$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11597if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11598 $as_echo_n "(cached) " >&6
11599else
11600 lt_cv_sharedlib_from_linklib_cmd='unknown'
11601
11602case $host_os in
11603cygwin* | mingw* | pw32* | cegcc*)
11604 # two different shell functions defined in ltmain.sh
11605 # decide which to use based on capabilities of $DLLTOOL
11606 case `$DLLTOOL --help 2>&1` in
11607 *--identify-strict*)
11608 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11609 ;;
11610 *)
11611 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11612 ;;
11613 esac
11614 ;;
11615*)
11616 # fallback: assume linklib IS sharedlib
11617 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11618 ;;
11619esac
11620
11621fi
11622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11623$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11624sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11625test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11626
11627
11628
11629
11630
11631
11632
11633if test -n "$ac_tool_prefix"; then
11634 for ac_prog in ar
11635 do
11636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11637set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639$as_echo_n "checking for $ac_word... " >&6; }
11640if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011641 $as_echo_n "(cached) " >&6
11642else
11643 if test -n "$AR"; then
11644 ac_cv_prog_AR="$AR" # Let the user override the test.
11645else
11646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647for as_dir in $PATH
11648do
11649 IFS=$as_save_IFS
11650 test -z "$as_dir" && as_dir=.
11651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011653 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11655 break 2
11656 fi
11657done
11658 done
11659IFS=$as_save_IFS
11660
11661fi
11662fi
11663AR=$ac_cv_prog_AR
11664if test -n "$AR"; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11666$as_echo "$AR" >&6; }
11667else
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669$as_echo "no" >&6; }
11670fi
11671
11672
cristyda16f162011-02-19 23:52:17 +000011673 test -n "$AR" && break
11674 done
cristy73bd4a52010-10-05 11:24:23 +000011675fi
cristyda16f162011-02-19 23:52:17 +000011676if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011677 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011678 for ac_prog in ar
11679do
11680 # Extract the first word of "$ac_prog", so it can be a program name with args.
11681set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011684if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011685 $as_echo_n "(cached) " >&6
11686else
11687 if test -n "$ac_ct_AR"; then
11688 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11689else
11690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691for as_dir in $PATH
11692do
11693 IFS=$as_save_IFS
11694 test -z "$as_dir" && as_dir=.
11695 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011697 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11699 break 2
11700 fi
11701done
11702 done
11703IFS=$as_save_IFS
11704
11705fi
11706fi
11707ac_ct_AR=$ac_cv_prog_ac_ct_AR
11708if test -n "$ac_ct_AR"; then
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11710$as_echo "$ac_ct_AR" >&6; }
11711else
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713$as_echo "no" >&6; }
11714fi
11715
cristyda16f162011-02-19 23:52:17 +000011716
11717 test -n "$ac_ct_AR" && break
11718done
11719
cristy73bd4a52010-10-05 11:24:23 +000011720 if test "x$ac_ct_AR" = x; then
11721 AR="false"
11722 else
11723 case $cross_compiling:$ac_tool_warned in
11724yes:)
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11727ac_tool_warned=yes ;;
11728esac
11729 AR=$ac_ct_AR
11730 fi
cristy73bd4a52010-10-05 11:24:23 +000011731fi
11732
cristyda16f162011-02-19 23:52:17 +000011733: ${AR=ar}
11734: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
cristyda16f162011-02-19 23:52:17 +000011746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11747$as_echo_n "checking for archiver @FILE support... " >&6; }
11748if ${lt_cv_ar_at_file+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750else
11751 lt_cv_ar_at_file=no
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753/* end confdefs.h. */
11754
11755int
11756main ()
11757{
11758
11759 ;
11760 return 0;
11761}
11762_ACEOF
11763if ac_fn_c_try_compile "$LINENO"; then :
11764 echo conftest.$ac_objext > conftest.lst
11765 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11767 (eval $lt_ar_try) 2>&5
11768 ac_status=$?
11769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11770 test $ac_status = 0; }
11771 if test "$ac_status" -eq 0; then
11772 # Ensure the archiver fails upon bogus file names.
11773 rm -f conftest.$ac_objext libconftest.a
11774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11775 (eval $lt_ar_try) 2>&5
11776 ac_status=$?
11777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11778 test $ac_status = 0; }
11779 if test "$ac_status" -ne 0; then
11780 lt_cv_ar_at_file=@
11781 fi
11782 fi
11783 rm -f conftest.* libconftest.a
11784
11785fi
11786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11787
11788fi
11789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11790$as_echo "$lt_cv_ar_at_file" >&6; }
11791
11792if test "x$lt_cv_ar_at_file" = xno; then
11793 archiver_list_spec=
11794else
11795 archiver_list_spec=$lt_cv_ar_at_file
11796fi
11797
11798
11799
11800
11801
11802
11803
cristy73bd4a52010-10-05 11:24:23 +000011804if test -n "$ac_tool_prefix"; then
11805 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11806set dummy ${ac_tool_prefix}strip; ac_word=$2
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011809if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011810 $as_echo_n "(cached) " >&6
11811else
11812 if test -n "$STRIP"; then
11813 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11814else
11815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816for as_dir in $PATH
11817do
11818 IFS=$as_save_IFS
11819 test -z "$as_dir" && as_dir=.
11820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011822 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824 break 2
11825 fi
11826done
11827 done
11828IFS=$as_save_IFS
11829
11830fi
11831fi
11832STRIP=$ac_cv_prog_STRIP
11833if test -n "$STRIP"; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11835$as_echo "$STRIP" >&6; }
11836else
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838$as_echo "no" >&6; }
11839fi
11840
11841
11842fi
11843if test -z "$ac_cv_prog_STRIP"; then
11844 ac_ct_STRIP=$STRIP
11845 # Extract the first word of "strip", so it can be a program name with args.
11846set dummy strip; ac_word=$2
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011849if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011850 $as_echo_n "(cached) " >&6
11851else
11852 if test -n "$ac_ct_STRIP"; then
11853 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11854else
11855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856for as_dir in $PATH
11857do
11858 IFS=$as_save_IFS
11859 test -z "$as_dir" && as_dir=.
11860 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011862 ac_cv_prog_ac_ct_STRIP="strip"
11863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11864 break 2
11865 fi
11866done
11867 done
11868IFS=$as_save_IFS
11869
11870fi
11871fi
11872ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11873if test -n "$ac_ct_STRIP"; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11875$as_echo "$ac_ct_STRIP" >&6; }
11876else
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878$as_echo "no" >&6; }
11879fi
11880
11881 if test "x$ac_ct_STRIP" = x; then
11882 STRIP=":"
11883 else
11884 case $cross_compiling:$ac_tool_warned in
11885yes:)
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11888ac_tool_warned=yes ;;
11889esac
11890 STRIP=$ac_ct_STRIP
11891 fi
11892else
11893 STRIP="$ac_cv_prog_STRIP"
11894fi
11895
11896test -z "$STRIP" && STRIP=:
11897
11898
11899
11900
11901
11902
11903if test -n "$ac_tool_prefix"; then
11904 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11905set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11907$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011908if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011909 $as_echo_n "(cached) " >&6
11910else
11911 if test -n "$RANLIB"; then
11912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11913else
11914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915for as_dir in $PATH
11916do
11917 IFS=$as_save_IFS
11918 test -z "$as_dir" && as_dir=.
11919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011921 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 break 2
11924 fi
11925done
11926 done
11927IFS=$as_save_IFS
11928
11929fi
11930fi
11931RANLIB=$ac_cv_prog_RANLIB
11932if test -n "$RANLIB"; then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11934$as_echo "$RANLIB" >&6; }
11935else
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937$as_echo "no" >&6; }
11938fi
11939
11940
11941fi
11942if test -z "$ac_cv_prog_RANLIB"; then
11943 ac_ct_RANLIB=$RANLIB
11944 # Extract the first word of "ranlib", so it can be a program name with args.
11945set dummy ranlib; ac_word=$2
11946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011948if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011949 $as_echo_n "(cached) " >&6
11950else
11951 if test -n "$ac_ct_RANLIB"; then
11952 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11953else
11954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955for as_dir in $PATH
11956do
11957 IFS=$as_save_IFS
11958 test -z "$as_dir" && as_dir=.
11959 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011961 ac_cv_prog_ac_ct_RANLIB="ranlib"
11962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963 break 2
11964 fi
11965done
11966 done
11967IFS=$as_save_IFS
11968
11969fi
11970fi
11971ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11972if test -n "$ac_ct_RANLIB"; then
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11974$as_echo "$ac_ct_RANLIB" >&6; }
11975else
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977$as_echo "no" >&6; }
11978fi
11979
11980 if test "x$ac_ct_RANLIB" = x; then
11981 RANLIB=":"
11982 else
11983 case $cross_compiling:$ac_tool_warned in
11984yes:)
11985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11987ac_tool_warned=yes ;;
11988esac
11989 RANLIB=$ac_ct_RANLIB
11990 fi
11991else
11992 RANLIB="$ac_cv_prog_RANLIB"
11993fi
11994
11995test -z "$RANLIB" && RANLIB=:
11996
11997
11998
11999
12000
12001
12002# Determine commands to create old-style static archives.
12003old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12004old_postinstall_cmds='chmod 644 $oldlib'
12005old_postuninstall_cmds=
12006
12007if test -n "$RANLIB"; then
12008 case $host_os in
12009 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012010 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012011 ;;
12012 *)
cristy99bd5232011-12-07 14:38:20 +000012013 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012014 ;;
12015 esac
cristy99bd5232011-12-07 14:38:20 +000012016 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012017fi
12018
cristy0c60a692010-11-04 01:09:47 +000012019case $host_os in
12020 darwin*)
12021 lock_old_archive_extraction=yes ;;
12022 *)
12023 lock_old_archive_extraction=no ;;
12024esac
12025
12026
12027
12028
12029
12030
cristy73bd4a52010-10-05 11:24:23 +000012031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064# If no C compiler was specified, use CC.
12065LTCC=${LTCC-"$CC"}
12066
12067# If no C compiler flags were specified, use CFLAGS.
12068LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12069
12070# Allow CC to be a program name with arguments.
12071compiler=$CC
12072
12073
12074# Check for command to grab the raw symbol name followed by C symbol from nm.
12075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12076$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012077if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012078 $as_echo_n "(cached) " >&6
12079else
12080
12081# These are sane defaults that work on at least a few old systems.
12082# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12083
12084# Character class describing NM global symbol codes.
12085symcode='[BCDEGRST]'
12086
12087# Regexp to match symbols that can be accessed directly from C.
12088sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12089
12090# Define system-specific variables.
12091case $host_os in
12092aix*)
12093 symcode='[BCDT]'
12094 ;;
12095cygwin* | mingw* | pw32* | cegcc*)
12096 symcode='[ABCDGISTW]'
12097 ;;
12098hpux*)
12099 if test "$host_cpu" = ia64; then
12100 symcode='[ABCDEGRST]'
12101 fi
12102 ;;
12103irix* | nonstopux*)
12104 symcode='[BCDEGRST]'
12105 ;;
12106osf*)
12107 symcode='[BCDEGQRST]'
12108 ;;
12109solaris*)
12110 symcode='[BDRT]'
12111 ;;
12112sco3.2v5*)
12113 symcode='[DT]'
12114 ;;
12115sysv4.2uw2*)
12116 symcode='[DT]'
12117 ;;
12118sysv5* | sco5v6* | unixware* | OpenUNIX*)
12119 symcode='[ABDT]'
12120 ;;
12121sysv4)
12122 symcode='[DFNSTU]'
12123 ;;
12124esac
12125
12126# If we're using GNU nm, then use its standard symbol codes.
12127case `$NM -V 2>&1` in
12128*GNU* | *'with BFD'*)
12129 symcode='[ABCDGIRSTW]' ;;
12130esac
12131
12132# Transform an extracted symbol line into a proper C declaration.
12133# Some systems (esp. on ia64) link data and code symbols differently,
12134# so use this general approach.
12135lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12136
12137# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012138lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12139lt_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 +000012140
12141# Handle CRLF in mingw tool chain
12142opt_cr=
12143case $build_os in
12144mingw*)
12145 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12146 ;;
12147esac
12148
12149# Try without a prefix underscore, then with it.
12150for ac_symprfx in "" "_"; do
12151
12152 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12153 symxfrm="\\1 $ac_symprfx\\2 \\2"
12154
12155 # Write the raw and C identifiers.
12156 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12157 # Fake it for dumpbin and say T for any non-static function
12158 # and D for any global variable.
12159 # Also find C++ and __fastcall symbols from MSVC++,
12160 # which start with @ or ?.
12161 lt_cv_sys_global_symbol_pipe="$AWK '"\
12162" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012163" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012164" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12165" \$ 0!~/External *\|/{next};"\
12166" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12167" {if(hide[section]) next};"\
12168" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12169" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12170" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12171" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12172" ' prfx=^$ac_symprfx"
12173 else
12174 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12175 fi
cristyda16f162011-02-19 23:52:17 +000012176 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012177
12178 # Check to see that the pipe works correctly.
12179 pipe_works=no
12180
12181 rm -f conftest*
12182 cat > conftest.$ac_ext <<_LT_EOF
12183#ifdef __cplusplus
12184extern "C" {
12185#endif
12186char nm_test_var;
12187void nm_test_func(void);
12188void nm_test_func(void){}
12189#ifdef __cplusplus
12190}
12191#endif
12192int main(){nm_test_var='a';nm_test_func();return(0);}
12193_LT_EOF
12194
12195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12196 (eval $ac_compile) 2>&5
12197 ac_status=$?
12198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12199 test $ac_status = 0; }; then
12200 # Now try to grab the symbols.
12201 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12203 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012204 ac_status=$?
12205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12206 test $ac_status = 0; } && test -s "$nlist"; then
12207 # Try sorting and uniquifying the output.
12208 if sort "$nlist" | uniq > "$nlist"T; then
12209 mv -f "$nlist"T "$nlist"
12210 else
12211 rm -f "$nlist"T
12212 fi
12213
12214 # Make sure that we snagged all the symbols we need.
12215 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12216 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12217 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012218/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12219#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12220/* DATA imports from DLLs on WIN32 con't be const, because runtime
12221 relocations are performed -- see ld's documentation on pseudo-relocs. */
12222# define LT_DLSYM_CONST
12223#elif defined(__osf__)
12224/* This system does not cope well with relocations in const data. */
12225# define LT_DLSYM_CONST
12226#else
12227# define LT_DLSYM_CONST const
12228#endif
12229
cristy73bd4a52010-10-05 11:24:23 +000012230#ifdef __cplusplus
12231extern "C" {
12232#endif
12233
12234_LT_EOF
12235 # Now generate the symbol file.
12236 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12237
12238 cat <<_LT_EOF >> conftest.$ac_ext
12239
12240/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012241LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012242 const char *name;
12243 void *address;
12244}
12245lt__PROGRAM__LTX_preloaded_symbols[] =
12246{
12247 { "@PROGRAM@", (void *) 0 },
12248_LT_EOF
12249 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12250 cat <<\_LT_EOF >> conftest.$ac_ext
12251 {0, (void *) 0}
12252};
12253
12254/* This works around a problem in FreeBSD linker */
12255#ifdef FREEBSD_WORKAROUND
12256static const void *lt_preloaded_setup() {
12257 return lt__PROGRAM__LTX_preloaded_symbols;
12258}
12259#endif
12260
12261#ifdef __cplusplus
12262}
12263#endif
12264_LT_EOF
12265 # Now try linking the two files.
12266 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012267 lt_globsym_save_LIBS=$LIBS
12268 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012269 LIBS="conftstm.$ac_objext"
12270 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12272 (eval $ac_link) 2>&5
12273 ac_status=$?
12274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12275 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12276 pipe_works=yes
12277 fi
cristyda16f162011-02-19 23:52:17 +000012278 LIBS=$lt_globsym_save_LIBS
12279 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012280 else
12281 echo "cannot find nm_test_func in $nlist" >&5
12282 fi
12283 else
12284 echo "cannot find nm_test_var in $nlist" >&5
12285 fi
12286 else
12287 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12288 fi
12289 else
12290 echo "$progname: failed program was:" >&5
12291 cat conftest.$ac_ext >&5
12292 fi
12293 rm -rf conftest* conftst*
12294
12295 # Do not use the global_symbol_pipe unless it works.
12296 if test "$pipe_works" = yes; then
12297 break
12298 else
12299 lt_cv_sys_global_symbol_pipe=
12300 fi
12301done
12302
12303fi
12304
12305if test -z "$lt_cv_sys_global_symbol_pipe"; then
12306 lt_cv_sys_global_symbol_to_cdecl=
12307fi
12308if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12310$as_echo "failed" >&6; }
12311else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12313$as_echo "ok" >&6; }
12314fi
12315
cristyda16f162011-02-19 23:52:17 +000012316# Response file support.
12317if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12318 nm_file_list_spec='@'
12319elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12320 nm_file_list_spec='@'
12321fi
cristy73bd4a52010-10-05 11:24:23 +000012322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
cristyda16f162011-02-19 23:52:17 +000012343
12344
12345
12346
12347
12348
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12350$as_echo_n "checking for sysroot... " >&6; }
12351
12352# Check whether --with-sysroot was given.
12353if test "${with_sysroot+set}" = set; then :
12354 withval=$with_sysroot;
12355else
12356 with_sysroot=no
12357fi
12358
12359
12360lt_sysroot=
12361case ${with_sysroot} in #(
12362 yes)
12363 if test "$GCC" = yes; then
12364 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12365 fi
12366 ;; #(
12367 /*)
12368 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12369 ;; #(
12370 no|'')
12371 ;; #(
12372 *)
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12374$as_echo "${with_sysroot}" >&6; }
12375 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12376 ;;
12377esac
12378
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12380$as_echo "${lt_sysroot:-no}" >&6; }
12381
12382
12383
12384
12385
cristy73bd4a52010-10-05 11:24:23 +000012386# Check whether --enable-libtool-lock was given.
12387if test "${enable_libtool_lock+set}" = set; then :
12388 enableval=$enable_libtool_lock;
12389fi
12390
12391test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12392
12393# Some flags need to be propagated to the compiler or linker for good
12394# libtool support.
12395case $host in
12396ia64-*-hpux*)
12397 # Find out which ABI we are using.
12398 echo 'int i;' > conftest.$ac_ext
12399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12400 (eval $ac_compile) 2>&5
12401 ac_status=$?
12402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12403 test $ac_status = 0; }; then
12404 case `/usr/bin/file conftest.$ac_objext` in
12405 *ELF-32*)
12406 HPUX_IA64_MODE="32"
12407 ;;
12408 *ELF-64*)
12409 HPUX_IA64_MODE="64"
12410 ;;
12411 esac
12412 fi
12413 rm -rf conftest*
12414 ;;
12415*-*-irix6*)
12416 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012417 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12419 (eval $ac_compile) 2>&5
12420 ac_status=$?
12421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12422 test $ac_status = 0; }; then
12423 if test "$lt_cv_prog_gnu_ld" = yes; then
12424 case `/usr/bin/file conftest.$ac_objext` in
12425 *32-bit*)
12426 LD="${LD-ld} -melf32bsmip"
12427 ;;
12428 *N32*)
12429 LD="${LD-ld} -melf32bmipn32"
12430 ;;
12431 *64-bit*)
12432 LD="${LD-ld} -melf64bmip"
12433 ;;
12434 esac
12435 else
12436 case `/usr/bin/file conftest.$ac_objext` in
12437 *32-bit*)
12438 LD="${LD-ld} -32"
12439 ;;
12440 *N32*)
12441 LD="${LD-ld} -n32"
12442 ;;
12443 *64-bit*)
12444 LD="${LD-ld} -64"
12445 ;;
12446 esac
12447 fi
12448 fi
12449 rm -rf conftest*
12450 ;;
12451
12452x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12453s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12454 # Find out which ABI we are using.
12455 echo 'int i;' > conftest.$ac_ext
12456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12457 (eval $ac_compile) 2>&5
12458 ac_status=$?
12459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12460 test $ac_status = 0; }; then
12461 case `/usr/bin/file conftest.o` in
12462 *32-bit*)
12463 case $host in
12464 x86_64-*kfreebsd*-gnu)
12465 LD="${LD-ld} -m elf_i386_fbsd"
12466 ;;
12467 x86_64-*linux*)
12468 LD="${LD-ld} -m elf_i386"
12469 ;;
12470 ppc64-*linux*|powerpc64-*linux*)
12471 LD="${LD-ld} -m elf32ppclinux"
12472 ;;
12473 s390x-*linux*)
12474 LD="${LD-ld} -m elf_s390"
12475 ;;
12476 sparc64-*linux*)
12477 LD="${LD-ld} -m elf32_sparc"
12478 ;;
12479 esac
12480 ;;
12481 *64-bit*)
12482 case $host in
12483 x86_64-*kfreebsd*-gnu)
12484 LD="${LD-ld} -m elf_x86_64_fbsd"
12485 ;;
12486 x86_64-*linux*)
12487 LD="${LD-ld} -m elf_x86_64"
12488 ;;
12489 ppc*-*linux*|powerpc*-*linux*)
12490 LD="${LD-ld} -m elf64ppc"
12491 ;;
12492 s390*-*linux*|s390*-*tpf*)
12493 LD="${LD-ld} -m elf64_s390"
12494 ;;
12495 sparc*-*linux*)
12496 LD="${LD-ld} -m elf64_sparc"
12497 ;;
12498 esac
12499 ;;
12500 esac
12501 fi
12502 rm -rf conftest*
12503 ;;
12504
12505*-*-sco3.2v5*)
12506 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12507 SAVE_CFLAGS="$CFLAGS"
12508 CFLAGS="$CFLAGS -belf"
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12510$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012511if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012512 $as_echo_n "(cached) " >&6
12513else
12514 ac_ext=c
12515ac_cpp='$CPP $CPPFLAGS'
12516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12518ac_compiler_gnu=$ac_cv_c_compiler_gnu
12519
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521/* end confdefs.h. */
12522
12523int
12524main ()
12525{
12526
12527 ;
12528 return 0;
12529}
12530_ACEOF
12531if ac_fn_c_try_link "$LINENO"; then :
12532 lt_cv_cc_needs_belf=yes
12533else
12534 lt_cv_cc_needs_belf=no
12535fi
12536rm -f core conftest.err conftest.$ac_objext \
12537 conftest$ac_exeext conftest.$ac_ext
12538 ac_ext=c
12539ac_cpp='$CPP $CPPFLAGS'
12540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12542ac_compiler_gnu=$ac_cv_c_compiler_gnu
12543
12544fi
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12546$as_echo "$lt_cv_cc_needs_belf" >&6; }
12547 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12548 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12549 CFLAGS="$SAVE_CFLAGS"
12550 fi
12551 ;;
cristy99bd5232011-12-07 14:38:20 +000012552*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012553 # Find out which ABI we are using.
12554 echo 'int i;' > conftest.$ac_ext
12555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12556 (eval $ac_compile) 2>&5
12557 ac_status=$?
12558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12559 test $ac_status = 0; }; then
12560 case `/usr/bin/file conftest.o` in
12561 *64-bit*)
12562 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012563 yes*)
12564 case $host in
12565 i?86-*-solaris*)
12566 LD="${LD-ld} -m elf_x86_64"
12567 ;;
12568 sparc*-*-solaris*)
12569 LD="${LD-ld} -m elf64_sparc"
12570 ;;
12571 esac
12572 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12573 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12574 LD="${LD-ld}_sol2"
12575 fi
12576 ;;
cristy73bd4a52010-10-05 11:24:23 +000012577 *)
12578 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12579 LD="${LD-ld} -64"
12580 fi
12581 ;;
12582 esac
12583 ;;
12584 esac
12585 fi
12586 rm -rf conftest*
12587 ;;
12588esac
12589
12590need_locks="$enable_libtool_lock"
12591
cristyda16f162011-02-19 23:52:17 +000012592if test -n "$ac_tool_prefix"; then
12593 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12594set dummy ${ac_tool_prefix}mt; ac_word=$2
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12596$as_echo_n "checking for $ac_word... " >&6; }
12597if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12598 $as_echo_n "(cached) " >&6
12599else
12600 if test -n "$MANIFEST_TOOL"; then
12601 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12602else
12603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604for as_dir in $PATH
12605do
12606 IFS=$as_save_IFS
12607 test -z "$as_dir" && as_dir=.
12608 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012610 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12612 break 2
12613 fi
12614done
12615 done
12616IFS=$as_save_IFS
12617
12618fi
12619fi
12620MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12621if test -n "$MANIFEST_TOOL"; then
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12623$as_echo "$MANIFEST_TOOL" >&6; }
12624else
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12626$as_echo "no" >&6; }
12627fi
12628
12629
12630fi
12631if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12632 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12633 # Extract the first word of "mt", so it can be a program name with args.
12634set dummy mt; ac_word=$2
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636$as_echo_n "checking for $ac_word... " >&6; }
12637if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12638 $as_echo_n "(cached) " >&6
12639else
12640 if test -n "$ac_ct_MANIFEST_TOOL"; then
12641 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12642else
12643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644for as_dir in $PATH
12645do
12646 IFS=$as_save_IFS
12647 test -z "$as_dir" && as_dir=.
12648 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012650 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12652 break 2
12653 fi
12654done
12655 done
12656IFS=$as_save_IFS
12657
12658fi
12659fi
12660ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12661if test -n "$ac_ct_MANIFEST_TOOL"; then
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12663$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12664else
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12666$as_echo "no" >&6; }
12667fi
12668
12669 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12670 MANIFEST_TOOL=":"
12671 else
12672 case $cross_compiling:$ac_tool_warned in
12673yes:)
12674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12676ac_tool_warned=yes ;;
12677esac
12678 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12679 fi
12680else
12681 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12682fi
12683
12684test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12686$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12687if ${lt_cv_path_mainfest_tool+:} false; then :
12688 $as_echo_n "(cached) " >&6
12689else
12690 lt_cv_path_mainfest_tool=no
12691 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12692 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12693 cat conftest.err >&5
12694 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12695 lt_cv_path_mainfest_tool=yes
12696 fi
12697 rm -f conftest*
12698fi
12699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12700$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12701if test "x$lt_cv_path_mainfest_tool" != xyes; then
12702 MANIFEST_TOOL=:
12703fi
12704
12705
12706
12707
12708
cristy73bd4a52010-10-05 11:24:23 +000012709
12710 case $host_os in
12711 rhapsody* | darwin*)
12712 if test -n "$ac_tool_prefix"; then
12713 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12714set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012717if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012718 $as_echo_n "(cached) " >&6
12719else
12720 if test -n "$DSYMUTIL"; then
12721 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12722else
12723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724for as_dir in $PATH
12725do
12726 IFS=$as_save_IFS
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012730 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 break 2
12733 fi
12734done
12735 done
12736IFS=$as_save_IFS
12737
12738fi
12739fi
12740DSYMUTIL=$ac_cv_prog_DSYMUTIL
12741if test -n "$DSYMUTIL"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12743$as_echo "$DSYMUTIL" >&6; }
12744else
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746$as_echo "no" >&6; }
12747fi
12748
12749
12750fi
12751if test -z "$ac_cv_prog_DSYMUTIL"; then
12752 ac_ct_DSYMUTIL=$DSYMUTIL
12753 # Extract the first word of "dsymutil", so it can be a program name with args.
12754set dummy dsymutil; ac_word=$2
12755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12756$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012757if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012758 $as_echo_n "(cached) " >&6
12759else
12760 if test -n "$ac_ct_DSYMUTIL"; then
12761 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12762else
12763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764for as_dir in $PATH
12765do
12766 IFS=$as_save_IFS
12767 test -z "$as_dir" && as_dir=.
12768 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012770 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772 break 2
12773 fi
12774done
12775 done
12776IFS=$as_save_IFS
12777
12778fi
12779fi
12780ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12781if test -n "$ac_ct_DSYMUTIL"; then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12783$as_echo "$ac_ct_DSYMUTIL" >&6; }
12784else
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786$as_echo "no" >&6; }
12787fi
12788
12789 if test "x$ac_ct_DSYMUTIL" = x; then
12790 DSYMUTIL=":"
12791 else
12792 case $cross_compiling:$ac_tool_warned in
12793yes:)
12794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12796ac_tool_warned=yes ;;
12797esac
12798 DSYMUTIL=$ac_ct_DSYMUTIL
12799 fi
12800else
12801 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12802fi
12803
12804 if test -n "$ac_tool_prefix"; then
12805 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12806set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012809if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012810 $as_echo_n "(cached) " >&6
12811else
12812 if test -n "$NMEDIT"; then
12813 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12814else
12815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816for as_dir in $PATH
12817do
12818 IFS=$as_save_IFS
12819 test -z "$as_dir" && as_dir=.
12820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012822 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12824 break 2
12825 fi
12826done
12827 done
12828IFS=$as_save_IFS
12829
12830fi
12831fi
12832NMEDIT=$ac_cv_prog_NMEDIT
12833if test -n "$NMEDIT"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12835$as_echo "$NMEDIT" >&6; }
12836else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838$as_echo "no" >&6; }
12839fi
12840
12841
12842fi
12843if test -z "$ac_cv_prog_NMEDIT"; then
12844 ac_ct_NMEDIT=$NMEDIT
12845 # Extract the first word of "nmedit", so it can be a program name with args.
12846set dummy nmedit; ac_word=$2
12847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12848$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012849if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012850 $as_echo_n "(cached) " >&6
12851else
12852 if test -n "$ac_ct_NMEDIT"; then
12853 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12854else
12855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856for as_dir in $PATH
12857do
12858 IFS=$as_save_IFS
12859 test -z "$as_dir" && as_dir=.
12860 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012862 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12864 break 2
12865 fi
12866done
12867 done
12868IFS=$as_save_IFS
12869
12870fi
12871fi
12872ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12873if test -n "$ac_ct_NMEDIT"; then
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12875$as_echo "$ac_ct_NMEDIT" >&6; }
12876else
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878$as_echo "no" >&6; }
12879fi
12880
12881 if test "x$ac_ct_NMEDIT" = x; then
12882 NMEDIT=":"
12883 else
12884 case $cross_compiling:$ac_tool_warned in
12885yes:)
12886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12888ac_tool_warned=yes ;;
12889esac
12890 NMEDIT=$ac_ct_NMEDIT
12891 fi
12892else
12893 NMEDIT="$ac_cv_prog_NMEDIT"
12894fi
12895
12896 if test -n "$ac_tool_prefix"; then
12897 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12898set dummy ${ac_tool_prefix}lipo; ac_word=$2
12899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012901if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012902 $as_echo_n "(cached) " >&6
12903else
12904 if test -n "$LIPO"; then
12905 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12906else
12907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908for as_dir in $PATH
12909do
12910 IFS=$as_save_IFS
12911 test -z "$as_dir" && as_dir=.
12912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012914 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12916 break 2
12917 fi
12918done
12919 done
12920IFS=$as_save_IFS
12921
12922fi
12923fi
12924LIPO=$ac_cv_prog_LIPO
12925if test -n "$LIPO"; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12927$as_echo "$LIPO" >&6; }
12928else
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930$as_echo "no" >&6; }
12931fi
12932
12933
12934fi
12935if test -z "$ac_cv_prog_LIPO"; then
12936 ac_ct_LIPO=$LIPO
12937 # Extract the first word of "lipo", so it can be a program name with args.
12938set dummy lipo; ac_word=$2
12939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12940$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012941if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012942 $as_echo_n "(cached) " >&6
12943else
12944 if test -n "$ac_ct_LIPO"; then
12945 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12946else
12947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948for as_dir in $PATH
12949do
12950 IFS=$as_save_IFS
12951 test -z "$as_dir" && as_dir=.
12952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012954 ac_cv_prog_ac_ct_LIPO="lipo"
12955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12956 break 2
12957 fi
12958done
12959 done
12960IFS=$as_save_IFS
12961
12962fi
12963fi
12964ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12965if test -n "$ac_ct_LIPO"; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12967$as_echo "$ac_ct_LIPO" >&6; }
12968else
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970$as_echo "no" >&6; }
12971fi
12972
12973 if test "x$ac_ct_LIPO" = x; then
12974 LIPO=":"
12975 else
12976 case $cross_compiling:$ac_tool_warned in
12977yes:)
12978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12980ac_tool_warned=yes ;;
12981esac
12982 LIPO=$ac_ct_LIPO
12983 fi
12984else
12985 LIPO="$ac_cv_prog_LIPO"
12986fi
12987
12988 if test -n "$ac_tool_prefix"; then
12989 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12990set dummy ${ac_tool_prefix}otool; ac_word=$2
12991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012993if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012994 $as_echo_n "(cached) " >&6
12995else
12996 if test -n "$OTOOL"; then
12997 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12998else
12999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13000for as_dir in $PATH
13001do
13002 IFS=$as_save_IFS
13003 test -z "$as_dir" && as_dir=.
13004 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013006 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13008 break 2
13009 fi
13010done
13011 done
13012IFS=$as_save_IFS
13013
13014fi
13015fi
13016OTOOL=$ac_cv_prog_OTOOL
13017if test -n "$OTOOL"; then
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13019$as_echo "$OTOOL" >&6; }
13020else
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13022$as_echo "no" >&6; }
13023fi
13024
13025
13026fi
13027if test -z "$ac_cv_prog_OTOOL"; then
13028 ac_ct_OTOOL=$OTOOL
13029 # Extract the first word of "otool", so it can be a program name with args.
13030set dummy otool; ac_word=$2
13031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13032$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013033if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013034 $as_echo_n "(cached) " >&6
13035else
13036 if test -n "$ac_ct_OTOOL"; then
13037 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13038else
13039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040for as_dir in $PATH
13041do
13042 IFS=$as_save_IFS
13043 test -z "$as_dir" && as_dir=.
13044 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013046 ac_cv_prog_ac_ct_OTOOL="otool"
13047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13048 break 2
13049 fi
13050done
13051 done
13052IFS=$as_save_IFS
13053
13054fi
13055fi
13056ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13057if test -n "$ac_ct_OTOOL"; then
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13059$as_echo "$ac_ct_OTOOL" >&6; }
13060else
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13062$as_echo "no" >&6; }
13063fi
13064
13065 if test "x$ac_ct_OTOOL" = x; then
13066 OTOOL=":"
13067 else
13068 case $cross_compiling:$ac_tool_warned in
13069yes:)
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13072ac_tool_warned=yes ;;
13073esac
13074 OTOOL=$ac_ct_OTOOL
13075 fi
13076else
13077 OTOOL="$ac_cv_prog_OTOOL"
13078fi
13079
13080 if test -n "$ac_tool_prefix"; then
13081 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13082set dummy ${ac_tool_prefix}otool64; ac_word=$2
13083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13084$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013085if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013086 $as_echo_n "(cached) " >&6
13087else
13088 if test -n "$OTOOL64"; then
13089 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13090else
13091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092for as_dir in $PATH
13093do
13094 IFS=$as_save_IFS
13095 test -z "$as_dir" && as_dir=.
13096 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013098 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13100 break 2
13101 fi
13102done
13103 done
13104IFS=$as_save_IFS
13105
13106fi
13107fi
13108OTOOL64=$ac_cv_prog_OTOOL64
13109if test -n "$OTOOL64"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13111$as_echo "$OTOOL64" >&6; }
13112else
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114$as_echo "no" >&6; }
13115fi
13116
13117
13118fi
13119if test -z "$ac_cv_prog_OTOOL64"; then
13120 ac_ct_OTOOL64=$OTOOL64
13121 # Extract the first word of "otool64", so it can be a program name with args.
13122set dummy otool64; ac_word=$2
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013125if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013126 $as_echo_n "(cached) " >&6
13127else
13128 if test -n "$ac_ct_OTOOL64"; then
13129 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13130else
13131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132for as_dir in $PATH
13133do
13134 IFS=$as_save_IFS
13135 test -z "$as_dir" && as_dir=.
13136 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013138 ac_cv_prog_ac_ct_OTOOL64="otool64"
13139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13140 break 2
13141 fi
13142done
13143 done
13144IFS=$as_save_IFS
13145
13146fi
13147fi
13148ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13149if test -n "$ac_ct_OTOOL64"; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13151$as_echo "$ac_ct_OTOOL64" >&6; }
13152else
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154$as_echo "no" >&6; }
13155fi
13156
13157 if test "x$ac_ct_OTOOL64" = x; then
13158 OTOOL64=":"
13159 else
13160 case $cross_compiling:$ac_tool_warned in
13161yes:)
13162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13164ac_tool_warned=yes ;;
13165esac
13166 OTOOL64=$ac_ct_OTOOL64
13167 fi
13168else
13169 OTOOL64="$ac_cv_prog_OTOOL64"
13170fi
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13199$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013200if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013201 $as_echo_n "(cached) " >&6
13202else
13203 lt_cv_apple_cc_single_mod=no
13204 if test -z "${LT_MULTI_MODULE}"; then
13205 # By default we will add the -single_module flag. You can override
13206 # by either setting the environment variable LT_MULTI_MODULE
13207 # non-empty at configure time, or by adding -multi_module to the
13208 # link flags.
13209 rm -rf libconftest.dylib*
13210 echo "int foo(void){return 1;}" > conftest.c
13211 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13212-dynamiclib -Wl,-single_module conftest.c" >&5
13213 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13214 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13215 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013216 # If there is a non-empty error log, and "single_module"
13217 # appears in it, assume the flag caused a linker warning
13218 if test -s conftest.err && $GREP single_module conftest.err; then
13219 cat conftest.err >&5
13220 # Otherwise, if the output was created with a 0 exit code from
13221 # the compiler, it worked.
13222 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013223 lt_cv_apple_cc_single_mod=yes
13224 else
13225 cat conftest.err >&5
13226 fi
13227 rm -rf libconftest.dylib*
13228 rm -f conftest.*
13229 fi
13230fi
13231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13232$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013233
cristy73bd4a52010-10-05 11:24:23 +000013234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13235$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013236if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013237 $as_echo_n "(cached) " >&6
13238else
13239 lt_cv_ld_exported_symbols_list=no
13240 save_LDFLAGS=$LDFLAGS
13241 echo "_main" > conftest.sym
13242 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244/* end confdefs.h. */
13245
13246int
13247main ()
13248{
13249
13250 ;
13251 return 0;
13252}
13253_ACEOF
13254if ac_fn_c_try_link "$LINENO"; then :
13255 lt_cv_ld_exported_symbols_list=yes
13256else
13257 lt_cv_ld_exported_symbols_list=no
13258fi
13259rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13261 LDFLAGS="$save_LDFLAGS"
13262
13263fi
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13265$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013266
cristy0c60a692010-11-04 01:09:47 +000013267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13268$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013269if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013270 $as_echo_n "(cached) " >&6
13271else
13272 lt_cv_ld_force_load=no
13273 cat > conftest.c << _LT_EOF
13274int forced_loaded() { return 2;}
13275_LT_EOF
13276 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13277 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13278 echo "$AR cru libconftest.a conftest.o" >&5
13279 $AR cru libconftest.a conftest.o 2>&5
13280 echo "$RANLIB libconftest.a" >&5
13281 $RANLIB libconftest.a 2>&5
13282 cat > conftest.c << _LT_EOF
13283int main() { return 0;}
13284_LT_EOF
13285 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13286 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13287 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013288 if test -s conftest.err && $GREP force_load conftest.err; then
13289 cat conftest.err >&5
13290 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013291 lt_cv_ld_force_load=yes
13292 else
13293 cat conftest.err >&5
13294 fi
13295 rm -f conftest.err libconftest.a conftest conftest.c
13296 rm -rf conftest.dSYM
13297
13298fi
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13300$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013301 case $host_os in
13302 rhapsody* | darwin1.[012])
13303 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13304 darwin1.*)
13305 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13306 darwin*) # darwin 5.x on
13307 # if running on 10.5 or later, the deployment target defaults
13308 # to the OS version, if on x86, and 10.4, the deployment
13309 # target defaults to 10.4. Don't you love it?
13310 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13311 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13312 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13313 10.[012]*)
13314 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13315 10.*)
13316 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13317 esac
13318 ;;
13319 esac
13320 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13321 _lt_dar_single_mod='$single_module'
13322 fi
13323 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13324 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13325 else
13326 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13327 fi
cristy0c60a692010-11-04 01:09:47 +000013328 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013329 _lt_dsymutil='~$DSYMUTIL $lib || :'
13330 else
13331 _lt_dsymutil=
13332 fi
13333 ;;
13334 esac
13335
13336for ac_header in dlfcn.h
13337do :
13338 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13339"
cristyda16f162011-02-19 23:52:17 +000013340if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013341 cat >>confdefs.h <<_ACEOF
13342#define HAVE_DLFCN_H 1
13343_ACEOF
13344
13345fi
13346
13347done
13348
13349
13350
cristy73bd4a52010-10-05 11:24:23 +000013351
cristyda16f162011-02-19 23:52:17 +000013352func_stripname_cnf ()
13353{
13354 case ${2} in
13355 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13356 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13357 esac
13358} # func_stripname_cnf
13359
13360
13361
cristy73bd4a52010-10-05 11:24:23 +000013362
13363
13364# Set options
13365enable_win32_dll=yes
13366
13367case $host in
cristy0c60a692010-11-04 01:09:47 +000013368*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013369 if test -n "$ac_tool_prefix"; then
13370 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13371set dummy ${ac_tool_prefix}as; ac_word=$2
13372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13373$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013374if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013375 $as_echo_n "(cached) " >&6
13376else
13377 if test -n "$AS"; then
13378 ac_cv_prog_AS="$AS" # Let the user override the test.
13379else
13380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381for as_dir in $PATH
13382do
13383 IFS=$as_save_IFS
13384 test -z "$as_dir" && as_dir=.
13385 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013387 ac_cv_prog_AS="${ac_tool_prefix}as"
13388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13389 break 2
13390 fi
13391done
13392 done
13393IFS=$as_save_IFS
13394
13395fi
13396fi
13397AS=$ac_cv_prog_AS
13398if test -n "$AS"; then
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13400$as_echo "$AS" >&6; }
13401else
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403$as_echo "no" >&6; }
13404fi
13405
13406
13407fi
13408if test -z "$ac_cv_prog_AS"; then
13409 ac_ct_AS=$AS
13410 # Extract the first word of "as", so it can be a program name with args.
13411set dummy as; ac_word=$2
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013414if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013415 $as_echo_n "(cached) " >&6
13416else
13417 if test -n "$ac_ct_AS"; then
13418 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13419else
13420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421for as_dir in $PATH
13422do
13423 IFS=$as_save_IFS
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013427 ac_cv_prog_ac_ct_AS="as"
13428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13429 break 2
13430 fi
13431done
13432 done
13433IFS=$as_save_IFS
13434
13435fi
13436fi
13437ac_ct_AS=$ac_cv_prog_ac_ct_AS
13438if test -n "$ac_ct_AS"; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13440$as_echo "$ac_ct_AS" >&6; }
13441else
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443$as_echo "no" >&6; }
13444fi
13445
13446 if test "x$ac_ct_AS" = x; then
13447 AS="false"
13448 else
13449 case $cross_compiling:$ac_tool_warned in
13450yes:)
13451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13453ac_tool_warned=yes ;;
13454esac
13455 AS=$ac_ct_AS
13456 fi
13457else
13458 AS="$ac_cv_prog_AS"
13459fi
13460
13461 if test -n "$ac_tool_prefix"; then
13462 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13463set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13465$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013466if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013467 $as_echo_n "(cached) " >&6
13468else
13469 if test -n "$DLLTOOL"; then
13470 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13471else
13472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473for as_dir in $PATH
13474do
13475 IFS=$as_save_IFS
13476 test -z "$as_dir" && as_dir=.
13477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013479 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13481 break 2
13482 fi
13483done
13484 done
13485IFS=$as_save_IFS
13486
13487fi
13488fi
13489DLLTOOL=$ac_cv_prog_DLLTOOL
13490if test -n "$DLLTOOL"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13492$as_echo "$DLLTOOL" >&6; }
13493else
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495$as_echo "no" >&6; }
13496fi
13497
13498
13499fi
13500if test -z "$ac_cv_prog_DLLTOOL"; then
13501 ac_ct_DLLTOOL=$DLLTOOL
13502 # Extract the first word of "dlltool", so it can be a program name with args.
13503set dummy dlltool; ac_word=$2
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13505$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013506if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013507 $as_echo_n "(cached) " >&6
13508else
13509 if test -n "$ac_ct_DLLTOOL"; then
13510 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13511else
13512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13513for as_dir in $PATH
13514do
13515 IFS=$as_save_IFS
13516 test -z "$as_dir" && as_dir=.
13517 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013519 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13521 break 2
13522 fi
13523done
13524 done
13525IFS=$as_save_IFS
13526
13527fi
13528fi
13529ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13530if test -n "$ac_ct_DLLTOOL"; then
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13532$as_echo "$ac_ct_DLLTOOL" >&6; }
13533else
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535$as_echo "no" >&6; }
13536fi
13537
13538 if test "x$ac_ct_DLLTOOL" = x; then
13539 DLLTOOL="false"
13540 else
13541 case $cross_compiling:$ac_tool_warned in
13542yes:)
13543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13545ac_tool_warned=yes ;;
13546esac
13547 DLLTOOL=$ac_ct_DLLTOOL
13548 fi
13549else
13550 DLLTOOL="$ac_cv_prog_DLLTOOL"
13551fi
13552
13553 if test -n "$ac_tool_prefix"; then
13554 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13555set dummy ${ac_tool_prefix}objdump; ac_word=$2
13556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13557$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013558if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013559 $as_echo_n "(cached) " >&6
13560else
13561 if test -n "$OBJDUMP"; then
13562 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13563else
13564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565for as_dir in $PATH
13566do
13567 IFS=$as_save_IFS
13568 test -z "$as_dir" && as_dir=.
13569 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013571 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13573 break 2
13574 fi
13575done
13576 done
13577IFS=$as_save_IFS
13578
13579fi
13580fi
13581OBJDUMP=$ac_cv_prog_OBJDUMP
13582if test -n "$OBJDUMP"; then
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13584$as_echo "$OBJDUMP" >&6; }
13585else
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13587$as_echo "no" >&6; }
13588fi
13589
13590
13591fi
13592if test -z "$ac_cv_prog_OBJDUMP"; then
13593 ac_ct_OBJDUMP=$OBJDUMP
13594 # Extract the first word of "objdump", so it can be a program name with args.
13595set dummy objdump; ac_word=$2
13596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13597$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013598if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013599 $as_echo_n "(cached) " >&6
13600else
13601 if test -n "$ac_ct_OBJDUMP"; then
13602 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13603else
13604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13605for as_dir in $PATH
13606do
13607 IFS=$as_save_IFS
13608 test -z "$as_dir" && as_dir=.
13609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013611 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13613 break 2
13614 fi
13615done
13616 done
13617IFS=$as_save_IFS
13618
13619fi
13620fi
13621ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13622if test -n "$ac_ct_OBJDUMP"; then
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13624$as_echo "$ac_ct_OBJDUMP" >&6; }
13625else
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13627$as_echo "no" >&6; }
13628fi
13629
13630 if test "x$ac_ct_OBJDUMP" = x; then
13631 OBJDUMP="false"
13632 else
13633 case $cross_compiling:$ac_tool_warned in
13634yes:)
13635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13637ac_tool_warned=yes ;;
13638esac
13639 OBJDUMP=$ac_ct_OBJDUMP
13640 fi
13641else
13642 OBJDUMP="$ac_cv_prog_OBJDUMP"
13643fi
13644
13645 ;;
13646esac
13647
13648test -z "$AS" && AS=as
13649
13650
13651
13652
13653
13654test -z "$DLLTOOL" && DLLTOOL=dlltool
13655
13656
13657
13658
13659
13660test -z "$OBJDUMP" && OBJDUMP=objdump
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670 # Check whether --enable-shared was given.
13671if test "${enable_shared+set}" = set; then :
13672 enableval=$enable_shared; p=${PACKAGE-default}
13673 case $enableval in
13674 yes) enable_shared=yes ;;
13675 no) enable_shared=no ;;
13676 *)
13677 enable_shared=no
13678 # Look at the argument we got. We use all the common list separators.
13679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13680 for pkg in $enableval; do
13681 IFS="$lt_save_ifs"
13682 if test "X$pkg" = "X$p"; then
13683 enable_shared=yes
13684 fi
13685 done
13686 IFS="$lt_save_ifs"
13687 ;;
13688 esac
13689else
13690 enable_shared=yes
13691fi
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701 # Check whether --enable-static was given.
13702if test "${enable_static+set}" = set; then :
13703 enableval=$enable_static; p=${PACKAGE-default}
13704 case $enableval in
13705 yes) enable_static=yes ;;
13706 no) enable_static=no ;;
13707 *)
13708 enable_static=no
13709 # Look at the argument we got. We use all the common list separators.
13710 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13711 for pkg in $enableval; do
13712 IFS="$lt_save_ifs"
13713 if test "X$pkg" = "X$p"; then
13714 enable_static=yes
13715 fi
13716 done
13717 IFS="$lt_save_ifs"
13718 ;;
13719 esac
13720else
13721 enable_static=yes
13722fi
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733# Check whether --with-pic was given.
13734if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013735 withval=$with_pic; lt_p=${PACKAGE-default}
13736 case $withval in
13737 yes|no) pic_mode=$withval ;;
13738 *)
13739 pic_mode=default
13740 # Look at the argument we got. We use all the common list separators.
13741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13742 for lt_pkg in $withval; do
13743 IFS="$lt_save_ifs"
13744 if test "X$lt_pkg" = "X$lt_p"; then
13745 pic_mode=yes
13746 fi
13747 done
13748 IFS="$lt_save_ifs"
13749 ;;
13750 esac
cristy73bd4a52010-10-05 11:24:23 +000013751else
13752 pic_mode=default
13753fi
13754
13755
13756test -z "$pic_mode" && pic_mode=default
13757
13758
13759
13760
13761
13762
13763
13764 # Check whether --enable-fast-install was given.
13765if test "${enable_fast_install+set}" = set; then :
13766 enableval=$enable_fast_install; p=${PACKAGE-default}
13767 case $enableval in
13768 yes) enable_fast_install=yes ;;
13769 no) enable_fast_install=no ;;
13770 *)
13771 enable_fast_install=no
13772 # Look at the argument we got. We use all the common list separators.
13773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13774 for pkg in $enableval; do
13775 IFS="$lt_save_ifs"
13776 if test "X$pkg" = "X$p"; then
13777 enable_fast_install=yes
13778 fi
13779 done
13780 IFS="$lt_save_ifs"
13781 ;;
13782 esac
13783else
13784 enable_fast_install=yes
13785fi
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797# This can be used to rebuild libtool when needed
13798LIBTOOL_DEPS="$ltmain"
13799
13800# Always use our own libtool.
13801LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
cristy0c60a692010-11-04 01:09:47 +000013827
cristy99bd5232011-12-07 14:38:20 +000013828
13829
13830
13831
cristy73bd4a52010-10-05 11:24:23 +000013832test -z "$LN_S" && LN_S="ln -s"
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847if test -n "${ZSH_VERSION+set}" ; then
13848 setopt NO_GLOB_SUBST
13849fi
13850
13851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13852$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013853if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013854 $as_echo_n "(cached) " >&6
13855else
13856 rm -f .libs 2>/dev/null
13857mkdir .libs 2>/dev/null
13858if test -d .libs; then
13859 lt_cv_objdir=.libs
13860else
13861 # MS-DOS does not allow filenames that begin with a dot.
13862 lt_cv_objdir=_libs
13863fi
13864rmdir .libs 2>/dev/null
13865fi
13866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13867$as_echo "$lt_cv_objdir" >&6; }
13868objdir=$lt_cv_objdir
13869
13870
13871
13872
13873
13874cat >>confdefs.h <<_ACEOF
13875#define LT_OBJDIR "$lt_cv_objdir/"
13876_ACEOF
13877
13878
13879
13880
cristy73bd4a52010-10-05 11:24:23 +000013881case $host_os in
13882aix3*)
13883 # AIX sometimes has problems with the GCC collect2 program. For some
13884 # reason, if we set the COLLECT_NAMES environment variable, the problems
13885 # vanish in a puff of smoke.
13886 if test "X${COLLECT_NAMES+set}" != Xset; then
13887 COLLECT_NAMES=
13888 export COLLECT_NAMES
13889 fi
13890 ;;
13891esac
13892
cristy73bd4a52010-10-05 11:24:23 +000013893# Global variables:
13894ofile=libtool
13895can_build_shared=yes
13896
13897# All known linkers require a `.a' archive for static linking (except MSVC,
13898# which needs '.lib').
13899libext=a
13900
13901with_gnu_ld="$lt_cv_prog_gnu_ld"
13902
13903old_CC="$CC"
13904old_CFLAGS="$CFLAGS"
13905
13906# Set sane defaults for various variables
13907test -z "$CC" && CC=cc
13908test -z "$LTCC" && LTCC=$CC
13909test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13910test -z "$LD" && LD=ld
13911test -z "$ac_objext" && ac_objext=o
13912
13913for cc_temp in $compiler""; do
13914 case $cc_temp in
13915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13917 \-*) ;;
13918 *) break;;
13919 esac
13920done
cristy0c60a692010-11-04 01:09:47 +000013921cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013922
13923
13924# Only perform the check for file, if the check method requires it
13925test -z "$MAGIC_CMD" && MAGIC_CMD=file
13926case $deplibs_check_method in
13927file_magic*)
13928 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13930$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013931if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013932 $as_echo_n "(cached) " >&6
13933else
13934 case $MAGIC_CMD in
13935[\\/*] | ?:[\\/]*)
13936 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13937 ;;
13938*)
13939 lt_save_MAGIC_CMD="$MAGIC_CMD"
13940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13941 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13942 for ac_dir in $ac_dummy; do
13943 IFS="$lt_save_ifs"
13944 test -z "$ac_dir" && ac_dir=.
13945 if test -f $ac_dir/${ac_tool_prefix}file; then
13946 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13947 if test -n "$file_magic_test_file"; then
13948 case $deplibs_check_method in
13949 "file_magic "*)
13950 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13951 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13952 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13953 $EGREP "$file_magic_regex" > /dev/null; then
13954 :
13955 else
13956 cat <<_LT_EOF 1>&2
13957
13958*** Warning: the command libtool uses to detect shared libraries,
13959*** $file_magic_cmd, produces output that libtool cannot recognize.
13960*** The result is that libtool may fail to recognize shared libraries
13961*** as such. This will affect the creation of libtool libraries that
13962*** depend on shared libraries, but programs linked with such libtool
13963*** libraries will work regardless of this problem. Nevertheless, you
13964*** may want to report the problem to your system manager and/or to
13965*** bug-libtool@gnu.org
13966
13967_LT_EOF
13968 fi ;;
13969 esac
13970 fi
13971 break
13972 fi
13973 done
13974 IFS="$lt_save_ifs"
13975 MAGIC_CMD="$lt_save_MAGIC_CMD"
13976 ;;
13977esac
13978fi
13979
13980MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13981if test -n "$MAGIC_CMD"; then
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13983$as_echo "$MAGIC_CMD" >&6; }
13984else
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13986$as_echo "no" >&6; }
13987fi
13988
13989
13990
13991
13992
13993if test -z "$lt_cv_path_MAGIC_CMD"; then
13994 if test -n "$ac_tool_prefix"; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13996$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013997if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013998 $as_echo_n "(cached) " >&6
13999else
14000 case $MAGIC_CMD in
14001[\\/*] | ?:[\\/]*)
14002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14003 ;;
14004*)
14005 lt_save_MAGIC_CMD="$MAGIC_CMD"
14006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14007 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14008 for ac_dir in $ac_dummy; do
14009 IFS="$lt_save_ifs"
14010 test -z "$ac_dir" && ac_dir=.
14011 if test -f $ac_dir/file; then
14012 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14013 if test -n "$file_magic_test_file"; then
14014 case $deplibs_check_method in
14015 "file_magic "*)
14016 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14019 $EGREP "$file_magic_regex" > /dev/null; then
14020 :
14021 else
14022 cat <<_LT_EOF 1>&2
14023
14024*** Warning: the command libtool uses to detect shared libraries,
14025*** $file_magic_cmd, produces output that libtool cannot recognize.
14026*** The result is that libtool may fail to recognize shared libraries
14027*** as such. This will affect the creation of libtool libraries that
14028*** depend on shared libraries, but programs linked with such libtool
14029*** libraries will work regardless of this problem. Nevertheless, you
14030*** may want to report the problem to your system manager and/or to
14031*** bug-libtool@gnu.org
14032
14033_LT_EOF
14034 fi ;;
14035 esac
14036 fi
14037 break
14038 fi
14039 done
14040 IFS="$lt_save_ifs"
14041 MAGIC_CMD="$lt_save_MAGIC_CMD"
14042 ;;
14043esac
14044fi
14045
14046MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14047if test -n "$MAGIC_CMD"; then
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14049$as_echo "$MAGIC_CMD" >&6; }
14050else
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14052$as_echo "no" >&6; }
14053fi
14054
14055
14056 else
14057 MAGIC_CMD=:
14058 fi
14059fi
14060
14061 fi
14062 ;;
14063esac
14064
14065# Use C for the default configuration in the libtool script
14066
14067lt_save_CC="$CC"
14068ac_ext=c
14069ac_cpp='$CPP $CPPFLAGS'
14070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14072ac_compiler_gnu=$ac_cv_c_compiler_gnu
14073
14074
14075# Source file extension for C test sources.
14076ac_ext=c
14077
14078# Object file extension for compiled C test sources.
14079objext=o
14080objext=$objext
14081
14082# Code to be used in simple compile tests
14083lt_simple_compile_test_code="int some_variable = 0;"
14084
14085# Code to be used in simple link tests
14086lt_simple_link_test_code='int main(){return(0);}'
14087
14088
14089
14090
14091
14092
14093
14094# If no C compiler was specified, use CC.
14095LTCC=${LTCC-"$CC"}
14096
14097# If no C compiler flags were specified, use CFLAGS.
14098LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14099
14100# Allow CC to be a program name with arguments.
14101compiler=$CC
14102
14103# Save the default compiler, since it gets overwritten when the other
14104# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14105compiler_DEFAULT=$CC
14106
14107# save warnings/boilerplate of simple test code
14108ac_outfile=conftest.$ac_objext
14109echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14110eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14111_lt_compiler_boilerplate=`cat conftest.err`
14112$RM conftest*
14113
14114ac_outfile=conftest.$ac_objext
14115echo "$lt_simple_link_test_code" >conftest.$ac_ext
14116eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14117_lt_linker_boilerplate=`cat conftest.err`
14118$RM -r conftest*
14119
14120
14121## CAVEAT EMPTOR:
14122## There is no encapsulation within the following macros, do not change
14123## the running order or otherwise move them around unless you know exactly
14124## what you are doing...
14125if test -n "$compiler"; then
14126
14127lt_prog_compiler_no_builtin_flag=
14128
14129if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014130 case $cc_basename in
14131 nvcc*)
14132 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14133 *)
14134 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14135 esac
cristy73bd4a52010-10-05 11:24:23 +000014136
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14138$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014139if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014140 $as_echo_n "(cached) " >&6
14141else
14142 lt_cv_prog_compiler_rtti_exceptions=no
14143 ac_outfile=conftest.$ac_objext
14144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14145 lt_compiler_flag="-fno-rtti -fno-exceptions"
14146 # Insert the option either (1) after the last *FLAGS variable, or
14147 # (2) before a word containing "conftest.", or (3) at the end.
14148 # Note that $ac_compile itself does not contain backslashes and begins
14149 # with a dollar sign (not a hyphen), so the echo should work correctly.
14150 # The option is referenced via a variable to avoid confusing sed.
14151 lt_compile=`echo "$ac_compile" | $SED \
14152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14154 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014155 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014156 (eval "$lt_compile" 2>conftest.err)
14157 ac_status=$?
14158 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014160 if (exit $ac_status) && test -s "$ac_outfile"; then
14161 # The compiler can only warn and ignore the option if not recognized
14162 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014163 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014164 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14165 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14166 lt_cv_prog_compiler_rtti_exceptions=yes
14167 fi
14168 fi
14169 $RM conftest*
14170
14171fi
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14173$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14174
14175if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14176 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14177else
14178 :
14179fi
14180
14181fi
14182
14183
14184
14185
14186
14187
14188 lt_prog_compiler_wl=
14189lt_prog_compiler_pic=
14190lt_prog_compiler_static=
14191
cristy73bd4a52010-10-05 11:24:23 +000014192
14193 if test "$GCC" = yes; then
14194 lt_prog_compiler_wl='-Wl,'
14195 lt_prog_compiler_static='-static'
14196
14197 case $host_os in
14198 aix*)
14199 # All AIX code is PIC.
14200 if test "$host_cpu" = ia64; then
14201 # AIX 5 now supports IA64 processor
14202 lt_prog_compiler_static='-Bstatic'
14203 fi
14204 ;;
14205
14206 amigaos*)
14207 case $host_cpu in
14208 powerpc)
14209 # see comment about AmigaOS4 .so support
14210 lt_prog_compiler_pic='-fPIC'
14211 ;;
14212 m68k)
14213 # FIXME: we need at least 68020 code to build shared libraries, but
14214 # adding the `-m68020' flag to GCC prevents building anything better,
14215 # like `-m68040'.
14216 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14217 ;;
14218 esac
14219 ;;
14220
14221 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14222 # PIC is the default for these OSes.
14223 ;;
14224
14225 mingw* | cygwin* | pw32* | os2* | cegcc*)
14226 # This hack is so that the source file can tell whether it is being
14227 # built for inclusion in a dll (and should export symbols for example).
14228 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14229 # (--disable-auto-import) libraries
14230 lt_prog_compiler_pic='-DDLL_EXPORT'
14231 ;;
14232
14233 darwin* | rhapsody*)
14234 # PIC is the default on this platform
14235 # Common symbols not allowed in MH_DYLIB files
14236 lt_prog_compiler_pic='-fno-common'
14237 ;;
14238
cristy0c60a692010-11-04 01:09:47 +000014239 haiku*)
14240 # PIC is the default for Haiku.
14241 # The "-static" flag exists, but is broken.
14242 lt_prog_compiler_static=
14243 ;;
14244
cristy73bd4a52010-10-05 11:24:23 +000014245 hpux*)
14246 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14247 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14248 # sets the default TLS model and affects inlining.
14249 case $host_cpu in
14250 hppa*64*)
14251 # +Z the default
14252 ;;
14253 *)
14254 lt_prog_compiler_pic='-fPIC'
14255 ;;
14256 esac
14257 ;;
14258
14259 interix[3-9]*)
14260 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14261 # Instead, we relocate shared libraries at runtime.
14262 ;;
14263
14264 msdosdjgpp*)
14265 # Just because we use GCC doesn't mean we suddenly get shared libraries
14266 # on systems that don't support them.
14267 lt_prog_compiler_can_build_shared=no
14268 enable_shared=no
14269 ;;
14270
14271 *nto* | *qnx*)
14272 # QNX uses GNU C++, but need to define -shared option too, otherwise
14273 # it will coredump.
14274 lt_prog_compiler_pic='-fPIC -shared'
14275 ;;
14276
14277 sysv4*MP*)
14278 if test -d /usr/nec; then
14279 lt_prog_compiler_pic=-Kconform_pic
14280 fi
14281 ;;
14282
14283 *)
14284 lt_prog_compiler_pic='-fPIC'
14285 ;;
14286 esac
cristy0c60a692010-11-04 01:09:47 +000014287
14288 case $cc_basename in
14289 nvcc*) # Cuda Compiler Driver 2.2
14290 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014291 if test -n "$lt_prog_compiler_pic"; then
14292 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14293 fi
cristy0c60a692010-11-04 01:09:47 +000014294 ;;
14295 esac
cristy73bd4a52010-10-05 11:24:23 +000014296 else
14297 # PORTME Check for flag to pass linker flags through the system compiler.
14298 case $host_os in
14299 aix*)
14300 lt_prog_compiler_wl='-Wl,'
14301 if test "$host_cpu" = ia64; then
14302 # AIX 5 now supports IA64 processor
14303 lt_prog_compiler_static='-Bstatic'
14304 else
14305 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14306 fi
14307 ;;
14308
14309 mingw* | cygwin* | pw32* | os2* | cegcc*)
14310 # This hack is so that the source file can tell whether it is being
14311 # built for inclusion in a dll (and should export symbols for example).
14312 lt_prog_compiler_pic='-DDLL_EXPORT'
14313 ;;
14314
14315 hpux9* | hpux10* | hpux11*)
14316 lt_prog_compiler_wl='-Wl,'
14317 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14318 # not for PA HP-UX.
14319 case $host_cpu in
14320 hppa*64*|ia64*)
14321 # +Z the default
14322 ;;
14323 *)
14324 lt_prog_compiler_pic='+Z'
14325 ;;
14326 esac
14327 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14328 lt_prog_compiler_static='${wl}-a ${wl}archive'
14329 ;;
14330
14331 irix5* | irix6* | nonstopux*)
14332 lt_prog_compiler_wl='-Wl,'
14333 # PIC (with -KPIC) is the default.
14334 lt_prog_compiler_static='-non_shared'
14335 ;;
14336
cristy0c60a692010-11-04 01:09:47 +000014337 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014338 case $cc_basename in
14339 # old Intel for x86_64 which still supported -KPIC.
14340 ecc*)
14341 lt_prog_compiler_wl='-Wl,'
14342 lt_prog_compiler_pic='-KPIC'
14343 lt_prog_compiler_static='-static'
14344 ;;
14345 # icc used to be incompatible with GCC.
14346 # ICC 10 doesn't accept -KPIC any more.
14347 icc* | ifort*)
14348 lt_prog_compiler_wl='-Wl,'
14349 lt_prog_compiler_pic='-fPIC'
14350 lt_prog_compiler_static='-static'
14351 ;;
14352 # Lahey Fortran 8.1.
14353 lf95*)
14354 lt_prog_compiler_wl='-Wl,'
14355 lt_prog_compiler_pic='--shared'
14356 lt_prog_compiler_static='--static'
14357 ;;
cristyda16f162011-02-19 23:52:17 +000014358 nagfor*)
14359 # NAG Fortran compiler
14360 lt_prog_compiler_wl='-Wl,-Wl,,'
14361 lt_prog_compiler_pic='-PIC'
14362 lt_prog_compiler_static='-Bstatic'
14363 ;;
cristy0c60a692010-11-04 01:09:47 +000014364 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014365 # Portland Group compilers (*not* the Pentium gcc compiler,
14366 # which looks to be a dead project)
14367 lt_prog_compiler_wl='-Wl,'
14368 lt_prog_compiler_pic='-fpic'
14369 lt_prog_compiler_static='-Bstatic'
14370 ;;
14371 ccc*)
14372 lt_prog_compiler_wl='-Wl,'
14373 # All Alpha code is PIC.
14374 lt_prog_compiler_static='-non_shared'
14375 ;;
cristy0c60a692010-11-04 01:09:47 +000014376 xl* | bgxl* | bgf* | mpixl*)
14377 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014378 lt_prog_compiler_wl='-Wl,'
14379 lt_prog_compiler_pic='-qpic'
14380 lt_prog_compiler_static='-qstaticlink'
14381 ;;
14382 *)
14383 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014384 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014385 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14386 lt_prog_compiler_pic='-KPIC'
14387 lt_prog_compiler_static='-Bstatic'
14388 lt_prog_compiler_wl=''
14389 ;;
cristy99bd5232011-12-07 14:38:20 +000014390 *Sun\ F* | *Sun*Fortran*)
14391 lt_prog_compiler_pic='-KPIC'
14392 lt_prog_compiler_static='-Bstatic'
14393 lt_prog_compiler_wl='-Qoption ld '
14394 ;;
cristy73bd4a52010-10-05 11:24:23 +000014395 *Sun\ C*)
14396 # Sun C 5.9
14397 lt_prog_compiler_pic='-KPIC'
14398 lt_prog_compiler_static='-Bstatic'
14399 lt_prog_compiler_wl='-Wl,'
14400 ;;
cristy99bd5232011-12-07 14:38:20 +000014401 *Intel*\ [CF]*Compiler*)
14402 lt_prog_compiler_wl='-Wl,'
14403 lt_prog_compiler_pic='-fPIC'
14404 lt_prog_compiler_static='-static'
14405 ;;
14406 *Portland\ Group*)
14407 lt_prog_compiler_wl='-Wl,'
14408 lt_prog_compiler_pic='-fpic'
14409 lt_prog_compiler_static='-Bstatic'
14410 ;;
cristy73bd4a52010-10-05 11:24:23 +000014411 esac
14412 ;;
14413 esac
14414 ;;
14415
14416 newsos6)
14417 lt_prog_compiler_pic='-KPIC'
14418 lt_prog_compiler_static='-Bstatic'
14419 ;;
14420
14421 *nto* | *qnx*)
14422 # QNX uses GNU C++, but need to define -shared option too, otherwise
14423 # it will coredump.
14424 lt_prog_compiler_pic='-fPIC -shared'
14425 ;;
14426
14427 osf3* | osf4* | osf5*)
14428 lt_prog_compiler_wl='-Wl,'
14429 # All OSF/1 code is PIC.
14430 lt_prog_compiler_static='-non_shared'
14431 ;;
14432
14433 rdos*)
14434 lt_prog_compiler_static='-non_shared'
14435 ;;
14436
14437 solaris*)
14438 lt_prog_compiler_pic='-KPIC'
14439 lt_prog_compiler_static='-Bstatic'
14440 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014441 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014442 lt_prog_compiler_wl='-Qoption ld ';;
14443 *)
14444 lt_prog_compiler_wl='-Wl,';;
14445 esac
14446 ;;
14447
14448 sunos4*)
14449 lt_prog_compiler_wl='-Qoption ld '
14450 lt_prog_compiler_pic='-PIC'
14451 lt_prog_compiler_static='-Bstatic'
14452 ;;
14453
14454 sysv4 | sysv4.2uw2* | sysv4.3*)
14455 lt_prog_compiler_wl='-Wl,'
14456 lt_prog_compiler_pic='-KPIC'
14457 lt_prog_compiler_static='-Bstatic'
14458 ;;
14459
14460 sysv4*MP*)
14461 if test -d /usr/nec ;then
14462 lt_prog_compiler_pic='-Kconform_pic'
14463 lt_prog_compiler_static='-Bstatic'
14464 fi
14465 ;;
14466
14467 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14468 lt_prog_compiler_wl='-Wl,'
14469 lt_prog_compiler_pic='-KPIC'
14470 lt_prog_compiler_static='-Bstatic'
14471 ;;
14472
14473 unicos*)
14474 lt_prog_compiler_wl='-Wl,'
14475 lt_prog_compiler_can_build_shared=no
14476 ;;
14477
14478 uts4*)
14479 lt_prog_compiler_pic='-pic'
14480 lt_prog_compiler_static='-Bstatic'
14481 ;;
14482
14483 *)
14484 lt_prog_compiler_can_build_shared=no
14485 ;;
14486 esac
14487 fi
14488
14489case $host_os in
14490 # For platforms which do not support PIC, -DPIC is meaningless:
14491 *djgpp*)
14492 lt_prog_compiler_pic=
14493 ;;
14494 *)
14495 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14496 ;;
14497esac
cristy73bd4a52010-10-05 11:24:23 +000014498
cristyda16f162011-02-19 23:52:17 +000014499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14500$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14501if ${lt_cv_prog_compiler_pic+:} false; then :
14502 $as_echo_n "(cached) " >&6
14503else
14504 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14505fi
14506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14507$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14508lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014509
14510#
14511# Check to make sure the PIC flag actually works.
14512#
14513if test -n "$lt_prog_compiler_pic"; then
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14515$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014516if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014517 $as_echo_n "(cached) " >&6
14518else
14519 lt_cv_prog_compiler_pic_works=no
14520 ac_outfile=conftest.$ac_objext
14521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14522 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14523 # Insert the option either (1) after the last *FLAGS variable, or
14524 # (2) before a word containing "conftest.", or (3) at the end.
14525 # Note that $ac_compile itself does not contain backslashes and begins
14526 # with a dollar sign (not a hyphen), so the echo should work correctly.
14527 # The option is referenced via a variable to avoid confusing sed.
14528 lt_compile=`echo "$ac_compile" | $SED \
14529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14531 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014533 (eval "$lt_compile" 2>conftest.err)
14534 ac_status=$?
14535 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014537 if (exit $ac_status) && test -s "$ac_outfile"; then
14538 # The compiler can only warn and ignore the option if not recognized
14539 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14543 lt_cv_prog_compiler_pic_works=yes
14544 fi
14545 fi
14546 $RM conftest*
14547
14548fi
14549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14550$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14551
14552if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14553 case $lt_prog_compiler_pic in
14554 "" | " "*) ;;
14555 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14556 esac
14557else
14558 lt_prog_compiler_pic=
14559 lt_prog_compiler_can_build_shared=no
14560fi
14561
14562fi
14563
14564
14565
14566
14567
14568
cristyda16f162011-02-19 23:52:17 +000014569
14570
14571
14572
14573
cristy73bd4a52010-10-05 11:24:23 +000014574#
14575# Check to make sure the static flag actually works.
14576#
14577wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14579$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014580if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014581 $as_echo_n "(cached) " >&6
14582else
14583 lt_cv_prog_compiler_static_works=no
14584 save_LDFLAGS="$LDFLAGS"
14585 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14586 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14587 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14588 # The linker can only warn and ignore the option if not recognized
14589 # So say no if there are warnings
14590 if test -s conftest.err; then
14591 # Append any errors to the config.log.
14592 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014593 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14595 if diff conftest.exp conftest.er2 >/dev/null; then
14596 lt_cv_prog_compiler_static_works=yes
14597 fi
14598 else
14599 lt_cv_prog_compiler_static_works=yes
14600 fi
14601 fi
14602 $RM -r conftest*
14603 LDFLAGS="$save_LDFLAGS"
14604
14605fi
14606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14607$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14608
14609if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14610 :
14611else
14612 lt_prog_compiler_static=
14613fi
14614
14615
14616
14617
14618
14619
14620
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14622$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014623if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014624 $as_echo_n "(cached) " >&6
14625else
14626 lt_cv_prog_compiler_c_o=no
14627 $RM -r conftest 2>/dev/null
14628 mkdir conftest
14629 cd conftest
14630 mkdir out
14631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14632
14633 lt_compiler_flag="-o out/conftest2.$ac_objext"
14634 # Insert the option either (1) after the last *FLAGS variable, or
14635 # (2) before a word containing "conftest.", or (3) at the end.
14636 # Note that $ac_compile itself does not contain backslashes and begins
14637 # with a dollar sign (not a hyphen), so the echo should work correctly.
14638 lt_compile=`echo "$ac_compile" | $SED \
14639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14641 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014643 (eval "$lt_compile" 2>out/conftest.err)
14644 ac_status=$?
14645 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014647 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14648 then
14649 # The compiler can only warn and ignore the option if not recognized
14650 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014652 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14653 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14654 lt_cv_prog_compiler_c_o=yes
14655 fi
14656 fi
14657 chmod u+w . 2>&5
14658 $RM conftest*
14659 # SGI C++ compiler will create directory out/ii_files/ for
14660 # template instantiation
14661 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14662 $RM out/* && rmdir out
14663 cd ..
14664 $RM -r conftest
14665 $RM conftest*
14666
14667fi
14668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14669$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14670
14671
14672
14673
14674
14675
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14677$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014678if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014679 $as_echo_n "(cached) " >&6
14680else
14681 lt_cv_prog_compiler_c_o=no
14682 $RM -r conftest 2>/dev/null
14683 mkdir conftest
14684 cd conftest
14685 mkdir out
14686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14687
14688 lt_compiler_flag="-o out/conftest2.$ac_objext"
14689 # Insert the option either (1) after the last *FLAGS variable, or
14690 # (2) before a word containing "conftest.", or (3) at the end.
14691 # Note that $ac_compile itself does not contain backslashes and begins
14692 # with a dollar sign (not a hyphen), so the echo should work correctly.
14693 lt_compile=`echo "$ac_compile" | $SED \
14694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14696 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014698 (eval "$lt_compile" 2>out/conftest.err)
14699 ac_status=$?
14700 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014702 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14703 then
14704 # The compiler can only warn and ignore the option if not recognized
14705 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014706 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014707 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14708 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14709 lt_cv_prog_compiler_c_o=yes
14710 fi
14711 fi
14712 chmod u+w . 2>&5
14713 $RM conftest*
14714 # SGI C++ compiler will create directory out/ii_files/ for
14715 # template instantiation
14716 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14717 $RM out/* && rmdir out
14718 cd ..
14719 $RM -r conftest
14720 $RM conftest*
14721
14722fi
14723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14724$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14725
14726
14727
14728
14729hard_links="nottested"
14730if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14731 # do not overwrite the value of need_locks provided by the user
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14733$as_echo_n "checking if we can lock with hard links... " >&6; }
14734 hard_links=yes
14735 $RM conftest*
14736 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14737 touch conftest.a
14738 ln conftest.a conftest.b 2>&5 || hard_links=no
14739 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14741$as_echo "$hard_links" >&6; }
14742 if test "$hard_links" = no; then
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14744$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14745 need_locks=warn
14746 fi
14747else
14748 need_locks=no
14749fi
14750
14751
14752
14753
14754
14755
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14757$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14758
14759 runpath_var=
14760 allow_undefined_flag=
14761 always_export_symbols=no
14762 archive_cmds=
14763 archive_expsym_cmds=
14764 compiler_needs_object=no
14765 enable_shared_with_static_runtimes=no
14766 export_dynamic_flag_spec=
14767 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14768 hardcode_automatic=no
14769 hardcode_direct=no
14770 hardcode_direct_absolute=no
14771 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014772 hardcode_libdir_separator=
14773 hardcode_minus_L=no
14774 hardcode_shlibpath_var=unsupported
14775 inherit_rpath=no
14776 link_all_deplibs=unknown
14777 module_cmds=
14778 module_expsym_cmds=
14779 old_archive_from_new_cmds=
14780 old_archive_from_expsyms_cmds=
14781 thread_safe_flag_spec=
14782 whole_archive_flag_spec=
14783 # include_expsyms should be a list of space-separated symbols to be *always*
14784 # included in the symbol list
14785 include_expsyms=
14786 # exclude_expsyms can be an extended regexp of symbols to exclude
14787 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14788 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14789 # as well as any symbol that contains `d'.
14790 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14791 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14792 # platforms (ab)use it in PIC code, but their linkers get confused if
14793 # the symbol is explicitly referenced. Since portable code cannot
14794 # rely on this symbol name, it's probably fine to never include it in
14795 # preloaded symbol tables.
14796 # Exclude shared library initialization/finalization symbols.
14797 extract_expsyms_cmds=
14798
14799 case $host_os in
14800 cygwin* | mingw* | pw32* | cegcc*)
14801 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14802 # When not using gcc, we currently assume that we are using
14803 # Microsoft Visual C++.
14804 if test "$GCC" != yes; then
14805 with_gnu_ld=no
14806 fi
14807 ;;
14808 interix*)
14809 # we just hope/assume this is gcc and not c89 (= MSVC++)
14810 with_gnu_ld=yes
14811 ;;
14812 openbsd*)
14813 with_gnu_ld=no
14814 ;;
14815 esac
14816
14817 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014818
14819 # On some targets, GNU ld is compatible enough with the native linker
14820 # that we're better off using the native interface for both.
14821 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014822 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014823 case $host_os in
14824 aix*)
14825 # The AIX port of GNU ld has always aspired to compatibility
14826 # with the native linker. However, as the warning in the GNU ld
14827 # block says, versions before 2.19.5* couldn't really create working
14828 # shared libraries, regardless of the interface used.
14829 case `$LD -v 2>&1` in
14830 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14831 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14832 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14833 *)
14834 lt_use_gnu_ld_interface=yes
14835 ;;
14836 esac
14837 ;;
14838 *)
14839 lt_use_gnu_ld_interface=yes
14840 ;;
14841 esac
14842 fi
14843
14844 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014845 # If archive_cmds runs LD, not CC, wlarc should be empty
14846 wlarc='${wl}'
14847
14848 # Set some defaults for GNU ld with shared library support. These
14849 # are reset later if shared libraries are not supported. Putting them
14850 # here allows them to be overridden if necessary.
14851 runpath_var=LD_RUN_PATH
14852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14853 export_dynamic_flag_spec='${wl}--export-dynamic'
14854 # ancient GNU ld didn't support --whole-archive et. al.
14855 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14856 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14857 else
14858 whole_archive_flag_spec=
14859 fi
14860 supports_anon_versioning=no
14861 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014862 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014863 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14864 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14865 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14866 *\ 2.11.*) ;; # other 2.11 versions
14867 *) supports_anon_versioning=yes ;;
14868 esac
14869
14870 # See if GNU ld supports shared libraries.
14871 case $host_os in
14872 aix[3-9]*)
14873 # On AIX/PPC, the GNU linker is very broken
14874 if test "$host_cpu" != ia64; then
14875 ld_shlibs=no
14876 cat <<_LT_EOF 1>&2
14877
cristy0c60a692010-11-04 01:09:47 +000014878*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014879*** to be unable to reliably create shared libraries on AIX.
14880*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014881*** really care for shared libraries, you may want to install binutils
14882*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14883*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014884
14885_LT_EOF
14886 fi
14887 ;;
14888
14889 amigaos*)
14890 case $host_cpu in
14891 powerpc)
14892 # see comment about AmigaOS4 .so support
14893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14894 archive_expsym_cmds=''
14895 ;;
14896 m68k)
14897 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)'
14898 hardcode_libdir_flag_spec='-L$libdir'
14899 hardcode_minus_L=yes
14900 ;;
14901 esac
14902 ;;
14903
14904 beos*)
14905 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14906 allow_undefined_flag=unsupported
14907 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14908 # support --undefined. This deserves some investigation. FIXME
14909 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14910 else
14911 ld_shlibs=no
14912 fi
14913 ;;
14914
14915 cygwin* | mingw* | pw32* | cegcc*)
14916 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14917 # as there is no search path for DLLs.
14918 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014919 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014920 allow_undefined_flag=unsupported
14921 always_export_symbols=no
14922 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014923 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'
14924 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 +000014925
14926 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14928 # If the export-symbols file already is a .def file (1st line
14929 # is EXPORTS), use it as is; otherwise, prepend...
14930 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14931 cp $export_symbols $output_objdir/$soname.def;
14932 else
14933 echo EXPORTS > $output_objdir/$soname.def;
14934 cat $export_symbols >> $output_objdir/$soname.def;
14935 fi~
14936 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14937 else
14938 ld_shlibs=no
14939 fi
14940 ;;
14941
cristy0c60a692010-11-04 01:09:47 +000014942 haiku*)
14943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14944 link_all_deplibs=yes
14945 ;;
14946
cristy73bd4a52010-10-05 11:24:23 +000014947 interix[3-9]*)
14948 hardcode_direct=no
14949 hardcode_shlibpath_var=no
14950 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14951 export_dynamic_flag_spec='${wl}-E'
14952 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14953 # Instead, shared libraries are loaded at an image base (0x10000000 by
14954 # default) and relocated if they conflict, which is a slow very memory
14955 # consuming and fragmenting process. To avoid this, we pick a random,
14956 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14957 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14958 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14959 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'
14960 ;;
14961
cristy0c60a692010-11-04 01:09:47 +000014962 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014963 tmp_diet=no
14964 if test "$host_os" = linux-dietlibc; then
14965 case $cc_basename in
14966 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14967 esac
14968 fi
14969 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14970 && test "$tmp_diet" = no
14971 then
cristyda16f162011-02-19 23:52:17 +000014972 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014973 tmp_sharedflag='-shared'
14974 case $cc_basename,$host_cpu in
14975 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014976 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 +000014977 tmp_addflag=' $pic_flag'
14978 ;;
cristy0c60a692010-11-04 01:09:47 +000014979 pgf77* | pgf90* | pgf95* | pgfortran*)
14980 # Portland Group f77 and f90 compilers
14981 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 +000014982 tmp_addflag=' $pic_flag -Mnomain' ;;
14983 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14984 tmp_addflag=' -i_dynamic' ;;
14985 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14986 tmp_addflag=' -i_dynamic -nofor_main' ;;
14987 ifc* | ifort*) # Intel Fortran compiler
14988 tmp_addflag=' -nofor_main' ;;
14989 lf95*) # Lahey Fortran 8.1
14990 whole_archive_flag_spec=
14991 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014992 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014993 tmp_sharedflag='-qmkshrobj'
14994 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014995 nvcc*) # Cuda Compiler Driver 2.2
14996 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'
14997 compiler_needs_object=yes
14998 ;;
cristy73bd4a52010-10-05 11:24:23 +000014999 esac
15000 case `$CC -V 2>&1 | sed 5q` in
15001 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015002 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 +000015003 compiler_needs_object=yes
15004 tmp_sharedflag='-G' ;;
15005 *Sun\ F*) # Sun Fortran 8.3
15006 tmp_sharedflag='-G' ;;
15007 esac
15008 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15009
15010 if test "x$supports_anon_versioning" = xyes; then
15011 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15012 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15013 echo "local: *; };" >> $output_objdir/$libname.ver~
15014 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15015 fi
15016
15017 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015018 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015019 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15020 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015022 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015023 if test "x$supports_anon_versioning" = xyes; then
15024 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15025 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15026 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015027 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015028 fi
15029 ;;
15030 esac
15031 else
15032 ld_shlibs=no
15033 fi
15034 ;;
15035
15036 netbsd*)
15037 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15038 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15039 wlarc=
15040 else
cristyda16f162011-02-19 23:52:17 +000015041 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15042 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 +000015043 fi
15044 ;;
15045
15046 solaris*)
15047 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15048 ld_shlibs=no
15049 cat <<_LT_EOF 1>&2
15050
15051*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15052*** create shared libraries on Solaris systems. Therefore, libtool
15053*** is disabling shared libraries support. We urge you to upgrade GNU
15054*** binutils to release 2.9.1 or newer. Another option is to modify
15055*** your PATH or compiler configuration so that the native linker is
15056*** used, and then restart.
15057
15058_LT_EOF
15059 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015060 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15061 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 +000015062 else
15063 ld_shlibs=no
15064 fi
15065 ;;
15066
15067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15068 case `$LD -v 2>&1` in
15069 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15070 ld_shlibs=no
15071 cat <<_LT_EOF 1>&2
15072
15073*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15074*** reliably create shared libraries on SCO systems. Therefore, libtool
15075*** is disabling shared libraries support. We urge you to upgrade GNU
15076*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15077*** your PATH or compiler configuration so that the native linker is
15078*** used, and then restart.
15079
15080_LT_EOF
15081 ;;
15082 *)
15083 # For security reasons, it is highly recommended that you always
15084 # use absolute paths for naming shared libraries, and exclude the
15085 # DT_RUNPATH tag from executables and libraries. But doing so
15086 # requires that you compile everything twice, which is a pain.
15087 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15090 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15091 else
15092 ld_shlibs=no
15093 fi
15094 ;;
15095 esac
15096 ;;
15097
15098 sunos4*)
15099 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15100 wlarc=
15101 hardcode_direct=yes
15102 hardcode_shlibpath_var=no
15103 ;;
15104
15105 *)
15106 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015107 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15108 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 +000015109 else
15110 ld_shlibs=no
15111 fi
15112 ;;
15113 esac
15114
15115 if test "$ld_shlibs" = no; then
15116 runpath_var=
15117 hardcode_libdir_flag_spec=
15118 export_dynamic_flag_spec=
15119 whole_archive_flag_spec=
15120 fi
15121 else
15122 # PORTME fill in a description of your system's linker (not GNU ld)
15123 case $host_os in
15124 aix3*)
15125 allow_undefined_flag=unsupported
15126 always_export_symbols=yes
15127 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'
15128 # Note: this linker hardcodes the directories in LIBPATH if there
15129 # are no directories specified by -L.
15130 hardcode_minus_L=yes
15131 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15132 # Neither direct hardcoding nor static linking is supported with a
15133 # broken collect2.
15134 hardcode_direct=unsupported
15135 fi
15136 ;;
15137
15138 aix[4-9]*)
15139 if test "$host_cpu" = ia64; then
15140 # On IA64, the linker does run time linking by default, so we don't
15141 # have to do anything special.
15142 aix_use_runtimelinking=no
15143 exp_sym_flag='-Bexport'
15144 no_entry_flag=""
15145 else
15146 # If we're using GNU nm, then we don't want the "-C" option.
15147 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015148 # Also, AIX nm treats weak defined symbols like other global
15149 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015150 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015151 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 +000015152 else
15153 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'
15154 fi
15155 aix_use_runtimelinking=no
15156
15157 # Test if we are trying to use run time linking or normal
15158 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15159 # need to do runtime linking.
15160 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15161 for ld_flag in $LDFLAGS; do
15162 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15163 aix_use_runtimelinking=yes
15164 break
15165 fi
15166 done
15167 ;;
15168 esac
15169
15170 exp_sym_flag='-bexport'
15171 no_entry_flag='-bnoentry'
15172 fi
15173
15174 # When large executables or shared objects are built, AIX ld can
15175 # have problems creating the table of contents. If linking a library
15176 # or program results in "error TOC overflow" add -mminimal-toc to
15177 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15178 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15179
15180 archive_cmds=''
15181 hardcode_direct=yes
15182 hardcode_direct_absolute=yes
15183 hardcode_libdir_separator=':'
15184 link_all_deplibs=yes
15185 file_list_spec='${wl}-f,'
15186
15187 if test "$GCC" = yes; then
15188 case $host_os in aix4.[012]|aix4.[012].*)
15189 # We only want to do this on AIX 4.2 and lower, the check
15190 # below for broken collect2 doesn't work under 4.3+
15191 collect2name=`${CC} -print-prog-name=collect2`
15192 if test -f "$collect2name" &&
15193 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15194 then
15195 # We have reworked collect2
15196 :
15197 else
15198 # We have old collect2
15199 hardcode_direct=unsupported
15200 # It fails to find uninstalled libraries when the uninstalled
15201 # path is not listed in the libpath. Setting hardcode_minus_L
15202 # to unsupported forces relinking
15203 hardcode_minus_L=yes
15204 hardcode_libdir_flag_spec='-L$libdir'
15205 hardcode_libdir_separator=
15206 fi
15207 ;;
15208 esac
15209 shared_flag='-shared'
15210 if test "$aix_use_runtimelinking" = yes; then
15211 shared_flag="$shared_flag "'${wl}-G'
15212 fi
15213 else
15214 # not using gcc
15215 if test "$host_cpu" = ia64; then
15216 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15217 # chokes on -Wl,-G. The following line is correct:
15218 shared_flag='-G'
15219 else
15220 if test "$aix_use_runtimelinking" = yes; then
15221 shared_flag='${wl}-G'
15222 else
15223 shared_flag='${wl}-bM:SRE'
15224 fi
15225 fi
15226 fi
15227
15228 export_dynamic_flag_spec='${wl}-bexpall'
15229 # It seems that -bexpall does not export symbols beginning with
15230 # underscore (_), so it is better to generate a list of symbols to export.
15231 always_export_symbols=yes
15232 if test "$aix_use_runtimelinking" = yes; then
15233 # Warning - without using the other runtime loading flags (-brtl),
15234 # -berok will link without error, but may produce a broken library.
15235 allow_undefined_flag='-berok'
15236 # Determine the default libpath from the value encoded in an
15237 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015238 if test "${lt_cv_aix_libpath+set}" = set; then
15239 aix_libpath=$lt_cv_aix_libpath
15240else
15241 if ${lt_cv_aix_libpath_+:} false; then :
15242 $as_echo_n "(cached) " >&6
15243else
15244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015245/* end confdefs.h. */
15246
15247int
15248main ()
15249{
15250
15251 ;
15252 return 0;
15253}
15254_ACEOF
15255if ac_fn_c_try_link "$LINENO"; then :
15256
cristyda16f162011-02-19 23:52:17 +000015257 lt_aix_libpath_sed='
15258 /Import File Strings/,/^$/ {
15259 /^0/ {
15260 s/^0 *\([^ ]*\) *$/\1/
15261 p
15262 }
15263 }'
15264 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15265 # Check for a 64-bit object if we didn't find anything.
15266 if test -z "$lt_cv_aix_libpath_"; then
15267 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15268 fi
cristy73bd4a52010-10-05 11:24:23 +000015269fi
15270rm -f core conftest.err conftest.$ac_objext \
15271 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015272 if test -z "$lt_cv_aix_libpath_"; then
15273 lt_cv_aix_libpath_="/usr/lib:/lib"
15274 fi
15275
15276fi
15277
15278 aix_libpath=$lt_cv_aix_libpath_
15279fi
cristy73bd4a52010-10-05 11:24:23 +000015280
15281 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015282 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 +000015283 else
15284 if test "$host_cpu" = ia64; then
15285 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15286 allow_undefined_flag="-z nodefs"
15287 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"
15288 else
15289 # Determine the default libpath from the value encoded in an
15290 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015291 if test "${lt_cv_aix_libpath+set}" = set; then
15292 aix_libpath=$lt_cv_aix_libpath
15293else
15294 if ${lt_cv_aix_libpath_+:} false; then :
15295 $as_echo_n "(cached) " >&6
15296else
15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015298/* end confdefs.h. */
15299
15300int
15301main ()
15302{
15303
15304 ;
15305 return 0;
15306}
15307_ACEOF
15308if ac_fn_c_try_link "$LINENO"; then :
15309
cristyda16f162011-02-19 23:52:17 +000015310 lt_aix_libpath_sed='
15311 /Import File Strings/,/^$/ {
15312 /^0/ {
15313 s/^0 *\([^ ]*\) *$/\1/
15314 p
15315 }
15316 }'
15317 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15318 # Check for a 64-bit object if we didn't find anything.
15319 if test -z "$lt_cv_aix_libpath_"; then
15320 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15321 fi
cristy73bd4a52010-10-05 11:24:23 +000015322fi
15323rm -f core conftest.err conftest.$ac_objext \
15324 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015325 if test -z "$lt_cv_aix_libpath_"; then
15326 lt_cv_aix_libpath_="/usr/lib:/lib"
15327 fi
15328
15329fi
15330
15331 aix_libpath=$lt_cv_aix_libpath_
15332fi
cristy73bd4a52010-10-05 11:24:23 +000015333
15334 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15335 # Warning - without using the other run time loading flags,
15336 # -berok will link without error, but may produce a broken library.
15337 no_undefined_flag=' ${wl}-bernotok'
15338 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015339 if test "$with_gnu_ld" = yes; then
15340 # We only use this code for GNU lds that support --whole-archive.
15341 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15342 else
15343 # Exported symbols can be pulled into shared objects from archives
15344 whole_archive_flag_spec='$convenience'
15345 fi
cristy73bd4a52010-10-05 11:24:23 +000015346 archive_cmds_need_lc=yes
15347 # This is similar to how AIX traditionally builds its shared libraries.
15348 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'
15349 fi
15350 fi
15351 ;;
15352
15353 amigaos*)
15354 case $host_cpu in
15355 powerpc)
15356 # see comment about AmigaOS4 .so support
15357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15358 archive_expsym_cmds=''
15359 ;;
15360 m68k)
15361 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)'
15362 hardcode_libdir_flag_spec='-L$libdir'
15363 hardcode_minus_L=yes
15364 ;;
15365 esac
15366 ;;
15367
15368 bsdi[45]*)
15369 export_dynamic_flag_spec=-rdynamic
15370 ;;
15371
15372 cygwin* | mingw* | pw32* | cegcc*)
15373 # When not using gcc, we currently assume that we are using
15374 # Microsoft Visual C++.
15375 # hardcode_libdir_flag_spec is actually meaningless, as there is
15376 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015377 case $cc_basename in
15378 cl*)
15379 # Native MSVC
15380 hardcode_libdir_flag_spec=' '
15381 allow_undefined_flag=unsupported
15382 always_export_symbols=yes
15383 file_list_spec='@'
15384 # Tell ltmain to make .lib files, not .a files.
15385 libext=lib
15386 # Tell ltmain to make .dll files, not .so files.
15387 shrext_cmds=".dll"
15388 # FIXME: Setting linknames here is a bad hack.
15389 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15390 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15391 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15392 else
15393 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15394 fi~
15395 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15396 linknames='
15397 # The linker will not automatically build a static lib if we build a DLL.
15398 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15399 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015400 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015401 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15402 # Don't use ranlib
15403 old_postinstall_cmds='chmod 644 $oldlib'
15404 postlink_cmds='lt_outputfile="@OUTPUT@"~
15405 lt_tool_outputfile="@TOOL_OUTPUT@"~
15406 case $lt_outputfile in
15407 *.exe|*.EXE) ;;
15408 *)
15409 lt_outputfile="$lt_outputfile.exe"
15410 lt_tool_outputfile="$lt_tool_outputfile.exe"
15411 ;;
15412 esac~
15413 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15414 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15415 $RM "$lt_outputfile.manifest";
15416 fi'
15417 ;;
15418 *)
15419 # Assume MSVC wrapper
15420 hardcode_libdir_flag_spec=' '
15421 allow_undefined_flag=unsupported
15422 # Tell ltmain to make .lib files, not .a files.
15423 libext=lib
15424 # Tell ltmain to make .dll files, not .so files.
15425 shrext_cmds=".dll"
15426 # FIXME: Setting linknames here is a bad hack.
15427 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15428 # The linker will automatically build a .lib file if we build a DLL.
15429 old_archive_from_new_cmds='true'
15430 # FIXME: Should let the user specify the lib program.
15431 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15432 enable_shared_with_static_runtimes=yes
15433 ;;
15434 esac
cristy73bd4a52010-10-05 11:24:23 +000015435 ;;
15436
15437 darwin* | rhapsody*)
15438
15439
15440 archive_cmds_need_lc=no
15441 hardcode_direct=no
15442 hardcode_automatic=yes
15443 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015444 if test "$lt_cv_ld_force_load" = "yes"; then
15445 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 +000015446
cristy0c60a692010-11-04 01:09:47 +000015447 else
15448 whole_archive_flag_spec=''
15449 fi
cristy73bd4a52010-10-05 11:24:23 +000015450 link_all_deplibs=yes
15451 allow_undefined_flag="$_lt_dar_allow_undefined"
15452 case $cc_basename in
15453 ifort*) _lt_dar_can_shared=yes ;;
15454 *) _lt_dar_can_shared=$GCC ;;
15455 esac
15456 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015457 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015458 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15459 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15460 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}"
15461 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}"
15462
15463 else
15464 ld_shlibs=no
15465 fi
15466
15467 ;;
15468
15469 dgux*)
15470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15471 hardcode_libdir_flag_spec='-L$libdir'
15472 hardcode_shlibpath_var=no
15473 ;;
15474
cristy73bd4a52010-10-05 11:24:23 +000015475 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15476 # support. Future versions do this automatically, but an explicit c++rt0.o
15477 # does not break anything, and helps significantly (at the cost of a little
15478 # extra space).
15479 freebsd2.2*)
15480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15481 hardcode_libdir_flag_spec='-R$libdir'
15482 hardcode_direct=yes
15483 hardcode_shlibpath_var=no
15484 ;;
15485
15486 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015487 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15489 hardcode_direct=yes
15490 hardcode_minus_L=yes
15491 hardcode_shlibpath_var=no
15492 ;;
15493
15494 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15495 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015497 hardcode_libdir_flag_spec='-R$libdir'
15498 hardcode_direct=yes
15499 hardcode_shlibpath_var=no
15500 ;;
15501
15502 hpux9*)
15503 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015504 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 +000015505 else
15506 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'
15507 fi
15508 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15509 hardcode_libdir_separator=:
15510 hardcode_direct=yes
15511
15512 # hardcode_minus_L: Not really in the search PATH,
15513 # but as the default location of the library.
15514 hardcode_minus_L=yes
15515 export_dynamic_flag_spec='${wl}-E'
15516 ;;
15517
15518 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015519 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015520 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 +000015521 else
15522 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15523 fi
15524 if test "$with_gnu_ld" = no; then
15525 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015526 hardcode_libdir_separator=:
15527 hardcode_direct=yes
15528 hardcode_direct_absolute=yes
15529 export_dynamic_flag_spec='${wl}-E'
15530 # hardcode_minus_L: Not really in the search PATH,
15531 # but as the default location of the library.
15532 hardcode_minus_L=yes
15533 fi
15534 ;;
15535
15536 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015537 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015538 case $host_cpu in
15539 hppa*64*)
15540 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15541 ;;
15542 ia64*)
cristyda16f162011-02-19 23:52:17 +000015543 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015544 ;;
15545 *)
cristyda16f162011-02-19 23:52:17 +000015546 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 +000015547 ;;
15548 esac
15549 else
15550 case $host_cpu in
15551 hppa*64*)
15552 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15553 ;;
15554 ia64*)
15555 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15556 ;;
15557 *)
cristy0c60a692010-11-04 01:09:47 +000015558
15559 # Older versions of the 11.00 compiler do not understand -b yet
15560 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15562$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015563if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015564 $as_echo_n "(cached) " >&6
15565else
15566 lt_cv_prog_compiler__b=no
15567 save_LDFLAGS="$LDFLAGS"
15568 LDFLAGS="$LDFLAGS -b"
15569 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15570 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15571 # The linker can only warn and ignore the option if not recognized
15572 # So say no if there are warnings
15573 if test -s conftest.err; then
15574 # Append any errors to the config.log.
15575 cat conftest.err 1>&5
15576 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15578 if diff conftest.exp conftest.er2 >/dev/null; then
15579 lt_cv_prog_compiler__b=yes
15580 fi
15581 else
15582 lt_cv_prog_compiler__b=yes
15583 fi
15584 fi
15585 $RM -r conftest*
15586 LDFLAGS="$save_LDFLAGS"
15587
15588fi
15589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15590$as_echo "$lt_cv_prog_compiler__b" >&6; }
15591
15592if test x"$lt_cv_prog_compiler__b" = xyes; then
15593 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15594else
15595 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15596fi
15597
cristy73bd4a52010-10-05 11:24:23 +000015598 ;;
15599 esac
15600 fi
15601 if test "$with_gnu_ld" = no; then
15602 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15603 hardcode_libdir_separator=:
15604
15605 case $host_cpu in
15606 hppa*64*|ia64*)
15607 hardcode_direct=no
15608 hardcode_shlibpath_var=no
15609 ;;
15610 *)
15611 hardcode_direct=yes
15612 hardcode_direct_absolute=yes
15613 export_dynamic_flag_spec='${wl}-E'
15614
15615 # hardcode_minus_L: Not really in the search PATH,
15616 # but as the default location of the library.
15617 hardcode_minus_L=yes
15618 ;;
15619 esac
15620 fi
15621 ;;
15622
15623 irix5* | irix6* | nonstopux*)
15624 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015625 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 +000015626 # Try to use the -exported_symbol ld option, if it does not
15627 # work, assume that -exports_file does not work either and
15628 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015629 # This should be the same for all languages, so no per-tag cache variable.
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15631$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15632if ${lt_cv_irix_exported_symbol+:} false; then :
15633 $as_echo_n "(cached) " >&6
15634else
15635 save_LDFLAGS="$LDFLAGS"
15636 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015638/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015639int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015640_ACEOF
15641if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015642 lt_cv_irix_exported_symbol=yes
15643else
15644 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015645fi
15646rm -f core conftest.err conftest.$ac_objext \
15647 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015648 LDFLAGS="$save_LDFLAGS"
15649fi
15650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15651$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15652 if test "$lt_cv_irix_exported_symbol" = yes; then
15653 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'
15654 fi
cristy73bd4a52010-10-05 11:24:23 +000015655 else
cristy0c60a692010-11-04 01:09:47 +000015656 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'
15657 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 +000015658 fi
15659 archive_cmds_need_lc='no'
15660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15661 hardcode_libdir_separator=:
15662 inherit_rpath=yes
15663 link_all_deplibs=yes
15664 ;;
15665
15666 netbsd*)
15667 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15669 else
15670 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15671 fi
15672 hardcode_libdir_flag_spec='-R$libdir'
15673 hardcode_direct=yes
15674 hardcode_shlibpath_var=no
15675 ;;
15676
15677 newsos6)
15678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15679 hardcode_direct=yes
15680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15681 hardcode_libdir_separator=:
15682 hardcode_shlibpath_var=no
15683 ;;
15684
15685 *nto* | *qnx*)
15686 ;;
15687
15688 openbsd*)
15689 if test -f /usr/libexec/ld.so; then
15690 hardcode_direct=yes
15691 hardcode_shlibpath_var=no
15692 hardcode_direct_absolute=yes
15693 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15694 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15695 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15696 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15697 export_dynamic_flag_spec='${wl}-E'
15698 else
15699 case $host_os in
15700 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15702 hardcode_libdir_flag_spec='-R$libdir'
15703 ;;
15704 *)
15705 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15706 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15707 ;;
15708 esac
15709 fi
15710 else
15711 ld_shlibs=no
15712 fi
15713 ;;
15714
15715 os2*)
15716 hardcode_libdir_flag_spec='-L$libdir'
15717 hardcode_minus_L=yes
15718 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015719 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 +000015720 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15721 ;;
15722
15723 osf3*)
15724 if test "$GCC" = yes; then
15725 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015726 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 +000015727 else
15728 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015729 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 +000015730 fi
15731 archive_cmds_need_lc='no'
15732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15733 hardcode_libdir_separator=:
15734 ;;
15735
15736 osf4* | osf5*) # as osf3* with the addition of -msym flag
15737 if test "$GCC" = yes; then
15738 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015739 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 +000015740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15741 else
15742 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015743 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 +000015744 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 +000015745 $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 +000015746
15747 # Both c and cxx compiler support -rpath directly
15748 hardcode_libdir_flag_spec='-rpath $libdir'
15749 fi
15750 archive_cmds_need_lc='no'
15751 hardcode_libdir_separator=:
15752 ;;
15753
15754 solaris*)
15755 no_undefined_flag=' -z defs'
15756 if test "$GCC" = yes; then
15757 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015758 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 +000015759 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 +000015760 $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 +000015761 else
15762 case `$CC -V 2>&1` in
15763 *"Compilers 5.0"*)
15764 wlarc=''
15765 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15766 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15767 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15768 ;;
15769 *)
15770 wlarc='${wl}'
15771 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15772 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15773 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15774 ;;
15775 esac
15776 fi
15777 hardcode_libdir_flag_spec='-R$libdir'
15778 hardcode_shlibpath_var=no
15779 case $host_os in
15780 solaris2.[0-5] | solaris2.[0-5].*) ;;
15781 *)
15782 # The compiler driver will combine and reorder linker options,
15783 # but understands `-z linker_flag'. GCC discards it without `$wl',
15784 # but is careful enough not to reorder.
15785 # Supported since Solaris 2.6 (maybe 2.5.1?)
15786 if test "$GCC" = yes; then
15787 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15788 else
15789 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15790 fi
15791 ;;
15792 esac
15793 link_all_deplibs=yes
15794 ;;
15795
15796 sunos4*)
15797 if test "x$host_vendor" = xsequent; then
15798 # Use $CC to link under sequent, because it throws in some extra .o
15799 # files that make .init and .fini sections work.
15800 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15801 else
15802 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15803 fi
15804 hardcode_libdir_flag_spec='-L$libdir'
15805 hardcode_direct=yes
15806 hardcode_minus_L=yes
15807 hardcode_shlibpath_var=no
15808 ;;
15809
15810 sysv4)
15811 case $host_vendor in
15812 sni)
15813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15814 hardcode_direct=yes # is this really true???
15815 ;;
15816 siemens)
15817 ## LD is ld it makes a PLAMLIB
15818 ## CC just makes a GrossModule.
15819 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15820 reload_cmds='$CC -r -o $output$reload_objs'
15821 hardcode_direct=no
15822 ;;
15823 motorola)
15824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15825 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15826 ;;
15827 esac
15828 runpath_var='LD_RUN_PATH'
15829 hardcode_shlibpath_var=no
15830 ;;
15831
15832 sysv4.3*)
15833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15834 hardcode_shlibpath_var=no
15835 export_dynamic_flag_spec='-Bexport'
15836 ;;
15837
15838 sysv4*MP*)
15839 if test -d /usr/nec; then
15840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15841 hardcode_shlibpath_var=no
15842 runpath_var=LD_RUN_PATH
15843 hardcode_runpath_var=yes
15844 ld_shlibs=yes
15845 fi
15846 ;;
15847
15848 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15849 no_undefined_flag='${wl}-z,text'
15850 archive_cmds_need_lc=no
15851 hardcode_shlibpath_var=no
15852 runpath_var='LD_RUN_PATH'
15853
15854 if test "$GCC" = yes; then
15855 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15856 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15857 else
15858 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15859 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15860 fi
15861 ;;
15862
15863 sysv5* | sco3.2v5* | sco5v6*)
15864 # Note: We can NOT use -z defs as we might desire, because we do not
15865 # link with -lc, and that would cause any symbols used from libc to
15866 # always be unresolved, which means just about no library would
15867 # ever link correctly. If we're not using GNU ld we use -z text
15868 # though, which does catch some bad symbols but isn't as heavy-handed
15869 # as -z defs.
15870 no_undefined_flag='${wl}-z,text'
15871 allow_undefined_flag='${wl}-z,nodefs'
15872 archive_cmds_need_lc=no
15873 hardcode_shlibpath_var=no
15874 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15875 hardcode_libdir_separator=':'
15876 link_all_deplibs=yes
15877 export_dynamic_flag_spec='${wl}-Bexport'
15878 runpath_var='LD_RUN_PATH'
15879
15880 if test "$GCC" = yes; then
15881 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15882 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15883 else
15884 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15885 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15886 fi
15887 ;;
15888
15889 uts4*)
15890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15891 hardcode_libdir_flag_spec='-L$libdir'
15892 hardcode_shlibpath_var=no
15893 ;;
15894
15895 *)
15896 ld_shlibs=no
15897 ;;
15898 esac
15899
15900 if test x$host_vendor = xsni; then
15901 case $host in
15902 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15903 export_dynamic_flag_spec='${wl}-Blargedynsym'
15904 ;;
15905 esac
15906 fi
15907 fi
15908
15909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15910$as_echo "$ld_shlibs" >&6; }
15911test "$ld_shlibs" = no && can_build_shared=no
15912
15913with_gnu_ld=$with_gnu_ld
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929#
15930# Do we need to explicitly link libc?
15931#
15932case "x$archive_cmds_need_lc" in
15933x|xyes)
15934 # Assume -lc should be added
15935 archive_cmds_need_lc=yes
15936
15937 if test "$enable_shared" = yes && test "$GCC" = yes; then
15938 case $archive_cmds in
15939 *'~'*)
15940 # FIXME: we may have to deal with multi-command sequences.
15941 ;;
15942 '$CC '*)
15943 # Test whether the compiler implicitly links with -lc since on some
15944 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15945 # to ld, don't add -lc before -lgcc.
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15947$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015948if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015949 $as_echo_n "(cached) " >&6
15950else
15951 $RM conftest*
15952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015953
cristy0c60a692010-11-04 01:09:47 +000015954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015955 (eval $ac_compile) 2>&5
15956 ac_status=$?
15957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15958 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015959 soname=conftest
15960 lib=conftest
15961 libobjs=conftest.$ac_objext
15962 deplibs=
15963 wl=$lt_prog_compiler_wl
15964 pic_flag=$lt_prog_compiler_pic
15965 compiler_flags=-v
15966 linker_flags=-v
15967 verstring=
15968 output_objdir=.
15969 libname=conftest
15970 lt_save_allow_undefined_flag=$allow_undefined_flag
15971 allow_undefined_flag=
15972 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 +000015973 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15974 ac_status=$?
15975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15976 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015977 then
15978 lt_cv_archive_cmds_need_lc=no
15979 else
15980 lt_cv_archive_cmds_need_lc=yes
15981 fi
15982 allow_undefined_flag=$lt_save_allow_undefined_flag
15983 else
15984 cat conftest.err 1>&5
15985 fi
15986 $RM conftest*
15987
15988fi
15989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15990$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15991 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015992 ;;
15993 esac
15994 fi
15995 ;;
15996esac
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
cristy73bd4a52010-10-05 11:24:23 +000016149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16150$as_echo_n "checking dynamic linker characteristics... " >&6; }
16151
16152if test "$GCC" = yes; then
16153 case $host_os in
16154 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16155 *) lt_awk_arg="/^libraries:/" ;;
16156 esac
cristy0c60a692010-11-04 01:09:47 +000016157 case $host_os in
16158 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16159 *) lt_sed_strip_eq="s,=/,/,g" ;;
16160 esac
16161 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16162 case $lt_search_path_spec in
16163 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016164 # if the path contains ";" then we assume it to be the separator
16165 # otherwise default to the standard path separator (i.e. ":") - it is
16166 # assumed that no part of a normal pathname contains ";" but that should
16167 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016168 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16169 ;;
16170 *)
16171 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16172 ;;
16173 esac
cristy73bd4a52010-10-05 11:24:23 +000016174 # Ok, now we have the path, separated by spaces, we can step through it
16175 # and add multilib dir if necessary.
16176 lt_tmp_lt_search_path_spec=
16177 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16178 for lt_sys_path in $lt_search_path_spec; do
16179 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16180 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16181 else
16182 test -d "$lt_sys_path" && \
16183 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16184 fi
16185 done
cristy0c60a692010-11-04 01:09:47 +000016186 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016187BEGIN {RS=" "; FS="/|\n";} {
16188 lt_foo="";
16189 lt_count=0;
16190 for (lt_i = NF; lt_i > 0; lt_i--) {
16191 if ($lt_i != "" && $lt_i != ".") {
16192 if ($lt_i == "..") {
16193 lt_count++;
16194 } else {
16195 if (lt_count == 0) {
16196 lt_foo="/" $lt_i lt_foo;
16197 } else {
16198 lt_count--;
16199 }
16200 }
16201 }
16202 }
16203 if (lt_foo != "") { lt_freq[lt_foo]++; }
16204 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16205}'`
cristy0c60a692010-11-04 01:09:47 +000016206 # AWK program above erroneously prepends '/' to C:/dos/paths
16207 # for these hosts.
16208 case $host_os in
16209 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16210 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16211 esac
16212 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016213else
16214 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16215fi
16216library_names_spec=
16217libname_spec='lib$name'
16218soname_spec=
16219shrext_cmds=".so"
16220postinstall_cmds=
16221postuninstall_cmds=
16222finish_cmds=
16223finish_eval=
16224shlibpath_var=
16225shlibpath_overrides_runpath=unknown
16226version_type=none
16227dynamic_linker="$host_os ld.so"
16228sys_lib_dlsearch_path_spec="/lib /usr/lib"
16229need_lib_prefix=unknown
16230hardcode_into_libs=no
16231
16232# when you set need_version to no, make sure it does not cause -set_version
16233# flags to be left without arguments
16234need_version=unknown
16235
16236case $host_os in
16237aix3*)
cristy99bd5232011-12-07 14:38:20 +000016238 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16240 shlibpath_var=LIBPATH
16241
16242 # AIX 3 has no versioning support, so we append a major version to the name.
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 ;;
16245
16246aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016247 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016248 need_lib_prefix=no
16249 need_version=no
16250 hardcode_into_libs=yes
16251 if test "$host_cpu" = ia64; then
16252 # AIX 5 supports IA64
16253 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16254 shlibpath_var=LD_LIBRARY_PATH
16255 else
16256 # With GCC up to 2.95.x, collect2 would create an import file
16257 # for dependence libraries. The import file would start with
16258 # the line `#! .'. This would cause the generated library to
16259 # depend on `.', always an invalid library. This was fixed in
16260 # development snapshots of GCC prior to 3.0.
16261 case $host_os in
16262 aix4 | aix4.[01] | aix4.[01].*)
16263 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16264 echo ' yes '
16265 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16266 :
16267 else
16268 can_build_shared=no
16269 fi
16270 ;;
16271 esac
16272 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16273 # soname into executable. Probably we can add versioning support to
16274 # collect2, so additional links can be useful in future.
16275 if test "$aix_use_runtimelinking" = yes; then
16276 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16277 # instead of lib<name>.a to let people know that these are not
16278 # typical AIX shared libraries.
16279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280 else
16281 # We preserve .a as extension for shared libraries through AIX4.2
16282 # and later when we are not doing run time linking.
16283 library_names_spec='${libname}${release}.a $libname.a'
16284 soname_spec='${libname}${release}${shared_ext}$major'
16285 fi
16286 shlibpath_var=LIBPATH
16287 fi
16288 ;;
16289
16290amigaos*)
16291 case $host_cpu in
16292 powerpc)
16293 # Since July 2007 AmigaOS4 officially supports .so libraries.
16294 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296 ;;
16297 m68k)
16298 library_names_spec='$libname.ixlibrary $libname.a'
16299 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016300 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 +000016301 ;;
16302 esac
16303 ;;
16304
16305beos*)
16306 library_names_spec='${libname}${shared_ext}'
16307 dynamic_linker="$host_os ld.so"
16308 shlibpath_var=LIBRARY_PATH
16309 ;;
16310
16311bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016312 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016313 need_version=no
16314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16315 soname_spec='${libname}${release}${shared_ext}$major'
16316 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16317 shlibpath_var=LD_LIBRARY_PATH
16318 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16319 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16320 # the default ld.so.conf also contains /usr/contrib/lib and
16321 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16322 # libtool to hard-code these into programs
16323 ;;
16324
16325cygwin* | mingw* | pw32* | cegcc*)
16326 version_type=windows
16327 shrext_cmds=".dll"
16328 need_version=no
16329 need_lib_prefix=no
16330
cristyda16f162011-02-19 23:52:17 +000016331 case $GCC,$cc_basename in
16332 yes,*)
16333 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016334 library_names_spec='$libname.dll.a'
16335 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16336 postinstall_cmds='base_file=`basename \${file}`~
16337 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16338 dldir=$destdir/`dirname \$dlpath`~
16339 test -d \$dldir || mkdir -p \$dldir~
16340 $install_prog $dir/$dlname \$dldir/$dlname~
16341 chmod a+x \$dldir/$dlname~
16342 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16343 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16344 fi'
16345 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16346 dlpath=$dir/\$dldll~
16347 $RM \$dlpath'
16348 shlibpath_overrides_runpath=yes
16349
16350 case $host_os in
16351 cygwin*)
16352 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16353 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016354
16355 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016356 ;;
16357 mingw* | cegcc*)
16358 # MinGW DLLs use traditional 'lib' prefix
16359 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016360 ;;
16361 pw32*)
16362 # pw32 DLLs use 'pw' prefix rather than 'lib'
16363 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16364 ;;
16365 esac
cristyda16f162011-02-19 23:52:17 +000016366 dynamic_linker='Win32 ld.exe'
16367 ;;
16368
16369 *,cl*)
16370 # Native MSVC
16371 libname_spec='$name'
16372 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16373 library_names_spec='${libname}.dll.lib'
16374
16375 case $build_os in
16376 mingw*)
16377 sys_lib_search_path_spec=
16378 lt_save_ifs=$IFS
16379 IFS=';'
16380 for lt_path in $LIB
16381 do
16382 IFS=$lt_save_ifs
16383 # Let DOS variable expansion print the short 8.3 style file name.
16384 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16385 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16386 done
16387 IFS=$lt_save_ifs
16388 # Convert to MSYS style.
16389 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16390 ;;
16391 cygwin*)
16392 # Convert to unix form, then to dos form, then back to unix form
16393 # but this time dos style (no spaces!) so that the unix form looks
16394 # like /cygdrive/c/PROGRA~1:/cygdr...
16395 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16396 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16397 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16398 ;;
16399 *)
16400 sys_lib_search_path_spec="$LIB"
16401 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16402 # It is most probably a Windows format PATH.
16403 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16404 else
16405 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16406 fi
16407 # FIXME: find the short name or the path components, as spaces are
16408 # common. (e.g. "Program Files" -> "PROGRA~1")
16409 ;;
16410 esac
16411
16412 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16413 postinstall_cmds='base_file=`basename \${file}`~
16414 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16415 dldir=$destdir/`dirname \$dlpath`~
16416 test -d \$dldir || mkdir -p \$dldir~
16417 $install_prog $dir/$dlname \$dldir/$dlname'
16418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16419 dlpath=$dir/\$dldll~
16420 $RM \$dlpath'
16421 shlibpath_overrides_runpath=yes
16422 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016423 ;;
16424
16425 *)
cristyda16f162011-02-19 23:52:17 +000016426 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016427 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016428 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016429 ;;
16430 esac
cristy73bd4a52010-10-05 11:24:23 +000016431 # FIXME: first we should search . and the directory the executable is in
16432 shlibpath_var=PATH
16433 ;;
16434
16435darwin* | rhapsody*)
16436 dynamic_linker="$host_os dyld"
16437 version_type=darwin
16438 need_lib_prefix=no
16439 need_version=no
16440 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16441 soname_spec='${libname}${release}${major}$shared_ext'
16442 shlibpath_overrides_runpath=yes
16443 shlibpath_var=DYLD_LIBRARY_PATH
16444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16445
16446 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16448 ;;
16449
16450dgux*)
cristy99bd5232011-12-07 14:38:20 +000016451 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016452 need_lib_prefix=no
16453 need_version=no
16454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16455 soname_spec='${libname}${release}${shared_ext}$major'
16456 shlibpath_var=LD_LIBRARY_PATH
16457 ;;
16458
cristy73bd4a52010-10-05 11:24:23 +000016459freebsd* | dragonfly*)
16460 # DragonFly does not have aout. When/if they implement a new
16461 # versioning mechanism, adjust this.
16462 if test -x /usr/bin/objformat; then
16463 objformat=`/usr/bin/objformat`
16464 else
16465 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016466 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016467 *) objformat=elf ;;
16468 esac
16469 fi
16470 version_type=freebsd-$objformat
16471 case $version_type in
16472 freebsd-elf*)
16473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16474 need_version=no
16475 need_lib_prefix=no
16476 ;;
16477 freebsd-*)
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16479 need_version=yes
16480 ;;
16481 esac
16482 shlibpath_var=LD_LIBRARY_PATH
16483 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016484 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016485 shlibpath_overrides_runpath=yes
16486 ;;
16487 freebsd3.[01]* | freebsdelf3.[01]*)
16488 shlibpath_overrides_runpath=yes
16489 hardcode_into_libs=yes
16490 ;;
16491 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16492 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16493 shlibpath_overrides_runpath=no
16494 hardcode_into_libs=yes
16495 ;;
16496 *) # from 4.6 on, and DragonFly
16497 shlibpath_overrides_runpath=yes
16498 hardcode_into_libs=yes
16499 ;;
16500 esac
16501 ;;
16502
16503gnu*)
cristy99bd5232011-12-07 14:38:20 +000016504 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016505 need_lib_prefix=no
16506 need_version=no
16507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16508 soname_spec='${libname}${release}${shared_ext}$major'
16509 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016510 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016511 hardcode_into_libs=yes
16512 ;;
16513
cristy0c60a692010-11-04 01:09:47 +000016514haiku*)
cristy99bd5232011-12-07 14:38:20 +000016515 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016516 need_lib_prefix=no
16517 need_version=no
16518 dynamic_linker="$host_os runtime_loader"
16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16520 soname_spec='${libname}${release}${shared_ext}$major'
16521 shlibpath_var=LIBRARY_PATH
16522 shlibpath_overrides_runpath=yes
16523 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16524 hardcode_into_libs=yes
16525 ;;
16526
cristy73bd4a52010-10-05 11:24:23 +000016527hpux9* | hpux10* | hpux11*)
16528 # Give a soname corresponding to the major version so that dld.sl refuses to
16529 # link against other versions.
16530 version_type=sunos
16531 need_lib_prefix=no
16532 need_version=no
16533 case $host_cpu in
16534 ia64*)
16535 shrext_cmds='.so'
16536 hardcode_into_libs=yes
16537 dynamic_linker="$host_os dld.so"
16538 shlibpath_var=LD_LIBRARY_PATH
16539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16541 soname_spec='${libname}${release}${shared_ext}$major'
16542 if test "X$HPUX_IA64_MODE" = X32; then
16543 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16544 else
16545 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16546 fi
16547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16548 ;;
16549 hppa*64*)
16550 shrext_cmds='.sl'
16551 hardcode_into_libs=yes
16552 dynamic_linker="$host_os dld.sl"
16553 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556 soname_spec='${libname}${release}${shared_ext}$major'
16557 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16559 ;;
16560 *)
16561 shrext_cmds='.sl'
16562 dynamic_linker="$host_os dld.sl"
16563 shlibpath_var=SHLIB_PATH
16564 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16566 soname_spec='${libname}${release}${shared_ext}$major'
16567 ;;
16568 esac
cristy0c60a692010-11-04 01:09:47 +000016569 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016570 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016571 # or fails outright, so override atomically:
16572 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016573 ;;
16574
16575interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016576 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016577 need_lib_prefix=no
16578 need_version=no
16579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16580 soname_spec='${libname}${release}${shared_ext}$major'
16581 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16582 shlibpath_var=LD_LIBRARY_PATH
16583 shlibpath_overrides_runpath=no
16584 hardcode_into_libs=yes
16585 ;;
16586
16587irix5* | irix6* | nonstopux*)
16588 case $host_os in
16589 nonstopux*) version_type=nonstopux ;;
16590 *)
16591 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016592 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016593 else
16594 version_type=irix
16595 fi ;;
16596 esac
16597 need_lib_prefix=no
16598 need_version=no
16599 soname_spec='${libname}${release}${shared_ext}$major'
16600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16601 case $host_os in
16602 irix5* | nonstopux*)
16603 libsuff= shlibsuff=
16604 ;;
16605 *)
16606 case $LD in # libtool.m4 will add one of these switches to LD
16607 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16608 libsuff= shlibsuff= libmagic=32-bit;;
16609 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16610 libsuff=32 shlibsuff=N32 libmagic=N32;;
16611 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16612 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16613 *) libsuff= shlibsuff= libmagic=never-match;;
16614 esac
16615 ;;
16616 esac
16617 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16618 shlibpath_overrides_runpath=no
16619 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16620 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16621 hardcode_into_libs=yes
16622 ;;
16623
16624# No shared lib support for Linux oldld, aout, or coff.
16625linux*oldld* | linux*aout* | linux*coff*)
16626 dynamic_linker=no
16627 ;;
16628
cristy99bd5232011-12-07 14:38:20 +000016629# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016630linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016631 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016632 need_lib_prefix=no
16633 need_version=no
16634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16635 soname_spec='${libname}${release}${shared_ext}$major'
16636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16637 shlibpath_var=LD_LIBRARY_PATH
16638 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016639
cristy73bd4a52010-10-05 11:24:23 +000016640 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016641 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016642 $as_echo_n "(cached) " >&6
16643else
16644 lt_cv_shlibpath_overrides_runpath=no
16645 save_LDFLAGS=$LDFLAGS
16646 save_libdir=$libdir
16647 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16648 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016650/* end confdefs.h. */
16651
16652int
16653main ()
16654{
16655
16656 ;
16657 return 0;
16658}
16659_ACEOF
16660if ac_fn_c_try_link "$LINENO"; then :
16661 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016662 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016663fi
16664fi
16665rm -f core conftest.err conftest.$ac_objext \
16666 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016667 LDFLAGS=$save_LDFLAGS
16668 libdir=$save_libdir
16669
16670fi
16671
16672 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016673
16674 # This implies no fast_install, which is unacceptable.
16675 # Some rework will be needed to allow for fast_install
16676 # before this can be enabled.
16677 hardcode_into_libs=yes
16678
16679 # Add ABI-specific directories to the system library path.
16680 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16681
16682 # Append ld.so.conf contents to the search path
16683 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016684 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 +000016685 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016686
cristy73bd4a52010-10-05 11:24:23 +000016687 fi
16688
16689 # We used to test for /lib/ld.so.1 and disable shared libraries on
16690 # powerpc, because MkLinux only supported shared libraries with the
16691 # GNU dynamic linker. Since this was broken with cross compilers,
16692 # most powerpc-linux boxes support dynamic linking these days and
16693 # people can always --disable-shared, the test was removed, and we
16694 # assume the GNU/Linux dynamic linker is in use.
16695 dynamic_linker='GNU/Linux ld.so'
16696 ;;
16697
16698netbsd*)
16699 version_type=sunos
16700 need_lib_prefix=no
16701 need_version=no
16702 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16705 dynamic_linker='NetBSD (a.out) ld.so'
16706 else
16707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16708 soname_spec='${libname}${release}${shared_ext}$major'
16709 dynamic_linker='NetBSD ld.elf_so'
16710 fi
16711 shlibpath_var=LD_LIBRARY_PATH
16712 shlibpath_overrides_runpath=yes
16713 hardcode_into_libs=yes
16714 ;;
16715
16716newsos6)
cristy99bd5232011-12-07 14:38:20 +000016717 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16719 shlibpath_var=LD_LIBRARY_PATH
16720 shlibpath_overrides_runpath=yes
16721 ;;
16722
16723*nto* | *qnx*)
16724 version_type=qnx
16725 need_lib_prefix=no
16726 need_version=no
16727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16728 soname_spec='${libname}${release}${shared_ext}$major'
16729 shlibpath_var=LD_LIBRARY_PATH
16730 shlibpath_overrides_runpath=no
16731 hardcode_into_libs=yes
16732 dynamic_linker='ldqnx.so'
16733 ;;
16734
16735openbsd*)
16736 version_type=sunos
16737 sys_lib_dlsearch_path_spec="/usr/lib"
16738 need_lib_prefix=no
16739 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16740 case $host_os in
16741 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16742 *) need_version=no ;;
16743 esac
16744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16746 shlibpath_var=LD_LIBRARY_PATH
16747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16748 case $host_os in
16749 openbsd2.[89] | openbsd2.[89].*)
16750 shlibpath_overrides_runpath=no
16751 ;;
16752 *)
16753 shlibpath_overrides_runpath=yes
16754 ;;
16755 esac
16756 else
16757 shlibpath_overrides_runpath=yes
16758 fi
16759 ;;
16760
16761os2*)
16762 libname_spec='$name'
16763 shrext_cmds=".dll"
16764 need_lib_prefix=no
16765 library_names_spec='$libname${shared_ext} $libname.a'
16766 dynamic_linker='OS/2 ld.exe'
16767 shlibpath_var=LIBPATH
16768 ;;
16769
16770osf3* | osf4* | osf5*)
16771 version_type=osf
16772 need_lib_prefix=no
16773 need_version=no
16774 soname_spec='${libname}${release}${shared_ext}$major'
16775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16776 shlibpath_var=LD_LIBRARY_PATH
16777 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16778 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16779 ;;
16780
16781rdos*)
16782 dynamic_linker=no
16783 ;;
16784
16785solaris*)
cristy99bd5232011-12-07 14:38:20 +000016786 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016787 need_lib_prefix=no
16788 need_version=no
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16790 soname_spec='${libname}${release}${shared_ext}$major'
16791 shlibpath_var=LD_LIBRARY_PATH
16792 shlibpath_overrides_runpath=yes
16793 hardcode_into_libs=yes
16794 # ldd complains unless libraries are executable
16795 postinstall_cmds='chmod +x $lib'
16796 ;;
16797
16798sunos4*)
16799 version_type=sunos
16800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16801 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16802 shlibpath_var=LD_LIBRARY_PATH
16803 shlibpath_overrides_runpath=yes
16804 if test "$with_gnu_ld" = yes; then
16805 need_lib_prefix=no
16806 fi
16807 need_version=yes
16808 ;;
16809
16810sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016811 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813 soname_spec='${libname}${release}${shared_ext}$major'
16814 shlibpath_var=LD_LIBRARY_PATH
16815 case $host_vendor in
16816 sni)
16817 shlibpath_overrides_runpath=no
16818 need_lib_prefix=no
16819 runpath_var=LD_RUN_PATH
16820 ;;
16821 siemens)
16822 need_lib_prefix=no
16823 ;;
16824 motorola)
16825 need_lib_prefix=no
16826 need_version=no
16827 shlibpath_overrides_runpath=no
16828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16829 ;;
16830 esac
16831 ;;
16832
16833sysv4*MP*)
16834 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016835 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16837 soname_spec='$libname${shared_ext}.$major'
16838 shlibpath_var=LD_LIBRARY_PATH
16839 fi
16840 ;;
16841
16842sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16843 version_type=freebsd-elf
16844 need_lib_prefix=no
16845 need_version=no
16846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16847 soname_spec='${libname}${release}${shared_ext}$major'
16848 shlibpath_var=LD_LIBRARY_PATH
16849 shlibpath_overrides_runpath=yes
16850 hardcode_into_libs=yes
16851 if test "$with_gnu_ld" = yes; then
16852 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16853 else
16854 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16855 case $host_os in
16856 sco3.2v5*)
16857 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16858 ;;
16859 esac
16860 fi
16861 sys_lib_dlsearch_path_spec='/usr/lib'
16862 ;;
16863
16864tpf*)
16865 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016866 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016867 need_lib_prefix=no
16868 need_version=no
16869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16870 shlibpath_var=LD_LIBRARY_PATH
16871 shlibpath_overrides_runpath=no
16872 hardcode_into_libs=yes
16873 ;;
16874
16875uts4*)
cristy99bd5232011-12-07 14:38:20 +000016876 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16878 soname_spec='${libname}${release}${shared_ext}$major'
16879 shlibpath_var=LD_LIBRARY_PATH
16880 ;;
16881
16882*)
16883 dynamic_linker=no
16884 ;;
16885esac
16886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16887$as_echo "$dynamic_linker" >&6; }
16888test "$dynamic_linker" = no && can_build_shared=no
16889
16890variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16891if test "$GCC" = yes; then
16892 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16893fi
16894
16895if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16896 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16897fi
16898if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16899 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16900fi
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
cristy0c60a692010-11-04 01:09:47 +000016988
16989
16990
16991
16992
cristy73bd4a52010-10-05 11:24:23 +000016993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16994$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16995hardcode_action=
16996if test -n "$hardcode_libdir_flag_spec" ||
16997 test -n "$runpath_var" ||
16998 test "X$hardcode_automatic" = "Xyes" ; then
16999
17000 # We can hardcode non-existent directories.
17001 if test "$hardcode_direct" != no &&
17002 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17003 # have to relink, otherwise we might link with an installed library
17004 # when we should be linking with a yet-to-be-installed one
17005 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17006 test "$hardcode_minus_L" != no; then
17007 # Linking always hardcodes the temporary library directory.
17008 hardcode_action=relink
17009 else
17010 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17011 hardcode_action=immediate
17012 fi
17013else
17014 # We cannot hardcode anything, or else we can only hardcode existing
17015 # directories.
17016 hardcode_action=unsupported
17017fi
17018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17019$as_echo "$hardcode_action" >&6; }
17020
17021if test "$hardcode_action" = relink ||
17022 test "$inherit_rpath" = yes; then
17023 # Fast installation is not supported
17024 enable_fast_install=no
17025elif test "$shlibpath_overrides_runpath" = yes ||
17026 test "$enable_shared" = no; then
17027 # Fast installation is not necessary
17028 enable_fast_install=needless
17029fi
17030
17031
17032
17033
17034
17035
17036 if test "x$enable_dlopen" != xyes; then
17037 enable_dlopen=unknown
17038 enable_dlopen_self=unknown
17039 enable_dlopen_self_static=unknown
17040else
17041 lt_cv_dlopen=no
17042 lt_cv_dlopen_libs=
17043
17044 case $host_os in
17045 beos*)
17046 lt_cv_dlopen="load_add_on"
17047 lt_cv_dlopen_libs=
17048 lt_cv_dlopen_self=yes
17049 ;;
17050
17051 mingw* | pw32* | cegcc*)
17052 lt_cv_dlopen="LoadLibrary"
17053 lt_cv_dlopen_libs=
17054 ;;
17055
17056 cygwin*)
17057 lt_cv_dlopen="dlopen"
17058 lt_cv_dlopen_libs=
17059 ;;
17060
17061 darwin*)
17062 # if libdl is installed we need to link against it
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17064$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017065if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017066 $as_echo_n "(cached) " >&6
17067else
17068 ac_check_lib_save_LIBS=$LIBS
17069LIBS="-ldl $LIBS"
17070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071/* end confdefs.h. */
17072
17073/* Override any GCC internal prototype to avoid an error.
17074 Use char because int might match the return type of a GCC
17075 builtin and then its argument prototype would still apply. */
17076#ifdef __cplusplus
17077extern "C"
17078#endif
17079char dlopen ();
17080int
17081main ()
17082{
17083return dlopen ();
17084 ;
17085 return 0;
17086}
17087_ACEOF
17088if ac_fn_c_try_link "$LINENO"; then :
17089 ac_cv_lib_dl_dlopen=yes
17090else
17091 ac_cv_lib_dl_dlopen=no
17092fi
17093rm -f core conftest.err conftest.$ac_objext \
17094 conftest$ac_exeext conftest.$ac_ext
17095LIBS=$ac_check_lib_save_LIBS
17096fi
17097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17098$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017099if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017100 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17101else
17102
17103 lt_cv_dlopen="dyld"
17104 lt_cv_dlopen_libs=
17105 lt_cv_dlopen_self=yes
17106
17107fi
17108
17109 ;;
17110
17111 *)
17112 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017113if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017114 lt_cv_dlopen="shl_load"
17115else
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17117$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017118if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017119 $as_echo_n "(cached) " >&6
17120else
17121 ac_check_lib_save_LIBS=$LIBS
17122LIBS="-ldld $LIBS"
17123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124/* end confdefs.h. */
17125
17126/* Override any GCC internal prototype to avoid an error.
17127 Use char because int might match the return type of a GCC
17128 builtin and then its argument prototype would still apply. */
17129#ifdef __cplusplus
17130extern "C"
17131#endif
17132char shl_load ();
17133int
17134main ()
17135{
17136return shl_load ();
17137 ;
17138 return 0;
17139}
17140_ACEOF
17141if ac_fn_c_try_link "$LINENO"; then :
17142 ac_cv_lib_dld_shl_load=yes
17143else
17144 ac_cv_lib_dld_shl_load=no
17145fi
17146rm -f core conftest.err conftest.$ac_objext \
17147 conftest$ac_exeext conftest.$ac_ext
17148LIBS=$ac_check_lib_save_LIBS
17149fi
17150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17151$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017152if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017153 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17154else
17155 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017156if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017157 lt_cv_dlopen="dlopen"
17158else
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17160$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017161if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017162 $as_echo_n "(cached) " >&6
17163else
17164 ac_check_lib_save_LIBS=$LIBS
17165LIBS="-ldl $LIBS"
17166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167/* end confdefs.h. */
17168
17169/* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17172#ifdef __cplusplus
17173extern "C"
17174#endif
17175char dlopen ();
17176int
17177main ()
17178{
17179return dlopen ();
17180 ;
17181 return 0;
17182}
17183_ACEOF
17184if ac_fn_c_try_link "$LINENO"; then :
17185 ac_cv_lib_dl_dlopen=yes
17186else
17187 ac_cv_lib_dl_dlopen=no
17188fi
17189rm -f core conftest.err conftest.$ac_objext \
17190 conftest$ac_exeext conftest.$ac_ext
17191LIBS=$ac_check_lib_save_LIBS
17192fi
17193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17194$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017195if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17197else
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17199$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017200if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017201 $as_echo_n "(cached) " >&6
17202else
17203 ac_check_lib_save_LIBS=$LIBS
17204LIBS="-lsvld $LIBS"
17205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206/* end confdefs.h. */
17207
17208/* Override any GCC internal prototype to avoid an error.
17209 Use char because int might match the return type of a GCC
17210 builtin and then its argument prototype would still apply. */
17211#ifdef __cplusplus
17212extern "C"
17213#endif
17214char dlopen ();
17215int
17216main ()
17217{
17218return dlopen ();
17219 ;
17220 return 0;
17221}
17222_ACEOF
17223if ac_fn_c_try_link "$LINENO"; then :
17224 ac_cv_lib_svld_dlopen=yes
17225else
17226 ac_cv_lib_svld_dlopen=no
17227fi
17228rm -f core conftest.err conftest.$ac_objext \
17229 conftest$ac_exeext conftest.$ac_ext
17230LIBS=$ac_check_lib_save_LIBS
17231fi
17232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17233$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017234if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17236else
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17238$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017239if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017240 $as_echo_n "(cached) " >&6
17241else
17242 ac_check_lib_save_LIBS=$LIBS
17243LIBS="-ldld $LIBS"
17244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17245/* end confdefs.h. */
17246
17247/* Override any GCC internal prototype to avoid an error.
17248 Use char because int might match the return type of a GCC
17249 builtin and then its argument prototype would still apply. */
17250#ifdef __cplusplus
17251extern "C"
17252#endif
17253char dld_link ();
17254int
17255main ()
17256{
17257return dld_link ();
17258 ;
17259 return 0;
17260}
17261_ACEOF
17262if ac_fn_c_try_link "$LINENO"; then :
17263 ac_cv_lib_dld_dld_link=yes
17264else
17265 ac_cv_lib_dld_dld_link=no
17266fi
17267rm -f core conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
17269LIBS=$ac_check_lib_save_LIBS
17270fi
17271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17272$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017273if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17275fi
17276
17277
17278fi
17279
17280
17281fi
17282
17283
17284fi
17285
17286
17287fi
17288
17289
17290fi
17291
17292 ;;
17293 esac
17294
17295 if test "x$lt_cv_dlopen" != xno; then
17296 enable_dlopen=yes
17297 else
17298 enable_dlopen=no
17299 fi
17300
17301 case $lt_cv_dlopen in
17302 dlopen)
17303 save_CPPFLAGS="$CPPFLAGS"
17304 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17305
17306 save_LDFLAGS="$LDFLAGS"
17307 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17308
17309 save_LIBS="$LIBS"
17310 LIBS="$lt_cv_dlopen_libs $LIBS"
17311
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17313$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017314if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017315 $as_echo_n "(cached) " >&6
17316else
17317 if test "$cross_compiling" = yes; then :
17318 lt_cv_dlopen_self=cross
17319else
17320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17321 lt_status=$lt_dlunknown
17322 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017323#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017324#include "confdefs.h"
17325
17326#if HAVE_DLFCN_H
17327#include <dlfcn.h>
17328#endif
17329
17330#include <stdio.h>
17331
17332#ifdef RTLD_GLOBAL
17333# define LT_DLGLOBAL RTLD_GLOBAL
17334#else
17335# ifdef DL_GLOBAL
17336# define LT_DLGLOBAL DL_GLOBAL
17337# else
17338# define LT_DLGLOBAL 0
17339# endif
17340#endif
17341
17342/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17343 find out it does not work in some platform. */
17344#ifndef LT_DLLAZY_OR_NOW
17345# ifdef RTLD_LAZY
17346# define LT_DLLAZY_OR_NOW RTLD_LAZY
17347# else
17348# ifdef DL_LAZY
17349# define LT_DLLAZY_OR_NOW DL_LAZY
17350# else
17351# ifdef RTLD_NOW
17352# define LT_DLLAZY_OR_NOW RTLD_NOW
17353# else
17354# ifdef DL_NOW
17355# define LT_DLLAZY_OR_NOW DL_NOW
17356# else
17357# define LT_DLLAZY_OR_NOW 0
17358# endif
17359# endif
17360# endif
17361# endif
17362#endif
17363
cristy0c60a692010-11-04 01:09:47 +000017364/* When -fvisbility=hidden is used, assume the code has been annotated
17365 correspondingly for the symbols needed. */
17366#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017367int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017368#endif
17369
cristyda16f162011-02-19 23:52:17 +000017370int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017371int main ()
17372{
17373 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17374 int status = $lt_dlunknown;
17375
17376 if (self)
17377 {
17378 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017379 else
17380 {
17381 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17382 else puts (dlerror ());
17383 }
cristy73bd4a52010-10-05 11:24:23 +000017384 /* dlclose (self); */
17385 }
17386 else
17387 puts (dlerror ());
17388
17389 return status;
17390}
17391_LT_EOF
17392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17393 (eval $ac_link) 2>&5
17394 ac_status=$?
17395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17396 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17397 (./conftest; exit; ) >&5 2>/dev/null
17398 lt_status=$?
17399 case x$lt_status in
17400 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17401 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17402 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17403 esac
17404 else :
17405 # compilation failed
17406 lt_cv_dlopen_self=no
17407 fi
17408fi
17409rm -fr conftest*
17410
17411
17412fi
17413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17414$as_echo "$lt_cv_dlopen_self" >&6; }
17415
17416 if test "x$lt_cv_dlopen_self" = xyes; then
17417 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17419$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017420if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017421 $as_echo_n "(cached) " >&6
17422else
17423 if test "$cross_compiling" = yes; then :
17424 lt_cv_dlopen_self_static=cross
17425else
17426 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17427 lt_status=$lt_dlunknown
17428 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017429#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017430#include "confdefs.h"
17431
17432#if HAVE_DLFCN_H
17433#include <dlfcn.h>
17434#endif
17435
17436#include <stdio.h>
17437
17438#ifdef RTLD_GLOBAL
17439# define LT_DLGLOBAL RTLD_GLOBAL
17440#else
17441# ifdef DL_GLOBAL
17442# define LT_DLGLOBAL DL_GLOBAL
17443# else
17444# define LT_DLGLOBAL 0
17445# endif
17446#endif
17447
17448/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17449 find out it does not work in some platform. */
17450#ifndef LT_DLLAZY_OR_NOW
17451# ifdef RTLD_LAZY
17452# define LT_DLLAZY_OR_NOW RTLD_LAZY
17453# else
17454# ifdef DL_LAZY
17455# define LT_DLLAZY_OR_NOW DL_LAZY
17456# else
17457# ifdef RTLD_NOW
17458# define LT_DLLAZY_OR_NOW RTLD_NOW
17459# else
17460# ifdef DL_NOW
17461# define LT_DLLAZY_OR_NOW DL_NOW
17462# else
17463# define LT_DLLAZY_OR_NOW 0
17464# endif
17465# endif
17466# endif
17467# endif
17468#endif
17469
cristy0c60a692010-11-04 01:09:47 +000017470/* When -fvisbility=hidden is used, assume the code has been annotated
17471 correspondingly for the symbols needed. */
17472#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017473int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017474#endif
17475
cristyda16f162011-02-19 23:52:17 +000017476int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017477int main ()
17478{
17479 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17480 int status = $lt_dlunknown;
17481
17482 if (self)
17483 {
17484 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017485 else
17486 {
17487 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17488 else puts (dlerror ());
17489 }
cristy73bd4a52010-10-05 11:24:23 +000017490 /* dlclose (self); */
17491 }
17492 else
17493 puts (dlerror ());
17494
17495 return status;
17496}
17497_LT_EOF
17498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17499 (eval $ac_link) 2>&5
17500 ac_status=$?
17501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17502 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17503 (./conftest; exit; ) >&5 2>/dev/null
17504 lt_status=$?
17505 case x$lt_status in
17506 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17507 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17508 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17509 esac
17510 else :
17511 # compilation failed
17512 lt_cv_dlopen_self_static=no
17513 fi
17514fi
17515rm -fr conftest*
17516
17517
17518fi
17519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17520$as_echo "$lt_cv_dlopen_self_static" >&6; }
17521 fi
17522
17523 CPPFLAGS="$save_CPPFLAGS"
17524 LDFLAGS="$save_LDFLAGS"
17525 LIBS="$save_LIBS"
17526 ;;
17527 esac
17528
17529 case $lt_cv_dlopen_self in
17530 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17531 *) enable_dlopen_self=unknown ;;
17532 esac
17533
17534 case $lt_cv_dlopen_self_static in
17535 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17536 *) enable_dlopen_self_static=unknown ;;
17537 esac
17538fi
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556striplib=
17557old_striplib=
17558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17559$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17560if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17561 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17562 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17564$as_echo "yes" >&6; }
17565else
17566# FIXME - insert some real tests, host_os isn't really good enough
17567 case $host_os in
17568 darwin*)
17569 if test -n "$STRIP" ; then
17570 striplib="$STRIP -x"
17571 old_striplib="$STRIP -S"
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17573$as_echo "yes" >&6; }
17574 else
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17576$as_echo "no" >&6; }
17577 fi
17578 ;;
17579 *)
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17581$as_echo "no" >&6; }
17582 ;;
17583 esac
17584fi
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597 # Report which library types will actually be built
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17599$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17601$as_echo "$can_build_shared" >&6; }
17602
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17604$as_echo_n "checking whether to build shared libraries... " >&6; }
17605 test "$can_build_shared" = "no" && enable_shared=no
17606
17607 # On AIX, shared libraries and static libraries use the same namespace, and
17608 # are all built from PIC.
17609 case $host_os in
17610 aix3*)
17611 test "$enable_shared" = yes && enable_static=no
17612 if test -n "$RANLIB"; then
17613 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17614 postinstall_cmds='$RANLIB $lib'
17615 fi
17616 ;;
17617
17618 aix[4-9]*)
17619 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17620 test "$enable_shared" = yes && enable_static=no
17621 fi
17622 ;;
17623 esac
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17625$as_echo "$enable_shared" >&6; }
17626
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17628$as_echo_n "checking whether to build static libraries... " >&6; }
17629 # Make sure either enable_shared or enable_static is yes.
17630 test "$enable_shared" = yes || enable_static=yes
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17632$as_echo "$enable_static" >&6; }
17633
17634
17635
17636
17637fi
17638ac_ext=c
17639ac_cpp='$CPP $CPPFLAGS'
17640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17642ac_compiler_gnu=$ac_cv_c_compiler_gnu
17643
17644CC="$lt_save_CC"
17645
cristy0c60a692010-11-04 01:09:47 +000017646 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17647 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17648 (test "X$CXX" != "Xg++"))) ; then
17649 ac_ext=cpp
17650ac_cpp='$CXXCPP $CPPFLAGS'
17651ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17652ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17653ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17655$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17656if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017657 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017658 $as_echo_n "(cached) " >&6
17659else
17660 # Double quotes because CXXCPP needs to be expanded
17661 for CXXCPP in "$CXX -E" "/lib/cpp"
17662 do
17663 ac_preproc_ok=false
17664for ac_cxx_preproc_warn_flag in '' yes
17665do
17666 # Use a header file that comes with gcc, so configuring glibc
17667 # with a fresh cross-compiler works.
17668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17669 # <limits.h> exists even on freestanding compilers.
17670 # On the NeXT, cc -E runs the code through the compiler's parser,
17671 # not just through cpp. "Syntax error" is here to catch this case.
17672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673/* end confdefs.h. */
17674#ifdef __STDC__
17675# include <limits.h>
17676#else
17677# include <assert.h>
17678#endif
17679 Syntax error
17680_ACEOF
17681if ac_fn_cxx_try_cpp "$LINENO"; then :
17682
17683else
17684 # Broken: fails on valid input.
17685continue
17686fi
cristyda16f162011-02-19 23:52:17 +000017687rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017688
17689 # OK, works on sane cases. Now check whether nonexistent headers
17690 # can be detected and how.
17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692/* end confdefs.h. */
17693#include <ac_nonexistent.h>
17694_ACEOF
17695if ac_fn_cxx_try_cpp "$LINENO"; then :
17696 # Broken: success on invalid input.
17697continue
17698else
17699 # Passes both tests.
17700ac_preproc_ok=:
17701break
17702fi
cristyda16f162011-02-19 23:52:17 +000017703rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017704
17705done
17706# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017707rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017708if $ac_preproc_ok; then :
17709 break
17710fi
17711
17712 done
17713 ac_cv_prog_CXXCPP=$CXXCPP
17714
17715fi
17716 CXXCPP=$ac_cv_prog_CXXCPP
17717else
17718 ac_cv_prog_CXXCPP=$CXXCPP
17719fi
17720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17721$as_echo "$CXXCPP" >&6; }
17722ac_preproc_ok=false
17723for ac_cxx_preproc_warn_flag in '' yes
17724do
17725 # Use a header file that comes with gcc, so configuring glibc
17726 # with a fresh cross-compiler works.
17727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17728 # <limits.h> exists even on freestanding compilers.
17729 # On the NeXT, cc -E runs the code through the compiler's parser,
17730 # not just through cpp. "Syntax error" is here to catch this case.
17731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17732/* end confdefs.h. */
17733#ifdef __STDC__
17734# include <limits.h>
17735#else
17736# include <assert.h>
17737#endif
17738 Syntax error
17739_ACEOF
17740if ac_fn_cxx_try_cpp "$LINENO"; then :
17741
17742else
17743 # Broken: fails on valid input.
17744continue
17745fi
cristyda16f162011-02-19 23:52:17 +000017746rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017747
17748 # OK, works on sane cases. Now check whether nonexistent headers
17749 # can be detected and how.
17750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751/* end confdefs.h. */
17752#include <ac_nonexistent.h>
17753_ACEOF
17754if ac_fn_cxx_try_cpp "$LINENO"; then :
17755 # Broken: success on invalid input.
17756continue
17757else
17758 # Passes both tests.
17759ac_preproc_ok=:
17760break
17761fi
cristyda16f162011-02-19 23:52:17 +000017762rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017763
17764done
17765# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017766rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017767if $ac_preproc_ok; then :
17768
17769else
17770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17772as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17773See \`config.log' for more details" "$LINENO" 5; }
17774fi
17775
17776ac_ext=c
17777ac_cpp='$CPP $CPPFLAGS'
17778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17780ac_compiler_gnu=$ac_cv_c_compiler_gnu
17781
17782else
17783 _lt_caught_CXX_error=yes
17784fi
cristy73bd4a52010-10-05 11:24:23 +000017785
17786ac_ext=cpp
17787ac_cpp='$CXXCPP $CPPFLAGS'
17788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17791
17792archive_cmds_need_lc_CXX=no
17793allow_undefined_flag_CXX=
17794always_export_symbols_CXX=no
17795archive_expsym_cmds_CXX=
17796compiler_needs_object_CXX=no
17797export_dynamic_flag_spec_CXX=
17798hardcode_direct_CXX=no
17799hardcode_direct_absolute_CXX=no
17800hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017801hardcode_libdir_separator_CXX=
17802hardcode_minus_L_CXX=no
17803hardcode_shlibpath_var_CXX=unsupported
17804hardcode_automatic_CXX=no
17805inherit_rpath_CXX=no
17806module_cmds_CXX=
17807module_expsym_cmds_CXX=
17808link_all_deplibs_CXX=unknown
17809old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017810reload_flag_CXX=$reload_flag
17811reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017812no_undefined_flag_CXX=
17813whole_archive_flag_spec_CXX=
17814enable_shared_with_static_runtimes_CXX=no
17815
17816# Source file extension for C++ test sources.
17817ac_ext=cpp
17818
17819# Object file extension for compiled C++ test sources.
17820objext=o
17821objext_CXX=$objext
17822
17823# No sense in running all these tests if we already determined that
17824# the CXX compiler isn't working. Some variables (like enable_shared)
17825# are currently assumed to apply to all compilers on this platform,
17826# and will be corrupted by setting them based on a non-working compiler.
17827if test "$_lt_caught_CXX_error" != yes; then
17828 # Code to be used in simple compile tests
17829 lt_simple_compile_test_code="int some_variable = 0;"
17830
17831 # Code to be used in simple link tests
17832 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17833
17834 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17835
17836
17837
17838
17839
17840
17841# If no C compiler was specified, use CC.
17842LTCC=${LTCC-"$CC"}
17843
17844# If no C compiler flags were specified, use CFLAGS.
17845LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17846
17847# Allow CC to be a program name with arguments.
17848compiler=$CC
17849
17850
17851 # save warnings/boilerplate of simple test code
17852 ac_outfile=conftest.$ac_objext
17853echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17854eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17855_lt_compiler_boilerplate=`cat conftest.err`
17856$RM conftest*
17857
17858 ac_outfile=conftest.$ac_objext
17859echo "$lt_simple_link_test_code" >conftest.$ac_ext
17860eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17861_lt_linker_boilerplate=`cat conftest.err`
17862$RM -r conftest*
17863
17864
17865 # Allow CC to be a program name with arguments.
17866 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017867 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017868 lt_save_LD=$LD
17869 lt_save_GCC=$GCC
17870 GCC=$GXX
17871 lt_save_with_gnu_ld=$with_gnu_ld
17872 lt_save_path_LD=$lt_cv_path_LD
17873 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17874 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17875 else
17876 $as_unset lt_cv_prog_gnu_ld
17877 fi
17878 if test -n "${lt_cv_path_LDCXX+set}"; then
17879 lt_cv_path_LD=$lt_cv_path_LDCXX
17880 else
17881 $as_unset lt_cv_path_LD
17882 fi
17883 test -z "${LDCXX+set}" || LD=$LDCXX
17884 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017885 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017886 compiler=$CC
17887 compiler_CXX=$CC
17888 for cc_temp in $compiler""; do
17889 case $cc_temp in
17890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17892 \-*) ;;
17893 *) break;;
17894 esac
17895done
cristy0c60a692010-11-04 01:09:47 +000017896cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017897
17898
17899 if test -n "$compiler"; then
17900 # We don't want -fno-exception when compiling C++ code, so set the
17901 # no_builtin_flag separately
17902 if test "$GXX" = yes; then
17903 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17904 else
17905 lt_prog_compiler_no_builtin_flag_CXX=
17906 fi
17907
17908 if test "$GXX" = yes; then
17909 # Set up default GNU C++ configuration
17910
17911
17912
17913# Check whether --with-gnu-ld was given.
17914if test "${with_gnu_ld+set}" = set; then :
17915 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17916else
17917 with_gnu_ld=no
17918fi
17919
17920ac_prog=ld
17921if test "$GCC" = yes; then
17922 # Check if gcc -print-prog-name=ld gives a path.
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17924$as_echo_n "checking for ld used by $CC... " >&6; }
17925 case $host in
17926 *-*-mingw*)
17927 # gcc leaves a trailing carriage return which upsets mingw
17928 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17929 *)
17930 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17931 esac
17932 case $ac_prog in
17933 # Accept absolute paths.
17934 [\\/]* | ?:[\\/]*)
17935 re_direlt='/[^/][^/]*/\.\./'
17936 # Canonicalize the pathname of ld
17937 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17938 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17939 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17940 done
17941 test -z "$LD" && LD="$ac_prog"
17942 ;;
17943 "")
17944 # If it fails, then pretend we aren't using GCC.
17945 ac_prog=ld
17946 ;;
17947 *)
17948 # If it is relative, then search for the first ld in PATH.
17949 with_gnu_ld=unknown
17950 ;;
17951 esac
17952elif test "$with_gnu_ld" = yes; then
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17954$as_echo_n "checking for GNU ld... " >&6; }
17955else
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17957$as_echo_n "checking for non-GNU ld... " >&6; }
17958fi
cristyda16f162011-02-19 23:52:17 +000017959if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017960 $as_echo_n "(cached) " >&6
17961else
17962 if test -z "$LD"; then
17963 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17964 for ac_dir in $PATH; do
17965 IFS="$lt_save_ifs"
17966 test -z "$ac_dir" && ac_dir=.
17967 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17968 lt_cv_path_LD="$ac_dir/$ac_prog"
17969 # Check to see if the program is GNU ld. I'd rather use --version,
17970 # but apparently some variants of GNU ld only accept -v.
17971 # Break only if it was the GNU/non-GNU ld that we prefer.
17972 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17973 *GNU* | *'with BFD'*)
17974 test "$with_gnu_ld" != no && break
17975 ;;
17976 *)
17977 test "$with_gnu_ld" != yes && break
17978 ;;
17979 esac
17980 fi
17981 done
17982 IFS="$lt_save_ifs"
17983else
17984 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17985fi
17986fi
17987
17988LD="$lt_cv_path_LD"
17989if test -n "$LD"; then
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17991$as_echo "$LD" >&6; }
17992else
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17994$as_echo "no" >&6; }
17995fi
cristy98dddb52010-11-04 00:30:15 +000017996test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17998$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017999if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018000 $as_echo_n "(cached) " >&6
18001else
18002 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18003case `$LD -v 2>&1 </dev/null` in
18004*GNU* | *'with BFD'*)
18005 lt_cv_prog_gnu_ld=yes
18006 ;;
18007*)
18008 lt_cv_prog_gnu_ld=no
18009 ;;
18010esac
18011fi
18012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18013$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18014with_gnu_ld=$lt_cv_prog_gnu_ld
18015
18016
18017
18018
18019
18020
18021
18022 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18023 # archiving commands below assume that GNU ld is being used.
18024 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018025 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18026 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 +000018027
18028 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18029 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18030
18031 # If archive_cmds runs LD, not CC, wlarc should be empty
18032 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18033 # investigate it a little bit more. (MM)
18034 wlarc='${wl}'
18035
18036 # ancient GNU ld didn't support --whole-archive et. al.
18037 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18038 $GREP 'no-whole-archive' > /dev/null; then
18039 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18040 else
18041 whole_archive_flag_spec_CXX=
18042 fi
18043 else
18044 with_gnu_ld=no
18045 wlarc=
18046
18047 # A generic and very simple default shared library creation
18048 # command for GNU C++ for the case where it uses the native
18049 # linker, instead of GNU ld. If possible, this setting should
18050 # overridden to take advantage of the native linker features on
18051 # the platform it is being used on.
18052 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18053 fi
18054
18055 # Commands to make compiler produce verbose output that lists
18056 # what "hidden" libraries, object files and flags are used when
18057 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018058 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018059
18060 else
18061 GXX=no
18062 with_gnu_ld=no
18063 wlarc=
18064 fi
18065
18066 # PORTME: fill in a description of your system's C++ link characteristics
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18068$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18069 ld_shlibs_CXX=yes
18070 case $host_os in
18071 aix3*)
18072 # FIXME: insert proper C++ library support
18073 ld_shlibs_CXX=no
18074 ;;
18075 aix[4-9]*)
18076 if test "$host_cpu" = ia64; then
18077 # On IA64, the linker does run time linking by default, so we don't
18078 # have to do anything special.
18079 aix_use_runtimelinking=no
18080 exp_sym_flag='-Bexport'
18081 no_entry_flag=""
18082 else
18083 aix_use_runtimelinking=no
18084
18085 # Test if we are trying to use run time linking or normal
18086 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18087 # need to do runtime linking.
18088 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18089 for ld_flag in $LDFLAGS; do
18090 case $ld_flag in
18091 *-brtl*)
18092 aix_use_runtimelinking=yes
18093 break
18094 ;;
18095 esac
18096 done
18097 ;;
18098 esac
18099
18100 exp_sym_flag='-bexport'
18101 no_entry_flag='-bnoentry'
18102 fi
18103
18104 # When large executables or shared objects are built, AIX ld can
18105 # have problems creating the table of contents. If linking a library
18106 # or program results in "error TOC overflow" add -mminimal-toc to
18107 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18108 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18109
18110 archive_cmds_CXX=''
18111 hardcode_direct_CXX=yes
18112 hardcode_direct_absolute_CXX=yes
18113 hardcode_libdir_separator_CXX=':'
18114 link_all_deplibs_CXX=yes
18115 file_list_spec_CXX='${wl}-f,'
18116
18117 if test "$GXX" = yes; then
18118 case $host_os in aix4.[012]|aix4.[012].*)
18119 # We only want to do this on AIX 4.2 and lower, the check
18120 # below for broken collect2 doesn't work under 4.3+
18121 collect2name=`${CC} -print-prog-name=collect2`
18122 if test -f "$collect2name" &&
18123 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18124 then
18125 # We have reworked collect2
18126 :
18127 else
18128 # We have old collect2
18129 hardcode_direct_CXX=unsupported
18130 # It fails to find uninstalled libraries when the uninstalled
18131 # path is not listed in the libpath. Setting hardcode_minus_L
18132 # to unsupported forces relinking
18133 hardcode_minus_L_CXX=yes
18134 hardcode_libdir_flag_spec_CXX='-L$libdir'
18135 hardcode_libdir_separator_CXX=
18136 fi
18137 esac
18138 shared_flag='-shared'
18139 if test "$aix_use_runtimelinking" = yes; then
18140 shared_flag="$shared_flag "'${wl}-G'
18141 fi
18142 else
18143 # not using gcc
18144 if test "$host_cpu" = ia64; then
18145 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18146 # chokes on -Wl,-G. The following line is correct:
18147 shared_flag='-G'
18148 else
18149 if test "$aix_use_runtimelinking" = yes; then
18150 shared_flag='${wl}-G'
18151 else
18152 shared_flag='${wl}-bM:SRE'
18153 fi
18154 fi
18155 fi
18156
18157 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18158 # It seems that -bexpall does not export symbols beginning with
18159 # underscore (_), so it is better to generate a list of symbols to
18160 # export.
18161 always_export_symbols_CXX=yes
18162 if test "$aix_use_runtimelinking" = yes; then
18163 # Warning - without using the other runtime loading flags (-brtl),
18164 # -berok will link without error, but may produce a broken library.
18165 allow_undefined_flag_CXX='-berok'
18166 # Determine the default libpath from the value encoded in an empty
18167 # executable.
cristyda16f162011-02-19 23:52:17 +000018168 if test "${lt_cv_aix_libpath+set}" = set; then
18169 aix_libpath=$lt_cv_aix_libpath
18170else
18171 if ${lt_cv_aix_libpath__CXX+:} false; then :
18172 $as_echo_n "(cached) " >&6
18173else
18174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018175/* end confdefs.h. */
18176
18177int
18178main ()
18179{
18180
18181 ;
18182 return 0;
18183}
18184_ACEOF
18185if ac_fn_cxx_try_link "$LINENO"; then :
18186
cristyda16f162011-02-19 23:52:17 +000018187 lt_aix_libpath_sed='
18188 /Import File Strings/,/^$/ {
18189 /^0/ {
18190 s/^0 *\([^ ]*\) *$/\1/
18191 p
18192 }
18193 }'
18194 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18195 # Check for a 64-bit object if we didn't find anything.
18196 if test -z "$lt_cv_aix_libpath__CXX"; then
18197 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18198 fi
cristy73bd4a52010-10-05 11:24:23 +000018199fi
18200rm -f core conftest.err conftest.$ac_objext \
18201 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018202 if test -z "$lt_cv_aix_libpath__CXX"; then
18203 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18204 fi
18205
18206fi
18207
18208 aix_libpath=$lt_cv_aix_libpath__CXX
18209fi
cristy73bd4a52010-10-05 11:24:23 +000018210
18211 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18212
cristy0c60a692010-11-04 01:09:47 +000018213 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 +000018214 else
18215 if test "$host_cpu" = ia64; then
18216 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18217 allow_undefined_flag_CXX="-z nodefs"
18218 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"
18219 else
18220 # Determine the default libpath from the value encoded in an
18221 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018222 if test "${lt_cv_aix_libpath+set}" = set; then
18223 aix_libpath=$lt_cv_aix_libpath
18224else
18225 if ${lt_cv_aix_libpath__CXX+:} false; then :
18226 $as_echo_n "(cached) " >&6
18227else
18228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018229/* end confdefs.h. */
18230
18231int
18232main ()
18233{
18234
18235 ;
18236 return 0;
18237}
18238_ACEOF
18239if ac_fn_cxx_try_link "$LINENO"; then :
18240
cristyda16f162011-02-19 23:52:17 +000018241 lt_aix_libpath_sed='
18242 /Import File Strings/,/^$/ {
18243 /^0/ {
18244 s/^0 *\([^ ]*\) *$/\1/
18245 p
18246 }
18247 }'
18248 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18249 # Check for a 64-bit object if we didn't find anything.
18250 if test -z "$lt_cv_aix_libpath__CXX"; then
18251 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18252 fi
cristy73bd4a52010-10-05 11:24:23 +000018253fi
18254rm -f core conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018256 if test -z "$lt_cv_aix_libpath__CXX"; then
18257 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18258 fi
18259
18260fi
18261
18262 aix_libpath=$lt_cv_aix_libpath__CXX
18263fi
cristy73bd4a52010-10-05 11:24:23 +000018264
18265 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18266 # Warning - without using the other run time loading flags,
18267 # -berok will link without error, but may produce a broken library.
18268 no_undefined_flag_CXX=' ${wl}-bernotok'
18269 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018270 if test "$with_gnu_ld" = yes; then
18271 # We only use this code for GNU lds that support --whole-archive.
18272 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18273 else
18274 # Exported symbols can be pulled into shared objects from archives
18275 whole_archive_flag_spec_CXX='$convenience'
18276 fi
cristy73bd4a52010-10-05 11:24:23 +000018277 archive_cmds_need_lc_CXX=yes
18278 # This is similar to how AIX traditionally builds its shared
18279 # libraries.
18280 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'
18281 fi
18282 fi
18283 ;;
18284
18285 beos*)
18286 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18287 allow_undefined_flag_CXX=unsupported
18288 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18289 # support --undefined. This deserves some investigation. FIXME
18290 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18291 else
18292 ld_shlibs_CXX=no
18293 fi
18294 ;;
18295
18296 chorus*)
18297 case $cc_basename in
18298 *)
18299 # FIXME: insert proper C++ library support
18300 ld_shlibs_CXX=no
18301 ;;
18302 esac
18303 ;;
18304
18305 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018306 case $GXX,$cc_basename in
18307 ,cl* | no,cl*)
18308 # Native MSVC
18309 # hardcode_libdir_flag_spec is actually meaningless, as there is
18310 # no search path for DLLs.
18311 hardcode_libdir_flag_spec_CXX=' '
18312 allow_undefined_flag_CXX=unsupported
18313 always_export_symbols_CXX=yes
18314 file_list_spec_CXX='@'
18315 # Tell ltmain to make .lib files, not .a files.
18316 libext=lib
18317 # Tell ltmain to make .dll files, not .so files.
18318 shrext_cmds=".dll"
18319 # FIXME: Setting linknames here is a bad hack.
18320 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18321 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18322 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18323 else
18324 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18325 fi~
18326 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18327 linknames='
18328 # The linker will not automatically build a static lib if we build a DLL.
18329 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18330 enable_shared_with_static_runtimes_CXX=yes
18331 # Don't use ranlib
18332 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18333 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18334 lt_tool_outputfile="@TOOL_OUTPUT@"~
18335 case $lt_outputfile in
18336 *.exe|*.EXE) ;;
18337 *)
18338 lt_outputfile="$lt_outputfile.exe"
18339 lt_tool_outputfile="$lt_tool_outputfile.exe"
18340 ;;
18341 esac~
18342 func_to_tool_file "$lt_outputfile"~
18343 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18344 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18345 $RM "$lt_outputfile.manifest";
18346 fi'
18347 ;;
18348 *)
18349 # g++
18350 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18351 # as there is no search path for DLLs.
18352 hardcode_libdir_flag_spec_CXX='-L$libdir'
18353 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18354 allow_undefined_flag_CXX=unsupported
18355 always_export_symbols_CXX=no
18356 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018357
cristyda16f162011-02-19 23:52:17 +000018358 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18359 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'
18360 # If the export-symbols file already is a .def file (1st line
18361 # is EXPORTS), use it as is; otherwise, prepend...
18362 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18363 cp $export_symbols $output_objdir/$soname.def;
18364 else
18365 echo EXPORTS > $output_objdir/$soname.def;
18366 cat $export_symbols >> $output_objdir/$soname.def;
18367 fi~
18368 $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'
18369 else
18370 ld_shlibs_CXX=no
18371 fi
18372 ;;
18373 esac
18374 ;;
cristy73bd4a52010-10-05 11:24:23 +000018375 darwin* | rhapsody*)
18376
18377
18378 archive_cmds_need_lc_CXX=no
18379 hardcode_direct_CXX=no
18380 hardcode_automatic_CXX=yes
18381 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018382 if test "$lt_cv_ld_force_load" = "yes"; then
18383 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 +000018384
cristy0c60a692010-11-04 01:09:47 +000018385 else
18386 whole_archive_flag_spec_CXX=''
18387 fi
cristy73bd4a52010-10-05 11:24:23 +000018388 link_all_deplibs_CXX=yes
18389 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18390 case $cc_basename in
18391 ifort*) _lt_dar_can_shared=yes ;;
18392 *) _lt_dar_can_shared=$GCC ;;
18393 esac
18394 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018395 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018396 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}"
18397 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18398 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}"
18399 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}"
18400 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18401 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}"
18402 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}"
18403 fi
18404
18405 else
18406 ld_shlibs_CXX=no
18407 fi
18408
18409 ;;
18410
18411 dgux*)
18412 case $cc_basename in
18413 ec++*)
18414 # FIXME: insert proper C++ library support
18415 ld_shlibs_CXX=no
18416 ;;
18417 ghcx*)
18418 # Green Hills C++ Compiler
18419 # FIXME: insert proper C++ library support
18420 ld_shlibs_CXX=no
18421 ;;
18422 *)
18423 # FIXME: insert proper C++ library support
18424 ld_shlibs_CXX=no
18425 ;;
18426 esac
18427 ;;
18428
cristy99bd5232011-12-07 14:38:20 +000018429 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018430 # C++ shared libraries reported to be fairly broken before
18431 # switch to ELF
18432 ld_shlibs_CXX=no
18433 ;;
18434
18435 freebsd-elf*)
18436 archive_cmds_need_lc_CXX=no
18437 ;;
18438
18439 freebsd* | dragonfly*)
18440 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18441 # conventions
18442 ld_shlibs_CXX=yes
18443 ;;
18444
18445 gnu*)
18446 ;;
18447
cristy0c60a692010-11-04 01:09:47 +000018448 haiku*)
18449 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18450 link_all_deplibs_CXX=yes
18451 ;;
18452
cristy73bd4a52010-10-05 11:24:23 +000018453 hpux9*)
18454 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18455 hardcode_libdir_separator_CXX=:
18456 export_dynamic_flag_spec_CXX='${wl}-E'
18457 hardcode_direct_CXX=yes
18458 hardcode_minus_L_CXX=yes # Not in the search PATH,
18459 # but as the default
18460 # location of the library.
18461
18462 case $cc_basename in
18463 CC*)
18464 # FIXME: insert proper C++ library support
18465 ld_shlibs_CXX=no
18466 ;;
18467 aCC*)
18468 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'
18469 # Commands to make compiler produce verbose output that lists
18470 # what "hidden" libraries, object files and flags are used when
18471 # linking a shared library.
18472 #
18473 # There doesn't appear to be a way to prevent this compiler from
18474 # explicitly linking system object files so we need to strip them
18475 # from the output so that they don't get included in the library
18476 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018477 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 +000018478 ;;
18479 *)
18480 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018481 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 +000018482 else
18483 # FIXME: insert proper C++ library support
18484 ld_shlibs_CXX=no
18485 fi
18486 ;;
18487 esac
18488 ;;
18489
18490 hpux10*|hpux11*)
18491 if test $with_gnu_ld = no; then
18492 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18493 hardcode_libdir_separator_CXX=:
18494
18495 case $host_cpu in
18496 hppa*64*|ia64*)
18497 ;;
18498 *)
18499 export_dynamic_flag_spec_CXX='${wl}-E'
18500 ;;
18501 esac
18502 fi
18503 case $host_cpu in
18504 hppa*64*|ia64*)
18505 hardcode_direct_CXX=no
18506 hardcode_shlibpath_var_CXX=no
18507 ;;
18508 *)
18509 hardcode_direct_CXX=yes
18510 hardcode_direct_absolute_CXX=yes
18511 hardcode_minus_L_CXX=yes # Not in the search PATH,
18512 # but as the default
18513 # location of the library.
18514 ;;
18515 esac
18516
18517 case $cc_basename in
18518 CC*)
18519 # FIXME: insert proper C++ library support
18520 ld_shlibs_CXX=no
18521 ;;
18522 aCC*)
18523 case $host_cpu in
18524 hppa*64*)
18525 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18526 ;;
18527 ia64*)
18528 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18529 ;;
18530 *)
18531 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18532 ;;
18533 esac
18534 # Commands to make compiler produce verbose output that lists
18535 # what "hidden" libraries, object files and flags are used when
18536 # linking a shared library.
18537 #
18538 # There doesn't appear to be a way to prevent this compiler from
18539 # explicitly linking system object files so we need to strip them
18540 # from the output so that they don't get included in the library
18541 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018542 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 +000018543 ;;
18544 *)
18545 if test "$GXX" = yes; then
18546 if test $with_gnu_ld = no; then
18547 case $host_cpu in
18548 hppa*64*)
18549 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18550 ;;
18551 ia64*)
cristyda16f162011-02-19 23:52:17 +000018552 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 +000018553 ;;
18554 *)
cristyda16f162011-02-19 23:52:17 +000018555 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 +000018556 ;;
18557 esac
18558 fi
18559 else
18560 # FIXME: insert proper C++ library support
18561 ld_shlibs_CXX=no
18562 fi
18563 ;;
18564 esac
18565 ;;
18566
18567 interix[3-9]*)
18568 hardcode_direct_CXX=no
18569 hardcode_shlibpath_var_CXX=no
18570 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18571 export_dynamic_flag_spec_CXX='${wl}-E'
18572 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18573 # Instead, shared libraries are loaded at an image base (0x10000000 by
18574 # default) and relocated if they conflict, which is a slow very memory
18575 # consuming and fragmenting process. To avoid this, we pick a random,
18576 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18577 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18578 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'
18579 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'
18580 ;;
18581 irix5* | irix6*)
18582 case $cc_basename in
18583 CC*)
18584 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018585 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 +000018586
18587 # Archives containing C++ object files must be created using
18588 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18589 # necessary to make sure instantiated templates are included
18590 # in the archive.
18591 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18592 ;;
18593 *)
18594 if test "$GXX" = yes; then
18595 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018596 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 +000018597 else
cristyda16f162011-02-19 23:52:17 +000018598 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 +000018599 fi
18600 fi
18601 link_all_deplibs_CXX=yes
18602 ;;
18603 esac
18604 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18605 hardcode_libdir_separator_CXX=:
18606 inherit_rpath_CXX=yes
18607 ;;
18608
cristy0c60a692010-11-04 01:09:47 +000018609 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018610 case $cc_basename in
18611 KCC*)
18612 # Kuck and Associates, Inc. (KAI) C++ Compiler
18613
18614 # KCC will only create a shared library if the output file
18615 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18616 # to its proper name (with version) after linking.
18617 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'
18618 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'
18619 # Commands to make compiler produce verbose output that lists
18620 # what "hidden" libraries, object files and flags are used when
18621 # linking a shared library.
18622 #
18623 # There doesn't appear to be a way to prevent this compiler from
18624 # explicitly linking system object files so we need to strip them
18625 # from the output so that they don't get included in the library
18626 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018627 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 +000018628
18629 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18630 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18631
18632 # Archives containing C++ object files must be created using
18633 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18634 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18635 ;;
18636 icpc* | ecpc* )
18637 # Intel C++
18638 with_gnu_ld=yes
18639 # version 8.0 and above of icpc choke on multiply defined symbols
18640 # if we add $predep_objects and $postdep_objects, however 7.1 and
18641 # earlier do not add the objects themselves.
18642 case `$CC -V 2>&1` in
18643 *"Version 7."*)
18644 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18645 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'
18646 ;;
18647 *) # Version 8.0 or newer
18648 tmp_idyn=
18649 case $host_cpu in
18650 ia64*) tmp_idyn=' -i_dynamic';;
18651 esac
18652 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18653 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'
18654 ;;
18655 esac
18656 archive_cmds_need_lc_CXX=no
18657 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18658 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18659 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18660 ;;
18661 pgCC* | pgcpp*)
18662 # Portland Group C++ compiler
18663 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018664 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018665 prelink_cmds_CXX='tpldir=Template.dir~
18666 rm -rf $tpldir~
18667 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018668 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018669 old_archive_cmds_CXX='tpldir=Template.dir~
18670 rm -rf $tpldir~
18671 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018672 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018673 $RANLIB $oldlib'
18674 archive_cmds_CXX='tpldir=Template.dir~
18675 rm -rf $tpldir~
18676 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018677 $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 +000018678 archive_expsym_cmds_CXX='tpldir=Template.dir~
18679 rm -rf $tpldir~
18680 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018681 $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 +000018682 ;;
cristy0c60a692010-11-04 01:09:47 +000018683 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018684 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18685 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'
18686 ;;
18687 esac
18688
18689 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18690 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018691 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 +000018692 ;;
18693 cxx*)
18694 # Compaq C++
18695 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18696 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'
18697
18698 runpath_var=LD_RUN_PATH
18699 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18700 hardcode_libdir_separator_CXX=:
18701
18702 # Commands to make compiler produce verbose output that lists
18703 # what "hidden" libraries, object files and flags are used when
18704 # linking a shared library.
18705 #
18706 # There doesn't appear to be a way to prevent this compiler from
18707 # explicitly linking system object files so we need to strip them
18708 # from the output so that they don't get included in the library
18709 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018710 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 +000018711 ;;
cristy0c60a692010-11-04 01:09:47 +000018712 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018713 # IBM XL 8.0 on PPC, with GNU ld
18714 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18716 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18717 if test "x$supports_anon_versioning" = xyes; then
18718 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18720 echo "local: *; };" >> $output_objdir/$libname.ver~
18721 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18722 fi
18723 ;;
18724 *)
18725 case `$CC -V 2>&1 | sed 5q` in
18726 *Sun\ C*)
18727 # Sun C++ 5.9
18728 no_undefined_flag_CXX=' -zdefs'
18729 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18730 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'
18731 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018732 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 +000018733 compiler_needs_object_CXX=yes
18734
18735 # Not sure whether something based on
18736 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18737 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018738 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018739
18740 # Archives containing C++ object files must be created using
18741 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18742 # necessary to make sure instantiated templates are included
18743 # in the archive.
18744 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18745 ;;
18746 esac
18747 ;;
18748 esac
18749 ;;
18750
18751 lynxos*)
18752 # FIXME: insert proper C++ library support
18753 ld_shlibs_CXX=no
18754 ;;
18755
18756 m88k*)
18757 # FIXME: insert proper C++ library support
18758 ld_shlibs_CXX=no
18759 ;;
18760
18761 mvs*)
18762 case $cc_basename in
18763 cxx*)
18764 # FIXME: insert proper C++ library support
18765 ld_shlibs_CXX=no
18766 ;;
18767 *)
18768 # FIXME: insert proper C++ library support
18769 ld_shlibs_CXX=no
18770 ;;
18771 esac
18772 ;;
18773
18774 netbsd*)
18775 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18776 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18777 wlarc=
18778 hardcode_libdir_flag_spec_CXX='-R$libdir'
18779 hardcode_direct_CXX=yes
18780 hardcode_shlibpath_var_CXX=no
18781 fi
18782 # Workaround some broken pre-1.5 toolchains
18783 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18784 ;;
18785
18786 *nto* | *qnx*)
18787 ld_shlibs_CXX=yes
18788 ;;
18789
18790 openbsd2*)
18791 # C++ shared libraries are fairly broken
18792 ld_shlibs_CXX=no
18793 ;;
18794
18795 openbsd*)
18796 if test -f /usr/libexec/ld.so; then
18797 hardcode_direct_CXX=yes
18798 hardcode_shlibpath_var_CXX=no
18799 hardcode_direct_absolute_CXX=yes
18800 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18801 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18802 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18803 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18804 export_dynamic_flag_spec_CXX='${wl}-E'
18805 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18806 fi
cristy0c60a692010-11-04 01:09:47 +000018807 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018808 else
18809 ld_shlibs_CXX=no
18810 fi
18811 ;;
18812
18813 osf3* | osf4* | osf5*)
18814 case $cc_basename in
18815 KCC*)
18816 # Kuck and Associates, Inc. (KAI) C++ Compiler
18817
18818 # KCC will only create a shared library if the output file
18819 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18820 # to its proper name (with version) after linking.
18821 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'
18822
18823 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18824 hardcode_libdir_separator_CXX=:
18825
18826 # Archives containing C++ object files must be created using
18827 # the KAI C++ compiler.
18828 case $host in
18829 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18830 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18831 esac
18832 ;;
18833 RCC*)
18834 # Rational C++ 2.4.1
18835 # FIXME: insert proper C++ library support
18836 ld_shlibs_CXX=no
18837 ;;
18838 cxx*)
18839 case $host in
18840 osf3*)
18841 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018842 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 +000018843 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18844 ;;
18845 *)
18846 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018847 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 +000018848 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18849 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018850 $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 +000018851 $RM $lib.exp'
18852 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18853 ;;
18854 esac
18855
18856 hardcode_libdir_separator_CXX=:
18857
18858 # Commands to make compiler produce verbose output that lists
18859 # what "hidden" libraries, object files and flags are used when
18860 # linking a shared library.
18861 #
18862 # There doesn't appear to be a way to prevent this compiler from
18863 # explicitly linking system object files so we need to strip them
18864 # from the output so that they don't get included in the library
18865 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018866 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 +000018867 ;;
18868 *)
18869 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18870 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18871 case $host in
18872 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018873 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 +000018874 ;;
18875 *)
cristyda16f162011-02-19 23:52:17 +000018876 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 +000018877 ;;
18878 esac
18879
18880 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18881 hardcode_libdir_separator_CXX=:
18882
18883 # Commands to make compiler produce verbose output that lists
18884 # what "hidden" libraries, object files and flags are used when
18885 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018886 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018887
18888 else
18889 # FIXME: insert proper C++ library support
18890 ld_shlibs_CXX=no
18891 fi
18892 ;;
18893 esac
18894 ;;
18895
18896 psos*)
18897 # FIXME: insert proper C++ library support
18898 ld_shlibs_CXX=no
18899 ;;
18900
18901 sunos4*)
18902 case $cc_basename in
18903 CC*)
18904 # Sun C++ 4.x
18905 # FIXME: insert proper C++ library support
18906 ld_shlibs_CXX=no
18907 ;;
18908 lcc*)
18909 # Lucid
18910 # FIXME: insert proper C++ library support
18911 ld_shlibs_CXX=no
18912 ;;
18913 *)
18914 # FIXME: insert proper C++ library support
18915 ld_shlibs_CXX=no
18916 ;;
18917 esac
18918 ;;
18919
18920 solaris*)
18921 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018922 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018923 # Sun C++ 4.2, 5.x and Centerline C++
18924 archive_cmds_need_lc_CXX=yes
18925 no_undefined_flag_CXX=' -zdefs'
18926 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18927 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18928 $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'
18929
18930 hardcode_libdir_flag_spec_CXX='-R$libdir'
18931 hardcode_shlibpath_var_CXX=no
18932 case $host_os in
18933 solaris2.[0-5] | solaris2.[0-5].*) ;;
18934 *)
18935 # The compiler driver will combine and reorder linker options,
18936 # but understands `-z linker_flag'.
18937 # Supported since Solaris 2.6 (maybe 2.5.1?)
18938 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18939 ;;
18940 esac
18941 link_all_deplibs_CXX=yes
18942
cristy0c60a692010-11-04 01:09:47 +000018943 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018944
18945 # Archives containing C++ object files must be created using
18946 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18947 # necessary to make sure instantiated templates are included
18948 # in the archive.
18949 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18950 ;;
18951 gcx*)
18952 # Green Hills C++ Compiler
18953 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18954
18955 # The C++ compiler must be used to create the archive.
18956 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18957 ;;
18958 *)
18959 # GNU C++ compiler with Solaris linker
18960 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18961 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18962 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018963 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 +000018964 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 +000018965 $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 +000018966
18967 # Commands to make compiler produce verbose output that lists
18968 # what "hidden" libraries, object files and flags are used when
18969 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018970 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018971 else
18972 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18973 # platform.
18974 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18975 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18976 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18977
18978 # Commands to make compiler produce verbose output that lists
18979 # what "hidden" libraries, object files and flags are used when
18980 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018981 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018982 fi
18983
18984 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18985 case $host_os in
18986 solaris2.[0-5] | solaris2.[0-5].*) ;;
18987 *)
18988 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18989 ;;
18990 esac
18991 fi
18992 ;;
18993 esac
18994 ;;
18995
18996 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18997 no_undefined_flag_CXX='${wl}-z,text'
18998 archive_cmds_need_lc_CXX=no
18999 hardcode_shlibpath_var_CXX=no
19000 runpath_var='LD_RUN_PATH'
19001
19002 case $cc_basename in
19003 CC*)
19004 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19005 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19006 ;;
19007 *)
19008 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19009 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19010 ;;
19011 esac
19012 ;;
19013
19014 sysv5* | sco3.2v5* | sco5v6*)
19015 # Note: We can NOT use -z defs as we might desire, because we do not
19016 # link with -lc, and that would cause any symbols used from libc to
19017 # always be unresolved, which means just about no library would
19018 # ever link correctly. If we're not using GNU ld we use -z text
19019 # though, which does catch some bad symbols but isn't as heavy-handed
19020 # as -z defs.
19021 no_undefined_flag_CXX='${wl}-z,text'
19022 allow_undefined_flag_CXX='${wl}-z,nodefs'
19023 archive_cmds_need_lc_CXX=no
19024 hardcode_shlibpath_var_CXX=no
19025 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19026 hardcode_libdir_separator_CXX=':'
19027 link_all_deplibs_CXX=yes
19028 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19029 runpath_var='LD_RUN_PATH'
19030
19031 case $cc_basename in
19032 CC*)
19033 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19034 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 +000019035 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19036 '"$old_archive_cmds_CXX"
19037 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19038 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019039 ;;
19040 *)
19041 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19042 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19043 ;;
19044 esac
19045 ;;
19046
19047 tandem*)
19048 case $cc_basename in
19049 NCC*)
19050 # NonStop-UX NCC 3.20
19051 # FIXME: insert proper C++ library support
19052 ld_shlibs_CXX=no
19053 ;;
19054 *)
19055 # FIXME: insert proper C++ library support
19056 ld_shlibs_CXX=no
19057 ;;
19058 esac
19059 ;;
19060
19061 vxworks*)
19062 # FIXME: insert proper C++ library support
19063 ld_shlibs_CXX=no
19064 ;;
19065
19066 *)
19067 # FIXME: insert proper C++ library support
19068 ld_shlibs_CXX=no
19069 ;;
19070 esac
19071
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19073$as_echo "$ld_shlibs_CXX" >&6; }
19074 test "$ld_shlibs_CXX" = no && can_build_shared=no
19075
19076 GCC_CXX="$GXX"
19077 LD_CXX="$LD"
19078
19079 ## CAVEAT EMPTOR:
19080 ## There is no encapsulation within the following macros, do not change
19081 ## the running order or otherwise move them around unless you know exactly
19082 ## what you are doing...
19083 # Dependencies to place before and after the object being linked:
19084predep_objects_CXX=
19085postdep_objects_CXX=
19086predeps_CXX=
19087postdeps_CXX=
19088compiler_lib_search_path_CXX=
19089
19090cat > conftest.$ac_ext <<_LT_EOF
19091class Foo
19092{
19093public:
19094 Foo (void) { a = 0; }
19095private:
19096 int a;
19097};
19098_LT_EOF
19099
cristyda16f162011-02-19 23:52:17 +000019100
19101_lt_libdeps_save_CFLAGS=$CFLAGS
19102case "$CC $CFLAGS " in #(
19103*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19104*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019105*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019106esac
19107
cristy73bd4a52010-10-05 11:24:23 +000019108if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19109 (eval $ac_compile) 2>&5
19110 ac_status=$?
19111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19112 test $ac_status = 0; }; then
19113 # Parse the compiler output and extract the necessary
19114 # objects, libraries and library flags.
19115
19116 # Sentinel used to keep track of whether or not we are before
19117 # the conftest object file.
19118 pre_test_object_deps_done=no
19119
19120 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019121 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019122
19123 -L* | -R* | -l*)
19124 # Some compilers place space between "-{L,R}" and the path.
19125 # Remove the space.
19126 if test $p = "-L" ||
19127 test $p = "-R"; then
19128 prev=$p
19129 continue
cristy73bd4a52010-10-05 11:24:23 +000019130 fi
19131
cristyda16f162011-02-19 23:52:17 +000019132 # Expand the sysroot to ease extracting the directories later.
19133 if test -z "$prev"; then
19134 case $p in
19135 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19136 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19137 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19138 esac
19139 fi
19140 case $p in
19141 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19142 esac
cristy73bd4a52010-10-05 11:24:23 +000019143 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019144 case ${prev} in
19145 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019146 # Internal compiler library paths should come after those
19147 # provided the user. The postdeps already come after the
19148 # user supplied libs so there is no need to process them.
19149 if test -z "$compiler_lib_search_path_CXX"; then
19150 compiler_lib_search_path_CXX="${prev}${p}"
19151 else
19152 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19153 fi
19154 ;;
19155 # The "-l" case would never come before the object being
19156 # linked, so don't bother handling this case.
19157 esac
19158 else
19159 if test -z "$postdeps_CXX"; then
19160 postdeps_CXX="${prev}${p}"
19161 else
19162 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19163 fi
19164 fi
cristyda16f162011-02-19 23:52:17 +000019165 prev=
cristy73bd4a52010-10-05 11:24:23 +000019166 ;;
19167
cristyda16f162011-02-19 23:52:17 +000019168 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019169 *.$objext)
19170 # This assumes that the test object file only shows up
19171 # once in the compiler output.
19172 if test "$p" = "conftest.$objext"; then
19173 pre_test_object_deps_done=yes
19174 continue
19175 fi
19176
19177 if test "$pre_test_object_deps_done" = no; then
19178 if test -z "$predep_objects_CXX"; then
19179 predep_objects_CXX="$p"
19180 else
19181 predep_objects_CXX="$predep_objects_CXX $p"
19182 fi
19183 else
19184 if test -z "$postdep_objects_CXX"; then
19185 postdep_objects_CXX="$p"
19186 else
19187 postdep_objects_CXX="$postdep_objects_CXX $p"
19188 fi
19189 fi
19190 ;;
19191
19192 *) ;; # Ignore the rest.
19193
19194 esac
19195 done
19196
19197 # Clean up.
19198 rm -f a.out a.exe
19199else
19200 echo "libtool.m4: error: problem compiling CXX test program"
19201fi
19202
19203$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019204CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019205
19206# PORTME: override above test on systems where it is broken
19207case $host_os in
19208interix[3-9]*)
19209 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19210 # hack all around it, let's just trust "g++" to DTRT.
19211 predep_objects_CXX=
19212 postdep_objects_CXX=
19213 postdeps_CXX=
19214 ;;
19215
19216linux*)
19217 case `$CC -V 2>&1 | sed 5q` in
19218 *Sun\ C*)
19219 # Sun C++ 5.9
19220
19221 # The more standards-conforming stlport4 library is
19222 # incompatible with the Cstd library. Avoid specifying
19223 # it if it's in CXXFLAGS. Ignore libCrun as
19224 # -library=stlport4 depends on it.
19225 case " $CXX $CXXFLAGS " in
19226 *" -library=stlport4 "*)
19227 solaris_use_stlport4=yes
19228 ;;
19229 esac
19230
19231 if test "$solaris_use_stlport4" != yes; then
19232 postdeps_CXX='-library=Cstd -library=Crun'
19233 fi
19234 ;;
19235 esac
19236 ;;
19237
19238solaris*)
19239 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019240 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019241 # The more standards-conforming stlport4 library is
19242 # incompatible with the Cstd library. Avoid specifying
19243 # it if it's in CXXFLAGS. Ignore libCrun as
19244 # -library=stlport4 depends on it.
19245 case " $CXX $CXXFLAGS " in
19246 *" -library=stlport4 "*)
19247 solaris_use_stlport4=yes
19248 ;;
19249 esac
19250
19251 # Adding this requires a known-good setup of shared libraries for
19252 # Sun compiler versions before 5.6, else PIC objects from an old
19253 # archive will be linked into the output, leading to subtle bugs.
19254 if test "$solaris_use_stlport4" != yes; then
19255 postdeps_CXX='-library=Cstd -library=Crun'
19256 fi
19257 ;;
19258 esac
19259 ;;
19260esac
19261
19262
19263case " $postdeps_CXX " in
19264*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19265esac
19266 compiler_lib_search_dirs_CXX=
19267if test -n "${compiler_lib_search_path_CXX}"; then
19268 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19269fi
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301 lt_prog_compiler_wl_CXX=
19302lt_prog_compiler_pic_CXX=
19303lt_prog_compiler_static_CXX=
19304
cristy73bd4a52010-10-05 11:24:23 +000019305
19306 # C++ specific cases for pic, static, wl, etc.
19307 if test "$GXX" = yes; then
19308 lt_prog_compiler_wl_CXX='-Wl,'
19309 lt_prog_compiler_static_CXX='-static'
19310
19311 case $host_os in
19312 aix*)
19313 # All AIX code is PIC.
19314 if test "$host_cpu" = ia64; then
19315 # AIX 5 now supports IA64 processor
19316 lt_prog_compiler_static_CXX='-Bstatic'
19317 fi
19318 ;;
19319
19320 amigaos*)
19321 case $host_cpu in
19322 powerpc)
19323 # see comment about AmigaOS4 .so support
19324 lt_prog_compiler_pic_CXX='-fPIC'
19325 ;;
19326 m68k)
19327 # FIXME: we need at least 68020 code to build shared libraries, but
19328 # adding the `-m68020' flag to GCC prevents building anything better,
19329 # like `-m68040'.
19330 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19331 ;;
19332 esac
19333 ;;
19334
19335 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19336 # PIC is the default for these OSes.
19337 ;;
19338 mingw* | cygwin* | os2* | pw32* | cegcc*)
19339 # This hack is so that the source file can tell whether it is being
19340 # built for inclusion in a dll (and should export symbols for example).
19341 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19342 # (--disable-auto-import) libraries
19343 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19344 ;;
19345 darwin* | rhapsody*)
19346 # PIC is the default on this platform
19347 # Common symbols not allowed in MH_DYLIB files
19348 lt_prog_compiler_pic_CXX='-fno-common'
19349 ;;
19350 *djgpp*)
19351 # DJGPP does not support shared libraries at all
19352 lt_prog_compiler_pic_CXX=
19353 ;;
cristy0c60a692010-11-04 01:09:47 +000019354 haiku*)
19355 # PIC is the default for Haiku.
19356 # The "-static" flag exists, but is broken.
19357 lt_prog_compiler_static_CXX=
19358 ;;
cristy73bd4a52010-10-05 11:24:23 +000019359 interix[3-9]*)
19360 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19361 # Instead, we relocate shared libraries at runtime.
19362 ;;
19363 sysv4*MP*)
19364 if test -d /usr/nec; then
19365 lt_prog_compiler_pic_CXX=-Kconform_pic
19366 fi
19367 ;;
19368 hpux*)
19369 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19370 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19371 # sets the default TLS model and affects inlining.
19372 case $host_cpu in
19373 hppa*64*)
19374 ;;
19375 *)
19376 lt_prog_compiler_pic_CXX='-fPIC'
19377 ;;
19378 esac
19379 ;;
19380 *qnx* | *nto*)
19381 # QNX uses GNU C++, but need to define -shared option too, otherwise
19382 # it will coredump.
19383 lt_prog_compiler_pic_CXX='-fPIC -shared'
19384 ;;
19385 *)
19386 lt_prog_compiler_pic_CXX='-fPIC'
19387 ;;
19388 esac
19389 else
19390 case $host_os in
19391 aix[4-9]*)
19392 # All AIX code is PIC.
19393 if test "$host_cpu" = ia64; then
19394 # AIX 5 now supports IA64 processor
19395 lt_prog_compiler_static_CXX='-Bstatic'
19396 else
19397 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19398 fi
19399 ;;
19400 chorus*)
19401 case $cc_basename in
19402 cxch68*)
19403 # Green Hills C++ Compiler
19404 # _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"
19405 ;;
19406 esac
19407 ;;
cristyda16f162011-02-19 23:52:17 +000019408 mingw* | cygwin* | os2* | pw32* | cegcc*)
19409 # This hack is so that the source file can tell whether it is being
19410 # built for inclusion in a dll (and should export symbols for example).
19411 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19412 ;;
cristy73bd4a52010-10-05 11:24:23 +000019413 dgux*)
19414 case $cc_basename in
19415 ec++*)
19416 lt_prog_compiler_pic_CXX='-KPIC'
19417 ;;
19418 ghcx*)
19419 # Green Hills C++ Compiler
19420 lt_prog_compiler_pic_CXX='-pic'
19421 ;;
19422 *)
19423 ;;
19424 esac
19425 ;;
19426 freebsd* | dragonfly*)
19427 # FreeBSD uses GNU C++
19428 ;;
19429 hpux9* | hpux10* | hpux11*)
19430 case $cc_basename in
19431 CC*)
19432 lt_prog_compiler_wl_CXX='-Wl,'
19433 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19434 if test "$host_cpu" != ia64; then
19435 lt_prog_compiler_pic_CXX='+Z'
19436 fi
19437 ;;
19438 aCC*)
19439 lt_prog_compiler_wl_CXX='-Wl,'
19440 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19441 case $host_cpu in
19442 hppa*64*|ia64*)
19443 # +Z the default
19444 ;;
19445 *)
19446 lt_prog_compiler_pic_CXX='+Z'
19447 ;;
19448 esac
19449 ;;
19450 *)
19451 ;;
19452 esac
19453 ;;
19454 interix*)
19455 # This is c89, which is MS Visual C++ (no shared libs)
19456 # Anyone wants to do a port?
19457 ;;
19458 irix5* | irix6* | nonstopux*)
19459 case $cc_basename in
19460 CC*)
19461 lt_prog_compiler_wl_CXX='-Wl,'
19462 lt_prog_compiler_static_CXX='-non_shared'
19463 # CC pic flag -KPIC is the default.
19464 ;;
19465 *)
19466 ;;
19467 esac
19468 ;;
cristy0c60a692010-11-04 01:09:47 +000019469 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019470 case $cc_basename in
19471 KCC*)
19472 # KAI C++ Compiler
19473 lt_prog_compiler_wl_CXX='--backend -Wl,'
19474 lt_prog_compiler_pic_CXX='-fPIC'
19475 ;;
19476 ecpc* )
19477 # old Intel C++ for x86_64 which still supported -KPIC.
19478 lt_prog_compiler_wl_CXX='-Wl,'
19479 lt_prog_compiler_pic_CXX='-KPIC'
19480 lt_prog_compiler_static_CXX='-static'
19481 ;;
19482 icpc* )
19483 # Intel C++, used to be incompatible with GCC.
19484 # ICC 10 doesn't accept -KPIC any more.
19485 lt_prog_compiler_wl_CXX='-Wl,'
19486 lt_prog_compiler_pic_CXX='-fPIC'
19487 lt_prog_compiler_static_CXX='-static'
19488 ;;
19489 pgCC* | pgcpp*)
19490 # Portland Group C++ compiler
19491 lt_prog_compiler_wl_CXX='-Wl,'
19492 lt_prog_compiler_pic_CXX='-fpic'
19493 lt_prog_compiler_static_CXX='-Bstatic'
19494 ;;
19495 cxx*)
19496 # Compaq C++
19497 # Make sure the PIC flag is empty. It appears that all Alpha
19498 # Linux and Compaq Tru64 Unix objects are PIC.
19499 lt_prog_compiler_pic_CXX=
19500 lt_prog_compiler_static_CXX='-non_shared'
19501 ;;
cristy0c60a692010-11-04 01:09:47 +000019502 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19503 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019504 lt_prog_compiler_wl_CXX='-Wl,'
19505 lt_prog_compiler_pic_CXX='-qpic'
19506 lt_prog_compiler_static_CXX='-qstaticlink'
19507 ;;
19508 *)
19509 case `$CC -V 2>&1 | sed 5q` in
19510 *Sun\ C*)
19511 # Sun C++ 5.9
19512 lt_prog_compiler_pic_CXX='-KPIC'
19513 lt_prog_compiler_static_CXX='-Bstatic'
19514 lt_prog_compiler_wl_CXX='-Qoption ld '
19515 ;;
19516 esac
19517 ;;
19518 esac
19519 ;;
19520 lynxos*)
19521 ;;
19522 m88k*)
19523 ;;
19524 mvs*)
19525 case $cc_basename in
19526 cxx*)
19527 lt_prog_compiler_pic_CXX='-W c,exportall'
19528 ;;
19529 *)
19530 ;;
19531 esac
19532 ;;
19533 netbsd*)
19534 ;;
19535 *qnx* | *nto*)
19536 # QNX uses GNU C++, but need to define -shared option too, otherwise
19537 # it will coredump.
19538 lt_prog_compiler_pic_CXX='-fPIC -shared'
19539 ;;
19540 osf3* | osf4* | osf5*)
19541 case $cc_basename in
19542 KCC*)
19543 lt_prog_compiler_wl_CXX='--backend -Wl,'
19544 ;;
19545 RCC*)
19546 # Rational C++ 2.4.1
19547 lt_prog_compiler_pic_CXX='-pic'
19548 ;;
19549 cxx*)
19550 # Digital/Compaq C++
19551 lt_prog_compiler_wl_CXX='-Wl,'
19552 # Make sure the PIC flag is empty. It appears that all Alpha
19553 # Linux and Compaq Tru64 Unix objects are PIC.
19554 lt_prog_compiler_pic_CXX=
19555 lt_prog_compiler_static_CXX='-non_shared'
19556 ;;
19557 *)
19558 ;;
19559 esac
19560 ;;
19561 psos*)
19562 ;;
19563 solaris*)
19564 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019565 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019566 # Sun C++ 4.2, 5.x and Centerline C++
19567 lt_prog_compiler_pic_CXX='-KPIC'
19568 lt_prog_compiler_static_CXX='-Bstatic'
19569 lt_prog_compiler_wl_CXX='-Qoption ld '
19570 ;;
19571 gcx*)
19572 # Green Hills C++ Compiler
19573 lt_prog_compiler_pic_CXX='-PIC'
19574 ;;
19575 *)
19576 ;;
19577 esac
19578 ;;
19579 sunos4*)
19580 case $cc_basename in
19581 CC*)
19582 # Sun C++ 4.x
19583 lt_prog_compiler_pic_CXX='-pic'
19584 lt_prog_compiler_static_CXX='-Bstatic'
19585 ;;
19586 lcc*)
19587 # Lucid
19588 lt_prog_compiler_pic_CXX='-pic'
19589 ;;
19590 *)
19591 ;;
19592 esac
19593 ;;
19594 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19595 case $cc_basename in
19596 CC*)
19597 lt_prog_compiler_wl_CXX='-Wl,'
19598 lt_prog_compiler_pic_CXX='-KPIC'
19599 lt_prog_compiler_static_CXX='-Bstatic'
19600 ;;
19601 esac
19602 ;;
19603 tandem*)
19604 case $cc_basename in
19605 NCC*)
19606 # NonStop-UX NCC 3.20
19607 lt_prog_compiler_pic_CXX='-KPIC'
19608 ;;
19609 *)
19610 ;;
19611 esac
19612 ;;
19613 vxworks*)
19614 ;;
19615 *)
19616 lt_prog_compiler_can_build_shared_CXX=no
19617 ;;
19618 esac
19619 fi
19620
19621case $host_os in
19622 # For platforms which do not support PIC, -DPIC is meaningless:
19623 *djgpp*)
19624 lt_prog_compiler_pic_CXX=
19625 ;;
19626 *)
19627 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19628 ;;
19629esac
cristy73bd4a52010-10-05 11:24:23 +000019630
cristyda16f162011-02-19 23:52:17 +000019631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19632$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19633if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19634 $as_echo_n "(cached) " >&6
19635else
19636 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19637fi
19638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19639$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19640lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019641
19642#
19643# Check to make sure the PIC flag actually works.
19644#
19645if test -n "$lt_prog_compiler_pic_CXX"; then
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19647$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019648if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019649 $as_echo_n "(cached) " >&6
19650else
19651 lt_cv_prog_compiler_pic_works_CXX=no
19652 ac_outfile=conftest.$ac_objext
19653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19654 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19655 # Insert the option either (1) after the last *FLAGS variable, or
19656 # (2) before a word containing "conftest.", or (3) at the end.
19657 # Note that $ac_compile itself does not contain backslashes and begins
19658 # with a dollar sign (not a hyphen), so the echo should work correctly.
19659 # The option is referenced via a variable to avoid confusing sed.
19660 lt_compile=`echo "$ac_compile" | $SED \
19661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19663 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019665 (eval "$lt_compile" 2>conftest.err)
19666 ac_status=$?
19667 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019669 if (exit $ac_status) && test -s "$ac_outfile"; then
19670 # The compiler can only warn and ignore the option if not recognized
19671 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19675 lt_cv_prog_compiler_pic_works_CXX=yes
19676 fi
19677 fi
19678 $RM conftest*
19679
19680fi
19681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19682$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19683
19684if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19685 case $lt_prog_compiler_pic_CXX in
19686 "" | " "*) ;;
19687 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19688 esac
19689else
19690 lt_prog_compiler_pic_CXX=
19691 lt_prog_compiler_can_build_shared_CXX=no
19692fi
19693
19694fi
19695
19696
19697
cristyda16f162011-02-19 23:52:17 +000019698
19699
cristy73bd4a52010-10-05 11:24:23 +000019700#
19701# Check to make sure the static flag actually works.
19702#
19703wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19705$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019706if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019707 $as_echo_n "(cached) " >&6
19708else
19709 lt_cv_prog_compiler_static_works_CXX=no
19710 save_LDFLAGS="$LDFLAGS"
19711 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19712 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19713 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19714 # The linker can only warn and ignore the option if not recognized
19715 # So say no if there are warnings
19716 if test -s conftest.err; then
19717 # Append any errors to the config.log.
19718 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019719 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19721 if diff conftest.exp conftest.er2 >/dev/null; then
19722 lt_cv_prog_compiler_static_works_CXX=yes
19723 fi
19724 else
19725 lt_cv_prog_compiler_static_works_CXX=yes
19726 fi
19727 fi
19728 $RM -r conftest*
19729 LDFLAGS="$save_LDFLAGS"
19730
19731fi
19732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19733$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19734
19735if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19736 :
19737else
19738 lt_prog_compiler_static_CXX=
19739fi
19740
19741
19742
19743
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19745$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019746if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019747 $as_echo_n "(cached) " >&6
19748else
19749 lt_cv_prog_compiler_c_o_CXX=no
19750 $RM -r conftest 2>/dev/null
19751 mkdir conftest
19752 cd conftest
19753 mkdir out
19754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19755
19756 lt_compiler_flag="-o out/conftest2.$ac_objext"
19757 # Insert the option either (1) after the last *FLAGS variable, or
19758 # (2) before a word containing "conftest.", or (3) at the end.
19759 # Note that $ac_compile itself does not contain backslashes and begins
19760 # with a dollar sign (not a hyphen), so the echo should work correctly.
19761 lt_compile=`echo "$ac_compile" | $SED \
19762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19764 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019766 (eval "$lt_compile" 2>out/conftest.err)
19767 ac_status=$?
19768 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019770 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19771 then
19772 # The compiler can only warn and ignore the option if not recognized
19773 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019775 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19776 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19777 lt_cv_prog_compiler_c_o_CXX=yes
19778 fi
19779 fi
19780 chmod u+w . 2>&5
19781 $RM conftest*
19782 # SGI C++ compiler will create directory out/ii_files/ for
19783 # template instantiation
19784 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19785 $RM out/* && rmdir out
19786 cd ..
19787 $RM -r conftest
19788 $RM conftest*
19789
19790fi
19791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19792$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19793
19794
19795
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19797$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019798if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019799 $as_echo_n "(cached) " >&6
19800else
19801 lt_cv_prog_compiler_c_o_CXX=no
19802 $RM -r conftest 2>/dev/null
19803 mkdir conftest
19804 cd conftest
19805 mkdir out
19806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19807
19808 lt_compiler_flag="-o out/conftest2.$ac_objext"
19809 # Insert the option either (1) after the last *FLAGS variable, or
19810 # (2) before a word containing "conftest.", or (3) at the end.
19811 # Note that $ac_compile itself does not contain backslashes and begins
19812 # with a dollar sign (not a hyphen), so the echo should work correctly.
19813 lt_compile=`echo "$ac_compile" | $SED \
19814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19816 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019818 (eval "$lt_compile" 2>out/conftest.err)
19819 ac_status=$?
19820 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19823 then
19824 # The compiler can only warn and ignore the option if not recognized
19825 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019827 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19828 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19829 lt_cv_prog_compiler_c_o_CXX=yes
19830 fi
19831 fi
19832 chmod u+w . 2>&5
19833 $RM conftest*
19834 # SGI C++ compiler will create directory out/ii_files/ for
19835 # template instantiation
19836 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19837 $RM out/* && rmdir out
19838 cd ..
19839 $RM -r conftest
19840 $RM conftest*
19841
19842fi
19843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19844$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19845
19846
19847
19848
19849hard_links="nottested"
19850if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19851 # do not overwrite the value of need_locks provided by the user
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19853$as_echo_n "checking if we can lock with hard links... " >&6; }
19854 hard_links=yes
19855 $RM conftest*
19856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19857 touch conftest.a
19858 ln conftest.a conftest.b 2>&5 || hard_links=no
19859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19861$as_echo "$hard_links" >&6; }
19862 if test "$hard_links" = no; then
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19864$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19865 need_locks=warn
19866 fi
19867else
19868 need_locks=no
19869fi
19870
19871
19872
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19874$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19875
19876 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019877 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019878 case $host_os in
19879 aix[4-9]*)
19880 # If we're using GNU nm, then we don't want the "-C" option.
19881 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019882 # Also, AIX nm treats weak defined symbols like other global defined
19883 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019884 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019885 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 +000019886 else
19887 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'
19888 fi
19889 ;;
19890 pw32*)
19891 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019892 ;;
cristy73bd4a52010-10-05 11:24:23 +000019893 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019894 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019895 cl*)
19896 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19897 ;;
cristyda16f162011-02-19 23:52:17 +000019898 *)
19899 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'
19900 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19901 ;;
19902 esac
19903 ;;
cristy73bd4a52010-10-05 11:24:23 +000019904 *)
19905 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019906 ;;
cristy73bd4a52010-10-05 11:24:23 +000019907 esac
cristy73bd4a52010-10-05 11:24:23 +000019908
19909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19910$as_echo "$ld_shlibs_CXX" >&6; }
19911test "$ld_shlibs_CXX" = no && can_build_shared=no
19912
19913with_gnu_ld_CXX=$with_gnu_ld
19914
19915
19916
19917
19918
19919
19920#
19921# Do we need to explicitly link libc?
19922#
19923case "x$archive_cmds_need_lc_CXX" in
19924x|xyes)
19925 # Assume -lc should be added
19926 archive_cmds_need_lc_CXX=yes
19927
19928 if test "$enable_shared" = yes && test "$GCC" = yes; then
19929 case $archive_cmds_CXX in
19930 *'~'*)
19931 # FIXME: we may have to deal with multi-command sequences.
19932 ;;
19933 '$CC '*)
19934 # Test whether the compiler implicitly links with -lc since on some
19935 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19936 # to ld, don't add -lc before -lgcc.
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19938$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019939if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019940 $as_echo_n "(cached) " >&6
19941else
19942 $RM conftest*
19943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019944
cristy0c60a692010-11-04 01:09:47 +000019945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019946 (eval $ac_compile) 2>&5
19947 ac_status=$?
19948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19949 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019950 soname=conftest
19951 lib=conftest
19952 libobjs=conftest.$ac_objext
19953 deplibs=
19954 wl=$lt_prog_compiler_wl_CXX
19955 pic_flag=$lt_prog_compiler_pic_CXX
19956 compiler_flags=-v
19957 linker_flags=-v
19958 verstring=
19959 output_objdir=.
19960 libname=conftest
19961 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19962 allow_undefined_flag_CXX=
19963 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 +000019964 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19965 ac_status=$?
19966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19967 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019968 then
19969 lt_cv_archive_cmds_need_lc_CXX=no
19970 else
19971 lt_cv_archive_cmds_need_lc_CXX=yes
19972 fi
19973 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19974 else
19975 cat conftest.err 1>&5
19976 fi
19977 $RM conftest*
19978
19979fi
19980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19981$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19982 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019983 ;;
19984 esac
19985 fi
19986 ;;
19987esac
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
cristy73bd4a52010-10-05 11:24:23 +000020050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20051$as_echo_n "checking dynamic linker characteristics... " >&6; }
20052
20053library_names_spec=
20054libname_spec='lib$name'
20055soname_spec=
20056shrext_cmds=".so"
20057postinstall_cmds=
20058postuninstall_cmds=
20059finish_cmds=
20060finish_eval=
20061shlibpath_var=
20062shlibpath_overrides_runpath=unknown
20063version_type=none
20064dynamic_linker="$host_os ld.so"
20065sys_lib_dlsearch_path_spec="/lib /usr/lib"
20066need_lib_prefix=unknown
20067hardcode_into_libs=no
20068
20069# when you set need_version to no, make sure it does not cause -set_version
20070# flags to be left without arguments
20071need_version=unknown
20072
20073case $host_os in
20074aix3*)
cristy99bd5232011-12-07 14:38:20 +000020075 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20077 shlibpath_var=LIBPATH
20078
20079 # AIX 3 has no versioning support, so we append a major version to the name.
20080 soname_spec='${libname}${release}${shared_ext}$major'
20081 ;;
20082
20083aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020084 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020085 need_lib_prefix=no
20086 need_version=no
20087 hardcode_into_libs=yes
20088 if test "$host_cpu" = ia64; then
20089 # AIX 5 supports IA64
20090 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20091 shlibpath_var=LD_LIBRARY_PATH
20092 else
20093 # With GCC up to 2.95.x, collect2 would create an import file
20094 # for dependence libraries. The import file would start with
20095 # the line `#! .'. This would cause the generated library to
20096 # depend on `.', always an invalid library. This was fixed in
20097 # development snapshots of GCC prior to 3.0.
20098 case $host_os in
20099 aix4 | aix4.[01] | aix4.[01].*)
20100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20101 echo ' yes '
20102 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20103 :
20104 else
20105 can_build_shared=no
20106 fi
20107 ;;
20108 esac
20109 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20110 # soname into executable. Probably we can add versioning support to
20111 # collect2, so additional links can be useful in future.
20112 if test "$aix_use_runtimelinking" = yes; then
20113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20114 # instead of lib<name>.a to let people know that these are not
20115 # typical AIX shared libraries.
20116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20117 else
20118 # We preserve .a as extension for shared libraries through AIX4.2
20119 # and later when we are not doing run time linking.
20120 library_names_spec='${libname}${release}.a $libname.a'
20121 soname_spec='${libname}${release}${shared_ext}$major'
20122 fi
20123 shlibpath_var=LIBPATH
20124 fi
20125 ;;
20126
20127amigaos*)
20128 case $host_cpu in
20129 powerpc)
20130 # Since July 2007 AmigaOS4 officially supports .so libraries.
20131 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20133 ;;
20134 m68k)
20135 library_names_spec='$libname.ixlibrary $libname.a'
20136 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020137 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 +000020138 ;;
20139 esac
20140 ;;
20141
20142beos*)
20143 library_names_spec='${libname}${shared_ext}'
20144 dynamic_linker="$host_os ld.so"
20145 shlibpath_var=LIBRARY_PATH
20146 ;;
20147
20148bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020149 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020150 need_version=no
20151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20152 soname_spec='${libname}${release}${shared_ext}$major'
20153 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20154 shlibpath_var=LD_LIBRARY_PATH
20155 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20156 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20157 # the default ld.so.conf also contains /usr/contrib/lib and
20158 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20159 # libtool to hard-code these into programs
20160 ;;
20161
20162cygwin* | mingw* | pw32* | cegcc*)
20163 version_type=windows
20164 shrext_cmds=".dll"
20165 need_version=no
20166 need_lib_prefix=no
20167
cristyda16f162011-02-19 23:52:17 +000020168 case $GCC,$cc_basename in
20169 yes,*)
20170 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020171 library_names_spec='$libname.dll.a'
20172 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20173 postinstall_cmds='base_file=`basename \${file}`~
20174 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20175 dldir=$destdir/`dirname \$dlpath`~
20176 test -d \$dldir || mkdir -p \$dldir~
20177 $install_prog $dir/$dlname \$dldir/$dlname~
20178 chmod a+x \$dldir/$dlname~
20179 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20180 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20181 fi'
20182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20183 dlpath=$dir/\$dldll~
20184 $RM \$dlpath'
20185 shlibpath_overrides_runpath=yes
20186
20187 case $host_os in
20188 cygwin*)
20189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020191
cristy73bd4a52010-10-05 11:24:23 +000020192 ;;
20193 mingw* | cegcc*)
20194 # MinGW DLLs use traditional 'lib' prefix
20195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020196 ;;
20197 pw32*)
20198 # pw32 DLLs use 'pw' prefix rather than 'lib'
20199 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20200 ;;
20201 esac
cristyda16f162011-02-19 23:52:17 +000020202 dynamic_linker='Win32 ld.exe'
20203 ;;
20204
20205 *,cl*)
20206 # Native MSVC
20207 libname_spec='$name'
20208 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20209 library_names_spec='${libname}.dll.lib'
20210
20211 case $build_os in
20212 mingw*)
20213 sys_lib_search_path_spec=
20214 lt_save_ifs=$IFS
20215 IFS=';'
20216 for lt_path in $LIB
20217 do
20218 IFS=$lt_save_ifs
20219 # Let DOS variable expansion print the short 8.3 style file name.
20220 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20221 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20222 done
20223 IFS=$lt_save_ifs
20224 # Convert to MSYS style.
20225 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20226 ;;
20227 cygwin*)
20228 # Convert to unix form, then to dos form, then back to unix form
20229 # but this time dos style (no spaces!) so that the unix form looks
20230 # like /cygdrive/c/PROGRA~1:/cygdr...
20231 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20232 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20233 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20234 ;;
20235 *)
20236 sys_lib_search_path_spec="$LIB"
20237 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20238 # It is most probably a Windows format PATH.
20239 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20240 else
20241 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20242 fi
20243 # FIXME: find the short name or the path components, as spaces are
20244 # common. (e.g. "Program Files" -> "PROGRA~1")
20245 ;;
20246 esac
20247
20248 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20249 postinstall_cmds='base_file=`basename \${file}`~
20250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20251 dldir=$destdir/`dirname \$dlpath`~
20252 test -d \$dldir || mkdir -p \$dldir~
20253 $install_prog $dir/$dlname \$dldir/$dlname'
20254 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20255 dlpath=$dir/\$dldll~
20256 $RM \$dlpath'
20257 shlibpath_overrides_runpath=yes
20258 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020259 ;;
20260
20261 *)
cristyda16f162011-02-19 23:52:17 +000020262 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020263 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020264 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020265 ;;
20266 esac
cristy73bd4a52010-10-05 11:24:23 +000020267 # FIXME: first we should search . and the directory the executable is in
20268 shlibpath_var=PATH
20269 ;;
20270
20271darwin* | rhapsody*)
20272 dynamic_linker="$host_os dyld"
20273 version_type=darwin
20274 need_lib_prefix=no
20275 need_version=no
20276 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20277 soname_spec='${libname}${release}${major}$shared_ext'
20278 shlibpath_overrides_runpath=yes
20279 shlibpath_var=DYLD_LIBRARY_PATH
20280 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20281
20282 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20283 ;;
20284
20285dgux*)
cristy99bd5232011-12-07 14:38:20 +000020286 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020287 need_lib_prefix=no
20288 need_version=no
20289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20290 soname_spec='${libname}${release}${shared_ext}$major'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 ;;
20293
cristy73bd4a52010-10-05 11:24:23 +000020294freebsd* | dragonfly*)
20295 # DragonFly does not have aout. When/if they implement a new
20296 # versioning mechanism, adjust this.
20297 if test -x /usr/bin/objformat; then
20298 objformat=`/usr/bin/objformat`
20299 else
20300 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020301 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020302 *) objformat=elf ;;
20303 esac
20304 fi
20305 version_type=freebsd-$objformat
20306 case $version_type in
20307 freebsd-elf*)
20308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20309 need_version=no
20310 need_lib_prefix=no
20311 ;;
20312 freebsd-*)
20313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20314 need_version=yes
20315 ;;
20316 esac
20317 shlibpath_var=LD_LIBRARY_PATH
20318 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020319 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020320 shlibpath_overrides_runpath=yes
20321 ;;
20322 freebsd3.[01]* | freebsdelf3.[01]*)
20323 shlibpath_overrides_runpath=yes
20324 hardcode_into_libs=yes
20325 ;;
20326 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20327 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20328 shlibpath_overrides_runpath=no
20329 hardcode_into_libs=yes
20330 ;;
20331 *) # from 4.6 on, and DragonFly
20332 shlibpath_overrides_runpath=yes
20333 hardcode_into_libs=yes
20334 ;;
20335 esac
20336 ;;
20337
20338gnu*)
cristy99bd5232011-12-07 14:38:20 +000020339 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020340 need_lib_prefix=no
20341 need_version=no
20342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20343 soname_spec='${libname}${release}${shared_ext}$major'
20344 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020345 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020346 hardcode_into_libs=yes
20347 ;;
20348
cristy0c60a692010-11-04 01:09:47 +000020349haiku*)
cristy99bd5232011-12-07 14:38:20 +000020350 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020351 need_lib_prefix=no
20352 need_version=no
20353 dynamic_linker="$host_os runtime_loader"
20354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20355 soname_spec='${libname}${release}${shared_ext}$major'
20356 shlibpath_var=LIBRARY_PATH
20357 shlibpath_overrides_runpath=yes
20358 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20359 hardcode_into_libs=yes
20360 ;;
20361
cristy73bd4a52010-10-05 11:24:23 +000020362hpux9* | hpux10* | hpux11*)
20363 # Give a soname corresponding to the major version so that dld.sl refuses to
20364 # link against other versions.
20365 version_type=sunos
20366 need_lib_prefix=no
20367 need_version=no
20368 case $host_cpu in
20369 ia64*)
20370 shrext_cmds='.so'
20371 hardcode_into_libs=yes
20372 dynamic_linker="$host_os dld.so"
20373 shlibpath_var=LD_LIBRARY_PATH
20374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20376 soname_spec='${libname}${release}${shared_ext}$major'
20377 if test "X$HPUX_IA64_MODE" = X32; then
20378 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20379 else
20380 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20381 fi
20382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20383 ;;
20384 hppa*64*)
20385 shrext_cmds='.sl'
20386 hardcode_into_libs=yes
20387 dynamic_linker="$host_os dld.sl"
20388 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20389 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20391 soname_spec='${libname}${release}${shared_ext}$major'
20392 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20394 ;;
20395 *)
20396 shrext_cmds='.sl'
20397 dynamic_linker="$host_os dld.sl"
20398 shlibpath_var=SHLIB_PATH
20399 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20401 soname_spec='${libname}${release}${shared_ext}$major'
20402 ;;
20403 esac
cristy0c60a692010-11-04 01:09:47 +000020404 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020405 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020406 # or fails outright, so override atomically:
20407 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020408 ;;
20409
20410interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020411 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020412 need_lib_prefix=no
20413 need_version=no
20414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20415 soname_spec='${libname}${release}${shared_ext}$major'
20416 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20417 shlibpath_var=LD_LIBRARY_PATH
20418 shlibpath_overrides_runpath=no
20419 hardcode_into_libs=yes
20420 ;;
20421
20422irix5* | irix6* | nonstopux*)
20423 case $host_os in
20424 nonstopux*) version_type=nonstopux ;;
20425 *)
20426 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020427 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020428 else
20429 version_type=irix
20430 fi ;;
20431 esac
20432 need_lib_prefix=no
20433 need_version=no
20434 soname_spec='${libname}${release}${shared_ext}$major'
20435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20436 case $host_os in
20437 irix5* | nonstopux*)
20438 libsuff= shlibsuff=
20439 ;;
20440 *)
20441 case $LD in # libtool.m4 will add one of these switches to LD
20442 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20443 libsuff= shlibsuff= libmagic=32-bit;;
20444 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20445 libsuff=32 shlibsuff=N32 libmagic=N32;;
20446 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20447 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20448 *) libsuff= shlibsuff= libmagic=never-match;;
20449 esac
20450 ;;
20451 esac
20452 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20453 shlibpath_overrides_runpath=no
20454 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20455 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20456 hardcode_into_libs=yes
20457 ;;
20458
20459# No shared lib support for Linux oldld, aout, or coff.
20460linux*oldld* | linux*aout* | linux*coff*)
20461 dynamic_linker=no
20462 ;;
20463
cristy99bd5232011-12-07 14:38:20 +000020464# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020465linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020466 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020467 need_lib_prefix=no
20468 need_version=no
20469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20470 soname_spec='${libname}${release}${shared_ext}$major'
20471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20472 shlibpath_var=LD_LIBRARY_PATH
20473 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020474
cristy73bd4a52010-10-05 11:24:23 +000020475 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020476 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020477 $as_echo_n "(cached) " >&6
20478else
20479 lt_cv_shlibpath_overrides_runpath=no
20480 save_LDFLAGS=$LDFLAGS
20481 save_libdir=$libdir
20482 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20483 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020485/* end confdefs.h. */
20486
20487int
20488main ()
20489{
20490
20491 ;
20492 return 0;
20493}
20494_ACEOF
20495if ac_fn_cxx_try_link "$LINENO"; then :
20496 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020497 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020498fi
20499fi
20500rm -f core conftest.err conftest.$ac_objext \
20501 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020502 LDFLAGS=$save_LDFLAGS
20503 libdir=$save_libdir
20504
20505fi
20506
20507 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020508
20509 # This implies no fast_install, which is unacceptable.
20510 # Some rework will be needed to allow for fast_install
20511 # before this can be enabled.
20512 hardcode_into_libs=yes
20513
20514 # Add ABI-specific directories to the system library path.
20515 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20516
20517 # Append ld.so.conf contents to the search path
20518 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020519 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 +000020520 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020521
cristy73bd4a52010-10-05 11:24:23 +000020522 fi
20523
20524 # We used to test for /lib/ld.so.1 and disable shared libraries on
20525 # powerpc, because MkLinux only supported shared libraries with the
20526 # GNU dynamic linker. Since this was broken with cross compilers,
20527 # most powerpc-linux boxes support dynamic linking these days and
20528 # people can always --disable-shared, the test was removed, and we
20529 # assume the GNU/Linux dynamic linker is in use.
20530 dynamic_linker='GNU/Linux ld.so'
20531 ;;
20532
20533netbsd*)
20534 version_type=sunos
20535 need_lib_prefix=no
20536 need_version=no
20537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20540 dynamic_linker='NetBSD (a.out) ld.so'
20541 else
20542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20543 soname_spec='${libname}${release}${shared_ext}$major'
20544 dynamic_linker='NetBSD ld.elf_so'
20545 fi
20546 shlibpath_var=LD_LIBRARY_PATH
20547 shlibpath_overrides_runpath=yes
20548 hardcode_into_libs=yes
20549 ;;
20550
20551newsos6)
cristy99bd5232011-12-07 14:38:20 +000020552 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20554 shlibpath_var=LD_LIBRARY_PATH
20555 shlibpath_overrides_runpath=yes
20556 ;;
20557
20558*nto* | *qnx*)
20559 version_type=qnx
20560 need_lib_prefix=no
20561 need_version=no
20562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20563 soname_spec='${libname}${release}${shared_ext}$major'
20564 shlibpath_var=LD_LIBRARY_PATH
20565 shlibpath_overrides_runpath=no
20566 hardcode_into_libs=yes
20567 dynamic_linker='ldqnx.so'
20568 ;;
20569
20570openbsd*)
20571 version_type=sunos
20572 sys_lib_dlsearch_path_spec="/usr/lib"
20573 need_lib_prefix=no
20574 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20575 case $host_os in
20576 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20577 *) need_version=no ;;
20578 esac
20579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20581 shlibpath_var=LD_LIBRARY_PATH
20582 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20583 case $host_os in
20584 openbsd2.[89] | openbsd2.[89].*)
20585 shlibpath_overrides_runpath=no
20586 ;;
20587 *)
20588 shlibpath_overrides_runpath=yes
20589 ;;
20590 esac
20591 else
20592 shlibpath_overrides_runpath=yes
20593 fi
20594 ;;
20595
20596os2*)
20597 libname_spec='$name'
20598 shrext_cmds=".dll"
20599 need_lib_prefix=no
20600 library_names_spec='$libname${shared_ext} $libname.a'
20601 dynamic_linker='OS/2 ld.exe'
20602 shlibpath_var=LIBPATH
20603 ;;
20604
20605osf3* | osf4* | osf5*)
20606 version_type=osf
20607 need_lib_prefix=no
20608 need_version=no
20609 soname_spec='${libname}${release}${shared_ext}$major'
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20611 shlibpath_var=LD_LIBRARY_PATH
20612 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20613 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20614 ;;
20615
20616rdos*)
20617 dynamic_linker=no
20618 ;;
20619
20620solaris*)
cristy99bd5232011-12-07 14:38:20 +000020621 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020622 need_lib_prefix=no
20623 need_version=no
20624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20625 soname_spec='${libname}${release}${shared_ext}$major'
20626 shlibpath_var=LD_LIBRARY_PATH
20627 shlibpath_overrides_runpath=yes
20628 hardcode_into_libs=yes
20629 # ldd complains unless libraries are executable
20630 postinstall_cmds='chmod +x $lib'
20631 ;;
20632
20633sunos4*)
20634 version_type=sunos
20635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20636 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20637 shlibpath_var=LD_LIBRARY_PATH
20638 shlibpath_overrides_runpath=yes
20639 if test "$with_gnu_ld" = yes; then
20640 need_lib_prefix=no
20641 fi
20642 need_version=yes
20643 ;;
20644
20645sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020646 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20648 soname_spec='${libname}${release}${shared_ext}$major'
20649 shlibpath_var=LD_LIBRARY_PATH
20650 case $host_vendor in
20651 sni)
20652 shlibpath_overrides_runpath=no
20653 need_lib_prefix=no
20654 runpath_var=LD_RUN_PATH
20655 ;;
20656 siemens)
20657 need_lib_prefix=no
20658 ;;
20659 motorola)
20660 need_lib_prefix=no
20661 need_version=no
20662 shlibpath_overrides_runpath=no
20663 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20664 ;;
20665 esac
20666 ;;
20667
20668sysv4*MP*)
20669 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020670 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020671 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20672 soname_spec='$libname${shared_ext}.$major'
20673 shlibpath_var=LD_LIBRARY_PATH
20674 fi
20675 ;;
20676
20677sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20678 version_type=freebsd-elf
20679 need_lib_prefix=no
20680 need_version=no
20681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20682 soname_spec='${libname}${release}${shared_ext}$major'
20683 shlibpath_var=LD_LIBRARY_PATH
20684 shlibpath_overrides_runpath=yes
20685 hardcode_into_libs=yes
20686 if test "$with_gnu_ld" = yes; then
20687 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20688 else
20689 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20690 case $host_os in
20691 sco3.2v5*)
20692 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20693 ;;
20694 esac
20695 fi
20696 sys_lib_dlsearch_path_spec='/usr/lib'
20697 ;;
20698
20699tpf*)
20700 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020701 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020702 need_lib_prefix=no
20703 need_version=no
20704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20705 shlibpath_var=LD_LIBRARY_PATH
20706 shlibpath_overrides_runpath=no
20707 hardcode_into_libs=yes
20708 ;;
20709
20710uts4*)
cristy99bd5232011-12-07 14:38:20 +000020711 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20713 soname_spec='${libname}${release}${shared_ext}$major'
20714 shlibpath_var=LD_LIBRARY_PATH
20715 ;;
20716
20717*)
20718 dynamic_linker=no
20719 ;;
20720esac
20721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20722$as_echo "$dynamic_linker" >&6; }
20723test "$dynamic_linker" = no && can_build_shared=no
20724
20725variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20726if test "$GCC" = yes; then
20727 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20728fi
20729
20730if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20731 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20732fi
20733if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20734 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20735fi
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
cristy0c60a692010-11-04 01:09:47 +000020772
20773
cristy73bd4a52010-10-05 11:24:23 +000020774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20775$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20776hardcode_action_CXX=
20777if test -n "$hardcode_libdir_flag_spec_CXX" ||
20778 test -n "$runpath_var_CXX" ||
20779 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20780
20781 # We can hardcode non-existent directories.
20782 if test "$hardcode_direct_CXX" != no &&
20783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20784 # have to relink, otherwise we might link with an installed library
20785 # when we should be linking with a yet-to-be-installed one
20786 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20787 test "$hardcode_minus_L_CXX" != no; then
20788 # Linking always hardcodes the temporary library directory.
20789 hardcode_action_CXX=relink
20790 else
20791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20792 hardcode_action_CXX=immediate
20793 fi
20794else
20795 # We cannot hardcode anything, or else we can only hardcode existing
20796 # directories.
20797 hardcode_action_CXX=unsupported
20798fi
20799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20800$as_echo "$hardcode_action_CXX" >&6; }
20801
20802if test "$hardcode_action_CXX" = relink ||
20803 test "$inherit_rpath_CXX" = yes; then
20804 # Fast installation is not supported
20805 enable_fast_install=no
20806elif test "$shlibpath_overrides_runpath" = yes ||
20807 test "$enable_shared" = no; then
20808 # Fast installation is not necessary
20809 enable_fast_install=needless
20810fi
20811
20812
20813
20814
20815
20816
20817
20818 fi # test -n "$compiler"
20819
20820 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020821 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020822 LDCXX=$LD
20823 LD=$lt_save_LD
20824 GCC=$lt_save_GCC
20825 with_gnu_ld=$lt_save_with_gnu_ld
20826 lt_cv_path_LDCXX=$lt_cv_path_LD
20827 lt_cv_path_LD=$lt_save_path_LD
20828 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20829 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20830fi # test "$_lt_caught_CXX_error" != yes
20831
20832ac_ext=c
20833ac_cpp='$CPP $CPPFLAGS'
20834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20836ac_compiler_gnu=$ac_cv_c_compiler_gnu
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
cristy99bd5232011-12-07 14:38:20 +000020850
20851
cristy73bd4a52010-10-05 11:24:23 +000020852 ac_config_commands="$ac_config_commands libtool"
20853
20854
20855
20856
20857# Only expand once:
20858
20859
20860
cristy3ed852e2009-09-05 21:47:34 +000020861
20862
cristy3ed852e2009-09-05 21:47:34 +000020863# Check to see if building shared libraries
20864libtool_build_shared_libs='no'
20865if test "$enable_shared" = 'yes'; then
20866 libtool_build_shared_libs='yes'
20867fi
20868
20869# Check to see if building static libraries
20870libtool_build_static_libs='no'
20871if test "$enable_static" = 'yes'; then
20872 libtool_build_static_libs='yes'
20873fi
20874
cristy73bd4a52010-10-05 11:24:23 +000020875 if test "${libtool_build_shared_libs}" = 'yes'; then
20876 WITH_SHARED_LIBS_TRUE=
20877 WITH_SHARED_LIBS_FALSE='#'
20878else
20879 WITH_SHARED_LIBS_TRUE='#'
20880 WITH_SHARED_LIBS_FALSE=
20881fi
20882
cristy3ed852e2009-09-05 21:47:34 +000020883#
20884# Enable support for building loadable modules
20885#
cristyaf4cbf32012-10-16 23:47:41 +000020886build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020887
20888# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020889if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020890 withval=$with_modules; with_modules=$withval
20891else
cristy5a1cefd2010-01-06 20:42:35 +000020892 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020893fi
20894
20895
20896# Only allow building loadable modules if we are building shared libraries
20897if test "$with_modules" != 'no' ; then
20898 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020899 { $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 +000020900$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020901 build_modules='no'
20902 else
20903 build_modules='yes'
20904 fi
cristy3ed852e2009-09-05 21:47:34 +000020905fi
cristyc6722092012-10-14 00:19:31 +000020906if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020907
cristy8b350f62009-11-15 23:12:43 +000020908$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020909
cristyfa161182012-12-19 15:45:28 +000020910 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020911fi
cristyc6722092012-10-14 00:19:31 +000020912 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020913 WITH_MODULES_TRUE=
20914 WITH_MODULES_FALSE='#'
20915else
20916 WITH_MODULES_TRUE='#'
20917 WITH_MODULES_FALSE=
20918fi
20919
cristy3ed852e2009-09-05 21:47:34 +000020920
cristy3ed852e2009-09-05 21:47:34 +000020921# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020922# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020923# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020924if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020925 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20926else
20927 enable_delegate_build='no'
20928fi
20929
20930
20931# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020932if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020933 enableval=$enable_deprecated; enable_deprecated=$enableval
20934else
20935 enable_deprecated='no'
20936fi
20937
20938
20939if test "$enable_deprecated" = 'yes'; then
20940
cristy8b350f62009-11-15 23:12:43 +000020941$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020942
20943else
20944 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20945fi
20946
20947# Build a version of ImageMagick which operates uninstalled.
20948# Used to build distributions located via MAGICK_HOME / executable path
20949# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020950if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020951 enableval=$enable_installed; enable_installed=$enableval
20952else
20953 enable_installed='yes'
20954fi
20955
20956
20957if test "$enable_installed" = 'yes'; then
20958
cristy8b350f62009-11-15 23:12:43 +000020959$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020960
20961else
20962 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20963fi
20964
20965# Permit enciphering and deciphering image pixels.
20966# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020967if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020968 enableval=$enable_cipher; enable_cipher=$enableval
20969else
20970 enable_cipher='yes'
20971fi
20972
20973
20974if test "$enable_cipher" = 'yes'; then
20975
cristy8b350f62009-11-15 23:12:43 +000020976$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020977
20978fi
20979
cristy6e3607c2011-09-13 13:59:17 +000020980# Build a zero-configuration version of ImageMagick.
20981# Check whether --enable-zero-configuration was given.
20982if test "${enable_zero_configuration+set}" = set; then :
20983 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020984else
cristy6e3607c2011-09-13 13:59:17 +000020985 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020986fi
20987
20988
cristy6e3607c2011-09-13 13:59:17 +000020989if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020990
cristy6e3607c2011-09-13 13:59:17 +000020991$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020992
cristy81af5702011-09-13 14:20:58 +000020993 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020994fi
20995
20996# Build a high dynamic range version of ImageMagick.
20997# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020998if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020999 enableval=$enable_hdri; enable_hdri=$enableval
21000else
cristy191c0b72012-08-12 16:29:52 +000021001 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021002fi
21003
21004
21005MAGICK_HDRI=""
21006if test "$enable_hdri" = 'yes'; then
21007 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021008 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021009 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021010else
21011 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021012fi
21013
cristye52f12f2012-12-31 15:32:36 +000021014cat >>confdefs.h <<_ACEOF
21015#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21016_ACEOF
21017
21018MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21019CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021020CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021021
cristy3ed852e2009-09-05 21:47:34 +000021022# Build a version of ImageMagick with assert statements.
21023# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021024if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021025 enableval=$enable_assert; enable_assert=$enableval
21026else
21027 enable_assert='yes'
21028fi
21029
21030
21031if test "$enable_assert" = 'no'; then
21032
cristy8b350f62009-11-15 23:12:43 +000021033$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021034
21035fi
21036
cristya448bd22011-10-14 12:38:13 +000021037# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021038
21039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21040$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21041 # Check whether --enable-maintainer-mode was given.
21042if test "${enable_maintainer_mode+set}" = set; then :
21043 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21044else
21045 USE_MAINTAINER_MODE=no
21046fi
21047
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21049$as_echo "$USE_MAINTAINER_MODE" >&6; }
21050 if test $USE_MAINTAINER_MODE = yes; then
21051 MAINTAINER_MODE_TRUE=
21052 MAINTAINER_MODE_FALSE='#'
21053else
21054 MAINTAINER_MODE_TRUE='#'
21055 MAINTAINER_MODE_FALSE=
21056fi
21057
21058 MAINT=$MAINTAINER_MODE_TRUE
21059
21060
cristy3ed852e2009-09-05 21:47:34 +000021061
cristy944e51f2013-04-16 18:45:02 +000021062# Enable hugepages support
21063# Check whether --enable-hugepages was given.
21064if test "${enable_hugepages+set}" = set; then :
21065 enableval=$enable_hugepages; enable_hugepages=$enableval
21066else
21067 enable_hugepages='no'
21068fi
21069
21070
cristy3ed852e2009-09-05 21:47:34 +000021071# Enable ccmalloc memory debugging support
21072# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021073if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021074 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21075else
21076 enable_ccmalloc='no'
21077fi
21078
21079
21080# Enable Electric Fence memory debugging support
21081# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021082if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021083 enableval=$enable_efence; enable_efence=$enableval
21084else
21085 enable_efence='no'
21086fi
21087
21088
21089# Enable prof-based profiling support
21090# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021091if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021092 enableval=$enable_prof; enable_prof=$enableval
21093else
21094 enable_prof='no'
21095fi
21096
21097
21098# Enable gprof-based profiling support
21099# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021100if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021101 enableval=$enable_gprof; enable_gprof=$enableval
21102else
21103 enable_gprof='no'
21104fi
21105
21106
21107# Enable gcov-based profiling support
21108# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021109if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021110 enableval=$enable_gcov; enable_gcov=$enableval
21111else
21112 enable_gcov='no'
21113fi
21114
21115
21116enable_profiling='no'
21117if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21118 enable_profiling='yes'
21119 if test "$libtool_build_shared_libs" = 'yes'; then
21120 echo "Warning: Can not profile code using shared libraries"
21121 fi
21122fi
21123
21124# Magick API method prefix
21125
21126# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021127if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021128 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021129else
cristyfc3d0222012-02-07 15:05:57 +000021130 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021131fi
21132
21133
cristyfc3d0222012-02-07 15:05:57 +000021134if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021135
21136cat >>confdefs.h <<_ACEOF
21137#define NAMESPACE_PREFIX $with_method_prefix
21138_ACEOF
21139
cristyfc3d0222012-02-07 15:05:57 +000021140 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021141fi
21142
cristy71d8c202012-03-20 17:05:01 +000021143# Enable legacy support (default no)
21144# Check whether --enable-legacy-support was given.
21145if test "${enable_legacy_support+set}" = set; then :
21146 enableval=$enable_legacy_support; with_legacy_support=$enableval
21147else
21148 with_legacy_support='no'
21149fi
21150
21151 if test "$with_legacy_support" != 'no'; then
21152 LEGACY_SUPPORT_TRUE=
21153 LEGACY_SUPPORT_FALSE='#'
21154else
21155 LEGACY_SUPPORT_TRUE='#'
21156 LEGACY_SUPPORT_FALSE=
21157fi
21158
21159
cristy3ed852e2009-09-05 21:47:34 +000021160# Number of bits in a Quantum
21161
21162# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021163if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021164 withval=$with_quantum_depth; with_quantum_depth=$withval
21165else
21166 with_quantum_depth=16
21167fi
21168
21169
21170if test "$with_quantum_depth" != '8'; then
21171 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21172fi
21173
21174case "${with_quantum_depth}" in
21175 8 ) ;;
21176 16 ) ;;
21177 32 ) ;;
21178 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021179 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021180esac
21181QUANTUM_DEPTH="$with_quantum_depth"
21182
21183cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021184#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021185_ACEOF
21186
cristya371edf2013-02-06 13:42:17 +000021187MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021188CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021189CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021190
cristy01ff9f32012-12-01 18:15:29 +000021191# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021192MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021193if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021194 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021195fi
cristy01ff9f32012-12-01 18:15:29 +000021196
21197
cristy3ed852e2009-09-05 21:47:34 +000021198# Set pixel cache threshold
21199
21200# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021201if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021202 withval=$with_cache; with_cache=$withval
21203else
21204 with_cache=''
21205fi
21206
21207
21208if test "$with_cache" != ''; then
21209
21210cat >>confdefs.h <<_ACEOF
21211#define PixelCacheThreshold $with_cache
21212_ACEOF
21213
21214 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21215fi
21216
21217# Disable/Enable support for full delegate paths
21218
21219# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021220if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021221 withval=$with_frozenpaths; with_frozenpaths=$withval
21222else
21223 with_frozenpaths='no'
21224fi
21225
21226
21227# Enable build/install of Magick++
21228
21229# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021230if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021231 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21232else
21233 with_magick_plus_plus='yes'
21234fi
21235
21236
cristy3a75f062012-09-08 23:29:40 +000021237# Encode the this name into the shared library.
21238
21239# Check whether --with-package-release-name was given.
21240if test "${with_package_release_name+set}" = set; then :
21241 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21242fi
21243
21244
21245
cristy3ed852e2009-09-05 21:47:34 +000021246# Disable build/install of PerlMagick.
21247
21248# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021249if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021250 withval=$with_perl; with_perl=$withval
21251else
cristyb5f4e2f2010-04-25 00:49:11 +000021252 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021253fi
21254
21255
21256# Options to pass when configuring PerlMagick
21257
21258# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021259if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021260 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021261fi
21262
21263
cristy3ed852e2009-09-05 21:47:34 +000021264
21265# Enable umem, object-caching memory allocation library.
21266
21267# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021268if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021269 withval=$with_umem; with_umem=$withval
21270else
21271 with_umem='no'
21272fi
21273
21274if test "$with_umem" != 'yes' ; then
21275 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21276fi
21277
21278#
21279# Specify path to shared libstdc++ if not in normal location
21280#
21281
21282# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021283if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021284 withval=$with_libstdc; with_libstdc=$withval
21285else
21286 with_libstdc=''
21287fi
21288
21289
21290if test "$with_libstdc" != ''; then
21291 if test -d "$with_libstdc"; then
21292 LIBSTDCLDFLAGS="-L$with_libstdc"
21293 fi
21294fi
21295
21296
21297# Does gcc required -traditional?
21298if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021300$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021301if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021302 $as_echo_n "(cached) " >&6
21303else
21304 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021306/* end confdefs.h. */
21307#include <sgtty.h>
21308Autoconf TIOCGETP
21309_ACEOF
21310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021311 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021312 ac_cv_prog_gcc_traditional=yes
21313else
21314 ac_cv_prog_gcc_traditional=no
21315fi
21316rm -f conftest*
21317
21318
21319 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021321/* end confdefs.h. */
21322#include <termio.h>
21323Autoconf TCGETA
21324_ACEOF
21325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021326 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021327 ac_cv_prog_gcc_traditional=yes
21328fi
21329rm -f conftest*
21330
21331 fi
21332fi
cristy8b350f62009-11-15 23:12:43 +000021333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021334$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21335 if test $ac_cv_prog_gcc_traditional = yes; then
21336 CC="$CC -traditional"
21337 fi
21338fi
21339
21340
21341########
21342#
21343# Set defines required to build DLLs and modules using MinGW
21344#
21345########
21346# These options are set for multi-thread DLL module build
21347# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21348# module: _DLL
21349# executable/Magick++: _DLL _MAGICKMOD_
21350MODULE_EXTRA_CPPFLAGS=''
21351LIBRARY_EXTRA_CPPFLAGS=''
21352if test "${native_win32_build}" = 'yes'; then
21353 if test "${libtool_build_shared_libs}" = 'yes'; then
21354 CPPFLAGS="$CPPFLAGS -D_DLL"
21355 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21356 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21357 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021358 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021359 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21360 else
21361 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21362 fi
21363 else
21364 CPPFLAGS="$CPPFLAGS -D_LIB"
21365 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21366 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21367 fi
21368 if test "$with_threads" = 'yes'; then
21369 CPPFLAGS="$CPPFLAGS -D_MT"
21370 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21371 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21372 fi
21373fi
21374
21375
21376
21377# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021379$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021380if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021381 $as_echo_n "(cached) " >&6
21382else
cristy8b350f62009-11-15 23:12:43 +000021383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021384/* end confdefs.h. */
21385#include <stdlib.h>
21386#include <stdarg.h>
21387#include <string.h>
21388#include <float.h>
21389
21390int
21391main ()
21392{
21393
21394 ;
21395 return 0;
21396}
21397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021398if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021399 ac_cv_header_stdc=yes
21400else
cristy8b350f62009-11-15 23:12:43 +000021401 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021402fi
cristy3ed852e2009-09-05 21:47:34 +000021403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21404
21405if test $ac_cv_header_stdc = yes; then
21406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021408/* end confdefs.h. */
21409#include <string.h>
21410
21411_ACEOF
21412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021413 $EGREP "memchr" >/dev/null 2>&1; then :
21414
cristy3ed852e2009-09-05 21:47:34 +000021415else
21416 ac_cv_header_stdc=no
21417fi
21418rm -f conftest*
21419
21420fi
21421
21422if test $ac_cv_header_stdc = yes; then
21423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021425/* end confdefs.h. */
21426#include <stdlib.h>
21427
21428_ACEOF
21429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021430 $EGREP "free" >/dev/null 2>&1; then :
21431
cristy3ed852e2009-09-05 21:47:34 +000021432else
21433 ac_cv_header_stdc=no
21434fi
21435rm -f conftest*
21436
21437fi
21438
21439if test $ac_cv_header_stdc = yes; then
21440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021441 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021442 :
21443else
cristy8b350f62009-11-15 23:12:43 +000021444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021445/* end confdefs.h. */
21446#include <ctype.h>
21447#include <stdlib.h>
21448#if ((' ' & 0x0FF) == 0x020)
21449# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21450# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21451#else
21452# define ISLOWER(c) \
21453 (('a' <= (c) && (c) <= 'i') \
21454 || ('j' <= (c) && (c) <= 'r') \
21455 || ('s' <= (c) && (c) <= 'z'))
21456# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21457#endif
21458
21459#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21460int
21461main ()
21462{
21463 int i;
21464 for (i = 0; i < 256; i++)
21465 if (XOR (islower (i), ISLOWER (i))
21466 || toupper (i) != TOUPPER (i))
21467 return 2;
21468 return 0;
21469}
21470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021471if ac_fn_c_try_run "$LINENO"; then :
21472
cristy3ed852e2009-09-05 21:47:34 +000021473else
cristy8b350f62009-11-15 23:12:43 +000021474 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021475fi
cristy8b350f62009-11-15 23:12:43 +000021476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21477 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021478fi
21479
cristy3ed852e2009-09-05 21:47:34 +000021480fi
21481fi
cristy8b350f62009-11-15 23:12:43 +000021482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021483$as_echo "$ac_cv_header_stdc" >&6; }
21484if test $ac_cv_header_stdc = yes; then
21485
cristy8b350f62009-11-15 23:12:43 +000021486$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021487
21488fi
21489
21490if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021491 { $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 +000021492 header files. Compilation cannot proceed. Please install the ANSI C
21493 headers and rerun this script." >&5
21494$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21495 header files. Compilation cannot proceed. Please install the ANSI C
21496 headers and rerun this script." >&2;};
21497fi
cristya0b81c32010-01-22 02:54:33 +000021498
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21500$as_echo_n "checking whether to enable assertions... " >&6; }
21501 # Check whether --enable-assert was given.
21502if test "${enable_assert+set}" = set; then :
21503 enableval=$enable_assert; ac_enable_assert=$enableval
21504 if test "x$enableval" = xno; then :
21505
21506$as_echo "#define NDEBUG 1" >>confdefs.h
21507
21508elif test "x$enableval" != xyes; then :
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21510$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21511 ac_enable_assert=yes
21512fi
21513else
21514 ac_enable_assert=yes
21515fi
21516
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21518$as_echo "$ac_enable_assert" >&6; }
21519
cristy3ed852e2009-09-05 21:47:34 +000021520ac_header_dirent=no
21521for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21522 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021524$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021525if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021526 $as_echo_n "(cached) " >&6
21527else
cristy8b350f62009-11-15 23:12:43 +000021528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021529/* end confdefs.h. */
21530#include <sys/types.h>
21531#include <$ac_hdr>
21532
21533int
21534main ()
21535{
21536if ((DIR *) 0)
21537return 0;
21538 ;
21539 return 0;
21540}
21541_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021542if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021543 eval "$as_ac_Header=yes"
21544else
cristy8b350f62009-11-15 23:12:43 +000021545 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021546fi
cristy3ed852e2009-09-05 21:47:34 +000021547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21548fi
cristy8b350f62009-11-15 23:12:43 +000021549eval ac_res=\$$as_ac_Header
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021551$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021552if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021553 cat >>confdefs.h <<_ACEOF
21554#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21555_ACEOF
21556
21557ac_header_dirent=$ac_hdr; break
21558fi
21559
21560done
21561# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21562if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021564$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021565if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021566 $as_echo_n "(cached) " >&6
21567else
21568 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021570/* end confdefs.h. */
21571
21572/* Override any GCC internal prototype to avoid an error.
21573 Use char because int might match the return type of a GCC
21574 builtin and then its argument prototype would still apply. */
21575#ifdef __cplusplus
21576extern "C"
21577#endif
21578char opendir ();
21579int
21580main ()
21581{
21582return opendir ();
21583 ;
21584 return 0;
21585}
21586_ACEOF
21587for ac_lib in '' dir; do
21588 if test -z "$ac_lib"; then
21589 ac_res="none required"
21590 else
21591 ac_res=-l$ac_lib
21592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21593 fi
cristy8b350f62009-11-15 23:12:43 +000021594 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021595 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021596fi
cristy8b350f62009-11-15 23:12:43 +000021597rm -f core conftest.err conftest.$ac_objext \
21598 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021599 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021600 break
21601fi
21602done
cristyda16f162011-02-19 23:52:17 +000021603if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021604
cristy3ed852e2009-09-05 21:47:34 +000021605else
21606 ac_cv_search_opendir=no
21607fi
21608rm conftest.$ac_ext
21609LIBS=$ac_func_search_save_LIBS
21610fi
cristy8b350f62009-11-15 23:12:43 +000021611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021612$as_echo "$ac_cv_search_opendir" >&6; }
21613ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021614if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21616
21617fi
21618
21619else
cristy8b350f62009-11-15 23:12:43 +000021620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021621$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021622if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021623 $as_echo_n "(cached) " >&6
21624else
21625 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021627/* end confdefs.h. */
21628
21629/* Override any GCC internal prototype to avoid an error.
21630 Use char because int might match the return type of a GCC
21631 builtin and then its argument prototype would still apply. */
21632#ifdef __cplusplus
21633extern "C"
21634#endif
21635char opendir ();
21636int
21637main ()
21638{
21639return opendir ();
21640 ;
21641 return 0;
21642}
21643_ACEOF
21644for ac_lib in '' x; do
21645 if test -z "$ac_lib"; then
21646 ac_res="none required"
21647 else
21648 ac_res=-l$ac_lib
21649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21650 fi
cristy8b350f62009-11-15 23:12:43 +000021651 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021652 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021653fi
cristy8b350f62009-11-15 23:12:43 +000021654rm -f core conftest.err conftest.$ac_objext \
21655 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021656 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021657 break
21658fi
21659done
cristyda16f162011-02-19 23:52:17 +000021660if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021661
cristy3ed852e2009-09-05 21:47:34 +000021662else
21663 ac_cv_search_opendir=no
21664fi
21665rm conftest.$ac_ext
21666LIBS=$ac_func_search_save_LIBS
21667fi
cristy8b350f62009-11-15 23:12:43 +000021668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021669$as_echo "$ac_cv_search_opendir" >&6; }
21670ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021671if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21673
21674fi
21675
21676fi
21677
21678
21679# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021680for 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 +000021681do :
21682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21683ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021684if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021685 cat >>confdefs.h <<_ACEOF
21686#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21687_ACEOF
21688
21689fi
21690
21691done
21692
21693
21694########
21695#
21696# Checks for typedefs, structures, and compiler characteristics.
21697#
21698########
21699
cristy8b350f62009-11-15 23:12:43 +000021700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021701$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021702if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021703 $as_echo_n "(cached) " >&6
21704else
cristy8b350f62009-11-15 23:12:43 +000021705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021706/* end confdefs.h. */
21707
cristy14fefe52012-05-21 00:59:18 +000021708 #include <stdbool.h>
21709 #ifndef bool
21710 "error: bool is not defined"
21711 #endif
21712 #ifndef false
21713 "error: false is not defined"
21714 #endif
21715 #if false
21716 "error: false is not 0"
21717 #endif
21718 #ifndef true
21719 "error: true is not defined"
21720 #endif
21721 #if true != 1
21722 "error: true is not 1"
21723 #endif
21724 #ifndef __bool_true_false_are_defined
21725 "error: __bool_true_false_are_defined is not defined"
21726 #endif
cristy3ed852e2009-09-05 21:47:34 +000021727
cristy14fefe52012-05-21 00:59:18 +000021728 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021729
cristy14fefe52012-05-21 00:59:18 +000021730 char a[true == 1 ? 1 : -1];
21731 char b[false == 0 ? 1 : -1];
21732 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21733 char d[(bool) 0.5 == true ? 1 : -1];
21734 /* See body of main program for 'e'. */
21735 char f[(_Bool) 0.0 == false ? 1 : -1];
21736 char g[true];
21737 char h[sizeof (_Bool)];
21738 char i[sizeof s.t];
21739 enum { j = false, k = true, l = false * true, m = true * 256 };
21740 /* The following fails for
21741 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21742 _Bool n[m];
21743 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21744 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21745 /* Catch a bug in an HP-UX C compiler. See
21746 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21747 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21748 */
21749 _Bool q = true;
21750 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021751
21752int
21753main ()
21754{
21755
cristy14fefe52012-05-21 00:59:18 +000021756 bool e = &s;
21757 *pq |= q;
21758 *pq |= ! q;
21759 /* Refer to every declared value, to avoid compiler optimizations. */
21760 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21761 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021762
21763 ;
21764 return 0;
21765}
21766_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021767if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021768 ac_cv_header_stdbool_h=yes
21769else
cristy8b350f62009-11-15 23:12:43 +000021770 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021771fi
cristy3ed852e2009-09-05 21:47:34 +000021772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773fi
cristy8b350f62009-11-15 23:12:43 +000021774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021775$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021776 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021777if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021778
21779cat >>confdefs.h <<_ACEOF
21780#define HAVE__BOOL 1
21781_ACEOF
21782
21783
21784fi
21785
cristy14fefe52012-05-21 00:59:18 +000021786
cristy3ed852e2009-09-05 21:47:34 +000021787if test $ac_cv_header_stdbool_h = yes; then
21788
cristy8b350f62009-11-15 23:12:43 +000021789$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021790
21791fi
21792
cristy8b350f62009-11-15 23:12:43 +000021793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021794$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021795if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021796 $as_echo_n "(cached) " >&6
21797else
cristy8b350f62009-11-15 23:12:43 +000021798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021799/* end confdefs.h. */
21800
21801int
21802main ()
21803{
21804
21805volatile int x;
21806int * volatile y = (int *) 0;
21807return !x && !y;
21808 ;
21809 return 0;
21810}
21811_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021812if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021813 ac_cv_c_volatile=yes
21814else
cristy8b350f62009-11-15 23:12:43 +000021815 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021816fi
cristy3ed852e2009-09-05 21:47:34 +000021817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21818fi
cristy8b350f62009-11-15 23:12:43 +000021819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021820$as_echo "$ac_cv_c_volatile" >&6; }
21821if test $ac_cv_c_volatile = no; then
21822
cristy8b350f62009-11-15 23:12:43 +000021823$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021824
21825fi
21826
cristy8b350f62009-11-15 23:12:43 +000021827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021828$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021829if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021830 $as_echo_n "(cached) " >&6
21831else
cristy8b350f62009-11-15 23:12:43 +000021832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021833/* end confdefs.h. */
21834#define x(y) #y
21835
21836char *s = x(teststring);
21837_ACEOF
21838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021839 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021840 ac_cv_c_stringize=no
21841else
21842 ac_cv_c_stringize=yes
21843fi
21844rm -f conftest*
21845
21846fi
cristy8b350f62009-11-15 23:12:43 +000021847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021848$as_echo "$ac_cv_c_stringize" >&6; }
21849if test $ac_cv_c_stringize = yes; then
21850
cristy8b350f62009-11-15 23:12:43 +000021851$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021852
21853fi
21854
cristy8b350f62009-11-15 23:12:43 +000021855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021856$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021857if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021858 $as_echo_n "(cached) " >&6
21859else
cristy8b350f62009-11-15 23:12:43 +000021860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021861/* end confdefs.h. */
21862#include <sys/types.h>
21863#include <sys/stat.h>
21864
21865#if defined S_ISBLK && defined S_IFDIR
21866extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21867#endif
21868
21869#if defined S_ISBLK && defined S_IFCHR
21870extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21871#endif
21872
21873#if defined S_ISLNK && defined S_IFREG
21874extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21875#endif
21876
21877#if defined S_ISSOCK && defined S_IFREG
21878extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21879#endif
21880
21881_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021882if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021883 ac_cv_header_stat_broken=no
21884else
cristy8b350f62009-11-15 23:12:43 +000021885 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021886fi
cristy3ed852e2009-09-05 21:47:34 +000021887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21888fi
cristy8b350f62009-11-15 23:12:43 +000021889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021890$as_echo "$ac_cv_header_stat_broken" >&6; }
21891if test $ac_cv_header_stat_broken = yes; then
21892
cristy8b350f62009-11-15 23:12:43 +000021893$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021894
21895fi
21896
cristy8b350f62009-11-15 23:12:43 +000021897{ $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 +000021898$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021899if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021900 $as_echo_n "(cached) " >&6
21901else
cristy8b350f62009-11-15 23:12:43 +000021902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021903/* end confdefs.h. */
21904#include <sys/types.h>
21905#include <sys/time.h>
21906#include <time.h>
21907
21908int
21909main ()
21910{
21911if ((struct tm *) 0)
21912return 0;
21913 ;
21914 return 0;
21915}
21916_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021917if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021918 ac_cv_header_time=yes
21919else
cristy8b350f62009-11-15 23:12:43 +000021920 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021921fi
cristy3ed852e2009-09-05 21:47:34 +000021922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21923fi
cristy8b350f62009-11-15 23:12:43 +000021924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021925$as_echo "$ac_cv_header_time" >&6; }
21926if test $ac_cv_header_time = yes; then
21927
cristy8b350f62009-11-15 23:12:43 +000021928$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021929
21930fi
21931
cristy8b350f62009-11-15 23:12:43 +000021932{ $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 +000021933$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021934if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021935 $as_echo_n "(cached) " >&6
21936else
cristy8b350f62009-11-15 23:12:43 +000021937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021938/* end confdefs.h. */
21939#include <sys/types.h>
21940#include <time.h>
21941
21942int
21943main ()
21944{
21945struct tm tm;
21946 int *p = &tm.tm_sec;
21947 return !p;
21948 ;
21949 return 0;
21950}
21951_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021952if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021953 ac_cv_struct_tm=time.h
21954else
cristy8b350f62009-11-15 23:12:43 +000021955 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021956fi
cristy3ed852e2009-09-05 21:47:34 +000021957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21958fi
cristy8b350f62009-11-15 23:12:43 +000021959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021960$as_echo "$ac_cv_struct_tm" >&6; }
21961if test $ac_cv_struct_tm = sys/time.h; then
21962
cristy8b350f62009-11-15 23:12:43 +000021963$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021964
21965fi
21966
cristy92703d82010-04-26 00:18:18 +000021967ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21968#include <$ac_cv_struct_tm>
21969
21970"
cristyda16f162011-02-19 23:52:17 +000021971if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021972
21973cat >>confdefs.h <<_ACEOF
21974#define HAVE_STRUCT_TM_TM_ZONE 1
21975_ACEOF
21976
21977
21978fi
21979
21980if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21981
21982$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21983
21984else
21985 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21986"
cristyda16f162011-02-19 23:52:17 +000021987if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021988 ac_have_decl=1
21989else
21990 ac_have_decl=0
21991fi
21992
21993cat >>confdefs.h <<_ACEOF
21994#define HAVE_DECL_TZNAME $ac_have_decl
21995_ACEOF
21996
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21998$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021999if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022000 $as_echo_n "(cached) " >&6
22001else
22002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22003/* end confdefs.h. */
22004#include <time.h>
22005#if !HAVE_DECL_TZNAME
22006extern char *tzname[];
22007#endif
22008
22009int
22010main ()
22011{
22012return tzname[0][0];
22013 ;
22014 return 0;
22015}
22016_ACEOF
22017if ac_fn_c_try_link "$LINENO"; then :
22018 ac_cv_var_tzname=yes
22019else
22020 ac_cv_var_tzname=no
22021fi
22022rm -f core conftest.err conftest.$ac_objext \
22023 conftest$ac_exeext conftest.$ac_ext
22024fi
22025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22026$as_echo "$ac_cv_var_tzname" >&6; }
22027 if test $ac_cv_var_tzname = yes; then
22028
22029$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22030
22031 fi
22032fi
22033
cristy8b350f62009-11-15 23:12:43 +000022034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022035$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022036if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022037 $as_echo_n "(cached) " >&6
22038else
22039 echo '#! /bin/cat
22040exit 69
22041' >conftest
22042chmod u+x conftest
22043(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22044if test $? -ne 69; then
22045 ac_cv_sys_interpreter=yes
22046else
22047 ac_cv_sys_interpreter=no
22048fi
22049rm -f conftest
22050fi
cristy8b350f62009-11-15 23:12:43 +000022051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022052$as_echo "$ac_cv_sys_interpreter" >&6; }
22053interpval=$ac_cv_sys_interpreter
22054
22055
cristye80f9cb2013-01-09 01:09:31 +000022056#
22057# Checks for language qualifiers and semantics.
22058#
22059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22060$as_echo_n "checking whether char is unsigned... " >&6; }
22061if ${ac_cv_c_char_unsigned+:} false; then :
22062 $as_echo_n "(cached) " >&6
22063else
22064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22065/* end confdefs.h. */
22066$ac_includes_default
22067int
22068main ()
22069{
22070static int test_array [1 - 2 * !(((char) -1) < 0)];
22071test_array [0] = 0;
22072return test_array [0];
22073
22074 ;
22075 return 0;
22076}
22077_ACEOF
22078if ac_fn_c_try_compile "$LINENO"; then :
22079 ac_cv_c_char_unsigned=no
22080else
22081 ac_cv_c_char_unsigned=yes
22082fi
22083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22084fi
22085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22086$as_echo "$ac_cv_c_char_unsigned" >&6; }
22087if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22088 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22089
22090fi
22091
22092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22093$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22094if ${ac_cv_c_const+:} false; then :
22095 $as_echo_n "(cached) " >&6
22096else
22097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22098/* end confdefs.h. */
22099
22100int
22101main ()
22102{
22103
22104#ifndef __cplusplus
22105 /* Ultrix mips cc rejects this sort of thing. */
22106 typedef int charset[2];
22107 const charset cs = { 0, 0 };
22108 /* SunOS 4.1.1 cc rejects this. */
22109 char const *const *pcpcc;
22110 char **ppc;
22111 /* NEC SVR4.0.2 mips cc rejects this. */
22112 struct point {int x, y;};
22113 static struct point const zero = {0,0};
22114 /* AIX XL C 1.02.0.0 rejects this.
22115 It does not let you subtract one const X* pointer from another in
22116 an arm of an if-expression whose if-part is not a constant
22117 expression */
22118 const char *g = "string";
22119 pcpcc = &g + (g ? g-g : 0);
22120 /* HPUX 7.0 cc rejects these. */
22121 ++pcpcc;
22122 ppc = (char**) pcpcc;
22123 pcpcc = (char const *const *) ppc;
22124 { /* SCO 3.2v4 cc rejects this sort of thing. */
22125 char tx;
22126 char *t = &tx;
22127 char const *s = 0 ? (char *) 0 : (char const *) 0;
22128
22129 *t++ = 0;
22130 if (s) return 0;
22131 }
22132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22133 int x[] = {25, 17};
22134 const int *foo = &x[0];
22135 ++foo;
22136 }
22137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22138 typedef const int *iptr;
22139 iptr p = 0;
22140 ++p;
22141 }
22142 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22144 struct s { int j; const int *ap[3]; } bx;
22145 struct s *b = &bx; b->j = 5;
22146 }
22147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22148 const int foo = 10;
22149 if (!foo) return 0;
22150 }
22151 return !cs[0] && !zero.x;
22152#endif
22153
22154 ;
22155 return 0;
22156}
22157_ACEOF
22158if ac_fn_c_try_compile "$LINENO"; then :
22159 ac_cv_c_const=yes
22160else
22161 ac_cv_c_const=no
22162fi
22163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22164fi
22165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22166$as_echo "$ac_cv_c_const" >&6; }
22167if test $ac_cv_c_const = no; then
22168
22169$as_echo "#define const /**/" >>confdefs.h
22170
22171fi
22172
cristy8b350f62009-11-15 23:12:43 +000022173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022174$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022175if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022176 $as_echo_n "(cached) " >&6
22177else
22178 ac_cv_c_inline=no
22179for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022181/* end confdefs.h. */
22182#ifndef __cplusplus
22183typedef int foo_t;
22184static $ac_kw foo_t static_foo () {return 0; }
22185$ac_kw foo_t foo () {return 0; }
22186#endif
22187
22188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022189if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022190 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022191fi
cristy3ed852e2009-09-05 21:47:34 +000022192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22193 test "$ac_cv_c_inline" != no && break
22194done
22195
22196fi
cristy8b350f62009-11-15 23:12:43 +000022197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022198$as_echo "$ac_cv_c_inline" >&6; }
22199
cristy3ed852e2009-09-05 21:47:34 +000022200case $ac_cv_c_inline in
22201 inline | yes) ;;
22202 *)
22203 case $ac_cv_c_inline in
22204 no) ac_val=;;
22205 *) ac_val=$ac_cv_c_inline;;
22206 esac
22207 cat >>confdefs.h <<_ACEOF
22208#ifndef __cplusplus
22209#define inline $ac_val
22210#endif
22211_ACEOF
22212 ;;
22213esac
22214
cristy8b350f62009-11-15 23:12:43 +000022215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022216$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022217if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022218 $as_echo_n "(cached) " >&6
22219else
22220 ac_cv_c_restrict=no
22221 # The order here caters to the fact that C++ does not require restrict.
22222 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022224/* end confdefs.h. */
22225typedef int * int_ptr;
22226 int foo (int_ptr $ac_kw ip) {
22227 return ip[0];
22228 }
22229int
22230main ()
22231{
22232int s[1];
22233 int * $ac_kw t = s;
22234 t[0] = 0;
22235 return foo(t)
22236 ;
22237 return 0;
22238}
22239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022240if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022241 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022242fi
cristy3ed852e2009-09-05 21:47:34 +000022243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22244 test "$ac_cv_c_restrict" != no && break
22245 done
22246
22247fi
cristy8b350f62009-11-15 23:12:43 +000022248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022249$as_echo "$ac_cv_c_restrict" >&6; }
22250
cristy3ed852e2009-09-05 21:47:34 +000022251 case $ac_cv_c_restrict in
22252 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022253 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022254 ;;
22255 *) cat >>confdefs.h <<_ACEOF
22256#define restrict $ac_cv_c_restrict
22257_ACEOF
22258 ;;
22259 esac
22260
cristye80f9cb2013-01-09 01:09:31 +000022261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22262$as_echo_n "checking for working volatile... " >&6; }
22263if ${ac_cv_c_volatile+:} false; then :
22264 $as_echo_n "(cached) " >&6
22265else
22266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22267/* end confdefs.h. */
22268
22269int
22270main ()
22271{
22272
22273volatile int x;
22274int * volatile y = (int *) 0;
22275return !x && !y;
22276 ;
22277 return 0;
22278}
22279_ACEOF
22280if ac_fn_c_try_compile "$LINENO"; then :
22281 ac_cv_c_volatile=yes
22282else
22283 ac_cv_c_volatile=no
22284fi
22285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22286fi
22287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22288$as_echo "$ac_cv_c_volatile" >&6; }
22289if test $ac_cv_c_volatile = no; then
22290
22291$as_echo "#define volatile /**/" >>confdefs.h
22292
22293fi
22294
cristy3ed852e2009-09-05 21:47:34 +000022295
22296# If words are stored with the most significant byte first (like
22297# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022299$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022300if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022301 $as_echo_n "(cached) " >&6
22302else
22303 ac_cv_c_bigendian=unknown
22304 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022306/* end confdefs.h. */
22307#ifndef __APPLE_CC__
22308 not a universal capable compiler
22309 #endif
22310 typedef int dummy;
22311
22312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022313if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022314
22315 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022316 # there are at least two -arch flags with different values.
22317 ac_arch=
22318 ac_prev=
22319 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22320 if test -n "$ac_prev"; then
22321 case $ac_word in
22322 i?86 | x86_64 | ppc | ppc64)
22323 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22324 ac_arch=$ac_word
22325 else
22326 ac_cv_c_bigendian=universal
22327 break
22328 fi
22329 ;;
22330 esac
22331 ac_prev=
22332 elif test "x$ac_word" = "x-arch"; then
22333 ac_prev=arch
22334 fi
22335 done
cristy3ed852e2009-09-05 21:47:34 +000022336fi
cristy3ed852e2009-09-05 21:47:34 +000022337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338 if test $ac_cv_c_bigendian = unknown; then
22339 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022341/* end confdefs.h. */
22342#include <sys/types.h>
22343 #include <sys/param.h>
22344
22345int
22346main ()
22347{
22348#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22349 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22350 && LITTLE_ENDIAN)
22351 bogus endian macros
22352 #endif
22353
22354 ;
22355 return 0;
22356}
22357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022358if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022359 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022361/* end confdefs.h. */
22362#include <sys/types.h>
22363 #include <sys/param.h>
22364
22365int
22366main ()
22367{
22368#if BYTE_ORDER != BIG_ENDIAN
22369 not big endian
22370 #endif
22371
22372 ;
22373 return 0;
22374}
22375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022376if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022377 ac_cv_c_bigendian=yes
22378else
cristy8b350f62009-11-15 23:12:43 +000022379 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022380fi
cristy3ed852e2009-09-05 21:47:34 +000022381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022382fi
cristy3ed852e2009-09-05 21:47:34 +000022383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22384 fi
22385 if test $ac_cv_c_bigendian = unknown; then
22386 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022388/* end confdefs.h. */
22389#include <limits.h>
22390
22391int
22392main ()
22393{
22394#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22395 bogus endian macros
22396 #endif
22397
22398 ;
22399 return 0;
22400}
22401_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022402if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022403 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022405/* end confdefs.h. */
22406#include <limits.h>
22407
22408int
22409main ()
22410{
22411#ifndef _BIG_ENDIAN
22412 not big endian
22413 #endif
22414
22415 ;
22416 return 0;
22417}
22418_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022419if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022420 ac_cv_c_bigendian=yes
22421else
cristy8b350f62009-11-15 23:12:43 +000022422 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022423fi
cristy3ed852e2009-09-05 21:47:34 +000022424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022425fi
cristy3ed852e2009-09-05 21:47:34 +000022426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22427 fi
22428 if test $ac_cv_c_bigendian = unknown; then
22429 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022430 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022431 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022433/* end confdefs.h. */
22434short int ascii_mm[] =
22435 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22436 short int ascii_ii[] =
22437 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22438 int use_ascii (int i) {
22439 return ascii_mm[i] + ascii_ii[i];
22440 }
22441 short int ebcdic_ii[] =
22442 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22443 short int ebcdic_mm[] =
22444 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22445 int use_ebcdic (int i) {
22446 return ebcdic_mm[i] + ebcdic_ii[i];
22447 }
22448 extern int foo;
22449
22450int
22451main ()
22452{
22453return use_ascii (foo) == use_ebcdic (foo);
22454 ;
22455 return 0;
22456}
22457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022458if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022459 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22460 ac_cv_c_bigendian=yes
22461 fi
22462 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22463 if test "$ac_cv_c_bigendian" = unknown; then
22464 ac_cv_c_bigendian=no
22465 else
22466 # finding both strings is unlikely to happen, but who knows?
22467 ac_cv_c_bigendian=unknown
22468 fi
22469 fi
cristy3ed852e2009-09-05 21:47:34 +000022470fi
cristy3ed852e2009-09-05 21:47:34 +000022471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22472else
cristy8b350f62009-11-15 23:12:43 +000022473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022474/* end confdefs.h. */
22475$ac_includes_default
22476int
22477main ()
22478{
22479
22480 /* Are we little or big endian? From Harbison&Steele. */
22481 union
22482 {
22483 long int l;
22484 char c[sizeof (long int)];
22485 } u;
22486 u.l = 1;
22487 return u.c[sizeof (long int) - 1] == 1;
22488
22489 ;
22490 return 0;
22491}
22492_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022493if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022494 ac_cv_c_bigendian=no
22495else
cristy8b350f62009-11-15 23:12:43 +000022496 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022497fi
cristy8b350f62009-11-15 23:12:43 +000022498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22499 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022500fi
22501
cristy3ed852e2009-09-05 21:47:34 +000022502 fi
22503fi
cristy8b350f62009-11-15 23:12:43 +000022504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022505$as_echo "$ac_cv_c_bigendian" >&6; }
22506 case $ac_cv_c_bigendian in #(
22507 yes)
cristy8b350f62009-11-15 23:12:43 +000022508 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022509;; #(
22510 no)
22511 ;; #(
22512 universal)
22513
cristy8b350f62009-11-15 23:12:43 +000022514$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022515
22516 ;; #(
22517 *)
cristy98dddb52010-11-04 00:30:15 +000022518 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022519 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022520 esac
22521
22522
cristy501c8042011-05-26 17:46:28 +000022523# Define to a suitable type, if standard headers do not define it.
22524ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22525case $ac_cv_c_int8_t in #(
22526 no|yes) ;; #(
22527 *)
cristy3ed852e2009-09-05 21:47:34 +000022528
22529cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022530#define int8_t $ac_cv_c_int8_t
22531_ACEOF
22532;;
22533esac
22534
22535ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22536case $ac_cv_c_int16_t in #(
22537 no|yes) ;; #(
22538 *)
22539
22540cat >>confdefs.h <<_ACEOF
22541#define int16_t $ac_cv_c_int16_t
22542_ACEOF
22543;;
22544esac
22545
22546ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22547case $ac_cv_c_int32_t in #(
22548 no|yes) ;; #(
22549 *)
22550
22551cat >>confdefs.h <<_ACEOF
22552#define int32_t $ac_cv_c_int32_t
22553_ACEOF
22554;;
22555esac
22556
22557ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22558case $ac_cv_c_int64_t in #(
22559 no|yes) ;; #(
22560 *)
22561
22562cat >>confdefs.h <<_ACEOF
22563#define int64_t $ac_cv_c_int64_t
22564_ACEOF
22565;;
22566esac
22567
22568
cristy71f53d52013-04-27 13:33:59 +000022569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22570$as_echo_n "checking for unsigned long long int... " >&6; }
22571if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022572 $as_echo_n "(cached) " >&6
22573else
cristy71f53d52013-04-27 13:33:59 +000022574 ac_cv_type_unsigned_long_long_int=yes
22575 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022577/* end confdefs.h. */
22578
22579 /* For now, do not test the preprocessor; as of 2007 there are too many
cristybdabdd62013-03-04 17:43:36 +000022580 implementations with broken preprocessors. Perhaps this can
22581 be revisited in 2012. In the meantime, code should not expect
22582 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022583 /* Test literals. */
22584 long long int ll = 9223372036854775807ll;
22585 long long int nll = -9223372036854775807LL;
22586 unsigned long long int ull = 18446744073709551615ULL;
22587 /* Test constant expressions. */
22588 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristybdabdd62013-03-04 17:43:36 +000022589 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022590 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristybdabdd62013-03-04 17:43:36 +000022591 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022592 int i = 63;
22593int
22594main ()
22595{
22596/* Test availability of runtime routines for shift and division. */
22597 long long int llmax = 9223372036854775807ll;
22598 unsigned long long int ullmax = 18446744073709551615ull;
22599 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristybdabdd62013-03-04 17:43:36 +000022600 | (llmax / ll) | (llmax % ll)
22601 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22602 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022603 ;
22604 return 0;
22605}
22606
22607_ACEOF
22608if ac_fn_c_try_link "$LINENO"; then :
cristy71f53d52013-04-27 13:33:59 +000022609
22610else
22611 ac_cv_type_unsigned_long_long_int=no
22612fi
22613rm -f core conftest.err conftest.$ac_objext \
22614 conftest$ac_exeext conftest.$ac_ext
22615 fi
22616fi
22617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22618$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22619 if test $ac_cv_type_unsigned_long_long_int = yes; then
22620
22621$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22622
22623 fi
22624
22625
22626
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22628$as_echo_n "checking for long long int... " >&6; }
22629if ${ac_cv_type_long_long_int+:} false; then :
22630 $as_echo_n "(cached) " >&6
22631else
cristy501c8042011-05-26 17:46:28 +000022632 ac_cv_type_long_long_int=yes
cristy71f53d52013-04-27 13:33:59 +000022633 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22634 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22635 if test $ac_cv_type_long_long_int = yes; then
22636 if test "$cross_compiling" = yes; then :
22637 :
cristy501c8042011-05-26 17:46:28 +000022638else
22639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22640/* end confdefs.h. */
22641#include <limits.h>
cristy71f53d52013-04-27 13:33:59 +000022642 #ifndef LLONG_MAX
22643 # define HALF \
22644 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22645 # define LLONG_MAX (HALF - 1 + HALF)
22646 #endif
cristy501c8042011-05-26 17:46:28 +000022647int
22648main ()
22649{
22650long long int n = 1;
cristy71f53d52013-04-27 13:33:59 +000022651 int i;
22652 for (i = 0; ; i++)
22653 {
22654 long long int m = n << i;
22655 if (m >> i != n)
22656 return 1;
22657 if (LLONG_MAX / 2 < m)
22658 break;
22659 }
22660 return 0;
cristy501c8042011-05-26 17:46:28 +000022661 ;
22662 return 0;
22663}
22664_ACEOF
22665if ac_fn_c_try_run "$LINENO"; then :
cristy71f53d52013-04-27 13:33:59 +000022666
cristy501c8042011-05-26 17:46:28 +000022667else
22668 ac_cv_type_long_long_int=no
22669fi
22670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22671 conftest.$ac_objext conftest.beam conftest.$ac_ext
22672fi
22673
cristy71f53d52013-04-27 13:33:59 +000022674 fi
22675 fi
cristy501c8042011-05-26 17:46:28 +000022676fi
22677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22678$as_echo "$ac_cv_type_long_long_int" >&6; }
22679 if test $ac_cv_type_long_long_int = yes; then
22680
22681$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22682
22683 fi
22684
22685
22686
22687 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22688if test "x$ac_cv_type_intmax_t" = xyes; then :
22689
22690$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22691
22692else
22693 test $ac_cv_type_long_long_int = yes \
22694 && ac_type='long long int' \
22695 || ac_type='long int'
22696
22697cat >>confdefs.h <<_ACEOF
22698#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022699_ACEOF
22700
22701fi
22702
22703
cristy501c8042011-05-26 17:46:28 +000022704
22705 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22706if test "x$ac_cv_type_intptr_t" = xyes; then :
22707
22708$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022709
cristy3ed852e2009-09-05 21:47:34 +000022710else
cristy501c8042011-05-26 17:46:28 +000022711 for ac_type in 'int' 'long int' 'long long int'; do
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713/* end confdefs.h. */
22714$ac_includes_default
22715int
22716main ()
22717{
22718static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022719test_array [0] = 0;
22720return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022721
22722 ;
22723 return 0;
22724}
22725_ACEOF
22726if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022727
22728cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022729#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022730_ACEOF
22731
cristy501c8042011-05-26 17:46:28 +000022732 ac_type=
22733fi
22734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22735 test -z "$ac_type" && break
22736 done
cristy3ed852e2009-09-05 21:47:34 +000022737fi
22738
22739
cristy3ed852e2009-09-05 21:47:34 +000022740
cristy501c8042011-05-26 17:46:28 +000022741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22742$as_echo_n "checking for long double... " >&6; }
22743if ${ac_cv_type_long_double+:} false; then :
22744 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022745else
cristy501c8042011-05-26 17:46:28 +000022746 if test "$GCC" = yes; then
22747 ac_cv_type_long_double=yes
22748 else
22749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22750/* end confdefs.h. */
22751/* The Stardent Vistra knows sizeof (long double), but does
22752 not support it. */
22753 long double foo = 0.0L;
22754int
22755main ()
22756{
22757static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22758 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022759test_array [0] = 0;
22760return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022761
cristy501c8042011-05-26 17:46:28 +000022762 ;
22763 return 0;
22764}
cristy3ed852e2009-09-05 21:47:34 +000022765_ACEOF
cristy501c8042011-05-26 17:46:28 +000022766if ac_fn_c_try_compile "$LINENO"; then :
22767 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022768else
cristy501c8042011-05-26 17:46:28 +000022769 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022770fi
cristy501c8042011-05-26 17:46:28 +000022771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22772 fi
cristy3ed852e2009-09-05 21:47:34 +000022773fi
cristy501c8042011-05-26 17:46:28 +000022774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22775$as_echo "$ac_cv_type_long_double" >&6; }
22776 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022777
cristy501c8042011-05-26 17:46:28 +000022778$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022779
cristy501c8042011-05-26 17:46:28 +000022780 fi
22781
cristy3ed852e2009-09-05 21:47:34 +000022782
cristy8b350f62009-11-15 23:12:43 +000022783 { $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 +000022784$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022785if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022786 $as_echo_n "(cached) " >&6
22787else
cristy8b350f62009-11-15 23:12:43 +000022788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022789/* end confdefs.h. */
22790#include <float.h>
22791 long double const a[] =
22792 {
22793 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22794 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22795 };
22796 long double
22797 f (long double x)
22798 {
22799 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22800 + (x ? f (x) : 'c'));
22801 }
22802
22803int
22804main ()
22805{
22806static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22807 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22808 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22809 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22810 && (int) LDBL_EPSILON == 0
22811 )];
cristy14fefe52012-05-21 00:59:18 +000022812test_array [0] = 0;
22813return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022814
22815 ;
22816 return 0;
22817}
22818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022819if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022820 ac_cv_type_long_double_wider=yes
22821else
cristy8b350f62009-11-15 23:12:43 +000022822 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022823fi
cristy3ed852e2009-09-05 21:47:34 +000022824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22825fi
cristy8b350f62009-11-15 23:12:43 +000022826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022827$as_echo "$ac_cv_type_long_double_wider" >&6; }
22828 if test $ac_cv_type_long_double_wider = yes; then
22829
cristy8b350f62009-11-15 23:12:43 +000022830$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022831
22832 fi
22833
22834
cristy71f53d52013-04-27 13:33:59 +000022835
cristy501c8042011-05-26 17:46:28 +000022836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22837$as_echo_n "checking for long long int... " >&6; }
22838if ${ac_cv_type_long_long_int+:} false; then :
22839 $as_echo_n "(cached) " >&6
22840else
cristy501c8042011-05-26 17:46:28 +000022841 ac_cv_type_long_long_int=yes
cristy71f53d52013-04-27 13:33:59 +000022842 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22843 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22844 if test $ac_cv_type_long_long_int = yes; then
22845 if test "$cross_compiling" = yes; then :
22846 :
cristy501c8042011-05-26 17:46:28 +000022847else
22848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22849/* end confdefs.h. */
22850#include <limits.h>
cristy71f53d52013-04-27 13:33:59 +000022851 #ifndef LLONG_MAX
22852 # define HALF \
22853 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22854 # define LLONG_MAX (HALF - 1 + HALF)
22855 #endif
cristy501c8042011-05-26 17:46:28 +000022856int
22857main ()
22858{
22859long long int n = 1;
cristy71f53d52013-04-27 13:33:59 +000022860 int i;
22861 for (i = 0; ; i++)
22862 {
22863 long long int m = n << i;
22864 if (m >> i != n)
22865 return 1;
22866 if (LLONG_MAX / 2 < m)
22867 break;
22868 }
22869 return 0;
cristy501c8042011-05-26 17:46:28 +000022870 ;
22871 return 0;
22872}
22873_ACEOF
22874if ac_fn_c_try_run "$LINENO"; then :
cristy71f53d52013-04-27 13:33:59 +000022875
cristy501c8042011-05-26 17:46:28 +000022876else
22877 ac_cv_type_long_long_int=no
22878fi
22879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22880 conftest.$ac_objext conftest.beam conftest.$ac_ext
22881fi
22882
cristy71f53d52013-04-27 13:33:59 +000022883 fi
22884 fi
cristy501c8042011-05-26 17:46:28 +000022885fi
22886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22887$as_echo "$ac_cv_type_long_long_int" >&6; }
22888 if test $ac_cv_type_long_long_int = yes; then
22889
22890$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22891
22892 fi
22893
22894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22895$as_echo_n "checking for mbstate_t... " >&6; }
22896if ${ac_cv_type_mbstate_t+:} false; then :
22897 $as_echo_n "(cached) " >&6
22898else
22899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22900/* end confdefs.h. */
22901$ac_includes_default
22902# include <wchar.h>
22903int
22904main ()
22905{
22906mbstate_t x; return sizeof x;
22907 ;
22908 return 0;
22909}
22910_ACEOF
22911if ac_fn_c_try_compile "$LINENO"; then :
22912 ac_cv_type_mbstate_t=yes
22913else
22914 ac_cv_type_mbstate_t=no
22915fi
22916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22917fi
22918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22919$as_echo "$ac_cv_type_mbstate_t" >&6; }
22920 if test $ac_cv_type_mbstate_t = yes; then
22921
22922$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22923
22924 else
22925
22926$as_echo "#define mbstate_t int" >>confdefs.h
22927
22928 fi
22929ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22930if test "x$ac_cv_type_mode_t" = xyes; then :
22931
22932else
22933
22934cat >>confdefs.h <<_ACEOF
22935#define mode_t int
22936_ACEOF
22937
22938fi
22939
22940ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22941if test "x$ac_cv_type_off_t" = xyes; then :
22942
22943else
22944
22945cat >>confdefs.h <<_ACEOF
22946#define off_t long int
22947_ACEOF
22948
22949fi
22950
22951ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22952if test "x$ac_cv_type_pid_t" = xyes; then :
22953
22954else
22955
22956cat >>confdefs.h <<_ACEOF
22957#define pid_t int
22958_ACEOF
22959
22960fi
22961
22962ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22963if test "x$ac_cv_type_size_t" = xyes; then :
22964
22965else
22966
22967cat >>confdefs.h <<_ACEOF
22968#define size_t unsigned int
22969_ACEOF
22970
22971fi
22972
22973ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22974if test "x$ac_cv_type_ssize_t" = xyes; then :
22975
22976else
22977
22978cat >>confdefs.h <<_ACEOF
22979#define ssize_t int
22980_ACEOF
22981
22982fi
22983
22984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22985$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22986if ${ac_cv_type_uid_t+:} false; then :
22987 $as_echo_n "(cached) " >&6
22988else
22989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22990/* end confdefs.h. */
22991#include <sys/types.h>
22992
22993_ACEOF
22994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22995 $EGREP "uid_t" >/dev/null 2>&1; then :
22996 ac_cv_type_uid_t=yes
22997else
22998 ac_cv_type_uid_t=no
22999fi
23000rm -f conftest*
23001
23002fi
23003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23004$as_echo "$ac_cv_type_uid_t" >&6; }
23005if test $ac_cv_type_uid_t = no; then
23006
23007$as_echo "#define uid_t int" >>confdefs.h
23008
23009
23010$as_echo "#define gid_t int" >>confdefs.h
23011
23012fi
23013
23014ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23015case $ac_cv_c_uint8_t in #(
23016 no|yes) ;; #(
23017 *)
23018
23019$as_echo "#define _UINT8_T 1" >>confdefs.h
23020
23021
23022cat >>confdefs.h <<_ACEOF
23023#define uint8_t $ac_cv_c_uint8_t
23024_ACEOF
23025;;
23026 esac
23027
23028ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23029case $ac_cv_c_uint16_t in #(
23030 no|yes) ;; #(
23031 *)
23032
23033
23034cat >>confdefs.h <<_ACEOF
23035#define uint16_t $ac_cv_c_uint16_t
23036_ACEOF
23037;;
23038 esac
23039
23040ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23041case $ac_cv_c_uint32_t in #(
23042 no|yes) ;; #(
23043 *)
23044
23045$as_echo "#define _UINT32_T 1" >>confdefs.h
23046
23047
23048cat >>confdefs.h <<_ACEOF
23049#define uint32_t $ac_cv_c_uint32_t
23050_ACEOF
23051;;
23052 esac
23053
23054ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23055case $ac_cv_c_uint64_t in #(
23056 no|yes) ;; #(
23057 *)
23058
23059$as_echo "#define _UINT64_T 1" >>confdefs.h
23060
23061
23062cat >>confdefs.h <<_ACEOF
23063#define uint64_t $ac_cv_c_uint64_t
23064_ACEOF
23065;;
23066 esac
23067
23068
cristy501c8042011-05-26 17:46:28 +000023069
23070 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23071if test "x$ac_cv_type_uintmax_t" = xyes; then :
23072
23073$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23074
23075else
23076 test $ac_cv_type_unsigned_long_long_int = yes \
23077 && ac_type='unsigned long long int' \
23078 || ac_type='unsigned long int'
23079
23080cat >>confdefs.h <<_ACEOF
23081#define uintmax_t $ac_type
23082_ACEOF
23083
23084fi
23085
23086
23087
23088 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23089if test "x$ac_cv_type_uintptr_t" = xyes; then :
23090
23091$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23092
23093else
23094 for ac_type in 'unsigned int' 'unsigned long int' \
23095 'unsigned long long int'; do
23096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23097/* end confdefs.h. */
23098$ac_includes_default
23099int
23100main ()
23101{
23102static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023103test_array [0] = 0;
23104return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023105
23106 ;
23107 return 0;
23108}
23109_ACEOF
23110if ac_fn_c_try_compile "$LINENO"; then :
23111
23112cat >>confdefs.h <<_ACEOF
23113#define uintptr_t $ac_type
23114_ACEOF
23115
23116 ac_type=
23117fi
23118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23119 test -z "$ac_type" && break
23120 done
23121fi
23122
23123
23124
23125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23126$as_echo_n "checking for unsigned long long int... " >&6; }
23127if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23128 $as_echo_n "(cached) " >&6
23129else
cristy71f53d52013-04-27 13:33:59 +000023130 ac_cv_type_unsigned_long_long_int=yes
23131 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023133/* end confdefs.h. */
23134
23135 /* For now, do not test the preprocessor; as of 2007 there are too many
cristybdabdd62013-03-04 17:43:36 +000023136 implementations with broken preprocessors. Perhaps this can
23137 be revisited in 2012. In the meantime, code should not expect
23138 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023139 /* Test literals. */
23140 long long int ll = 9223372036854775807ll;
23141 long long int nll = -9223372036854775807LL;
23142 unsigned long long int ull = 18446744073709551615ULL;
23143 /* Test constant expressions. */
23144 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristybdabdd62013-03-04 17:43:36 +000023145 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023146 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristybdabdd62013-03-04 17:43:36 +000023147 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023148 int i = 63;
23149int
23150main ()
23151{
23152/* Test availability of runtime routines for shift and division. */
23153 long long int llmax = 9223372036854775807ll;
23154 unsigned long long int ullmax = 18446744073709551615ull;
23155 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristybdabdd62013-03-04 17:43:36 +000023156 | (llmax / ll) | (llmax % ll)
23157 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23158 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023159 ;
23160 return 0;
23161}
23162
23163_ACEOF
23164if ac_fn_c_try_link "$LINENO"; then :
cristy71f53d52013-04-27 13:33:59 +000023165
cristy501c8042011-05-26 17:46:28 +000023166else
23167 ac_cv_type_unsigned_long_long_int=no
23168fi
23169rm -f core conftest.err conftest.$ac_objext \
23170 conftest$ac_exeext conftest.$ac_ext
cristy71f53d52013-04-27 13:33:59 +000023171 fi
cristy501c8042011-05-26 17:46:28 +000023172fi
23173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23174$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23175 if test $ac_cv_type_unsigned_long_long_int = yes; then
23176
23177$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23178
23179 fi
23180
23181
cristy9b86f202012-11-28 21:55:35 +000023182# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000023183ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23184"
23185if test "x$ac_cv_type_float_t" = xyes; then :
23186
23187cat >>confdefs.h <<_ACEOF
23188#define HAVE_FLOAT_T 1
23189_ACEOF
23190
23191
23192fi
23193
23194ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23195"
23196if test "x$ac_cv_type_double_t" = xyes; then :
23197
23198cat >>confdefs.h <<_ACEOF
23199#define HAVE_DOUBLE_T 1
23200_ACEOF
23201
23202
23203fi
23204
cristy9b86f202012-11-28 21:55:35 +000023205# The cast to long int works around a bug in the HP C Compiler
23206# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23207# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23208# This bug is HP SR number 8606223364.
23209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23210$as_echo_n "checking size of float_t... " >&6; }
23211if ${ac_cv_sizeof_float_t+:} false; then :
23212 $as_echo_n "(cached) " >&6
23213else
23214 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23215"; then :
23216
23217else
23218 if test "$ac_cv_type_float_t" = yes; then
23219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23221as_fn_error 77 "cannot compute sizeof (float_t)
23222See \`config.log' for more details" "$LINENO" 5; }
23223 else
23224 ac_cv_sizeof_float_t=0
23225 fi
23226fi
23227
23228fi
23229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23230$as_echo "$ac_cv_sizeof_float_t" >&6; }
23231
23232
23233
23234cat >>confdefs.h <<_ACEOF
23235#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23236_ACEOF
23237
23238
23239# The cast to long int works around a bug in the HP C Compiler
23240# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23241# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23242# This bug is HP SR number 8606223364.
23243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23244$as_echo_n "checking size of double_t... " >&6; }
23245if ${ac_cv_sizeof_double_t+:} false; then :
23246 $as_echo_n "(cached) " >&6
23247else
23248 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23249"; then :
23250
23251else
23252 if test "$ac_cv_type_double_t" = yes; then
23253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23255as_fn_error 77 "cannot compute sizeof (double_t)
23256See \`config.log' for more details" "$LINENO" 5; }
23257 else
23258 ac_cv_sizeof_double_t=0
23259 fi
23260fi
23261
23262fi
23263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23264$as_echo "$ac_cv_sizeof_double_t" >&6; }
23265
23266
23267
23268cat >>confdefs.h <<_ACEOF
23269#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23270_ACEOF
23271
23272
23273
23274# Get size of float, double and long double for comparaison.
23275# The cast to long int works around a bug in the HP C Compiler
23276# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23277# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23278# This bug is HP SR number 8606223364.
23279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23280$as_echo_n "checking size of float... " >&6; }
23281if ${ac_cv_sizeof_float+:} false; then :
23282 $as_echo_n "(cached) " >&6
23283else
23284 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23285
23286else
23287 if test "$ac_cv_type_float" = yes; then
23288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23290as_fn_error 77 "cannot compute sizeof (float)
23291See \`config.log' for more details" "$LINENO" 5; }
23292 else
23293 ac_cv_sizeof_float=0
23294 fi
23295fi
23296
23297fi
23298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23299$as_echo "$ac_cv_sizeof_float" >&6; }
23300
23301
23302
23303cat >>confdefs.h <<_ACEOF
23304#define SIZEOF_FLOAT $ac_cv_sizeof_float
23305_ACEOF
23306
23307
23308# The cast to long int works around a bug in the HP C Compiler
23309# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23310# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23311# This bug is HP SR number 8606223364.
23312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23313$as_echo_n "checking size of double... " >&6; }
23314if ${ac_cv_sizeof_double+:} false; then :
23315 $as_echo_n "(cached) " >&6
23316else
23317 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23318
23319else
23320 if test "$ac_cv_type_double" = yes; then
23321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23323as_fn_error 77 "cannot compute sizeof (double)
23324See \`config.log' for more details" "$LINENO" 5; }
23325 else
23326 ac_cv_sizeof_double=0
23327 fi
23328fi
23329
23330fi
23331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23332$as_echo "$ac_cv_sizeof_double" >&6; }
23333
23334
23335
23336cat >>confdefs.h <<_ACEOF
23337#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23338_ACEOF
23339
23340
23341# The cast to long int works around a bug in the HP C Compiler
23342# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23343# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23344# This bug is HP SR number 8606223364.
23345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23346$as_echo_n "checking size of long double... " >&6; }
23347if ${ac_cv_sizeof_long_double+:} false; then :
23348 $as_echo_n "(cached) " >&6
23349else
23350 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23351
23352else
23353 if test "$ac_cv_type_long_double" = yes; then
23354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23356as_fn_error 77 "cannot compute sizeof (long double)
23357See \`config.log' for more details" "$LINENO" 5; }
23358 else
23359 ac_cv_sizeof_long_double=0
23360 fi
23361fi
23362
23363fi
23364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23365$as_echo "$ac_cv_sizeof_long_double" >&6; }
23366
23367
23368
23369cat >>confdefs.h <<_ACEOF
23370#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23371_ACEOF
23372
23373
cristyf0cf9a22012-10-24 12:05:01 +000023374
cristy3ed852e2009-09-05 21:47:34 +000023375# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23376# The cast to long int works around a bug in the HP C Compiler
23377# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23378# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23379# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023381$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023382if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023383 $as_echo_n "(cached) " >&6
23384else
cristy8b350f62009-11-15 23:12:43 +000023385 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 +000023386
cristy3ed852e2009-09-05 21:47:34 +000023387else
cristy8b350f62009-11-15 23:12:43 +000023388 if test "$ac_cv_type_signed_short" = yes; then
23389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023391as_fn_error 77 "cannot compute sizeof (signed short)
23392See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023393 else
23394 ac_cv_sizeof_signed_short=0
23395 fi
23396fi
cristy8b350f62009-11-15 23:12:43 +000023397
cristy3ed852e2009-09-05 21:47:34 +000023398fi
cristy8b350f62009-11-15 23:12:43 +000023399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023400$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23401
23402
23403
23404cat >>confdefs.h <<_ACEOF
23405#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23406_ACEOF
23407
23408
23409
23410# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23411# The cast to long int works around a bug in the HP C Compiler
23412# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23413# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23414# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023416$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023417if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023418 $as_echo_n "(cached) " >&6
23419else
cristy8b350f62009-11-15 23:12:43 +000023420 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 +000023421
cristy3ed852e2009-09-05 21:47:34 +000023422else
cristy8b350f62009-11-15 23:12:43 +000023423 if test "$ac_cv_type_unsigned_short" = yes; then
23424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023426as_fn_error 77 "cannot compute sizeof (unsigned short)
23427See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023428 else
23429 ac_cv_sizeof_unsigned_short=0
23430 fi
23431fi
cristy8b350f62009-11-15 23:12:43 +000023432
cristy3ed852e2009-09-05 21:47:34 +000023433fi
cristy8b350f62009-11-15 23:12:43 +000023434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023435$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23436
23437
23438
23439cat >>confdefs.h <<_ACEOF
23440#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23441_ACEOF
23442
23443
23444
23445# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23446# The cast to long int works around a bug in the HP C Compiler
23447# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23448# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23449# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023451$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023452if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023453 $as_echo_n "(cached) " >&6
23454else
cristy8b350f62009-11-15 23:12:43 +000023455 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 +000023456
cristy3ed852e2009-09-05 21:47:34 +000023457else
cristy8b350f62009-11-15 23:12:43 +000023458 if test "$ac_cv_type_signed_int" = yes; then
23459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023461as_fn_error 77 "cannot compute sizeof (signed int)
23462See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023463 else
23464 ac_cv_sizeof_signed_int=0
23465 fi
23466fi
cristy8b350f62009-11-15 23:12:43 +000023467
cristy3ed852e2009-09-05 21:47:34 +000023468fi
cristy8b350f62009-11-15 23:12:43 +000023469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023470$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23471
23472
23473
23474cat >>confdefs.h <<_ACEOF
23475#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23476_ACEOF
23477
23478
23479
23480# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
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 int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023486$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023487if ${ac_cv_sizeof_unsigned_int+:} 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 int))" "ac_cv_sizeof_unsigned_int" "$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_int" = 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 int)
23497See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023498 else
23499 ac_cv_sizeof_unsigned_int=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_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023505$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23506
23507
23508
23509cat >>confdefs.h <<_ACEOF
23510#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23511_ACEOF
23512
23513
23514
23515# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
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 signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023521$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023522if ${ac_cv_sizeof_signed_long+:} 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 (signed long))" "ac_cv_sizeof_signed_long" "$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_signed_long" = 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 (signed long)
23532See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023533 else
23534 ac_cv_sizeof_signed_long=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_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023540$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23541
23542
23543
23544cat >>confdefs.h <<_ACEOF
23545#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23546_ACEOF
23547
23548
23549
23550# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
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 unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023556$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023557if ${ac_cv_sizeof_unsigned_long+:} 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 (unsigned long))" "ac_cv_sizeof_unsigned_long" "$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_unsigned_long" = 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 (unsigned long)
23567See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023568 else
23569 ac_cv_sizeof_unsigned_long=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_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023575$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23576
23577
23578
23579cat >>confdefs.h <<_ACEOF
23580#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23581_ACEOF
23582
23583
23584
23585# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23586# 'signed long long' is not supported then the value defined is zero.
23587# The cast to long int works around a bug in the HP C Compiler
23588# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23589# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23590# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023592$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023593if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023594 $as_echo_n "(cached) " >&6
23595else
cristy8b350f62009-11-15 23:12:43 +000023596 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 +000023597
cristy3ed852e2009-09-05 21:47:34 +000023598else
cristy8b350f62009-11-15 23:12:43 +000023599 if test "$ac_cv_type_signed_long_long" = yes; then
23600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023602as_fn_error 77 "cannot compute sizeof (signed long long)
23603See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023604 else
23605 ac_cv_sizeof_signed_long_long=0
23606 fi
23607fi
cristy8b350f62009-11-15 23:12:43 +000023608
cristy3ed852e2009-09-05 21:47:34 +000023609fi
cristy8b350f62009-11-15 23:12:43 +000023610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023611$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23612
23613
23614
23615cat >>confdefs.h <<_ACEOF
23616#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23617_ACEOF
23618
23619
23620
23621# Obtain size of a 'unsigned long long' and define as
23622# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23623# supported then the value defined is zero.
23624# The cast to long int works around a bug in the HP C Compiler
23625# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23626# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23627# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023629$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023630if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023631 $as_echo_n "(cached) " >&6
23632else
cristy8b350f62009-11-15 23:12:43 +000023633 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 +000023634
cristy3ed852e2009-09-05 21:47:34 +000023635else
cristy8b350f62009-11-15 23:12:43 +000023636 if test "$ac_cv_type_unsigned_long_long" = yes; then
23637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023639as_fn_error 77 "cannot compute sizeof (unsigned long long)
23640See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023641 else
23642 ac_cv_sizeof_unsigned_long_long=0
23643 fi
23644fi
cristy8b350f62009-11-15 23:12:43 +000023645
cristy3ed852e2009-09-05 21:47:34 +000023646fi
cristy8b350f62009-11-15 23:12:43 +000023647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023648$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23649
23650
23651
23652cat >>confdefs.h <<_ACEOF
23653#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23654_ACEOF
23655
23656
23657
23658# Obtain size of off_t and define as SIZEOF_OFF_T
23659# The cast to long int works around a bug in the HP C Compiler
23660# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23661# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23662# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023664$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023665if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023666 $as_echo_n "(cached) " >&6
23667else
cristy8b350f62009-11-15 23:12:43 +000023668 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 +000023669
cristy3ed852e2009-09-05 21:47:34 +000023670else
cristy8b350f62009-11-15 23:12:43 +000023671 if test "$ac_cv_type_off_t" = yes; then
23672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023674as_fn_error 77 "cannot compute sizeof (off_t)
23675See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023676 else
23677 ac_cv_sizeof_off_t=0
23678 fi
23679fi
cristy8b350f62009-11-15 23:12:43 +000023680
cristy3ed852e2009-09-05 21:47:34 +000023681fi
cristy8b350f62009-11-15 23:12:43 +000023682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023683$as_echo "$ac_cv_sizeof_off_t" >&6; }
23684
23685
23686
23687cat >>confdefs.h <<_ACEOF
23688#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23689_ACEOF
23690
23691
23692
23693# Obtain size of size_t and define as SIZEOF_SIZE_T
23694# The cast to long int works around a bug in the HP C Compiler
23695# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23696# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23697# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023699$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023700if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023701 $as_echo_n "(cached) " >&6
23702else
cristy8b350f62009-11-15 23:12:43 +000023703 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 +000023704
cristy3ed852e2009-09-05 21:47:34 +000023705else
cristy8b350f62009-11-15 23:12:43 +000023706 if test "$ac_cv_type_size_t" = yes; then
23707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023709as_fn_error 77 "cannot compute sizeof (size_t)
23710See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023711 else
23712 ac_cv_sizeof_size_t=0
23713 fi
23714fi
cristy8b350f62009-11-15 23:12:43 +000023715
cristy3ed852e2009-09-05 21:47:34 +000023716fi
cristy8b350f62009-11-15 23:12:43 +000023717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023718$as_echo "$ac_cv_sizeof_size_t" >&6; }
23719
23720
23721
23722cat >>confdefs.h <<_ACEOF
23723#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23724_ACEOF
23725
23726
23727
cristy330e9352010-06-01 18:42:49 +000023728# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23729# The cast to long int works around a bug in the HP C Compiler
23730# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23731# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23732# This bug is HP SR number 8606223364.
23733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23734$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023735if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023736 $as_echo_n "(cached) " >&6
23737else
23738 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23739
23740else
23741 if test "$ac_cv_type_ssize_t" = yes; then
23742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023744as_fn_error 77 "cannot compute sizeof (ssize_t)
23745See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023746 else
23747 ac_cv_sizeof_ssize_t=0
23748 fi
23749fi
23750
23751fi
23752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23753$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23754
23755
23756
23757cat >>confdefs.h <<_ACEOF
23758#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23759_ACEOF
23760
23761
23762
cristy3ed852e2009-09-05 21:47:34 +000023763# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23764# The cast to long int works around a bug in the HP C Compiler
23765# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23766# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23767# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023769$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023770if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023771 $as_echo_n "(cached) " >&6
23772else
cristy8b350f62009-11-15 23:12:43 +000023773 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 +000023774
cristy3ed852e2009-09-05 21:47:34 +000023775else
cristy8b350f62009-11-15 23:12:43 +000023776 if test "$ac_cv_type_unsigned_intp" = yes; then
23777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023779as_fn_error 77 "cannot compute sizeof (unsigned int*)
23780See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023781 else
23782 ac_cv_sizeof_unsigned_intp=0
23783 fi
23784fi
cristy8b350f62009-11-15 23:12:43 +000023785
cristy3ed852e2009-09-05 21:47:34 +000023786fi
cristy8b350f62009-11-15 23:12:43 +000023787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023788$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23789
23790
23791
23792cat >>confdefs.h <<_ACEOF
23793#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23794_ACEOF
23795
23796
23797
23798#
23799# Compute sized types for current CPU and compiler options.
23800#
23801
cristy8b350f62009-11-15 23:12:43 +000023802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023803$as_echo_n "checking for signed 8-bit type... " >&6; }
23804INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23806$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023807
23808
cristy8b350f62009-11-15 23:12:43 +000023809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023810$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23811UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23813$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023814
23815
cristy8b350f62009-11-15 23:12:43 +000023816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023817$as_echo_n "checking for signed 16-bit type... " >&6; }
23818INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23820$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023821
23822
cristy8b350f62009-11-15 23:12:43 +000023823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023824$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23825UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23827$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023828
23829
cristy8b350f62009-11-15 23:12:43 +000023830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023831$as_echo_n "checking for signed 32-bit type... " >&6; }
23832INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023833INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023834if test $ac_cv_sizeof_signed_int -eq 4; then
23835 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023836 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023837elif test $ac_cv_sizeof_signed_long -eq 4; then
23838 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023839 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023840fi
cristyad38abe2012-12-23 23:03:21 +000023841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23842$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023843
23844
cristy6d5e20f2011-04-25 13:48:54 +000023845
cristy8b350f62009-11-15 23:12:43 +000023846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023847$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23848UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023849UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023850if test $ac_cv_sizeof_unsigned_int -eq 4; then
23851 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023852 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023853elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23854 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023855 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023856fi
cristyad38abe2012-12-23 23:03:21 +000023857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23858$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023859
23860
cristy6d5e20f2011-04-25 13:48:54 +000023861
cristy8b350f62009-11-15 23:12:43 +000023862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023863$as_echo_n "checking for signed 64-bit type... " >&6; }
23864INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023865INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023866if test $ac_cv_sizeof_signed_long -eq 8; then
23867 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023868 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023869elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23870 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023871 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023872fi
cristy3a99dcf2011-12-17 01:29:40 +000023873case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023874 mingw* )
23875 INT64_F='"I64"'
23876 ;;
23877esac
cristyad38abe2012-12-23 23:03:21 +000023878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23879$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023880
23881
cristy6d5e20f2011-04-25 13:48:54 +000023882
cristy8b350f62009-11-15 23:12:43 +000023883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023884$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23885UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023886UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023887if test $ac_cv_sizeof_unsigned_long -eq 8; then
23888 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023889 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023890elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23891 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023892 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023893fi
cristy3a99dcf2011-12-17 01:29:40 +000023894case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023895 mingw* )
23896 UINT64_F='"I64"'
23897 ;;
23898esac
cristyad38abe2012-12-23 23:03:21 +000023899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23900$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023901
23902
cristy6d5e20f2011-04-25 13:48:54 +000023903
cristy8b350f62009-11-15 23:12:43 +000023904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023905$as_echo_n "checking for unsigned maximum type... " >&6; }
23906UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023907UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023908if test "$UINT64_T" != 'none'; then
23909 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023910 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023911elif test "$UINT32_T" != 'none'; then
23912 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023913 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023914fi
cristyad38abe2012-12-23 23:03:21 +000023915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23916$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023917
23918
cristy6d5e20f2011-04-25 13:48:54 +000023919
cristy8b350f62009-11-15 23:12:43 +000023920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023921$as_echo_n "checking for pointer difference type... " >&6; }
23922UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023923UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023924if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23925 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023926 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023927elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23928 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023929 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023930fi
cristyad38abe2012-12-23 23:03:21 +000023931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23932$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023933
23934
cristy6d5e20f2011-04-25 13:48:54 +000023935
cristy8b350f62009-11-15 23:12:43 +000023936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023937$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023939/* end confdefs.h. */
23940
23941int
23942main ()
23943{
23944{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23945 ;
23946 return 0;
23947}
23948_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023949if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23951$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023952else
cristyad38abe2012-12-23 23:03:21 +000023953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23954$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023956$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023958/* end confdefs.h. */
23959
23960int
23961main ()
23962{
23963{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23964 ;
23965 return 0;
23966}
23967_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023968if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23970$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023971
cristy8b350f62009-11-15 23:12:43 +000023972$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023973
23974else
cristyad38abe2012-12-23 23:03:21 +000023975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23976$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023977
cristy8b350f62009-11-15 23:12:43 +000023978$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023979
23980fi
cristy3ed852e2009-09-05 21:47:34 +000023981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23982fi
cristy3ed852e2009-09-05 21:47:34 +000023983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23984
23985########
23986#
23987# Check for functions
23988#
23989########
cristy73bd4a52010-10-05 11:24:23 +000023990for ac_header in stdlib.h unistd.h
23991do :
23992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23993ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023995 cat >>confdefs.h <<_ACEOF
23996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23997_ACEOF
23998
23999fi
24000
24001done
24002
24003for ac_func in getpagesize
24004do :
24005 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024006if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024007 cat >>confdefs.h <<_ACEOF
24008#define HAVE_GETPAGESIZE 1
24009_ACEOF
24010
24011fi
24012done
24013
24014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24015$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024016if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024017 $as_echo_n "(cached) " >&6
24018else
24019 if test "$cross_compiling" = yes; then :
24020 magick_cv_func_mmap_fileio=no
24021else
24022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24023/* end confdefs.h. */
24024$ac_includes_default
24025/* malloc might have been renamed as rpl_malloc. */
24026#undef malloc
24027
24028/*
24029 This test is derived from GNU Autoconf's similar macro.
24030 The purpose of this test is to verify that files may be memory
24031 mapped, and that memory mapping and file I/O are coherent.
24032
24033 The test creates a test file, memory maps the file, updates
24034 the file using the memory map, and then reads the file using
24035 file I/O to verify that the file contains the updates.
24036*/
24037
24038#include <fcntl.h>
24039#include <sys/mman.h>
24040
24041#if !STDC_HEADERS && !HAVE_STDLIB_H
24042char *malloc ();
24043#endif
24044
24045/* This mess was copied from the GNU getpagesize.h. */
24046#if !HAVE_GETPAGESIZE
24047/* Assume that all systems that can run configure have sys/param.h. */
24048# if !HAVE_SYS_PARAM_H
24049# define HAVE_SYS_PARAM_H 1
24050# endif
24051
24052# ifdef _SC_PAGESIZE
24053# define getpagesize() sysconf(_SC_PAGESIZE)
24054# else /* no _SC_PAGESIZE */
24055# if HAVE_SYS_PARAM_H
24056# include <sys/param.h>
24057# ifdef EXEC_PAGESIZE
24058# define getpagesize() EXEC_PAGESIZE
24059# else /* no EXEC_PAGESIZE */
24060# ifdef NBPG
24061# define getpagesize() NBPG * CLSIZE
24062# ifndef CLSIZE
24063# define CLSIZE 1
24064# endif /* no CLSIZE */
24065# else /* no NBPG */
24066# ifdef NBPC
24067# define getpagesize() NBPC
24068# else /* no NBPC */
24069# ifdef PAGESIZE
24070# define getpagesize() PAGESIZE
24071# endif /* PAGESIZE */
24072# endif /* no NBPC */
24073# endif /* no NBPG */
24074# endif /* no EXEC_PAGESIZE */
24075# else /* no HAVE_SYS_PARAM_H */
24076# define getpagesize() 8192 /* punt totally */
24077# endif /* no HAVE_SYS_PARAM_H */
24078# endif /* no _SC_PAGESIZE */
24079
24080#endif /* no HAVE_GETPAGESIZE */
24081
24082int
24083main ()
24084{
24085 char *data, *data2, *data3;
24086 int i, pagesize;
24087 int fd;
24088
24089 pagesize = getpagesize ();
24090
24091 /* First, make a file with some known garbage in it. */
24092 data = (char *) malloc (pagesize);
24093 if (!data)
24094 exit (1);
24095 for (i = 0; i < pagesize; ++i)
24096 *(data + i) = rand ();
24097 umask (0);
24098 fd = creat ("conftest.mmap", 0600);
24099 if (fd < 0)
24100 exit (1);
24101 if (write (fd, data, pagesize) != pagesize)
24102 exit (1);
24103 close (fd);
24104
24105 /* Mmap the file as read/write/shared and verify that we see the
24106 same garbage. */
24107 fd = open ("conftest.mmap", O_RDWR);
24108 if (fd < 0)
24109 exit (1);
24110 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24111 if (data2 == 0)
24112 exit (1);
24113 for (i = 0; i < pagesize; ++i)
24114 if (*(data + i) != *(data2 + i))
24115 exit (1);
24116
24117 /* Finally, make sure that changes to the mapped area
24118 percolate back to the file as seen by read(). */
24119 for (i = 0; i < pagesize; ++i)
24120 *(data2 + i) = *(data2 + i) + 1;
24121 data3 = (char *) malloc (pagesize);
24122 if (!data3)
24123 exit (1);
24124 if (read (fd, data3, pagesize) != pagesize)
24125 exit (1);
24126 for (i = 0; i < pagesize; ++i)
24127 if (*(data2 + i) != *(data3 + i))
24128 exit (1);
24129 close (fd);
24130 exit (0);
24131}
24132_ACEOF
24133if ac_fn_c_try_run "$LINENO"; then :
24134 magick_cv_func_mmap_fileio=yes
24135else
24136 magick_cv_func_mmap_fileio=no
24137fi
24138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24139 conftest.$ac_objext conftest.beam conftest.$ac_ext
24140fi
24141
24142fi
24143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24144$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24145if test $magick_cv_func_mmap_fileio = yes; then
24146
24147$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24148
24149fi
24150rm -f conftest.mmap
24151
cristy8b350f62009-11-15 23:12:43 +000024152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024153$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024154if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024155 $as_echo_n "(cached) " >&6
24156else
cristy8b350f62009-11-15 23:12:43 +000024157 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024158 ac_cv_func_closedir_void=yes
24159else
cristy8b350f62009-11-15 23:12:43 +000024160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024161/* end confdefs.h. */
24162$ac_includes_default
24163#include <$ac_header_dirent>
24164#ifndef __cplusplus
24165int closedir ();
24166#endif
24167
24168int
24169main ()
24170{
24171return closedir (opendir (".")) != 0;
24172 ;
24173 return 0;
24174}
24175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024176if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024177 ac_cv_func_closedir_void=no
24178else
cristy8b350f62009-11-15 23:12:43 +000024179 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024180fi
cristy8b350f62009-11-15 23:12:43 +000024181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24182 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024183fi
24184
cristy3ed852e2009-09-05 21:47:34 +000024185fi
cristy8b350f62009-11-15 23:12:43 +000024186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024187$as_echo "$ac_cv_func_closedir_void" >&6; }
24188if test $ac_cv_func_closedir_void = yes; then
24189
cristy8b350f62009-11-15 23:12:43 +000024190$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024191
24192fi
24193
cristycd4c5312009-11-22 01:19:08 +000024194
24195
24196
24197 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024198do :
24199 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024200ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24201"
cristy98dddb52010-11-04 00:30:15 +000024202if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024203 cat >>confdefs.h <<_ACEOF
24204#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24205_ACEOF
24206
24207fi
24208
24209done
24210
cristycd4c5312009-11-22 01:19:08 +000024211
24212
24213
24214
24215
24216
24217
cristy3ed852e2009-09-05 21:47:34 +000024218for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024219do :
24220 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024221if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024222 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024223#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024224_ACEOF
24225
24226fi
24227done
24228
cristy8b350f62009-11-15 23:12:43 +000024229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024230$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024231if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024232 $as_echo_n "(cached) " >&6
24233else
cristy8b350f62009-11-15 23:12:43 +000024234 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024235 ac_cv_func_mmap_fixed_mapped=no
24236else
cristy8b350f62009-11-15 23:12:43 +000024237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024238/* end confdefs.h. */
24239$ac_includes_default
24240/* malloc might have been renamed as rpl_malloc. */
24241#undef malloc
24242
24243/* Thanks to Mike Haertel and Jim Avera for this test.
24244 Here is a matrix of mmap possibilities:
24245 mmap private not fixed
24246 mmap private fixed at somewhere currently unmapped
24247 mmap private fixed at somewhere already mapped
24248 mmap shared not fixed
24249 mmap shared fixed at somewhere currently unmapped
24250 mmap shared fixed at somewhere already mapped
24251 For private mappings, we should verify that changes cannot be read()
24252 back from the file, nor mmap's back from the file at a different
24253 address. (There have been systems where private was not correctly
24254 implemented like the infamous i386 svr4.0, and systems where the
24255 VM page cache was not coherent with the file system buffer cache
24256 like early versions of FreeBSD and possibly contemporary NetBSD.)
24257 For shared mappings, we should conversely verify that changes get
24258 propagated back to all the places they're supposed to be.
24259
24260 Grep wants private fixed already mapped.
24261 The main things grep needs to know about mmap are:
24262 * does it exist and is it safe to write into the mmap'd area
24263 * how to use it (BSD variants) */
24264
24265#include <fcntl.h>
24266#include <sys/mman.h>
24267
24268#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24269char *malloc ();
24270#endif
24271
24272/* This mess was copied from the GNU getpagesize.h. */
24273#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024274# ifdef _SC_PAGESIZE
24275# define getpagesize() sysconf(_SC_PAGESIZE)
24276# else /* no _SC_PAGESIZE */
24277# ifdef HAVE_SYS_PARAM_H
24278# include <sys/param.h>
24279# ifdef EXEC_PAGESIZE
24280# define getpagesize() EXEC_PAGESIZE
24281# else /* no EXEC_PAGESIZE */
24282# ifdef NBPG
24283# define getpagesize() NBPG * CLSIZE
24284# ifndef CLSIZE
24285# define CLSIZE 1
24286# endif /* no CLSIZE */
24287# else /* no NBPG */
24288# ifdef NBPC
24289# define getpagesize() NBPC
24290# else /* no NBPC */
24291# ifdef PAGESIZE
24292# define getpagesize() PAGESIZE
24293# endif /* PAGESIZE */
24294# endif /* no NBPC */
24295# endif /* no NBPG */
24296# endif /* no EXEC_PAGESIZE */
24297# else /* no HAVE_SYS_PARAM_H */
24298# define getpagesize() 8192 /* punt totally */
24299# endif /* no HAVE_SYS_PARAM_H */
24300# endif /* no _SC_PAGESIZE */
24301
24302#endif /* no HAVE_GETPAGESIZE */
24303
24304int
24305main ()
24306{
24307 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024308 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024309 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024310 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024311
24312 pagesize = getpagesize ();
24313
24314 /* First, make a file with some known garbage in it. */
24315 data = (char *) malloc (pagesize);
24316 if (!data)
24317 return 1;
24318 for (i = 0; i < pagesize; ++i)
24319 *(data + i) = rand ();
24320 umask (0);
24321 fd = creat ("conftest.mmap", 0600);
24322 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024323 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024324 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024325 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024326 close (fd);
24327
cristycd4c5312009-11-22 01:19:08 +000024328 /* Next, check that the tail of a page is zero-filled. File must have
24329 non-zero length, otherwise we risk SIGBUS for entire page. */
24330 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24331 if (fd2 < 0)
24332 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024333 cdata2 = "";
24334 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024335 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024336 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024337 if (data2 == MAP_FAILED)
24338 return 6;
24339 for (i = 0; i < pagesize; ++i)
24340 if (*(data2 + i))
24341 return 7;
24342 close (fd2);
24343 if (munmap (data2, pagesize))
24344 return 8;
24345
cristy3ed852e2009-09-05 21:47:34 +000024346 /* Next, try to mmap the file at a fixed address which already has
24347 something else allocated at it. If we can, also make sure that
24348 we see the same garbage. */
24349 fd = open ("conftest.mmap", O_RDWR);
24350 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024351 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024352 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24353 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024354 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024355 for (i = 0; i < pagesize; ++i)
24356 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024357 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024358
24359 /* Finally, make sure that changes to the mapped area do not
24360 percolate back to the file as seen by read(). (This is a bug on
24361 some variants of i386 svr4.0.) */
24362 for (i = 0; i < pagesize; ++i)
24363 *(data2 + i) = *(data2 + i) + 1;
24364 data3 = (char *) malloc (pagesize);
24365 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024366 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024367 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024368 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024369 for (i = 0; i < pagesize; ++i)
24370 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024371 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024372 close (fd);
24373 return 0;
24374}
24375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024376if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024377 ac_cv_func_mmap_fixed_mapped=yes
24378else
cristy8b350f62009-11-15 23:12:43 +000024379 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024380fi
cristy8b350f62009-11-15 23:12:43 +000024381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24382 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024383fi
24384
cristy3ed852e2009-09-05 21:47:34 +000024385fi
cristy8b350f62009-11-15 23:12:43 +000024386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024387$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24388if test $ac_cv_func_mmap_fixed_mapped = yes; then
24389
cristy8b350f62009-11-15 23:12:43 +000024390$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024391
24392fi
cristycd4c5312009-11-22 01:19:08 +000024393rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024394
cristy3ed852e2009-09-05 21:47:34 +000024395for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024396do :
24397 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024398if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024399 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024400#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024401_ACEOF
24402
24403fi
24404
24405done
24406
cristy3ed852e2009-09-05 21:47:34 +000024407for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024408do :
24409 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24410ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024411if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024412 cat >>confdefs.h <<_ACEOF
24413#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24414_ACEOF
24415
24416fi
24417done
24418
24419if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024421$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024422if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024423 $as_echo_n "(cached) " >&6
24424else
cristy8b350f62009-11-15 23:12:43 +000024425 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024426 ac_cv_func_fork_works=cross
24427else
cristy8b350f62009-11-15 23:12:43 +000024428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024429/* end confdefs.h. */
24430$ac_includes_default
24431int
24432main ()
24433{
24434
24435 /* By Ruediger Kuhlmann. */
24436 return fork () < 0;
24437
24438 ;
24439 return 0;
24440}
24441_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024442if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024443 ac_cv_func_fork_works=yes
24444else
cristy8b350f62009-11-15 23:12:43 +000024445 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024446fi
cristy8b350f62009-11-15 23:12:43 +000024447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24448 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024449fi
24450
cristy3ed852e2009-09-05 21:47:34 +000024451fi
cristy8b350f62009-11-15 23:12:43 +000024452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024453$as_echo "$ac_cv_func_fork_works" >&6; }
24454
24455else
24456 ac_cv_func_fork_works=$ac_cv_func_fork
24457fi
24458if test "x$ac_cv_func_fork_works" = xcross; then
24459 case $host in
24460 *-*-amigaos* | *-*-msdosdjgpp*)
24461 # Override, as these systems have only a dummy fork() stub
24462 ac_cv_func_fork_works=no
24463 ;;
24464 *)
24465 ac_cv_func_fork_works=yes
24466 ;;
24467 esac
cristy8b350f62009-11-15 23:12:43 +000024468 { $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 +000024469$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24470fi
24471ac_cv_func_vfork_works=$ac_cv_func_vfork
24472if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024474$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024475if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024476 $as_echo_n "(cached) " >&6
24477else
cristy8b350f62009-11-15 23:12:43 +000024478 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024479 ac_cv_func_vfork_works=cross
24480else
cristy8b350f62009-11-15 23:12:43 +000024481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024482/* end confdefs.h. */
24483/* Thanks to Paul Eggert for this test. */
24484$ac_includes_default
24485#include <sys/wait.h>
24486#ifdef HAVE_VFORK_H
24487# include <vfork.h>
24488#endif
24489/* On some sparc systems, changes by the child to local and incoming
24490 argument registers are propagated back to the parent. The compiler
24491 is told about this with #include <vfork.h>, but some compilers
24492 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24493 static variable whose address is put into a register that is
24494 clobbered by the vfork. */
24495static void
24496#ifdef __cplusplus
24497sparc_address_test (int arg)
24498# else
24499sparc_address_test (arg) int arg;
24500#endif
24501{
24502 static pid_t child;
24503 if (!child) {
24504 child = vfork ();
24505 if (child < 0) {
24506 perror ("vfork");
24507 _exit(2);
24508 }
24509 if (!child) {
24510 arg = getpid();
24511 write(-1, "", 0);
24512 _exit (arg);
24513 }
24514 }
24515}
24516
24517int
24518main ()
24519{
24520 pid_t parent = getpid ();
24521 pid_t child;
24522
24523 sparc_address_test (0);
24524
24525 child = vfork ();
24526
24527 if (child == 0) {
24528 /* Here is another test for sparc vfork register problems. This
24529 test uses lots of local variables, at least as many local
24530 variables as main has allocated so far including compiler
24531 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24532 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24533 reuse the register of parent for one of the local variables,
24534 since it will think that parent can't possibly be used any more
24535 in this routine. Assigning to the local variable will thus
24536 munge parent in the parent process. */
24537 pid_t
24538 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24539 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24540 /* Convince the compiler that p..p7 are live; otherwise, it might
24541 use the same hardware register for all 8 local variables. */
24542 if (p != p1 || p != p2 || p != p3 || p != p4
24543 || p != p5 || p != p6 || p != p7)
24544 _exit(1);
24545
24546 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24547 from child file descriptors. If the child closes a descriptor
24548 before it execs or exits, this munges the parent's descriptor
24549 as well. Test for this by closing stdout in the child. */
24550 _exit(close(fileno(stdout)) != 0);
24551 } else {
24552 int status;
24553 struct stat st;
24554
24555 while (wait(&status) != child)
24556 ;
24557 return (
24558 /* Was there some problem with vforking? */
24559 child < 0
24560
24561 /* Did the child fail? (This shouldn't happen.) */
24562 || status
24563
24564 /* Did the vfork/compiler bug occur? */
24565 || parent != getpid()
24566
24567 /* Did the file descriptor bug occur? */
24568 || fstat(fileno(stdout), &st) != 0
24569 );
24570 }
24571}
24572_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024573if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024574 ac_cv_func_vfork_works=yes
24575else
cristy8b350f62009-11-15 23:12:43 +000024576 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024577fi
cristy8b350f62009-11-15 23:12:43 +000024578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24579 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024580fi
24581
cristy3ed852e2009-09-05 21:47:34 +000024582fi
cristy8b350f62009-11-15 23:12:43 +000024583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024584$as_echo "$ac_cv_func_vfork_works" >&6; }
24585
24586fi;
24587if test "x$ac_cv_func_fork_works" = xcross; then
24588 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024589 { $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 +000024590$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24591fi
24592
24593if test "x$ac_cv_func_vfork_works" = xyes; then
24594
cristy8b350f62009-11-15 23:12:43 +000024595$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024596
24597else
24598
cristy8b350f62009-11-15 23:12:43 +000024599$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024600
24601fi
24602if test "x$ac_cv_func_fork_works" = xyes; then
24603
cristy8b350f62009-11-15 23:12:43 +000024604$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024605
24606fi
24607
cristy8b350f62009-11-15 23:12:43 +000024608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024609$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024610if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024611 $as_echo_n "(cached) " >&6
24612else
cristy8b350f62009-11-15 23:12:43 +000024613 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024614 ac_cv_func_memcmp_working=no
24615else
cristy8b350f62009-11-15 23:12:43 +000024616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024617/* end confdefs.h. */
24618$ac_includes_default
24619int
24620main ()
24621{
24622
24623 /* Some versions of memcmp are not 8-bit clean. */
24624 char c0 = '\100', c1 = '\200', c2 = '\201';
24625 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24626 return 1;
24627
24628 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24629 or more and with at least one buffer not starting on a 4-byte boundary.
24630 William Lewis provided this test program. */
24631 {
24632 char foo[21];
24633 char bar[21];
24634 int i;
24635 for (i = 0; i < 4; i++)
24636 {
24637 char *a = foo + i;
24638 char *b = bar + i;
24639 strcpy (a, "--------01111111");
24640 strcpy (b, "--------10000000");
24641 if (memcmp (a, b, 16) >= 0)
24642 return 1;
24643 }
24644 return 0;
24645 }
24646
24647 ;
24648 return 0;
24649}
24650_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024651if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024652 ac_cv_func_memcmp_working=yes
24653else
cristy8b350f62009-11-15 23:12:43 +000024654 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024655fi
cristy8b350f62009-11-15 23:12:43 +000024656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24657 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024658fi
24659
cristy3ed852e2009-09-05 21:47:34 +000024660fi
cristy8b350f62009-11-15 23:12:43 +000024661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024662$as_echo "$ac_cv_func_memcmp_working" >&6; }
24663test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24664 *" memcmp.$ac_objext "* ) ;;
24665 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24666 ;;
24667esac
24668
24669
cristy3ed852e2009-09-05 21:47:34 +000024670for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024671do :
24672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24673ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024674if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024675 cat >>confdefs.h <<_ACEOF
24676#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24677_ACEOF
24678
24679fi
24680
24681done
24682
cristy8b350f62009-11-15 23:12:43 +000024683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024684$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024685if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024686 $as_echo_n "(cached) " >&6
24687else
24688 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24689 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24690 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024692/* end confdefs.h. */
24693$ac_includes_default
24694#ifdef HAVE_SYS_SELECT_H
24695# include <sys/select.h>
24696#endif
24697#ifdef HAVE_SYS_SOCKET_H
24698# include <sys/socket.h>
24699#endif
24700
24701int
24702main ()
24703{
24704extern int select ($ac_arg1,
24705 $ac_arg234, $ac_arg234, $ac_arg234,
24706 $ac_arg5);
24707 ;
24708 return 0;
24709}
24710_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024711if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024712 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024713fi
cristy3ed852e2009-09-05 21:47:34 +000024714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24715 done
24716 done
24717done
24718# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024719: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024720
24721fi
cristy8b350f62009-11-15 23:12:43 +000024722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024723$as_echo "$ac_cv_func_select_args" >&6; }
24724ac_save_IFS=$IFS; IFS=','
24725set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24726IFS=$ac_save_IFS
24727shift
24728
24729cat >>confdefs.h <<_ACEOF
24730#define SELECT_TYPE_ARG1 $1
24731_ACEOF
24732
24733
24734cat >>confdefs.h <<_ACEOF
24735#define SELECT_TYPE_ARG234 ($2)
24736_ACEOF
24737
24738
24739cat >>confdefs.h <<_ACEOF
24740#define SELECT_TYPE_ARG5 ($3)
24741_ACEOF
24742
24743rm -f conftest*
24744
cristyda16f162011-02-19 23:52:17 +000024745if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024746 $as_echo_n "(cached) " >&6
24747else
24748 ac_cv_func_setvbuf_reversed=no
24749fi
24750
24751
cristy8b350f62009-11-15 23:12:43 +000024752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024753$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024754if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024755 $as_echo_n "(cached) " >&6
24756else
cristy8b350f62009-11-15 23:12:43 +000024757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024758/* end confdefs.h. */
24759#include <sys/types.h>
24760#include <signal.h>
24761
24762int
24763main ()
24764{
24765return *(signal (0, 0)) (0) == 1;
24766 ;
24767 return 0;
24768}
24769_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024770if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024771 ac_cv_type_signal=int
24772else
cristy8b350f62009-11-15 23:12:43 +000024773 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024774fi
cristy3ed852e2009-09-05 21:47:34 +000024775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24776fi
cristy8b350f62009-11-15 23:12:43 +000024777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024778$as_echo "$ac_cv_type_signal" >&6; }
24779
24780cat >>confdefs.h <<_ACEOF
24781#define RETSIGTYPE $ac_cv_type_signal
24782_ACEOF
24783
24784
cristy8b350f62009-11-15 23:12:43 +000024785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024786$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024787if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024788 $as_echo_n "(cached) " >&6
24789else
cristy8b350f62009-11-15 23:12:43 +000024790 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024791 ac_cv_func_strtod=no
24792else
cristy8b350f62009-11-15 23:12:43 +000024793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024794/* end confdefs.h. */
24795
24796$ac_includes_default
24797#ifndef strtod
24798double strtod ();
24799#endif
24800int
24801main()
24802{
24803 {
24804 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24805 char *string = " +69";
24806 char *term;
24807 double value;
24808 value = strtod (string, &term);
24809 if (value != 69 || term != (string + 4))
24810 return 1;
24811 }
24812
24813 {
24814 /* Under Solaris 2.4, strtod returns the wrong value for the
24815 terminating character under some conditions. */
24816 char *string = "NaN";
24817 char *term;
24818 strtod (string, &term);
24819 if (term != string && *(term - 1) == 0)
24820 return 1;
24821 }
24822 return 0;
24823}
24824
24825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024826if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024827 ac_cv_func_strtod=yes
24828else
cristy8b350f62009-11-15 23:12:43 +000024829 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024830fi
cristy8b350f62009-11-15 23:12:43 +000024831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24832 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024833fi
24834
cristy3ed852e2009-09-05 21:47:34 +000024835fi
cristy8b350f62009-11-15 23:12:43 +000024836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024837$as_echo "$ac_cv_func_strtod" >&6; }
24838if test $ac_cv_func_strtod = no; then
24839 case " $LIBOBJS " in
24840 *" strtod.$ac_objext "* ) ;;
24841 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24842 ;;
24843esac
24844
cristy8b350f62009-11-15 23:12:43 +000024845ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024846if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024847
cristy3ed852e2009-09-05 21:47:34 +000024848fi
24849
cristy3ed852e2009-09-05 21:47:34 +000024850if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024852$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024853if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024854 $as_echo_n "(cached) " >&6
24855else
24856 ac_check_lib_save_LIBS=$LIBS
24857LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024859/* end confdefs.h. */
24860
24861/* Override any GCC internal prototype to avoid an error.
24862 Use char because int might match the return type of a GCC
24863 builtin and then its argument prototype would still apply. */
24864#ifdef __cplusplus
24865extern "C"
24866#endif
24867char pow ();
24868int
24869main ()
24870{
24871return pow ();
24872 ;
24873 return 0;
24874}
24875_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024876if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024877 ac_cv_lib_m_pow=yes
24878else
cristy8b350f62009-11-15 23:12:43 +000024879 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024880fi
cristy8b350f62009-11-15 23:12:43 +000024881rm -f core conftest.err conftest.$ac_objext \
24882 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024883LIBS=$ac_check_lib_save_LIBS
24884fi
cristy8b350f62009-11-15 23:12:43 +000024885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024886$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024887if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024888 POW_LIB=-lm
24889else
cristy8b350f62009-11-15 23:12:43 +000024890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024891$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24892fi
24893
24894fi
24895
24896fi
24897
cristy7d4a1d62011-10-13 15:54:12 +000024898ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24899if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24900 ac_have_decl=1
24901else
24902 ac_have_decl=0
24903fi
24904
24905cat >>confdefs.h <<_ACEOF
24906#define HAVE_DECL_STRERROR_R $ac_have_decl
24907_ACEOF
24908
24909for ac_func in strerror_r
24910do :
24911 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24912if test "x$ac_cv_func_strerror_r" = xyes; then :
24913 cat >>confdefs.h <<_ACEOF
24914#define HAVE_STRERROR_R 1
24915_ACEOF
24916
24917fi
24918done
24919
24920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24921$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24922if ${ac_cv_func_strerror_r_char_p+:} false; then :
24923 $as_echo_n "(cached) " >&6
24924else
24925
24926 ac_cv_func_strerror_r_char_p=no
24927 if test $ac_cv_have_decl_strerror_r = yes; then
24928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24929/* end confdefs.h. */
24930$ac_includes_default
24931int
24932main ()
24933{
24934
24935 char buf[100];
24936 char x = *strerror_r (0, buf, sizeof buf);
24937 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024938 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024939
24940 ;
24941 return 0;
24942}
24943_ACEOF
24944if ac_fn_c_try_compile "$LINENO"; then :
24945 ac_cv_func_strerror_r_char_p=yes
24946fi
24947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24948 else
24949 # strerror_r is not declared. Choose between
24950 # systems that have relatively inaccessible declarations for the
24951 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24952 # former has a strerror_r that returns char*, while the latter
24953 # has a strerror_r that returns `int'.
24954 # This test should segfault on the DEC system.
24955 if test "$cross_compiling" = yes; then :
24956 :
24957else
24958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24959/* end confdefs.h. */
24960$ac_includes_default
24961 extern char *strerror_r ();
24962int
24963main ()
24964{
24965char buf[100];
24966 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024967 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024968 ;
24969 return 0;
24970}
24971_ACEOF
24972if ac_fn_c_try_run "$LINENO"; then :
24973 ac_cv_func_strerror_r_char_p=yes
24974fi
24975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24976 conftest.$ac_objext conftest.beam conftest.$ac_ext
24977fi
24978
24979 fi
24980
24981fi
24982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24983$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24984if test $ac_cv_func_strerror_r_char_p = yes; then
24985
24986$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24987
24988fi
24989
cristy3ed852e2009-09-05 21:47:34 +000024990for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024991do :
24992 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024993if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024994 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024995#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024996_ACEOF
24997
cristy8b350f62009-11-15 23:12:43 +000024998ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024999if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025000
cristy8b350f62009-11-15 23:12:43 +000025001$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025002
25003fi
25004
25005fi
25006done
25007
25008
25009
cristy161b9262010-03-20 19:34:32 +000025010#
25011# Find math library
25012#
25013MATH_LIBS=''
25014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25015$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025016if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025017 $as_echo_n "(cached) " >&6
25018else
25019 ac_check_lib_save_LIBS=$LIBS
25020LIBS="-lm $LIBS"
25021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25022/* end confdefs.h. */
25023
25024/* Override any GCC internal prototype to avoid an error.
25025 Use char because int might match the return type of a GCC
25026 builtin and then its argument prototype would still apply. */
25027#ifdef __cplusplus
25028extern "C"
25029#endif
25030char sqrt ();
25031int
25032main ()
25033{
25034return sqrt ();
25035 ;
25036 return 0;
25037}
25038_ACEOF
25039if ac_fn_c_try_link "$LINENO"; then :
25040 ac_cv_lib_m_sqrt=yes
25041else
25042 ac_cv_lib_m_sqrt=no
25043fi
25044rm -f core conftest.err conftest.$ac_objext \
25045 conftest$ac_exeext conftest.$ac_ext
25046LIBS=$ac_check_lib_save_LIBS
25047fi
25048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25049$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025050if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025051 MATH_LIBS="-lm"
25052fi
25053
25054LIBS="$MATH_LIBS $LIBS"
25055
25056
cristy85572162013-01-04 19:19:32 +000025057#
25058# Find socket library
25059#
cristy8a5d7f42013-01-06 15:24:33 +000025060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25061$as_echo_n "checking for library containing gethostbyname... " >&6; }
25062if ${ac_cv_search_gethostbyname+:} false; then :
25063 $as_echo_n "(cached) " >&6
25064else
25065 ac_func_search_save_LIBS=$LIBS
25066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25067/* end confdefs.h. */
25068
25069/* Override any GCC internal prototype to avoid an error.
25070 Use char because int might match the return type of a GCC
25071 builtin and then its argument prototype would still apply. */
25072#ifdef __cplusplus
25073extern "C"
25074#endif
25075char gethostbyname ();
25076int
25077main ()
25078{
25079return gethostbyname ();
25080 ;
25081 return 0;
25082}
25083_ACEOF
25084for ac_lib in '' resolv nsl; do
25085 if test -z "$ac_lib"; then
25086 ac_res="none required"
25087 else
25088 ac_res=-l$ac_lib
25089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25090 fi
25091 if ac_fn_c_try_link "$LINENO"; then :
25092 ac_cv_search_gethostbyname=$ac_res
25093fi
25094rm -f core conftest.err conftest.$ac_objext \
25095 conftest$ac_exeext
25096 if ${ac_cv_search_gethostbyname+:} false; then :
25097 break
25098fi
25099done
25100if ${ac_cv_search_gethostbyname+:} false; then :
25101
25102else
25103 ac_cv_search_gethostbyname=no
25104fi
25105rm conftest.$ac_ext
25106LIBS=$ac_func_search_save_LIBS
25107fi
25108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25109$as_echo "$ac_cv_search_gethostbyname" >&6; }
25110ac_res=$ac_cv_search_gethostbyname
25111if test "$ac_res" != no; then :
25112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25113
25114fi
25115
cristy85572162013-01-04 19:19:32 +000025116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25117$as_echo_n "checking for library containing socket... " >&6; }
25118if ${ac_cv_search_socket+:} false; then :
25119 $as_echo_n "(cached) " >&6
25120else
25121 ac_func_search_save_LIBS=$LIBS
25122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25123/* end confdefs.h. */
25124
25125/* Override any GCC internal prototype to avoid an error.
25126 Use char because int might match the return type of a GCC
25127 builtin and then its argument prototype would still apply. */
25128#ifdef __cplusplus
25129extern "C"
25130#endif
25131char socket ();
25132int
25133main ()
25134{
25135return socket ();
25136 ;
25137 return 0;
25138}
25139_ACEOF
25140for ac_lib in '' socket; do
25141 if test -z "$ac_lib"; then
25142 ac_res="none required"
25143 else
25144 ac_res=-l$ac_lib
25145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25146 fi
25147 if ac_fn_c_try_link "$LINENO"; then :
25148 ac_cv_search_socket=$ac_res
25149fi
25150rm -f core conftest.err conftest.$ac_objext \
25151 conftest$ac_exeext
25152 if ${ac_cv_search_socket+:} false; then :
25153 break
25154fi
25155done
25156if ${ac_cv_search_socket+:} false; then :
25157
25158else
25159 ac_cv_search_socket=no
25160fi
25161rm conftest.$ac_ext
25162LIBS=$ac_func_search_save_LIBS
25163fi
25164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25165$as_echo "$ac_cv_search_socket" >&6; }
25166ac_res=$ac_cv_search_socket
25167if test "$ac_res" != no; then :
25168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25169
cristy85572162013-01-04 19:19:32 +000025170
cristy8a5d7f42013-01-06 15:24:33 +000025171$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025172
cristy03f187e2013-01-24 00:22:19 +000025173 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025174
25175fi
25176
25177
25178for 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 +000025179do :
25180 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25181ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025182if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025183 cat >>confdefs.h <<_ACEOF
25184#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25185_ACEOF
25186
25187fi
25188done
25189
25190
cristye43a45e2009-09-28 14:49:00 +000025191#
25192# Check for clock_gettime().
25193#
cristy8b350f62009-11-15 23:12:43 +000025194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025195$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025196if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025197 $as_echo_n "(cached) " >&6
25198else
25199 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025201/* end confdefs.h. */
25202
25203/* Override any GCC internal prototype to avoid an error.
25204 Use char because int might match the return type of a GCC
25205 builtin and then its argument prototype would still apply. */
25206#ifdef __cplusplus
25207extern "C"
25208#endif
25209char clock_gettime ();
25210int
25211main ()
25212{
25213return clock_gettime ();
25214 ;
25215 return 0;
25216}
25217_ACEOF
25218for ac_lib in '' rt; do
25219 if test -z "$ac_lib"; then
25220 ac_res="none required"
25221 else
25222 ac_res=-l$ac_lib
25223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25224 fi
cristy8b350f62009-11-15 23:12:43 +000025225 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025226 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025227fi
cristy8b350f62009-11-15 23:12:43 +000025228rm -f core conftest.err conftest.$ac_objext \
25229 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025230 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025231 break
25232fi
25233done
cristyda16f162011-02-19 23:52:17 +000025234if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025235
cristye43a45e2009-09-28 14:49:00 +000025236else
25237 ac_cv_search_clock_gettime=no
25238fi
25239rm conftest.$ac_ext
25240LIBS=$ac_func_search_save_LIBS
25241fi
cristy8b350f62009-11-15 23:12:43 +000025242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025243$as_echo "$ac_cv_search_clock_gettime" >&6; }
25244ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025245if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25247
25248
cristy8b350f62009-11-15 23:12:43 +000025249$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025250
cristy8b350f62009-11-15 23:12:43 +000025251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025252$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025254/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025255
25256 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025257int
25258main ()
25259{
25260clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025261 ;
25262 return 0;
25263}
25264_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025265if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025266
cristyad38abe2012-12-23 23:03:21 +000025267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25268$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025269
cristy8b350f62009-11-15 23:12:43 +000025270$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025271
25272
25273else
cristyad38abe2012-12-23 23:03:21 +000025274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25275$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025276
25277fi
cristye43a45e2009-09-28 14:49:00 +000025278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25279
25280else
25281
cristy8b350f62009-11-15 23:12:43 +000025282 for ac_func in gettimeofday ftime
25283do :
25284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25285ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025286if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025287 cat >>confdefs.h <<_ACEOF
25288#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25289_ACEOF
25290 break
25291fi
25292done
25293
25294
25295
25296fi
25297
25298
cristy3ed852e2009-09-05 21:47:34 +000025299########
25300#
25301# Check for function prototypes
25302#
25303########
25304
cristy8b350f62009-11-15 23:12:43 +000025305ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025306#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025307"
cristyda16f162011-02-19 23:52:17 +000025308if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025309 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025310else
cristy8b350f62009-11-15 23:12:43 +000025311 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025312fi
25313
cristy3ed852e2009-09-05 21:47:34 +000025314cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025315#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025317ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025318#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025319"
cristyda16f162011-02-19 23:52:17 +000025320if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025321 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025322else
cristy8b350f62009-11-15 23:12:43 +000025323 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025324fi
25325
cristy3ed852e2009-09-05 21:47:34 +000025326cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025327#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025328_ACEOF
25329
25330
cristy8b350f62009-11-15 23:12:43 +000025331ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025332#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025333"
cristyda16f162011-02-19 23:52:17 +000025334if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025335 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025336else
cristy8b350f62009-11-15 23:12:43 +000025337 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025338fi
25339
cristy3ed852e2009-09-05 21:47:34 +000025340cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025341#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025342_ACEOF
25343
25344
cristy8b350f62009-11-15 23:12:43 +000025345ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025346#include <stdio.h>
25347#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025348"
cristyda16f162011-02-19 23:52:17 +000025349if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025350 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025351else
cristy8b350f62009-11-15 23:12:43 +000025352 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025353fi
25354
cristy3ed852e2009-09-05 21:47:34 +000025355cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025356#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025357_ACEOF
25358
25359
cristy3ed852e2009-09-05 21:47:34 +000025360########
25361#
25362# C++ Support Tests (For Magick++)
25363#
25364########
25365have_magick_plus_plus='no'
25366if test "$with_magick_plus_plus" = 'yes'; then
25367 OLIBS="$LIBS"
25368 LIBS=''
25369 ac_ext=cpp
25370ac_cpp='$CXXCPP $CPPFLAGS'
25371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25374
25375
25376 # Full set of headers used...
25377 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25378 # functional iomanip iosfwd iostream iterator list string strstream utility
25379 ac_ext=cpp
25380ac_cpp='$CXXCPP $CPPFLAGS'
25381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25384
25385 ac_ext=cpp
25386ac_cpp='$CXXCPP $CPPFLAGS'
25387ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25388ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25389ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25390if test -z "$CXX"; then
25391 if test -n "$CCC"; then
25392 CXX=$CCC
25393 else
25394 if test -n "$ac_tool_prefix"; then
25395 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25396 do
25397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25398set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025400$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025401if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025402 $as_echo_n "(cached) " >&6
25403else
25404 if test -n "$CXX"; then
25405 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25406else
25407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25408for as_dir in $PATH
25409do
25410 IFS=$as_save_IFS
25411 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025412 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025414 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025416 break 2
25417 fi
25418done
cristy8b350f62009-11-15 23:12:43 +000025419 done
cristy3ed852e2009-09-05 21:47:34 +000025420IFS=$as_save_IFS
25421
25422fi
25423fi
25424CXX=$ac_cv_prog_CXX
25425if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025427$as_echo "$CXX" >&6; }
25428else
cristy8b350f62009-11-15 23:12:43 +000025429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025430$as_echo "no" >&6; }
25431fi
25432
25433
25434 test -n "$CXX" && break
25435 done
25436fi
25437if test -z "$CXX"; then
25438 ac_ct_CXX=$CXX
25439 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25440do
25441 # Extract the first word of "$ac_prog", so it can be a program name with args.
25442set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025444$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025445if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025446 $as_echo_n "(cached) " >&6
25447else
25448 if test -n "$ac_ct_CXX"; then
25449 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25450else
25451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25452for as_dir in $PATH
25453do
25454 IFS=$as_save_IFS
25455 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025456 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025458 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025460 break 2
25461 fi
25462done
cristy8b350f62009-11-15 23:12:43 +000025463 done
cristy3ed852e2009-09-05 21:47:34 +000025464IFS=$as_save_IFS
25465
25466fi
25467fi
25468ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25469if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025471$as_echo "$ac_ct_CXX" >&6; }
25472else
cristy8b350f62009-11-15 23:12:43 +000025473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025474$as_echo "no" >&6; }
25475fi
25476
25477
25478 test -n "$ac_ct_CXX" && break
25479done
25480
25481 if test "x$ac_ct_CXX" = x; then
25482 CXX="g++"
25483 else
25484 case $cross_compiling:$ac_tool_warned in
25485yes:)
cristy8b350f62009-11-15 23:12:43 +000025486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25488ac_tool_warned=yes ;;
25489esac
25490 CXX=$ac_ct_CXX
25491 fi
25492fi
25493
25494 fi
25495fi
25496# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025497$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025498set X $ac_compile
25499ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025500for ac_option in --version -v -V -qversion; do
25501 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025502case "(($ac_try" in
25503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504 *) ac_try_echo=$ac_try;;
25505esac
cristy8b350f62009-11-15 23:12:43 +000025506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25507$as_echo "$ac_try_echo"; } >&5
25508 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025509 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025510 if test -s conftest.err; then
25511 sed '10a\
25512... rest of stderr output deleted ...
25513 10q' conftest.err >conftest.er1
25514 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025515 fi
cristycd4c5312009-11-22 01:19:08 +000025516 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25518 test $ac_status = 0; }
25519done
cristy3ed852e2009-09-05 21:47:34 +000025520
cristy8b350f62009-11-15 23:12:43 +000025521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025522$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025523if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025524 $as_echo_n "(cached) " >&6
25525else
cristy8b350f62009-11-15 23:12:43 +000025526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025527/* end confdefs.h. */
25528
25529int
25530main ()
25531{
25532#ifndef __GNUC__
25533 choke me
25534#endif
25535
25536 ;
25537 return 0;
25538}
25539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025540if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025541 ac_compiler_gnu=yes
25542else
cristy8b350f62009-11-15 23:12:43 +000025543 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025544fi
cristy3ed852e2009-09-05 21:47:34 +000025545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25546ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25547
25548fi
cristy8b350f62009-11-15 23:12:43 +000025549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025550$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25551if test $ac_compiler_gnu = yes; then
25552 GXX=yes
25553else
25554 GXX=
25555fi
25556ac_test_CXXFLAGS=${CXXFLAGS+set}
25557ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025559$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025560if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025561 $as_echo_n "(cached) " >&6
25562else
25563 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25564 ac_cxx_werror_flag=yes
25565 ac_cv_prog_cxx_g=no
25566 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025568/* end confdefs.h. */
25569
25570int
25571main ()
25572{
25573
25574 ;
25575 return 0;
25576}
25577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025578if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025579 ac_cv_prog_cxx_g=yes
25580else
cristy8b350f62009-11-15 23:12:43 +000025581 CXXFLAGS=""
25582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025583/* end confdefs.h. */
25584
25585int
25586main ()
25587{
25588
25589 ;
25590 return 0;
25591}
25592_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025593if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025594
cristy8b350f62009-11-15 23:12:43 +000025595else
25596 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025597 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025599/* end confdefs.h. */
25600
25601int
25602main ()
25603{
25604
25605 ;
25606 return 0;
25607}
25608_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025609if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025610 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025611fi
cristy3ed852e2009-09-05 21:47:34 +000025612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25613fi
cristy3ed852e2009-09-05 21:47:34 +000025614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25615fi
cristy3ed852e2009-09-05 21:47:34 +000025616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25617 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25618fi
cristy8b350f62009-11-15 23:12:43 +000025619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025620$as_echo "$ac_cv_prog_cxx_g" >&6; }
25621if test "$ac_test_CXXFLAGS" = set; then
25622 CXXFLAGS=$ac_save_CXXFLAGS
25623elif test $ac_cv_prog_cxx_g = yes; then
25624 if test "$GXX" = yes; then
25625 CXXFLAGS="-g -O2"
25626 else
25627 CXXFLAGS="-g"
25628 fi
25629else
25630 if test "$GXX" = yes; then
25631 CXXFLAGS="-O2"
25632 else
25633 CXXFLAGS=
25634 fi
25635fi
25636ac_ext=cpp
25637ac_cpp='$CXXCPP $CPPFLAGS'
25638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25641
cristy73bd4a52010-10-05 11:24:23 +000025642depcc="$CXX" am_compiler_list=
25643
25644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25645$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025646if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025647 $as_echo_n "(cached) " >&6
25648else
25649 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25650 # We make a subdir and do the tests there. Otherwise we can end up
25651 # making bogus files that we don't know about and never remove. For
25652 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025653 # making a dummy file named 'D' -- because '-MD' means "put the output
25654 # in D".
cristy7247bba2012-02-05 16:37:27 +000025655 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025656 mkdir conftest.dir
25657 # Copy depcomp to subdir because otherwise we won't find it if we're
25658 # using a relative directory.
25659 cp "$am_depcomp" conftest.dir
25660 cd conftest.dir
25661 # We will build objects and dependencies in a subdirectory because
25662 # it helps to detect inapplicable dependency modes. For instance
25663 # both Tru64's cc and ICC support -MD to output dependencies as a
25664 # side effect of compilation, but ICC will put the dependencies in
25665 # the current directory while Tru64 will put them in the object
25666 # directory.
25667 mkdir sub
25668
25669 am_cv_CXX_dependencies_compiler_type=none
25670 if test "$am_compiler_list" = ""; then
25671 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25672 fi
25673 am__universal=false
25674 case " $depcc " in #(
25675 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25676 esac
25677
25678 for depmode in $am_compiler_list; do
25679 # Setup a source with many dependencies, because some compilers
25680 # like to wrap large dependency lists on column 80 (with \), and
25681 # we should not choose a depcomp mode which is confused by this.
25682 #
25683 # We need to recreate these files for each test, as the compiler may
25684 # overwrite some of them when testing with obscure command lines.
25685 # This happens at least with the AIX C compiler.
25686 : > sub/conftest.c
25687 for i in 1 2 3 4 5 6; do
25688 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025689 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25690 # Solaris 10 /bin/sh.
25691 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025692 done
25693 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25694
cristyc0890a62012-07-19 00:18:20 +000025695 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025696 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025697 # handle '-M -o', and we need to detect this. Also, some Intel
25698 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025699 am__obj=sub/conftest.${OBJEXT-o}
25700 am__minus_obj="-o $am__obj"
25701 case $depmode in
25702 gcc)
25703 # This depmode causes a compiler race in universal mode.
25704 test "$am__universal" = false || continue
25705 ;;
25706 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025707 # After this tag, mechanisms are not by side-effect, so they'll
25708 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025709 if test "x$enable_dependency_tracking" = xyes; then
25710 continue
25711 else
25712 break
25713 fi
25714 ;;
cristy7247bba2012-02-05 16:37:27 +000025715 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025716 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025717 # not run yet. These depmodes are late enough in the game, and
25718 # so weak that their functioning should not be impacted.
25719 am__obj=conftest.${OBJEXT-o}
25720 am__minus_obj=
25721 ;;
25722 none) break ;;
25723 esac
25724 if depmode=$depmode \
25725 source=sub/conftest.c object=$am__obj \
25726 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25727 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25728 >/dev/null 2>conftest.err &&
25729 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25730 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25731 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25732 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25733 # icc doesn't choke on unknown options, it will just issue warnings
25734 # or remarks (even with -Werror). So we grep stderr for any message
25735 # that says an option was ignored or not supported.
25736 # When given -MP, icc 7.0 and 7.1 complain thusly:
25737 # icc: Command line warning: ignoring option '-M'; no argument required
25738 # The diagnosis changed in icc 8.0:
25739 # icc: Command line remark: option '-MP' not supported
25740 if (grep 'ignoring option' conftest.err ||
25741 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25742 am_cv_CXX_dependencies_compiler_type=$depmode
25743 break
25744 fi
25745 fi
25746 done
25747
25748 cd ..
25749 rm -rf conftest.dir
25750else
25751 am_cv_CXX_dependencies_compiler_type=none
25752fi
25753
25754fi
25755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25756$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25757CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25758
25759 if
25760 test "x$enable_dependency_tracking" != xno \
25761 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25762 am__fastdepCXX_TRUE=
25763 am__fastdepCXX_FALSE='#'
25764else
25765 am__fastdepCXX_TRUE='#'
25766 am__fastdepCXX_FALSE=
25767fi
25768
25769
25770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25771$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025772if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025773 $as_echo_n "(cached) " >&6
25774else
25775
25776 ac_ext=cpp
25777ac_cpp='$CXXCPP $CPPFLAGS'
25778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25781
25782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25783/* end confdefs.h. */
25784
25785int f(int x){return 1;}
25786int f(char x){return 1;}
25787int f(bool x){return 1;}
25788
25789int
25790main ()
25791{
25792bool b = true; return f(b);
25793 ;
25794 return 0;
25795}
25796_ACEOF
25797if ac_fn_cxx_try_compile "$LINENO"; then :
25798 ax_cv_cxx_bool=yes
25799else
25800 ax_cv_cxx_bool=no
25801fi
25802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25803 ac_ext=cpp
25804ac_cpp='$CXXCPP $CPPFLAGS'
25805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25808
25809
25810fi
25811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25812$as_echo "$ax_cv_cxx_bool" >&6; }
25813if test "$ax_cv_cxx_bool" = yes; then
25814
25815$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25816
25817fi
25818
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25820$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025821if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025822 $as_echo_n "(cached) " >&6
25823else
25824
25825 ac_ext=cpp
25826ac_cpp='$CXXCPP $CPPFLAGS'
25827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25830
25831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25832/* end confdefs.h. */
25833namespace Outer { namespace Inner { int i = 0; }}
25834int
25835main ()
25836{
25837using namespace Outer::Inner; return i;
25838 ;
25839 return 0;
25840}
25841_ACEOF
25842if ac_fn_cxx_try_compile "$LINENO"; then :
25843 ax_cv_cxx_namespaces=yes
25844else
25845 ax_cv_cxx_namespaces=no
25846fi
25847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25848 ac_ext=cpp
25849ac_cpp='$CXXCPP $CPPFLAGS'
25850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25853
25854
25855fi
25856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25857$as_echo "$ax_cv_cxx_namespaces" >&6; }
25858if test "$ax_cv_cxx_namespaces" = yes; then
25859
25860$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25861
25862fi
25863
25864
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25866$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025867if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025868 $as_echo_n "(cached) " >&6
25869else
25870
25871 ac_ext=cpp
25872ac_cpp='$CXXCPP $CPPFLAGS'
25873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25876
25877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25878/* end confdefs.h. */
25879#include <iostream>
25880 std::istream& is = std::cin;
25881int
25882main ()
25883{
25884
25885 ;
25886 return 0;
25887}
25888_ACEOF
25889if ac_fn_cxx_try_compile "$LINENO"; then :
25890 ax_cv_cxx_have_std_namespace=yes
25891else
25892 ax_cv_cxx_have_std_namespace=no
25893fi
25894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25895 ac_ext=cpp
25896ac_cpp='$CXXCPP $CPPFLAGS'
25897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25900
25901
25902fi
25903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25904$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25905 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25906
25907$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25908
25909 fi
25910
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25912$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025913if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025914 $as_echo_n "(cached) " >&6
25915else
25916
25917
25918 ac_ext=cpp
25919ac_cpp='$CXXCPP $CPPFLAGS'
25920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25923
25924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25925/* end confdefs.h. */
25926#include <iostream>
25927#include <map>
25928#include <iomanip>
25929#include <cmath>
25930#ifdef HAVE_NAMESPACES
25931using namespace std;
25932#endif
25933int
25934main ()
25935{
25936return 0;
25937 ;
25938 return 0;
25939}
25940_ACEOF
25941if ac_fn_cxx_try_compile "$LINENO"; then :
25942 ac_cv_cxx_have_std_libs=yes
25943else
25944 ac_cv_cxx_have_std_libs=no
25945fi
25946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25947 ac_ext=cpp
25948ac_cpp='$CXXCPP $CPPFLAGS'
25949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25952
25953
25954fi
25955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25956$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25957if test "$ac_cv_cxx_have_std_libs" = yes; then
25958
25959$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25960
25961fi
25962
cristy3ed852e2009-09-05 21:47:34 +000025963
25964 OPENMP_CXXFLAGS=
25965 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025966if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025967 enableval=$enable_openmp;
25968fi
25969
25970 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25972$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025973if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025974 $as_echo_n "(cached) " >&6
25975else
cristy8b350f62009-11-15 23:12:43 +000025976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25977/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025978
25979#ifndef _OPENMP
25980 choke me
25981#endif
25982#include <omp.h>
25983int main () { return omp_get_num_threads (); }
25984
25985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025986if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025987 ac_cv_prog_cxx_openmp='none needed'
25988else
cristy8b350f62009-11-15 23:12:43 +000025989 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025990 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25991 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025992 ac_save_CXXFLAGS=$CXXFLAGS
25993 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25995/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025996
25997#ifndef _OPENMP
25998 choke me
25999#endif
26000#include <omp.h>
26001int main () { return omp_get_num_threads (); }
26002
26003_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026004if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026005 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026006fi
cristy8b350f62009-11-15 23:12:43 +000026007rm -f core conftest.err conftest.$ac_objext \
26008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026009 CXXFLAGS=$ac_save_CXXFLAGS
26010 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26011 break
26012 fi
26013 done
26014fi
cristy8b350f62009-11-15 23:12:43 +000026015rm -f core conftest.err conftest.$ac_objext \
26016 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026017fi
cristy8b350f62009-11-15 23:12:43 +000026018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026019$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26020 case $ac_cv_prog_cxx_openmp in #(
26021 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026022 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026023 *)
cristy8b350f62009-11-15 23:12:43 +000026024 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026025 esac
26026 fi
26027
26028
26029 ac_ext=c
26030ac_cpp='$CPP $CPPFLAGS'
26031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26033ac_compiler_gnu=$ac_cv_c_compiler_gnu
26034
26035
cristy8b350f62009-11-15 23:12:43 +000026036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026037$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26038 if \
cristy964cb7f2010-04-25 23:18:00 +000026039 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026040 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026041 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026042 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026043 have_magick_plus_plus='yes'
26044 else
26045 have_magick_plus_plus='no (failed tests)'
26046 fi
cristyad38abe2012-12-23 23:03:21 +000026047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26048$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026049 LIBS="$OLIBS"
26050fi
cristy73bd4a52010-10-05 11:24:23 +000026051 if test "$have_magick_plus_plus" = 'yes'; then
26052 WITH_MAGICK_PLUS_PLUS_TRUE=
26053 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26054else
26055 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26056 WITH_MAGICK_PLUS_PLUS_FALSE=
26057fi
26058
cristy3ed852e2009-09-05 21:47:34 +000026059
26060# Only check for delegate libraries in subdirectories if requested.
26061if test "$enable_delegate_build" != 'no'; then
26062 # Check for delegate sub-directories and add -I & -L options as required.
26063 # This presumes that delegates are installed as detailed in the ImageMagick
26064 # README. If delegates are installed in a standard location where the
26065 # compiler will automatically find them then these options should not be
26066 # required.
26067
26068 #
26069 # Most delegates have includes in the same directory as the library, but not all...
26070 #
26071 # Includes
cristy2542fc62011-12-06 17:50:25 +000026072 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 +000026073 if test -d "$builddir/$dir"; then
26074 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26075 else
26076 if test -d "$srcdirfull/$dir"; then
26077 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26078 fi
26079 fi
26080 done
26081
26082 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026083 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 +000026084 if test -d "$builddir/$dir/.libs"; then
26085 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26086 else
26087 if test -d "$srcdirfull/$dir/.libs"; then
26088 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26089 fi
26090 fi
26091 if test -d "$builddir/$dir"; then
26092 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26093 else
26094 if test -d "$srcdirfull/$dir"; then
26095 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26096 fi
26097 fi
26098 done
26099fi
26100
26101# Assume that delegate headers reside under same directory as ImageMagick
26102# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026103MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026104
26105#
26106# Find the X11 RGB database
26107#
cristy8b350f62009-11-15 23:12:43 +000026108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026109$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026110if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026111 $as_echo_n "(cached) " >&6
26112else
26113 # Look for the header file in a standard set of common directories.
26114# Check X11 before X11Rn because it is often a symlink to the current release.
26115 for ac_dir in \
26116 /lib/usr/lib/X11 \
26117 /usr/X11/lib \
26118 /usr/X11R4/lib \
26119 /usr/X11R5/lib \
26120 /usr/X11R6/lib \
26121 /usr/X11R7/lib \
26122 /usr/X386/lib \
26123 /usr/XFree86/lib/X11 \
26124 /usr/athena/lib \
26125 /usr/lib \
26126 /usr/lib/X11 \
26127 /usr/lib/X11R4 \
26128 /usr/lib/X11R5 \
26129 /usr/lib/X11R6 \
26130 /usr/lib/X11R7 \
26131 /usr/local/X11/lib \
26132 /usr/local/X11R4/lib \
26133 /usr/local/X11R5/lib \
26134 /usr/local/X11R6/lib \
26135 /usr/local/lib \
26136 /usr/local/lib/X11 \
26137 /usr/local/lib/X11R4 \
26138 /usr/local/lib/X11R5 \
26139 /usr/local/lib/X11R6 \
26140 /usr/local/lib/X11R7 \
26141 /usr/local/x11r5/lib \
26142 /usr/lpp/Xamples/lib \
26143 /usr/openwin/lib \
26144 /usr/openwin/share/lib \
26145 /usr/unsupported/lib \
26146 /usr/x386/lib \
26147 ; do
26148 if test -f "$ac_dir/X11/rgb.txt"; then
26149 im_cv_x_configure="$ac_dir/X11/"
26150 break
26151 elif test -f "$ac_dir/rgb.txt"; then
26152 im_cv_x_configure="$ac_dir/"
26153 break
26154 fi
26155
26156 done
26157fi
cristy8b350f62009-11-15 23:12:43 +000026158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026159$as_echo "$im_cv_x_configure" >&6; }
26160X11_CONFIGURE_PATH="$im_cv_x_configure"
26161case "${build_os}" in
26162 mingw* )
26163 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26164 ;;
26165esac
26166
26167cat >>confdefs.h <<_ACEOF
26168#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26169_ACEOF
26170
26171
26172#
26173# Find OpenMP library
26174#
26175GOMP_LIBS=''
26176if test "$enable_openmp" != 'no'; then
26177 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026178 # Open64 (passes for GCC but uses different OpenMP implementation)
26179 if test "x$GOMP_LIBS" = x ; then
26180 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26182$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26183if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26184 $as_echo_n "(cached) " >&6
26185else
26186 ac_check_lib_save_LIBS=$LIBS
26187LIBS="-lopenmp $LIBS"
26188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26189/* end confdefs.h. */
26190
26191/* Override any GCC internal prototype to avoid an error.
26192 Use char because int might match the return type of a GCC
26193 builtin and then its argument prototype would still apply. */
26194#ifdef __cplusplus
26195extern "C"
26196#endif
26197char omp_get_num_procs ();
26198int
26199main ()
26200{
26201return omp_get_num_procs ();
26202 ;
26203 return 0;
26204}
26205_ACEOF
26206if ac_fn_c_try_link "$LINENO"; then :
26207 ac_cv_lib_openmp_omp_get_num_procs=yes
26208else
26209 ac_cv_lib_openmp_omp_get_num_procs=no
26210fi
26211rm -f core conftest.err conftest.$ac_objext \
26212 conftest$ac_exeext conftest.$ac_ext
26213LIBS=$ac_check_lib_save_LIBS
26214fi
26215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26216$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26217if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26218 GOMP_LIBS="-lopenmp"
26219fi
26220
26221 fi
26222 fi
26223 # GCC
26224 if test "x$GOMP_LIBS" = x ; then
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026226$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026227if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026228 $as_echo_n "(cached) " >&6
26229else
26230 ac_check_lib_save_LIBS=$LIBS
26231LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026233/* end confdefs.h. */
26234
26235/* Override any GCC internal prototype to avoid an error.
26236 Use char because int might match the return type of a GCC
26237 builtin and then its argument prototype would still apply. */
26238#ifdef __cplusplus
26239extern "C"
26240#endif
26241char GOMP_parallel_start ();
26242int
26243main ()
26244{
26245return GOMP_parallel_start ();
26246 ;
26247 return 0;
26248}
26249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026250if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026251 ac_cv_lib_gomp_GOMP_parallel_start=yes
26252else
cristy8b350f62009-11-15 23:12:43 +000026253 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026254fi
cristy8b350f62009-11-15 23:12:43 +000026255rm -f core conftest.err conftest.$ac_objext \
26256 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026257LIBS=$ac_check_lib_save_LIBS
26258fi
cristy8b350f62009-11-15 23:12:43 +000026259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026260$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026261if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026262 GOMP_LIBS="-lgomp"
26263fi
cristy18307f12011-12-30 01:20:16 +000026264
26265 fi
cristy3ed852e2009-09-05 21:47:34 +000026266 else
cristy18307f12011-12-30 01:20:16 +000026267 # Sun CC
26268 if test "x$GOMP_LIBS" = x ; then
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026270$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026271if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026272 $as_echo_n "(cached) " >&6
26273else
26274 ac_check_lib_save_LIBS=$LIBS
26275LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026277/* end confdefs.h. */
26278
26279/* Override any GCC internal prototype to avoid an error.
26280 Use char because int might match the return type of a GCC
26281 builtin and then its argument prototype would still apply. */
26282#ifdef __cplusplus
26283extern "C"
26284#endif
26285char sunw_mp_register_warn ();
26286int
26287main ()
26288{
26289return sunw_mp_register_warn ();
26290 ;
26291 return 0;
26292}
26293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026294if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026295 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26296else
cristy8b350f62009-11-15 23:12:43 +000026297 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026298fi
cristy8b350f62009-11-15 23:12:43 +000026299rm -f core conftest.err conftest.$ac_objext \
26300 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026301LIBS=$ac_check_lib_save_LIBS
26302fi
cristy8b350f62009-11-15 23:12:43 +000026303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026304$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026305if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026306 GOMP_LIBS="-lmtsk"
26307fi
cristy18307f12011-12-30 01:20:16 +000026308
26309 fi
26310 # AIX xlc
26311 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026313$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026314if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026315 $as_echo_n "(cached) " >&6
26316else
26317 ac_check_lib_save_LIBS=$LIBS
26318LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026320/* end confdefs.h. */
26321
26322/* Override any GCC internal prototype to avoid an error.
26323 Use char because int might match the return type of a GCC
26324 builtin and then its argument prototype would still apply. */
26325#ifdef __cplusplus
26326extern "C"
26327#endif
26328char _xlsmpFlush ();
26329int
26330main ()
26331{
26332return _xlsmpFlush ();
26333 ;
26334 return 0;
26335}
26336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026337if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026338 ac_cv_lib_xlsmp__xlsmpFlush=yes
26339else
cristy8b350f62009-11-15 23:12:43 +000026340 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026341fi
cristy8b350f62009-11-15 23:12:43 +000026342rm -f core conftest.err conftest.$ac_objext \
26343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026344LIBS=$ac_check_lib_save_LIBS
26345fi
cristy8b350f62009-11-15 23:12:43 +000026346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026347$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026348if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026349 GOMP_LIBS="-lxlsmp"
26350fi
cristy18307f12011-12-30 01:20:16 +000026351
26352 fi
26353 # SGI IRIX 6.5 MIPSpro C/C++
26354 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026356$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026357if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026358 $as_echo_n "(cached) " >&6
26359else
26360 ac_check_lib_save_LIBS=$LIBS
26361LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026363/* end confdefs.h. */
26364
26365/* Override any GCC internal prototype to avoid an error.
26366 Use char because int might match the return type of a GCC
26367 builtin and then its argument prototype would still apply. */
26368#ifdef __cplusplus
26369extern "C"
26370#endif
26371char mp_destroy ();
26372int
26373main ()
26374{
26375return mp_destroy ();
26376 ;
26377 return 0;
26378}
26379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026380if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026381 ac_cv_lib_mp_mp_destroy=yes
26382else
cristy8b350f62009-11-15 23:12:43 +000026383 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026384fi
cristy8b350f62009-11-15 23:12:43 +000026385rm -f core conftest.err conftest.$ac_objext \
26386 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026387LIBS=$ac_check_lib_save_LIBS
26388fi
cristy8b350f62009-11-15 23:12:43 +000026389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026390$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026391if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026392 GOMP_LIBS="-lmp"
26393fi
cristy18307f12011-12-30 01:20:16 +000026394
26395 fi
cristy3ed852e2009-09-05 21:47:34 +000026396 fi
26397 LIBS="$GOMP_LIBS $LIBS"
26398fi
26399
26400
26401#
26402# Find Posix threads library
26403#
26404THREAD_LIBS=''
26405if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26406
26407 if test "x$PTHREAD_LIBS" = "x"; then
26408 case "${host_cpu}-${host_os}" in
26409 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026410
26411
26412
26413ac_ext=c
26414ac_cpp='$CPP $CPPFLAGS'
26415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26417ac_compiler_gnu=$ac_cv_c_compiler_gnu
26418
26419magick_pthread_lib_ok=no
26420
26421LIB=-lc_r
26422save_LIBS="$LIBS"
26423LIBS="$LIBS $LIB"
26424
26425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26426$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428/* end confdefs.h. */
26429#include <pthread.h>
26430int
26431main ()
26432{
26433 pthread_t th;
26434 pthread_join(th, 0);
26435 pthread_attr_init(0);
26436 pthread_cleanup_push(0, 0);
26437 pthread_create(0,0,0,0);
26438 pthread_cleanup_pop(0);
26439 ;
26440 return 0;
26441}
26442_ACEOF
26443if ac_fn_c_try_link "$LINENO"; then :
26444 magick_pthread_lib_ok=yes
26445fi
26446rm -f core conftest.err conftest.$ac_objext \
26447 conftest$ac_exeext conftest.$ac_ext
26448
26449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26450$as_echo "${magick_pthread_lib_ok}" >&6; }
26451if test "$magick_pthread_lib_ok" = yes
26452then
26453 PTHREAD_LIBS=-lc_r
26454 :
26455else
26456
26457 :
26458fi
26459
26460LIBS="$save_LIBS"
26461
26462ac_ext=c
26463ac_cpp='$CPP $CPPFLAGS'
26464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26466ac_compiler_gnu=$ac_cv_c_compiler_gnu
26467
26468 ;;
cristy3ed852e2009-09-05 21:47:34 +000026469 esac
26470 fi
26471
26472 for lib in pthread pthreads; do
26473 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026474
26475
26476
26477ac_ext=c
26478ac_cpp='$CPP $CPPFLAGS'
26479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26481ac_compiler_gnu=$ac_cv_c_compiler_gnu
26482
26483magick_pthread_lib_ok=no
26484
26485LIB=-l$lib
26486save_LIBS="$LIBS"
26487LIBS="$LIBS $LIB"
26488
26489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26490$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26492/* end confdefs.h. */
26493#include <pthread.h>
26494int
26495main ()
26496{
26497 pthread_t th;
26498 pthread_join(th, 0);
26499 pthread_attr_init(0);
26500 pthread_cleanup_push(0, 0);
26501 pthread_create(0,0,0,0);
26502 pthread_cleanup_pop(0);
26503 ;
26504 return 0;
26505}
26506_ACEOF
26507if ac_fn_c_try_link "$LINENO"; then :
26508 magick_pthread_lib_ok=yes
26509fi
26510rm -f core conftest.err conftest.$ac_objext \
26511 conftest$ac_exeext conftest.$ac_ext
26512
26513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26514$as_echo "${magick_pthread_lib_ok}" >&6; }
26515if test "$magick_pthread_lib_ok" = yes
26516then
26517 PTHREAD_LIBS=-l$lib
26518 :
26519else
26520
26521 :
26522fi
26523
26524LIBS="$save_LIBS"
26525
26526ac_ext=c
26527ac_cpp='$CPP $CPPFLAGS'
26528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26530ac_compiler_gnu=$ac_cv_c_compiler_gnu
26531
26532
cristy3ed852e2009-09-05 21:47:34 +000026533 fi
26534 done
26535
26536 THREAD_LIBS="$PTHREAD_LIBS"
26537 LIBS="$LIBS $THREAD_LIBS"
26538fi
26539
26540
26541#
26542# Check for umem.
26543#
26544have_umem='no'
26545UMEM_LIBS=''
26546if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026548$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26550$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026551 failed=0
26552 passed=0
cristy8b350f62009-11-15 23:12:43 +000026553 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026554if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026555 passed=`expr $passed + 1`
26556else
26557 failed=`expr $failed + 1`
26558fi
26559
26560
cristy8b350f62009-11-15 23:12:43 +000026561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026562$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026563if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026564 $as_echo_n "(cached) " >&6
26565else
26566 ac_check_lib_save_LIBS=$LIBS
26567LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026569/* end confdefs.h. */
26570
26571/* Override any GCC internal prototype to avoid an error.
26572 Use char because int might match the return type of a GCC
26573 builtin and then its argument prototype would still apply. */
26574#ifdef __cplusplus
26575extern "C"
26576#endif
26577char umem_alloc ();
26578int
26579main ()
26580{
26581return umem_alloc ();
26582 ;
26583 return 0;
26584}
26585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026586if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026587 ac_cv_lib_umem_umem_alloc=yes
26588else
cristy8b350f62009-11-15 23:12:43 +000026589 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026590fi
cristy8b350f62009-11-15 23:12:43 +000026591rm -f core conftest.err conftest.$ac_objext \
26592 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026593LIBS=$ac_check_lib_save_LIBS
26594fi
cristy8b350f62009-11-15 23:12:43 +000026595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026596$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026597if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026598 passed=`expr $passed + 1`
26599else
26600 failed=`expr $failed + 1`
26601fi
26602
cristy8b350f62009-11-15 23:12:43 +000026603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026604$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026605if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026606 $as_echo_n "(cached) " >&6
26607else
26608 ac_check_lib_save_LIBS=$LIBS
26609LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026611/* end confdefs.h. */
26612
26613/* Override any GCC internal prototype to avoid an error.
26614 Use char because int might match the return type of a GCC
26615 builtin and then its argument prototype would still apply. */
26616#ifdef __cplusplus
26617extern "C"
26618#endif
26619char umem_free ();
26620int
26621main ()
26622{
26623return umem_free ();
26624 ;
26625 return 0;
26626}
26627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026628if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026629 ac_cv_lib_umem_umem_free=yes
26630else
cristy8b350f62009-11-15 23:12:43 +000026631 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026632fi
cristy8b350f62009-11-15 23:12:43 +000026633rm -f core conftest.err conftest.$ac_objext \
26634 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026635LIBS=$ac_check_lib_save_LIBS
26636fi
cristy8b350f62009-11-15 23:12:43 +000026637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026638$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026639if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026640 passed=`expr $passed + 1`
26641else
26642 failed=`expr $failed + 1`
26643fi
26644
cristy8b350f62009-11-15 23:12:43 +000026645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026646$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26647 if test $passed -gt 0; then
26648 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26650$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026651 have_umem='no (failed tests)'
26652 else
26653 UMEM_LIBS='-lumem'
26654 LIBS="$UMEM_LIBS $LIBS"
26655
cristy8b350f62009-11-15 23:12:43 +000026656$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026657
cristyad38abe2012-12-23 23:03:21 +000026658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26659$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026660 have_umem='yes'
26661 fi
26662 else
cristyad38abe2012-12-23 23:03:21 +000026663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26664$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026665 fi
26666fi
cristy73bd4a52010-10-05 11:24:23 +000026667 if test "$have_umem" = 'yes'; then
26668 HasUMEM_TRUE=
26669 HasUMEM_FALSE='#'
26670else
26671 HasUMEM_TRUE='#'
26672 HasUMEM_FALSE=
26673fi
26674
cristy3ed852e2009-09-05 21:47:34 +000026675
26676
26677#
26678# Add support for ccmalloc memory debugging library if requested
26679#
26680have_ccmalloc='no'
26681CCMALLOC_LIBS=''
26682if test "$enable_ccmalloc" = 'yes'; then
26683 # Extract the first word of "ccmalloc", so it can be a program name with args.
26684set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026686$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026687if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026688 $as_echo_n "(cached) " >&6
26689else
26690 case $CCMALLOCDelegate in
26691 [\\/]* | ?:[\\/]*)
26692 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26693 ;;
26694 *)
26695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26696for as_dir in $PATH
26697do
26698 IFS=$as_save_IFS
26699 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026702 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026704 break 2
26705 fi
26706done
cristy8b350f62009-11-15 23:12:43 +000026707 done
cristy3ed852e2009-09-05 21:47:34 +000026708IFS=$as_save_IFS
26709
26710 ;;
26711esac
26712fi
26713CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26714if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026716$as_echo "$CCMALLOCDelegate" >&6; }
26717else
cristy8b350f62009-11-15 23:12:43 +000026718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026719$as_echo "no" >&6; }
26720fi
26721
26722
26723 if test -n "$CCMALLOCDelegate"; then
26724 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26725 OLIBS="$LIBS"
26726 # Assume that gcc is used with ccmalloc.
26727 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026729$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026730if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026731 $as_echo_n "(cached) " >&6
26732else
26733 ac_check_lib_save_LIBS=$LIBS
26734LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026736/* end confdefs.h. */
26737
26738/* Override any GCC internal prototype to avoid an error.
26739 Use char because int might match the return type of a GCC
26740 builtin and then its argument prototype would still apply. */
26741#ifdef __cplusplus
26742extern "C"
26743#endif
26744char ccmalloc_malloc ();
26745int
26746main ()
26747{
26748return ccmalloc_malloc ();
26749 ;
26750 return 0;
26751}
26752_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026753if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026754 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26755else
cristy8b350f62009-11-15 23:12:43 +000026756 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026757fi
cristy8b350f62009-11-15 23:12:43 +000026758rm -f core conftest.err conftest.$ac_objext \
26759 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026760LIBS=$ac_check_lib_save_LIBS
26761fi
cristy8b350f62009-11-15 23:12:43 +000026762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026763$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026764if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026765 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26766fi
26767
26768 if test -n "$CCMALLOC_LIBS"; then
26769 LIBS="$OLIBS"
26770 LIBS="$LIBS $CCMALLOC_LIBS"
26771 have_ccmalloc='yes'
26772 else
26773 LIBS="$OLIBS"
26774 fi
26775 fi
26776fi
26777
26778#
cristy944e51f2013-04-16 18:45:02 +000026779# Add support for 'huge pages' if requested
26780#
26781if test "x$enable_hugepages" != "xno"; then :
26782
26783
26784$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26785
26786
26787fi
26788
26789#
cristy3ed852e2009-09-05 21:47:34 +000026790# Add support for efence memory debugging library if requested
26791#
26792if test "$enable_efence" = 'yes'; then
26793 EFENCE_LIBS='-lefence'
26794 LIBS="$EFENCE_LIBS $LIBS"
26795fi
26796
cristy3ed852e2009-09-05 21:47:34 +000026797
26798#
26799# Check for BZLIB
26800#
26801
26802
26803# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026804if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026805 withval=$with_bzlib; with_bzlib=$withval
26806else
26807 with_bzlib='yes'
26808fi
26809
26810
26811if test "$with_bzlib" != 'yes'; then
26812 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26813fi
26814
26815have_bzlib='no'
26816if test "$with_bzlib" != 'no'; then
26817 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26819$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026821$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26823$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026824 failed=0
26825 passed=0
26826 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026827 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026828if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026829 passed=`expr $passed + 1`
26830else
26831 failed=`expr $failed + 1`
26832fi
26833
26834
cristy8b350f62009-11-15 23:12:43 +000026835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026836$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026837if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026838 $as_echo_n "(cached) " >&6
26839else
26840 ac_check_lib_save_LIBS=$LIBS
26841LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026843/* end confdefs.h. */
26844
26845/* Override any GCC internal prototype to avoid an error.
26846 Use char because int might match the return type of a GCC
26847 builtin and then its argument prototype would still apply. */
26848#ifdef __cplusplus
26849extern "C"
26850#endif
26851char BZ2_bzDecompress ();
26852int
26853main ()
26854{
26855return BZ2_bzDecompress ();
26856 ;
26857 return 0;
26858}
26859_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026860if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026861 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26862else
cristy8b350f62009-11-15 23:12:43 +000026863 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026864fi
cristy8b350f62009-11-15 23:12:43 +000026865rm -f core conftest.err conftest.$ac_objext \
26866 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026867LIBS=$ac_check_lib_save_LIBS
26868fi
cristy8b350f62009-11-15 23:12:43 +000026869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026870$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026871if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026872 found_libbz=`expr $found_libbz + 1`
26873fi
26874
26875 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026877$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026878if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026879 $as_echo_n "(cached) " >&6
26880else
26881 ac_check_lib_save_LIBS=$LIBS
26882LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026884/* end confdefs.h. */
26885
26886/* Override any GCC internal prototype to avoid an error.
26887 Use char because int might match the return type of a GCC
26888 builtin and then its argument prototype would still apply. */
26889#ifdef __cplusplus
26890extern "C"
26891#endif
26892char _imp__BZ2_decompress ();
26893int
26894main ()
26895{
26896return _imp__BZ2_decompress ();
26897 ;
26898 return 0;
26899}
26900_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026901if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026902 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26903else
cristy8b350f62009-11-15 23:12:43 +000026904 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026905fi
cristy8b350f62009-11-15 23:12:43 +000026906rm -f core conftest.err conftest.$ac_objext \
26907 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026908LIBS=$ac_check_lib_save_LIBS
26909fi
cristy8b350f62009-11-15 23:12:43 +000026910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026911$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026912if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026913 found_libbz=`expr $found_libbz + 1`
26914fi
26915
26916 fi
26917 if test $found_libbz -gt 0; then
26918 passed=`expr $passed + 1`
26919 else
26920 failed=`expr $failed + 1`
26921 fi
cristy8b350f62009-11-15 23:12:43 +000026922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo_n "checking if BZLIB package is complete... " >&6; }
26924 if test $passed -gt 0; then
26925 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26927$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026928 have_bzlib='no (failed tests)'
26929 else
26930 BZLIB_LIBS='-lbz2'
26931 LIBS="$BZLIB_LIBS $LIBS"
26932
cristy8b350f62009-11-15 23:12:43 +000026933$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026934
cristyad38abe2012-12-23 23:03:21 +000026935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26936$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026937 have_bzlib='yes'
26938 fi
26939 else
cristyad38abe2012-12-23 23:03:21 +000026940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26941$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026942 fi
26943fi
cristy73bd4a52010-10-05 11:24:23 +000026944 if test "$have_bzlib" = 'yes'; then
26945 BZLIB_DELEGATE_TRUE=
26946 BZLIB_DELEGATE_FALSE='#'
26947else
26948 BZLIB_DELEGATE_TRUE='#'
26949 BZLIB_DELEGATE_FALSE=
26950fi
26951
cristy3ed852e2009-09-05 21:47:34 +000026952
26953
26954#
26955# Find the X11 include and library directories.
26956#
26957IPC_LIBS=''
26958X11_LIBS=''
26959XEXT_LIBS=''
26960XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026962$as_echo_n "checking for X... " >&6; }
26963
26964
26965# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026966if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026967 withval=$with_x;
26968fi
26969
26970# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26971if test "x$with_x" = xno; then
26972 # The user explicitly disabled X.
26973 have_x=disabled
26974else
26975 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026976 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026977 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026978 $as_echo_n "(cached) " >&6
26979else
26980 # One or both of the vars are not set, and there is no cached value.
26981ac_x_includes=no ac_x_libraries=no
26982rm -f -r conftest.dir
26983if mkdir conftest.dir; then
26984 cd conftest.dir
26985 cat >Imakefile <<'_ACEOF'
26986incroot:
26987 @echo incroot='${INCROOT}'
26988usrlibdir:
26989 @echo usrlibdir='${USRLIBDIR}'
26990libdir:
26991 @echo libdir='${LIBDIR}'
26992_ACEOF
26993 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026994 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026995 for ac_var in incroot usrlibdir libdir; do
26996 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26997 done
26998 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26999 for ac_extension in a so sl dylib la dll; do
27000 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27001 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27002 ac_im_usrlibdir=$ac_im_libdir; break
27003 fi
27004 done
27005 # Screen out bogus values from the imake configuration. They are
27006 # bogus both because they are the default anyway, and because
27007 # using them would break gcc on systems where it needs fixed includes.
27008 case $ac_im_incroot in
27009 /usr/include) ac_x_includes= ;;
27010 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27011 esac
27012 case $ac_im_usrlibdir in
27013 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27014 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27015 esac
27016 fi
27017 cd ..
27018 rm -f -r conftest.dir
27019fi
27020
27021# Standard set of common directories for X headers.
27022# Check X11 before X11Rn because it is often a symlink to the current release.
27023ac_x_header_dirs='
27024/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027025/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027026/usr/X11R6/include
27027/usr/X11R5/include
27028/usr/X11R4/include
27029
27030/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027031/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027032/usr/include/X11R6
27033/usr/include/X11R5
27034/usr/include/X11R4
27035
27036/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027037/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027038/usr/local/X11R6/include
27039/usr/local/X11R5/include
27040/usr/local/X11R4/include
27041
27042/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027043/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027044/usr/local/include/X11R6
27045/usr/local/include/X11R5
27046/usr/local/include/X11R4
27047
27048/usr/X386/include
27049/usr/x386/include
27050/usr/XFree86/include/X11
27051
27052/usr/include
27053/usr/local/include
27054/usr/unsupported/include
27055/usr/athena/include
27056/usr/local/x11r5/include
27057/usr/lpp/Xamples/include
27058
27059/usr/openwin/include
27060/usr/openwin/share/include'
27061
27062if test "$ac_x_includes" = no; then
27063 # Guess where to find include files, by looking for Xlib.h.
27064 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027066/* end confdefs.h. */
27067#include <X11/Xlib.h>
27068_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027069if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027070 # We can compile using X headers with no special include directory.
27071ac_x_includes=
27072else
cristyc7083c12009-10-14 03:16:55 +000027073 for ac_dir in $ac_x_header_dirs; do
27074 if test -r "$ac_dir/X11/Xlib.h"; then
27075 ac_x_includes=$ac_dir
27076 break
27077 fi
27078done
27079fi
cristyda16f162011-02-19 23:52:17 +000027080rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027081fi # $ac_x_includes = no
27082
27083if test "$ac_x_libraries" = no; then
27084 # Check for the libraries.
27085 # See if we find them without any special options.
27086 # Don't add to $LIBS permanently.
27087 ac_save_LIBS=$LIBS
27088 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027090/* end confdefs.h. */
27091#include <X11/Xlib.h>
27092int
27093main ()
27094{
27095XrmInitialize ()
27096 ;
27097 return 0;
27098}
27099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027100if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027101 LIBS=$ac_save_LIBS
27102# We can link X programs with no special library path.
27103ac_x_libraries=
27104else
cristy8b350f62009-11-15 23:12:43 +000027105 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027106for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27107do
27108 # Don't even attempt the hair of trying to link an X program!
27109 for ac_extension in a so sl dylib la dll; do
27110 if test -r "$ac_dir/libX11.$ac_extension"; then
27111 ac_x_libraries=$ac_dir
27112 break 2
27113 fi
27114 done
27115done
27116fi
cristy8b350f62009-11-15 23:12:43 +000027117rm -f core conftest.err conftest.$ac_objext \
27118 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027119fi # $ac_x_libraries = no
27120
27121case $ac_x_includes,$ac_x_libraries in #(
27122 no,* | *,no | *\'*)
27123 # Didn't find X, or a directory has "'" in its name.
27124 ac_cv_have_x="have_x=no";; #(
27125 *)
27126 # Record where we found X for the cache.
27127 ac_cv_have_x="have_x=yes\
27128 ac_x_includes='$ac_x_includes'\
27129 ac_x_libraries='$ac_x_libraries'"
27130esac
27131fi
27132;; #(
27133 *) have_x=yes;;
27134 esac
27135 eval "$ac_cv_have_x"
27136fi # $with_x != no
27137
27138if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027140$as_echo "$have_x" >&6; }
27141 no_x=yes
27142else
27143 # If each of the values was on the command line, it overrides each guess.
27144 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27145 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27146 # Update the cache value to reflect the command line values.
27147 ac_cv_have_x="have_x=yes\
27148 ac_x_includes='$x_includes'\
27149 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027151$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27152fi
27153
cristy3ed852e2009-09-05 21:47:34 +000027154if test "$no_x" = yes; then
27155 # Not all programs may use this symbol, but it does not hurt to define it.
27156
cristy8b350f62009-11-15 23:12:43 +000027157$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027158
27159 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27160else
27161 if test -n "$x_includes"; then
27162 X_CFLAGS="$X_CFLAGS -I$x_includes"
27163 fi
27164
27165 # It would also be nice to do this for all -L options, not just this one.
27166 if test -n "$x_libraries"; then
27167 X_LIBS="$X_LIBS -L$x_libraries"
27168 # For Solaris; some versions of Sun CC require a space after -R and
27169 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027171$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27172 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27173 ac_xsave_c_werror_flag=$ac_c_werror_flag
27174 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027176/* end confdefs.h. */
27177
27178int
27179main ()
27180{
27181
27182 ;
27183 return 0;
27184}
27185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027186if ac_fn_c_try_link "$LINENO"; then :
27187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027188$as_echo "no" >&6; }
27189 X_LIBS="$X_LIBS -R$x_libraries"
27190else
cristy8b350f62009-11-15 23:12:43 +000027191 LIBS="$ac_xsave_LIBS -R $x_libraries"
27192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027193/* end confdefs.h. */
27194
27195int
27196main ()
27197{
27198
27199 ;
27200 return 0;
27201}
27202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027203if ac_fn_c_try_link "$LINENO"; then :
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027205$as_echo "yes" >&6; }
27206 X_LIBS="$X_LIBS -R $x_libraries"
27207else
cristy8b350f62009-11-15 23:12:43 +000027208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027209$as_echo "neither works" >&6; }
27210fi
cristy8b350f62009-11-15 23:12:43 +000027211rm -f core conftest.err conftest.$ac_objext \
27212 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027213fi
cristy8b350f62009-11-15 23:12:43 +000027214rm -f core conftest.err conftest.$ac_objext \
27215 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027216 ac_c_werror_flag=$ac_xsave_c_werror_flag
27217 LIBS=$ac_xsave_LIBS
27218 fi
27219
27220 # Check for system-dependent libraries X programs must link with.
27221 # Do this before checking for the system-independent R6 libraries
27222 # (-lICE), since we may need -lsocket or whatever for X linking.
27223
27224 if test "$ISC" = yes; then
27225 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27226 else
27227 # Martyn Johnson says this is needed for Ultrix, if the X
27228 # libraries were built with DECnet support. And Karl Berry says
27229 # the Alpha needs dnet_stub (dnet does not exist).
27230 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027232/* end confdefs.h. */
27233
27234/* Override any GCC internal prototype to avoid an error.
27235 Use char because int might match the return type of a GCC
27236 builtin and then its argument prototype would still apply. */
27237#ifdef __cplusplus
27238extern "C"
27239#endif
27240char XOpenDisplay ();
27241int
27242main ()
27243{
27244return XOpenDisplay ();
27245 ;
27246 return 0;
27247}
27248_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027249if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027250
cristy8b350f62009-11-15 23:12:43 +000027251else
27252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027253$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027254if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027255 $as_echo_n "(cached) " >&6
27256else
27257 ac_check_lib_save_LIBS=$LIBS
27258LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027260/* end confdefs.h. */
27261
27262/* Override any GCC internal prototype to avoid an error.
27263 Use char because int might match the return type of a GCC
27264 builtin and then its argument prototype would still apply. */
27265#ifdef __cplusplus
27266extern "C"
27267#endif
27268char dnet_ntoa ();
27269int
27270main ()
27271{
27272return dnet_ntoa ();
27273 ;
27274 return 0;
27275}
27276_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027277if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027278 ac_cv_lib_dnet_dnet_ntoa=yes
27279else
cristy8b350f62009-11-15 23:12:43 +000027280 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027281fi
cristy8b350f62009-11-15 23:12:43 +000027282rm -f core conftest.err conftest.$ac_objext \
27283 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027284LIBS=$ac_check_lib_save_LIBS
27285fi
cristy8b350f62009-11-15 23:12:43 +000027286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027287$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027288if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027289 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27290fi
27291
27292 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027294$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027295if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027296 $as_echo_n "(cached) " >&6
27297else
27298 ac_check_lib_save_LIBS=$LIBS
27299LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027301/* end confdefs.h. */
27302
27303/* Override any GCC internal prototype to avoid an error.
27304 Use char because int might match the return type of a GCC
27305 builtin and then its argument prototype would still apply. */
27306#ifdef __cplusplus
27307extern "C"
27308#endif
27309char dnet_ntoa ();
27310int
27311main ()
27312{
27313return dnet_ntoa ();
27314 ;
27315 return 0;
27316}
27317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027319 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27320else
cristy8b350f62009-11-15 23:12:43 +000027321 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027322fi
cristy8b350f62009-11-15 23:12:43 +000027323rm -f core conftest.err conftest.$ac_objext \
27324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027325LIBS=$ac_check_lib_save_LIBS
27326fi
cristy8b350f62009-11-15 23:12:43 +000027327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027328$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027329if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027330 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27331fi
27332
27333 fi
27334fi
cristy8b350f62009-11-15 23:12:43 +000027335rm -f core conftest.err conftest.$ac_objext \
27336 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027337 LIBS="$ac_xsave_LIBS"
27338
27339 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27340 # to get the SysV transport functions.
27341 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27342 # needs -lnsl.
27343 # The nsl library prevents programs from opening the X display
27344 # on Irix 5.2, according to T.E. Dickey.
27345 # The functions gethostbyname, getservbyname, and inet_addr are
27346 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027347 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027348if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027349
cristy3ed852e2009-09-05 21:47:34 +000027350fi
27351
cristy3ed852e2009-09-05 21:47:34 +000027352 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027354$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027355if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027356 $as_echo_n "(cached) " >&6
27357else
27358 ac_check_lib_save_LIBS=$LIBS
27359LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027361/* end confdefs.h. */
27362
27363/* Override any GCC internal prototype to avoid an error.
27364 Use char because int might match the return type of a GCC
27365 builtin and then its argument prototype would still apply. */
27366#ifdef __cplusplus
27367extern "C"
27368#endif
27369char gethostbyname ();
27370int
27371main ()
27372{
27373return gethostbyname ();
27374 ;
27375 return 0;
27376}
27377_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027378if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027379 ac_cv_lib_nsl_gethostbyname=yes
27380else
cristy8b350f62009-11-15 23:12:43 +000027381 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027382fi
cristy8b350f62009-11-15 23:12:43 +000027383rm -f core conftest.err conftest.$ac_objext \
27384 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027385LIBS=$ac_check_lib_save_LIBS
27386fi
cristy8b350f62009-11-15 23:12:43 +000027387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027388$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027389if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027390 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27391fi
27392
27393 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027395$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027396if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027397 $as_echo_n "(cached) " >&6
27398else
27399 ac_check_lib_save_LIBS=$LIBS
27400LIBS="-lbsd $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 gethostbyname ();
27411int
27412main ()
27413{
27414return gethostbyname ();
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_bsd_gethostbyname=yes
27421else
cristy8b350f62009-11-15 23:12:43 +000027422 ac_cv_lib_bsd_gethostbyname=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_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027429$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027430if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027431 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27432fi
27433
27434 fi
27435 fi
27436
27437 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27438 # socket/setsockopt and other routines are undefined under SCO ODT
27439 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27440 # on later versions), says Simon Leinen: it contains gethostby*
27441 # variants that don't use the name server (or something). -lsocket
27442 # must be given before -lnsl if both are needed. We assume that
27443 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027444 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027445if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027446
cristy3ed852e2009-09-05 21:47:34 +000027447fi
27448
cristy3ed852e2009-09-05 21:47:34 +000027449 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027451$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027452if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027453 $as_echo_n "(cached) " >&6
27454else
27455 ac_check_lib_save_LIBS=$LIBS
27456LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027458/* end confdefs.h. */
27459
27460/* Override any GCC internal prototype to avoid an error.
27461 Use char because int might match the return type of a GCC
27462 builtin and then its argument prototype would still apply. */
27463#ifdef __cplusplus
27464extern "C"
27465#endif
27466char connect ();
27467int
27468main ()
27469{
27470return connect ();
27471 ;
27472 return 0;
27473}
27474_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027475if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027476 ac_cv_lib_socket_connect=yes
27477else
cristy8b350f62009-11-15 23:12:43 +000027478 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027479fi
cristy8b350f62009-11-15 23:12:43 +000027480rm -f core conftest.err conftest.$ac_objext \
27481 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027482LIBS=$ac_check_lib_save_LIBS
27483fi
cristy8b350f62009-11-15 23:12:43 +000027484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027485$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027486if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027487 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27488fi
27489
27490 fi
27491
27492 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027493 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027494if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027495
cristy3ed852e2009-09-05 21:47:34 +000027496fi
27497
cristy3ed852e2009-09-05 21:47:34 +000027498 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027500$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027501if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027502 $as_echo_n "(cached) " >&6
27503else
27504 ac_check_lib_save_LIBS=$LIBS
27505LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027507/* end confdefs.h. */
27508
27509/* Override any GCC internal prototype to avoid an error.
27510 Use char because int might match the return type of a GCC
27511 builtin and then its argument prototype would still apply. */
27512#ifdef __cplusplus
27513extern "C"
27514#endif
27515char remove ();
27516int
27517main ()
27518{
27519return remove ();
27520 ;
27521 return 0;
27522}
27523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027524if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027525 ac_cv_lib_posix_remove=yes
27526else
cristy8b350f62009-11-15 23:12:43 +000027527 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027528fi
cristy8b350f62009-11-15 23:12:43 +000027529rm -f core conftest.err conftest.$ac_objext \
27530 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027531LIBS=$ac_check_lib_save_LIBS
27532fi
cristy8b350f62009-11-15 23:12:43 +000027533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027534$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027535if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027536 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27537fi
27538
27539 fi
27540
27541 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027542 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027543if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027544
cristy3ed852e2009-09-05 21:47:34 +000027545fi
27546
cristy3ed852e2009-09-05 21:47:34 +000027547 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027549$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027550if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027551 $as_echo_n "(cached) " >&6
27552else
27553 ac_check_lib_save_LIBS=$LIBS
27554LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027556/* end confdefs.h. */
27557
27558/* Override any GCC internal prototype to avoid an error.
27559 Use char because int might match the return type of a GCC
27560 builtin and then its argument prototype would still apply. */
27561#ifdef __cplusplus
27562extern "C"
27563#endif
27564char shmat ();
27565int
27566main ()
27567{
27568return shmat ();
27569 ;
27570 return 0;
27571}
27572_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027573if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027574 ac_cv_lib_ipc_shmat=yes
27575else
cristy8b350f62009-11-15 23:12:43 +000027576 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027577fi
cristy8b350f62009-11-15 23:12:43 +000027578rm -f core conftest.err conftest.$ac_objext \
27579 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027580LIBS=$ac_check_lib_save_LIBS
27581fi
cristy8b350f62009-11-15 23:12:43 +000027582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027583$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027584if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027585 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27586fi
27587
27588 fi
27589 fi
27590
27591 # Check for libraries that X11R6 Xt/Xaw programs need.
27592 ac_save_LDFLAGS=$LDFLAGS
27593 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27594 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27595 # check for ICE first), but we must link in the order -lSM -lICE or
27596 # we get undefined symbols. So assume we have SM if we have ICE.
27597 # These have to be linked with before -lX11, unlike the other
27598 # libraries we check for below, so use a different variable.
27599 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027601$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027602if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027603 $as_echo_n "(cached) " >&6
27604else
27605 ac_check_lib_save_LIBS=$LIBS
27606LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027608/* end confdefs.h. */
27609
27610/* Override any GCC internal prototype to avoid an error.
27611 Use char because int might match the return type of a GCC
27612 builtin and then its argument prototype would still apply. */
27613#ifdef __cplusplus
27614extern "C"
27615#endif
27616char IceConnectionNumber ();
27617int
27618main ()
27619{
27620return IceConnectionNumber ();
27621 ;
27622 return 0;
27623}
27624_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027625if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027626 ac_cv_lib_ICE_IceConnectionNumber=yes
27627else
cristy8b350f62009-11-15 23:12:43 +000027628 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027629fi
cristy8b350f62009-11-15 23:12:43 +000027630rm -f core conftest.err conftest.$ac_objext \
27631 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027632LIBS=$ac_check_lib_save_LIBS
27633fi
cristy8b350f62009-11-15 23:12:43 +000027634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027635$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027636if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027637 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27638fi
27639
27640 LDFLAGS=$ac_save_LDFLAGS
27641
27642fi
27643
27644if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27646$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027648$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27650$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027651 LDFLAGS="$LDFLAGS $X_LIBS"
27652 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27653 LIBS="$X11_LIBS $LIBS"
27654 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27655
27656
cristy8b350f62009-11-15 23:12:43 +000027657$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027658
27659 #
27660 # Check for X11 shared memory extension
27661 #
27662 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027663 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027664if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027665 have_shmctl='yes'
27666fi
27667
27668 if test "$have_shmctl" != 'yes'; then
27669 PERSIST_LIBS=$LIBS
27670 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027672/* end confdefs.h. */
27673
27674/* Override any GCC internal prototype to avoid an error.
27675 Use char because int might match the return type of a GCC
27676 builtin and then its argument prototype would still apply. */
27677#ifdef __cplusplus
27678extern "C"
27679#endif
27680char shmctl ();
27681int
27682main ()
27683{
27684return shmctl ();
27685 ;
27686 return 0;
27687}
27688_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027689if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027690 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027691fi
cristy8b350f62009-11-15 23:12:43 +000027692rm -f core conftest.err conftest.$ac_objext \
27693 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027694 LIBS=$PERSIST_LIBS
27695 fi
27696
27697 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027699$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027700if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027701 $as_echo_n "(cached) " >&6
27702else
27703 ac_check_lib_save_LIBS=$LIBS
27704LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027706/* end confdefs.h. */
27707
27708/* Override any GCC internal prototype to avoid an error.
27709 Use char because int might match the return type of a GCC
27710 builtin and then its argument prototype would still apply. */
27711#ifdef __cplusplus
27712extern "C"
27713#endif
27714char XShmAttach ();
27715int
27716main ()
27717{
27718return XShmAttach ();
27719 ;
27720 return 0;
27721}
27722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027723if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027724 ac_cv_lib_Xext_XShmAttach=yes
27725else
cristy8b350f62009-11-15 23:12:43 +000027726 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027727fi
cristy8b350f62009-11-15 23:12:43 +000027728rm -f core conftest.err conftest.$ac_objext \
27729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027730LIBS=$ac_check_lib_save_LIBS
27731fi
cristy8b350f62009-11-15 23:12:43 +000027732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027733$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027734if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027735 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027736$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027737
27738fi
27739
27740 fi
27741
27742 #
27743 # Check for X11 shape extension
27744 #
cristy8b350f62009-11-15 23:12:43 +000027745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027746$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027747if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027748 $as_echo_n "(cached) " >&6
27749else
27750 ac_check_lib_save_LIBS=$LIBS
27751LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027753/* end confdefs.h. */
27754
27755/* Override any GCC internal prototype to avoid an error.
27756 Use char because int might match the return type of a GCC
27757 builtin and then its argument prototype would still apply. */
27758#ifdef __cplusplus
27759extern "C"
27760#endif
27761char XShapeCombineMask ();
27762int
27763main ()
27764{
27765return XShapeCombineMask ();
27766 ;
27767 return 0;
27768}
27769_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027770if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027771 ac_cv_lib_Xext_XShapeCombineMask=yes
27772else
cristy8b350f62009-11-15 23:12:43 +000027773 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027774fi
cristy8b350f62009-11-15 23:12:43 +000027775rm -f core conftest.err conftest.$ac_objext \
27776 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027777LIBS=$ac_check_lib_save_LIBS
27778fi
cristy8b350f62009-11-15 23:12:43 +000027779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027780$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027781if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027782 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027783$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027784
27785fi
27786
cristy8b350f62009-11-15 23:12:43 +000027787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027788$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027789if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027790 $as_echo_n "(cached) " >&6
27791else
27792 ac_check_lib_save_LIBS=$LIBS
27793LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027795/* end confdefs.h. */
27796
27797/* Override any GCC internal prototype to avoid an error.
27798 Use char because int might match the return type of a GCC
27799 builtin and then its argument prototype would still apply. */
27800#ifdef __cplusplus
27801extern "C"
27802#endif
27803char XtSetEventDispatcher ();
27804int
27805main ()
27806{
27807return XtSetEventDispatcher ();
27808 ;
27809 return 0;
27810}
27811_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027812if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027813 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27814else
cristy8b350f62009-11-15 23:12:43 +000027815 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027816fi
cristy8b350f62009-11-15 23:12:43 +000027817rm -f core conftest.err conftest.$ac_objext \
27818 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027819LIBS=$ac_check_lib_save_LIBS
27820fi
cristy8b350f62009-11-15 23:12:43 +000027821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027822$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027823if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027824 XT_LIBS='-lXt'
27825fi
27826
27827 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27828fi
27829if test "$no_x" != 'yes'; then
27830 have_x='yes'
27831else
27832 have_x='no'
27833fi
cristy73bd4a52010-10-05 11:24:23 +000027834 if test "$have_x" = 'yes'; then
27835 X11_DELEGATE_TRUE=
27836 X11_DELEGATE_FALSE='#'
27837else
27838 X11_DELEGATE_TRUE='#'
27839 X11_DELEGATE_FALSE=
27840fi
27841
cristy3ed852e2009-09-05 21:47:34 +000027842
27843
27844
27845
27846#
27847# Check for ZLIB
27848#
27849
27850# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027851if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027852 withval=$with_zlib; with_zlib=$withval
27853else
27854 with_zlib='yes'
27855fi
27856
27857
27858if test "$with_zlib" != 'yes'; then
27859 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27860fi
27861
27862have_zlib='no'
27863ZLIB_LIBS=''
27864if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27866$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027868$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27870$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027871 ZLIB_LIBS=''
27872 failed=0
27873 passed=0
cristy8b350f62009-11-15 23:12:43 +000027874 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027875if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027876 passed=`expr $passed + 1`
27877else
27878 failed=`expr $failed + 1`
27879fi
27880
27881
cristy8b350f62009-11-15 23:12:43 +000027882 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027883if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027884 passed=`expr $passed + 1`
27885else
27886 failed=`expr $failed + 1`
27887fi
27888
27889
cristy8b350f62009-11-15 23:12:43 +000027890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027891$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027892if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027893 $as_echo_n "(cached) " >&6
27894else
27895 ac_check_lib_save_LIBS=$LIBS
27896LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027898/* end confdefs.h. */
27899
27900/* Override any GCC internal prototype to avoid an error.
27901 Use char because int might match the return type of a GCC
27902 builtin and then its argument prototype would still apply. */
27903#ifdef __cplusplus
27904extern "C"
27905#endif
27906char compress ();
27907int
27908main ()
27909{
27910return compress ();
27911 ;
27912 return 0;
27913}
27914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027915if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027916 ac_cv_lib_z_compress=yes
27917else
cristy8b350f62009-11-15 23:12:43 +000027918 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027919fi
cristy8b350f62009-11-15 23:12:43 +000027920rm -f core conftest.err conftest.$ac_objext \
27921 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027922LIBS=$ac_check_lib_save_LIBS
27923fi
cristy8b350f62009-11-15 23:12:43 +000027924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027925$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027926if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027927 passed=`expr $passed + 1`
27928else
27929 failed=`expr $failed + 1`
27930fi
27931
cristy8b350f62009-11-15 23:12:43 +000027932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027933$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027934if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027935 $as_echo_n "(cached) " >&6
27936else
27937 ac_check_lib_save_LIBS=$LIBS
27938LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027940/* end confdefs.h. */
27941
27942/* Override any GCC internal prototype to avoid an error.
27943 Use char because int might match the return type of a GCC
27944 builtin and then its argument prototype would still apply. */
27945#ifdef __cplusplus
27946extern "C"
27947#endif
27948char uncompress ();
27949int
27950main ()
27951{
27952return uncompress ();
27953 ;
27954 return 0;
27955}
27956_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027957if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027958 ac_cv_lib_z_uncompress=yes
27959else
cristy8b350f62009-11-15 23:12:43 +000027960 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027961fi
cristy8b350f62009-11-15 23:12:43 +000027962rm -f core conftest.err conftest.$ac_objext \
27963 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027964LIBS=$ac_check_lib_save_LIBS
27965fi
cristy8b350f62009-11-15 23:12:43 +000027966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027967$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027968if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027969 passed=`expr $passed + 1`
27970else
27971 failed=`expr $failed + 1`
27972fi
27973
cristy8b350f62009-11-15 23:12:43 +000027974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027975$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027976if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027977 $as_echo_n "(cached) " >&6
27978else
27979 ac_check_lib_save_LIBS=$LIBS
27980LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027982/* end confdefs.h. */
27983
27984/* Override any GCC internal prototype to avoid an error.
27985 Use char because int might match the return type of a GCC
27986 builtin and then its argument prototype would still apply. */
27987#ifdef __cplusplus
27988extern "C"
27989#endif
27990char deflate ();
27991int
27992main ()
27993{
27994return deflate ();
27995 ;
27996 return 0;
27997}
27998_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027999if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028000 ac_cv_lib_z_deflate=yes
28001else
cristy8b350f62009-11-15 23:12:43 +000028002 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028003fi
cristy8b350f62009-11-15 23:12:43 +000028004rm -f core conftest.err conftest.$ac_objext \
28005 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028006LIBS=$ac_check_lib_save_LIBS
28007fi
cristy8b350f62009-11-15 23:12:43 +000028008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028009$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028010if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028011 passed=`expr $passed + 1`
28012else
28013 failed=`expr $failed + 1`
28014fi
28015
cristy8b350f62009-11-15 23:12:43 +000028016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028017$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028018if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028019 $as_echo_n "(cached) " >&6
28020else
28021 ac_check_lib_save_LIBS=$LIBS
28022LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028024/* end confdefs.h. */
28025
28026/* Override any GCC internal prototype to avoid an error.
28027 Use char because int might match the return type of a GCC
28028 builtin and then its argument prototype would still apply. */
28029#ifdef __cplusplus
28030extern "C"
28031#endif
28032char inflate ();
28033int
28034main ()
28035{
28036return inflate ();
28037 ;
28038 return 0;
28039}
28040_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028041if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028042 ac_cv_lib_z_inflate=yes
28043else
cristy8b350f62009-11-15 23:12:43 +000028044 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028045fi
cristy8b350f62009-11-15 23:12:43 +000028046rm -f core conftest.err conftest.$ac_objext \
28047 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028048LIBS=$ac_check_lib_save_LIBS
28049fi
cristy8b350f62009-11-15 23:12:43 +000028050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028051$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028052if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028053 passed=`expr $passed + 1`
28054else
28055 failed=`expr $failed + 1`
28056fi
28057
cristy8b350f62009-11-15 23:12:43 +000028058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028059$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028060if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028061 $as_echo_n "(cached) " >&6
28062else
28063 ac_check_lib_save_LIBS=$LIBS
28064LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028066/* end confdefs.h. */
28067
28068/* Override any GCC internal prototype to avoid an error.
28069 Use char because int might match the return type of a GCC
28070 builtin and then its argument prototype would still apply. */
28071#ifdef __cplusplus
28072extern "C"
28073#endif
28074char gzseek ();
28075int
28076main ()
28077{
28078return gzseek ();
28079 ;
28080 return 0;
28081}
28082_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028083if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028084 ac_cv_lib_z_gzseek=yes
28085else
cristy8b350f62009-11-15 23:12:43 +000028086 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028087fi
cristy8b350f62009-11-15 23:12:43 +000028088rm -f core conftest.err conftest.$ac_objext \
28089 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028090LIBS=$ac_check_lib_save_LIBS
28091fi
cristy8b350f62009-11-15 23:12:43 +000028092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028093$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028094if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028095 passed=`expr $passed + 1`
28096else
28097 failed=`expr $failed + 1`
28098fi
28099
cristy8b350f62009-11-15 23:12:43 +000028100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028101$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028102if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028103 $as_echo_n "(cached) " >&6
28104else
28105 ac_check_lib_save_LIBS=$LIBS
28106LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028108/* end confdefs.h. */
28109
28110/* Override any GCC internal prototype to avoid an error.
28111 Use char because int might match the return type of a GCC
28112 builtin and then its argument prototype would still apply. */
28113#ifdef __cplusplus
28114extern "C"
28115#endif
28116char gztell ();
28117int
28118main ()
28119{
28120return gztell ();
28121 ;
28122 return 0;
28123}
28124_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028125if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028126 ac_cv_lib_z_gztell=yes
28127else
cristy8b350f62009-11-15 23:12:43 +000028128 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028129fi
cristy8b350f62009-11-15 23:12:43 +000028130rm -f core conftest.err conftest.$ac_objext \
28131 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028132LIBS=$ac_check_lib_save_LIBS
28133fi
cristy8b350f62009-11-15 23:12:43 +000028134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028135$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028136if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028137 passed=`expr $passed + 1`
28138else
28139 failed=`expr $failed + 1`
28140fi
28141
cristy8b350f62009-11-15 23:12:43 +000028142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028143$as_echo_n "checking if ZLIB package is complete... " >&6; }
28144 if test $passed -gt 0; then
28145 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28147$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028148 have_zlib='no (failed tests)'
28149 else
28150 ZLIB_LIBS='-lz'
28151 LIBS="$ZLIB_LIBS $LIBS"
28152
cristy8b350f62009-11-15 23:12:43 +000028153$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028154
cristyad38abe2012-12-23 23:03:21 +000028155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28156$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028157 have_zlib='yes'
28158 fi
28159 else
cristyad38abe2012-12-23 23:03:21 +000028160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28161$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028162 fi
28163fi
cristy73bd4a52010-10-05 11:24:23 +000028164 if test "$have_zlib" = 'yes'; then
28165 ZLIB_DELEGATE_TRUE=
28166 ZLIB_DELEGATE_FALSE='#'
28167else
28168 ZLIB_DELEGATE_TRUE='#'
28169 ZLIB_DELEGATE_FALSE=
28170fi
28171
cristy3ed852e2009-09-05 21:47:34 +000028172
28173
cristy5eef09f2012-10-16 12:08:28 +000028174# whether modules are built or not.
28175with_ltdl='yes'
28176have_ltdl='no'
28177LTDL_LIBS=''
28178if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28180$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28182$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28184$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028185 failed=0
28186 passed=0
28187 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28188if test "x$ac_cv_header_ltdl_h" = xyes; then :
28189 passed=`expr $passed + 1`
28190else
28191 failed=`expr $failed + 1`
28192fi
28193
28194
28195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28196$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28197if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28198 $as_echo_n "(cached) " >&6
28199else
28200 ac_check_lib_save_LIBS=$LIBS
28201LIBS="-lltdl $LIBS"
28202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28203/* end confdefs.h. */
28204
28205/* Override any GCC internal prototype to avoid an error.
28206 Use char because int might match the return type of a GCC
28207 builtin and then its argument prototype would still apply. */
28208#ifdef __cplusplus
28209extern "C"
28210#endif
28211char lt_dlinit ();
28212int
28213main ()
28214{
28215return lt_dlinit ();
28216 ;
28217 return 0;
28218}
28219_ACEOF
28220if ac_fn_c_try_link "$LINENO"; then :
28221 ac_cv_lib_ltdl_lt_dlinit=yes
28222else
28223 ac_cv_lib_ltdl_lt_dlinit=no
28224fi
28225rm -f core conftest.err conftest.$ac_objext \
28226 conftest$ac_exeext conftest.$ac_ext
28227LIBS=$ac_check_lib_save_LIBS
28228fi
28229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28230$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28231if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28232 passed=`expr $passed + 1`
28233else
28234 failed=`expr $failed + 1`
28235fi
28236
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28238$as_echo_n "checking if libltdl package is complete... " >&6; }
28239 if test $passed -gt 0 ; then
28240 if test $failed -gt 0 ; then
28241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28242$as_echo "no -- some components failed test" >&6; }
28243 have_ltdl='no (failed tests)'
28244 else
28245 LTDL_LIBS='-lltdl'
28246 LIBS="$LTDL_LIBS $LIBS"
28247
28248$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28249
28250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28251$as_echo "yes" >&6; }
28252 have_ltdl='yes'
28253 fi
28254 else
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28256$as_echo "no" >&6; }
28257 fi
cristyaf4cbf32012-10-16 23:47:41 +000028258 if test "$have_ltdl" != 'yes' ; then
28259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28261as_fn_error 1 "libltdl is required for modules build
28262See \`config.log' for more details" "$LINENO" 5; }
28263 fi
cristy5eef09f2012-10-16 12:08:28 +000028264fi
28265 if test "$have_ltdl" != 'no'; then
28266 WITH_LTDL_TRUE=
28267 WITH_LTDL_FALSE='#'
28268else
28269 WITH_LTDL_TRUE='#'
28270 WITH_LTDL_FALSE=
28271fi
28272
28273
cristy3ed852e2009-09-05 21:47:34 +000028274#
28275# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28276#
28277LIB_DL=''
28278if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028280$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028281if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028282 $as_echo_n "(cached) " >&6
28283else
28284 ac_check_lib_save_LIBS=$LIBS
28285LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028287/* end confdefs.h. */
28288
28289/* Override any GCC internal prototype to avoid an error.
28290 Use char because int might match the return type of a GCC
28291 builtin and then its argument prototype would still apply. */
28292#ifdef __cplusplus
28293extern "C"
28294#endif
28295char dlopen ();
28296int
28297main ()
28298{
28299return dlopen ();
28300 ;
28301 return 0;
28302}
28303_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028304if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028305 ac_cv_lib_dl_dlopen=yes
28306else
cristy8b350f62009-11-15 23:12:43 +000028307 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028308fi
cristy8b350f62009-11-15 23:12:43 +000028309rm -f core conftest.err conftest.$ac_objext \
28310 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028311LIBS=$ac_check_lib_save_LIBS
28312fi
cristy8b350f62009-11-15 23:12:43 +000028313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028314$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028315if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028316 LIB_DL='-ldl'
28317fi
28318
28319 LIBS="$LIB_DL $LIBS"
28320fi
28321
28322
28323
28324#
28325# Check for Autotrace delegate library.
28326#
28327
28328# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028329if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028330 withval=$with_autotrace; with_autotrace=$withval
28331else
28332 with_autotrace='no'
28333fi
28334
28335
28336if test "$with_autotrace" != 'yes'; then
28337 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28338fi
28339
28340have_autotrace='no'
28341AUTOTRACE_CFLAGS=""
28342AUTOTRACE_LIBS=""
28343AUTOTRACE_PKG=""
28344if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28346$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028347
28348pkg_failed=no
28349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28350$as_echo_n "checking for AUTOTRACE... " >&6; }
28351
28352if test -n "$AUTOTRACE_CFLAGS"; then
28353 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28354 elif test -n "$PKG_CONFIG"; then
28355 if test -n "$PKG_CONFIG" && \
28356 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28357 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28358 ac_status=$?
28359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28360 test $ac_status = 0; }; then
28361 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28362else
28363 pkg_failed=yes
28364fi
28365 else
28366 pkg_failed=untried
28367fi
28368if test -n "$AUTOTRACE_LIBS"; then
28369 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28370 elif test -n "$PKG_CONFIG"; then
28371 if test -n "$PKG_CONFIG" && \
28372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28373 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28374 ac_status=$?
28375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28376 test $ac_status = 0; }; then
28377 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28378else
28379 pkg_failed=yes
28380fi
28381 else
28382 pkg_failed=untried
28383fi
28384
28385
28386
28387if test $pkg_failed = yes; then
28388
28389if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28390 _pkg_short_errors_supported=yes
28391else
28392 _pkg_short_errors_supported=no
28393fi
28394 if test $_pkg_short_errors_supported = yes; then
28395 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28396 else
28397 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28398 fi
28399 # Put the nasty error message in config.log where it belongs
28400 echo "$AUTOTRACE_PKG_ERRORS" >&5
28401
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28403$as_echo "no" >&6; }
28404 have_autotrace=no
28405elif test $pkg_failed = untried; then
28406 have_autotrace=no
28407else
28408 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28409 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28411$as_echo "yes" >&6; }
28412 have_autotrace=yes
28413fi
cristyad38abe2012-12-23 23:03:21 +000028414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28415$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028416fi
28417
28418if test "$have_autotrace" = 'yes'; then
28419 failed=0
28420
cristy8b350f62009-11-15 23:12:43 +000028421$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028422
cristyc6722092012-10-14 00:19:31 +000028423 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028424 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028425 fi
28426fi
28427
cristy73bd4a52010-10-05 11:24:23 +000028428 if test "$have_autotrace" = 'yes'; then
28429 AUTOTRACE_DELEGATE_TRUE=
28430 AUTOTRACE_DELEGATE_FALSE='#'
28431else
28432 AUTOTRACE_DELEGATE_TRUE='#'
28433 AUTOTRACE_DELEGATE_FALSE=
28434fi
28435
cristy3ed852e2009-09-05 21:47:34 +000028436
28437
28438
28439
28440#
28441# Check for Display Postscript delegate library.
28442#
28443
28444# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028445if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028446 withval=$with_dps; with_dps=$withval
28447else
28448 with_dps='yes'
28449fi
28450
28451
28452if test "$with_dps" != 'yes'; then
28453 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28454fi
28455
28456have_dps='no'
28457DPS_LIBS=''
28458if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28460$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028462$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28464$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028465 failed=0
28466 passed=0
28467 PERSIST_CPPFLAGS="$CPPFLAGS"
28468 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028469 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 +000028470if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028471 passed=`expr $passed + 1`
28472else
28473 failed=`expr $failed + 1`
28474fi
28475
28476
28477 # DPS issues:
28478 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28479 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28480 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28481 # ImageMagick itself doesn't use -lXt.
28482 have_libdps='no'
28483 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028485$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028486if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028487 $as_echo_n "(cached) " >&6
28488else
28489 ac_check_lib_save_LIBS=$LIBS
28490LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028492/* end confdefs.h. */
28493
28494/* Override any GCC internal prototype to avoid an error.
28495 Use char because int might match the return type of a GCC
28496 builtin and then its argument prototype would still apply. */
28497#ifdef __cplusplus
28498extern "C"
28499#endif
28500char DPSInitialize ();
28501int
28502main ()
28503{
28504return DPSInitialize ();
28505 ;
28506 return 0;
28507}
28508_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028509if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028510 ac_cv_lib_dps_DPSInitialize=yes
28511else
cristy8b350f62009-11-15 23:12:43 +000028512 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028513fi
cristy8b350f62009-11-15 23:12:43 +000028514rm -f core conftest.err conftest.$ac_objext \
28515 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028516LIBS=$ac_check_lib_save_LIBS
28517fi
cristy8b350f62009-11-15 23:12:43 +000028518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028519$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028520if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028521 have_libdps='yes'
28522else
28523 have_libdps='no'
28524fi
28525
28526 if test "$have_libdps" != 'yes'; then
28527 # Unset cache variable so we can try again.
28528 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028530$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028531if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028532 $as_echo_n "(cached) " >&6
28533else
28534 ac_check_lib_save_LIBS=$LIBS
28535LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028537/* end confdefs.h. */
28538
28539/* Override any GCC internal prototype to avoid an error.
28540 Use char because int might match the return type of a GCC
28541 builtin and then its argument prototype would still apply. */
28542#ifdef __cplusplus
28543extern "C"
28544#endif
28545char DPSInitialize ();
28546int
28547main ()
28548{
28549return DPSInitialize ();
28550 ;
28551 return 0;
28552}
28553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028554if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028555 ac_cv_lib_dps_DPSInitialize=yes
28556else
cristy8b350f62009-11-15 23:12:43 +000028557 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028558fi
cristy8b350f62009-11-15 23:12:43 +000028559rm -f core conftest.err conftest.$ac_objext \
28560 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028561LIBS=$ac_check_lib_save_LIBS
28562fi
cristy8b350f62009-11-15 23:12:43 +000028563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028564$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028565if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028566 have_libdps='yes'
28567else
28568 have_libdps='no'
28569fi
28570
28571 if test "$have_libdps" = 'yes'; then
28572 LIBDPS_XT='-lXt'
28573 fi
28574 fi
28575 if test "$have_libdps" = 'yes'; then
28576 passed=`expr $passed + 1`
28577 else
28578 failed=`expr $failed + 1`
28579 fi
cristy8b350f62009-11-15 23:12:43 +000028580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028581$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028582if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028583 $as_echo_n "(cached) " >&6
28584else
28585 ac_check_lib_save_LIBS=$LIBS
28586LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028588/* end confdefs.h. */
28589
28590/* Override any GCC internal prototype to avoid an error.
28591 Use char because int might match the return type of a GCC
28592 builtin and then its argument prototype would still apply. */
28593#ifdef __cplusplus
28594extern "C"
28595#endif
28596char XDPSPixelsPerPoint ();
28597int
28598main ()
28599{
28600return XDPSPixelsPerPoint ();
28601 ;
28602 return 0;
28603}
28604_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028605if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028606 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28607else
cristy8b350f62009-11-15 23:12:43 +000028608 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028609fi
cristy8b350f62009-11-15 23:12:43 +000028610rm -f core conftest.err conftest.$ac_objext \
28611 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028612LIBS=$ac_check_lib_save_LIBS
28613fi
cristy8b350f62009-11-15 23:12:43 +000028614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028615$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028616if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028617 passed=`expr $passed + 1`
28618else
28619 failed=`expr $failed + 1`
28620fi
28621
cristy8b350f62009-11-15 23:12:43 +000028622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028623$as_echo_n "checking if DPS package is complete... " >&6; }
28624 if test $passed -gt 0; then
28625 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28627$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028628 have_dps='no (failed tests)'
28629 CPPFLAGS="$PERSIST_CPPFLAGS"
28630 else
28631 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28632 LIBS="$DPS_LIBS $LIBS"
28633
cristy8b350f62009-11-15 23:12:43 +000028634$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028635
cristyad38abe2012-12-23 23:03:21 +000028636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28637$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028638 have_dps='yes'
28639 fi
28640 else
cristyad38abe2012-12-23 23:03:21 +000028641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28642$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028643 CPPFLAGS=$PERSIST_CPPFLAGS
28644 fi
28645fi
cristy73bd4a52010-10-05 11:24:23 +000028646 if test "$have_dps" = 'yes'; then
28647 DPS_DELEGATE_TRUE=
28648 DPS_DELEGATE_FALSE='#'
28649else
28650 DPS_DELEGATE_TRUE='#'
28651 DPS_DELEGATE_FALSE=
28652fi
28653
cristy3ed852e2009-09-05 21:47:34 +000028654
28655
28656
28657#
28658# Check for DJVU delegate library.
28659#
28660
28661# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028662if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028663 withval=$with_djvu; with_djvu=$withval
28664else
28665 with_djvu='yes'
28666fi
28667
28668
28669if test "$with_djvu" != 'yes'; then
28670 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28671fi
28672
28673have_djvu='no'
28674DJVU_LIBS=''
28675if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28677$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028679$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28681$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028682 failed=0
28683 passed=0
cristy8b350f62009-11-15 23:12:43 +000028684 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 +000028685if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028686 passed=`expr $passed + 1`
28687else
28688 failed=`expr $failed + 1`
28689fi
28690
28691
cristy8b350f62009-11-15 23:12:43 +000028692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028693$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028694if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028695 $as_echo_n "(cached) " >&6
28696else
28697 ac_check_lib_save_LIBS=$LIBS
28698LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028700/* end confdefs.h. */
28701
28702/* Override any GCC internal prototype to avoid an error.
28703 Use char because int might match the return type of a GCC
28704 builtin and then its argument prototype would still apply. */
28705#ifdef __cplusplus
28706extern "C"
28707#endif
28708char ddjvu_context_create ();
28709int
28710main ()
28711{
28712return ddjvu_context_create ();
28713 ;
28714 return 0;
28715}
28716_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028717if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028718 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28719else
cristy8b350f62009-11-15 23:12:43 +000028720 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028721fi
cristy8b350f62009-11-15 23:12:43 +000028722rm -f core conftest.err conftest.$ac_objext \
28723 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028724LIBS=$ac_check_lib_save_LIBS
28725fi
cristy8b350f62009-11-15 23:12:43 +000028726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028727$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028728if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028729 passed=`expr $passed + 1`
28730else
28731 failed=`expr $failed + 1`
28732fi
28733
cristy8b350f62009-11-15 23:12:43 +000028734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028735$as_echo_n "checking if DJVU package is complete... " >&6; }
28736 if test $passed -gt 0; then
28737 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28739$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028740 have_djvu='no (failed tests)'
28741 else
28742 DJVU_LIBS='-ldjvulibre'
28743 LIBS="$DJVU_LIBS $LIBS"
28744
cristy8b350f62009-11-15 23:12:43 +000028745$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028746
cristyad38abe2012-12-23 23:03:21 +000028747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28748$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028749 have_djvu='yes'
28750 fi
28751 else
cristyad38abe2012-12-23 23:03:21 +000028752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28753$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028754 fi
28755fi
cristy73bd4a52010-10-05 11:24:23 +000028756 if test "$have_djvu" = 'yes'; then
28757 DJVU_DELEGATE_TRUE=
28758 DJVU_DELEGATE_FALSE='#'
28759else
28760 DJVU_DELEGATE_TRUE='#'
28761 DJVU_DELEGATE_FALSE=
28762fi
28763
cristy3ed852e2009-09-05 21:47:34 +000028764
28765
28766
28767#
cristy430a7312010-01-21 20:44:04 +000028768# Set DejaVu font directory.
28769#
28770
28771# Check whether --with-dejavu-font-dir was given.
28772if test "${with_dejavu_font_dir+set}" = set; then :
28773 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28774else
28775 with_dejavu_font_dir='default'
28776fi
28777
28778
28779if test "$with_dejavu_font_dir" != 'default'; then
28780 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28781fi
28782
28783
28784#
cristy3ed852e2009-09-05 21:47:34 +000028785# Check for FFTW delegate library.
28786#
28787
28788# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028789if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028790 withval=$with_fftw; with_fftw=$withval
28791else
28792 with_fftw='yes'
28793fi
28794
28795
28796if test "$with_fftw" != 'yes'; then
28797 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28798fi
28799
cristy81beccd2011-10-03 18:17:24 +000028800have_fftw='no'
28801FFTW_LIBS=''
28802if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28804$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28806$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28808$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028809 failed=0
28810 passed=0
28811 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28812if test "x$ac_cv_header_fftw3_h" = xyes; then :
28813 passed=`expr $passed + 1`
28814else
28815 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028816fi
28817
cristy81beccd2011-10-03 18:17:24 +000028818
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28820$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28821if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28822 $as_echo_n "(cached) " >&6
28823else
28824 ac_check_lib_save_LIBS=$LIBS
28825LIBS="-lfftw3 $LIBS"
28826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28827/* end confdefs.h. */
28828
28829/* Override any GCC internal prototype to avoid an error.
28830 Use char because int might match the return type of a GCC
28831 builtin and then its argument prototype would still apply. */
28832#ifdef __cplusplus
28833extern "C"
28834#endif
28835char fftw_execute ();
28836int
28837main ()
28838{
28839return fftw_execute ();
28840 ;
28841 return 0;
28842}
28843_ACEOF
28844if ac_fn_c_try_link "$LINENO"; then :
28845 ac_cv_lib_fftw3_fftw_execute=yes
28846else
28847 ac_cv_lib_fftw3_fftw_execute=no
28848fi
28849rm -f core conftest.err conftest.$ac_objext \
28850 conftest$ac_exeext conftest.$ac_ext
28851LIBS=$ac_check_lib_save_LIBS
28852fi
28853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28854$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28855if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28856 passed=`expr $passed + 1`
28857else
28858 failed=`expr $failed + 1`
28859fi
28860
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28862$as_echo_n "checking if FFTW package is complete... " >&6; }
28863 if test $passed -gt 0; then
28864 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28866$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028867 have_fftw='no (failed tests)'
28868 else
28869 FFTW_LIBS='-lfftw3'
28870 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028871
cristy8b350f62009-11-15 23:12:43 +000028872$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028873
cristyad38abe2012-12-23 23:03:21 +000028874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28875$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028876 have_fftw='yes'
28877 fi
28878 else
cristyad38abe2012-12-23 23:03:21 +000028879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28880$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028881 fi
28882fi
cristy73bd4a52010-10-05 11:24:23 +000028883 if test "$have_fftw" = 'yes'; then
28884 FFTW_DELEGATE_TRUE=
28885 FFTW_DELEGATE_FALSE='#'
28886else
28887 FFTW_DELEGATE_TRUE='#'
28888 FFTW_DELEGATE_FALSE=
28889fi
28890
cristy3ed852e2009-09-05 21:47:34 +000028891
28892
28893
28894#
28895# Check for FlashPIX delegate library.
28896#
28897
28898# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028899if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028900 withval=$with_fpx; with_fpx=$withval
28901else
28902 with_fpx='yes'
28903fi
28904
28905
28906if test "$with_fpx" != 'yes'; then
28907 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28908fi
28909
28910have_fpx='no'
28911FPX_LIBS=''
28912if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28914$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028916$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28918$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028919 failed=0
28920 passed=0
28921 ac_ext=cpp
28922ac_cpp='$CXXCPP $CPPFLAGS'
28923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28926
28927
cristy8b350f62009-11-15 23:12:43 +000028928ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028929if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028930 passed=`expr $passed + 1`
28931else
28932 failed=`expr $failed + 1`
28933fi
28934
28935
cristy8b350f62009-11-15 23:12:43 +000028936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028937$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028938if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028939 $as_echo_n "(cached) " >&6
28940else
28941 ac_check_lib_save_LIBS=$LIBS
28942LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028944/* end confdefs.h. */
28945
28946/* Override any GCC internal prototype to avoid an error.
28947 Use char because int might match the return type of a GCC
28948 builtin and then its argument prototype would still apply. */
28949#ifdef __cplusplus
28950extern "C"
28951#endif
28952char FPX_OpenImageByFilename ();
28953int
28954main ()
28955{
28956return FPX_OpenImageByFilename ();
28957 ;
28958 return 0;
28959}
28960_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028961if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028962 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28963else
cristy8b350f62009-11-15 23:12:43 +000028964 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028965fi
cristy8b350f62009-11-15 23:12:43 +000028966rm -f core conftest.err conftest.$ac_objext \
28967 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028968LIBS=$ac_check_lib_save_LIBS
28969fi
cristy8b350f62009-11-15 23:12:43 +000028970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028971$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028972if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028973 passed=`expr $passed + 1`
28974else
28975 failed=`expr $failed + 1`
28976fi
28977
28978 ac_ext=c
28979ac_cpp='$CPP $CPPFLAGS'
28980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28982ac_compiler_gnu=$ac_cv_c_compiler_gnu
28983
cristy8b350f62009-11-15 23:12:43 +000028984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028985$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28986 if test $passed -gt 0; then
28987 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28989$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028990 have_fpx='no (failed tests)'
28991 else
28992 FPX_LIBS='-lfpx'
28993
cristy8b350f62009-11-15 23:12:43 +000028994$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028995
cristyad38abe2012-12-23 23:03:21 +000028996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28997$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028998 have_fpx='yes'
28999 PERLMAINCC="$CXX"
29000 fi
29001 else
cristyad38abe2012-12-23 23:03:21 +000029002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29003$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029004 fi
29005fi
cristy73bd4a52010-10-05 11:24:23 +000029006 if test "$have_fpx" = 'yes'; then
29007 FPX_DELEGATE_TRUE=
29008 FPX_DELEGATE_FALSE='#'
29009else
29010 FPX_DELEGATE_TRUE='#'
29011 FPX_DELEGATE_FALSE=
29012fi
29013
cristy3ed852e2009-09-05 21:47:34 +000029014
29015
29016
29017#
29018# Check for fontconfig delegate library.
29019#
29020
29021# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029022if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029023 withval=$with_fontconfig; with_fontconfig=$withval
29024else
cristyfc3d0222012-02-07 15:05:57 +000029025 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029026fi
29027
29028
29029if test "$with_fontconfig" != 'yes'; then
29030 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29031fi
29032
29033have_fontconfig='no'
29034FONTCONFIG_CFLAGS=""
29035FONTCONFIG_LIBS=""
29036FONTCONFIG_PKG=""
29037if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29039$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029040
29041pkg_failed=no
29042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29043$as_echo_n "checking for FONTCONFIG... " >&6; }
29044
29045if test -n "$FONTCONFIG_CFLAGS"; then
29046 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29047 elif test -n "$PKG_CONFIG"; then
29048 if test -n "$PKG_CONFIG" && \
29049 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29050 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29051 ac_status=$?
29052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29053 test $ac_status = 0; }; then
29054 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29055else
29056 pkg_failed=yes
29057fi
29058 else
29059 pkg_failed=untried
29060fi
29061if test -n "$FONTCONFIG_LIBS"; then
29062 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29063 elif test -n "$PKG_CONFIG"; then
29064 if test -n "$PKG_CONFIG" && \
29065 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29066 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29067 ac_status=$?
29068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29069 test $ac_status = 0; }; then
29070 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29071else
29072 pkg_failed=yes
29073fi
29074 else
29075 pkg_failed=untried
29076fi
29077
29078
29079
29080if test $pkg_failed = yes; then
29081
29082if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29083 _pkg_short_errors_supported=yes
29084else
29085 _pkg_short_errors_supported=no
29086fi
29087 if test $_pkg_short_errors_supported = yes; then
29088 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29089 else
29090 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29091 fi
29092 # Put the nasty error message in config.log where it belongs
29093 echo "$FONTCONFIG_PKG_ERRORS" >&5
29094
29095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29096$as_echo "no" >&6; }
29097 have_fontconfig=no
29098elif test $pkg_failed = untried; then
29099 have_fontconfig=no
29100else
29101 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29102 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29104$as_echo "yes" >&6; }
29105 have_fontconfig=yes
29106fi
cristyad38abe2012-12-23 23:03:21 +000029107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29108$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029109fi
29110
29111if test "$have_fontconfig" = 'yes'; then
29112
cristy8b350f62009-11-15 23:12:43 +000029113$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029114
cristyc6722092012-10-14 00:19:31 +000029115 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029116 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029117 fi
cristy3ed852e2009-09-05 21:47:34 +000029118fi
29119
cristy73bd4a52010-10-05 11:24:23 +000029120 if test "$have_fontconfig" = 'yes'; then
29121 FONTCONFIG_DELEGATE_TRUE=
29122 FONTCONFIG_DELEGATE_FALSE='#'
29123else
29124 FONTCONFIG_DELEGATE_TRUE='#'
29125 FONTCONFIG_DELEGATE_FALSE=
29126fi
29127
cristy3ed852e2009-09-05 21:47:34 +000029128
29129
29130
29131
29132#
cristy03f187e2013-01-24 00:22:19 +000029133# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029134#
29135
29136# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029137if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029138 withval=$with_freetype; with_freetype=$withval
29139else
29140 with_freetype='yes'
29141fi
29142
29143
cristy3ed852e2009-09-05 21:47:34 +000029144if test "$with_freetype" != 'yes'; then
29145 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29146fi
29147
cristy81beccd2011-10-03 18:17:24 +000029148have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029149FREETYPE_CFLAGS=""
29150FREETYPE_LIBS=""
29151FREETYPE_PKG=""
29152if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29154$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029155
29156pkg_failed=no
29157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29158$as_echo_n "checking for FREETYPE... " >&6; }
29159
29160if test -n "$FREETYPE_CFLAGS"; then
29161 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29162 elif test -n "$PKG_CONFIG"; then
29163 if test -n "$PKG_CONFIG" && \
29164 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29165 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29166 ac_status=$?
29167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29168 test $ac_status = 0; }; then
29169 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29170else
29171 pkg_failed=yes
29172fi
29173 else
29174 pkg_failed=untried
29175fi
29176if test -n "$FREETYPE_LIBS"; then
29177 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29178 elif test -n "$PKG_CONFIG"; then
29179 if test -n "$PKG_CONFIG" && \
29180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29181 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29182 ac_status=$?
29183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29184 test $ac_status = 0; }; then
29185 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29186else
29187 pkg_failed=yes
29188fi
29189 else
29190 pkg_failed=untried
29191fi
29192
29193
29194
29195if test $pkg_failed = yes; then
29196
29197if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29198 _pkg_short_errors_supported=yes
29199else
29200 _pkg_short_errors_supported=no
29201fi
29202 if test $_pkg_short_errors_supported = yes; then
29203 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29204 else
29205 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29206 fi
29207 # Put the nasty error message in config.log where it belongs
29208 echo "$FREETYPE_PKG_ERRORS" >&5
29209
29210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29211$as_echo "no" >&6; }
29212 have_freetype=no
29213elif test $pkg_failed = untried; then
29214 have_freetype=no
29215else
29216 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29217 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29219$as_echo "yes" >&6; }
29220 have_freetype=yes
29221fi
cristyad38abe2012-12-23 23:03:21 +000029222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29223$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029224fi
29225
cristy03f187e2013-01-24 00:22:19 +000029226if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029227
cristy8b350f62009-11-15 23:12:43 +000029228$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029229
cristy03f187e2013-01-24 00:22:19 +000029230 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029231fi
cristy03f187e2013-01-24 00:22:19 +000029232
cristy73bd4a52010-10-05 11:24:23 +000029233 if test "$have_freetype" = 'yes'; then
29234 FREETYPE_DELEGATE_TRUE=
29235 FREETYPE_DELEGATE_FALSE='#'
29236else
29237 FREETYPE_DELEGATE_TRUE='#'
29238 FREETYPE_DELEGATE_FALSE=
29239fi
29240
cristy3ed852e2009-09-05 21:47:34 +000029241
29242
29243
cristy03f187e2013-01-24 00:22:19 +000029244
cristy3ed852e2009-09-05 21:47:34 +000029245#
29246# Check for Ghostscript library or framework.
29247#
29248# Test for iapi.h & test for gsapi_new_instance in -lgs
29249# or -framework Ghostscript
29250
29251
29252# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029253if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029254 withval=$with_gslib; with_gslib=$withval
29255else
29256 with_gslib='no'
29257fi
29258
29259
cristyb7931f12009-09-25 10:22:21 +000029260gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029261if test "$with_gslib" != 'yes'; then
29262 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29263fi
29264
29265have_gslib='no'
29266GS_LIBS=''
29267if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29269$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029271$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29273$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029274 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029275 failed=0
29276 passed=0
cristy8b350f62009-11-15 23:12:43 +000029277 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 +000029278if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029279 passed=`expr $passed + 1`
29280else
29281 failed=`expr $failed + 1`
29282fi
29283
29284
cristy8b350f62009-11-15 23:12:43 +000029285 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 +000029286if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029287 passed=`expr $passed + 1`
29288else
29289 failed=`expr $failed + 1`
29290fi
29291
29292
cristy73bd4a52010-10-05 11:24:23 +000029293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29294$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029295if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029296 $as_echo_n "(cached) " >&6
29297else
29298 ac_check_framework_save_LIBS=$LIBS
29299LIBS="-framework Ghostscript $LIBS"
29300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29301/* end confdefs.h. */
29302
29303/* Override any GCC internal prototype to avoid an error.
29304 Use char because int might match the return type of a GCC
29305 builtin and then its argument prototype would still apply. */
29306#ifdef __cplusplus
29307extern "C"
29308#endif
29309char gsapi_new_instance ();
29310int
29311main ()
29312{
29313return gsapi_new_instance ();
29314 ;
29315 return 0;
29316}
29317_ACEOF
29318if ac_fn_c_try_link "$LINENO"; then :
29319 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29320else
29321 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29322fi
29323rm -f core conftest.err conftest.$ac_objext \
29324 conftest$ac_exeext conftest.$ac_ext
29325LIBS=$ac_check_framework_save_LIBS
29326fi
29327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29328$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29329if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29330 framework=`expr $framework + 1`
29331else
29332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029333$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029334if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029335 $as_echo_n "(cached) " >&6
29336else
29337 ac_check_lib_save_LIBS=$LIBS
29338LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029340/* end confdefs.h. */
29341
29342/* Override any GCC internal prototype to avoid an error.
29343 Use char because int might match the return type of a GCC
29344 builtin and then its argument prototype would still apply. */
29345#ifdef __cplusplus
29346extern "C"
29347#endif
29348char gsapi_new_instance ();
29349int
29350main ()
29351{
29352return gsapi_new_instance ();
29353 ;
29354 return 0;
29355}
29356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029357if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029358 ac_cv_lib_gs_gsapi_new_instance=yes
29359else
cristy8b350f62009-11-15 23:12:43 +000029360 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029361fi
cristy8b350f62009-11-15 23:12:43 +000029362rm -f core conftest.err conftest.$ac_objext \
29363 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029364LIBS=$ac_check_lib_save_LIBS
29365fi
cristy8b350f62009-11-15 23:12:43 +000029366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029367$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029368if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029369 passed=`expr $passed + 1`
29370else
29371 failed=`expr $failed + 1`
29372fi
cristy73bd4a52010-10-05 11:24:23 +000029373
29374fi
cristy8b350f62009-11-15 23:12:43 +000029375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029376$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29377 if test $passed -gt 0; then
29378 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29380$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029381 have_gslib='no (failed tests)'
29382 else
29383 if test $framework -gt 0; then
29384 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029385 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29387$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029388 else
cristyad38abe2012-12-23 23:03:21 +000029389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29390$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029391 GS_LIBS='-lgs'
29392 fi
29393 LIBS="$GS_LIBS $LIBS"
29394
cristy8b350f62009-11-15 23:12:43 +000029395$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029396
29397 have_gslib='yes'
29398 fi
29399 else
cristyad38abe2012-12-23 23:03:21 +000029400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29401$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029402 fi
29403fi
cristy73bd4a52010-10-05 11:24:23 +000029404 if test "$have_gslib" = 'yes'; then
29405 GS_DELEGATE_TRUE=
29406 GS_DELEGATE_FALSE='#'
29407else
29408 GS_DELEGATE_TRUE='#'
29409 GS_DELEGATE_FALSE=
29410fi
29411
cristy3ed852e2009-09-05 21:47:34 +000029412
29413
29414# Set default font search path
29415
29416# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029417if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029418 withval=$with_fontpath; with_fontpath=$withval
29419else
29420 with_fontpath=''
29421fi
29422
29423
29424if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29425 with_fontpath=''
29426else
29427
29428cat >>confdefs.h <<_ACEOF
29429#define MAGICK_FONT_PATH "$with_fontpath"
29430_ACEOF
29431
29432fi
29433if test "$with_fontpath=" != ''; then
29434 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29435fi
29436
29437# Set Ghostscript font directory
29438
29439# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029440if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029441 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29442else
29443 with_gs_font_dir='default'
29444fi
29445
29446
29447if test "$with_gs_font_dir" != 'default'; then
29448 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29449fi
29450
29451
29452#
29453# Check for GVC delegate library.
29454#
29455
29456# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029457if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029458 withval=$with_gvc; with_gvc=$withval
29459else
cristy1b70dc82012-07-01 23:15:05 +000029460 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029461fi
29462
29463
29464if test "$with_gvc" != 'yes'; then
29465 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29466fi
29467
29468GVC_PKG=""
29469if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29471$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029472
29473pkg_failed=no
29474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29475$as_echo_n "checking for GVC... " >&6; }
29476
29477if test -n "$GVC_CFLAGS"; then
29478 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29479 elif test -n "$PKG_CONFIG"; then
29480 if test -n "$PKG_CONFIG" && \
29481 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29482 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29483 ac_status=$?
29484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29485 test $ac_status = 0; }; then
29486 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29487else
29488 pkg_failed=yes
29489fi
29490 else
29491 pkg_failed=untried
29492fi
29493if test -n "$GVC_LIBS"; then
29494 pkg_cv_GVC_LIBS="$GVC_LIBS"
29495 elif test -n "$PKG_CONFIG"; then
29496 if test -n "$PKG_CONFIG" && \
29497 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29498 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29499 ac_status=$?
29500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29501 test $ac_status = 0; }; then
29502 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29503else
29504 pkg_failed=yes
29505fi
29506 else
29507 pkg_failed=untried
29508fi
29509
29510
29511
29512if test $pkg_failed = yes; then
29513
29514if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29515 _pkg_short_errors_supported=yes
29516else
29517 _pkg_short_errors_supported=no
29518fi
29519 if test $_pkg_short_errors_supported = yes; then
29520 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29521 else
29522 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29523 fi
29524 # Put the nasty error message in config.log where it belongs
29525 echo "$GVC_PKG_ERRORS" >&5
29526
29527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29528$as_echo "no" >&6; }
29529 have_gvc=no
29530elif test $pkg_failed = untried; then
29531 have_gvc=no
29532else
29533 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29534 GVC_LIBS=$pkg_cv_GVC_LIBS
29535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29536$as_echo "yes" >&6; }
29537 have_gvc=yes
29538fi
cristyad38abe2012-12-23 23:03:21 +000029539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29540$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029541fi
29542
29543if test "$have_gvc" = 'yes'; then
29544
cristy8b350f62009-11-15 23:12:43 +000029545$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029546
cristyc6722092012-10-14 00:19:31 +000029547 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029548 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29549 fi
29550fi
29551
cristy73bd4a52010-10-05 11:24:23 +000029552 if test "$have_gvc" = 'yes'; then
29553 GVC_DELEGATE_TRUE=
29554 GVC_DELEGATE_FALSE='#'
29555else
29556 GVC_DELEGATE_TRUE='#'
29557 GVC_DELEGATE_FALSE=
29558fi
29559
cristy3ed852e2009-09-05 21:47:34 +000029560
29561
29562
29563
29564#
29565# Check for JBIG delegate library.
29566#
29567
29568
29569# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029570if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029571 withval=$with_jbig; with_jbig=$withval
29572else
29573 with_jbig='yes'
29574fi
29575
29576
29577have_jbig='no'
29578JBIG_LIBS=''
29579if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29581$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029583$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29585$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029586 failed=0
29587 passed=0
cristy8b350f62009-11-15 23:12:43 +000029588 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029589if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029590 passed=`expr $passed + 1`
29591else
29592 failed=`expr $failed + 1`
29593fi
29594
29595
cristy8b350f62009-11-15 23:12:43 +000029596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029597$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029598if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029599 $as_echo_n "(cached) " >&6
29600else
29601 ac_check_lib_save_LIBS=$LIBS
29602LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029604/* end confdefs.h. */
29605
29606/* Override any GCC internal prototype to avoid an error.
29607 Use char because int might match the return type of a GCC
29608 builtin and then its argument prototype would still apply. */
29609#ifdef __cplusplus
29610extern "C"
29611#endif
29612char jbg_dec_init ();
29613int
29614main ()
29615{
29616return jbg_dec_init ();
29617 ;
29618 return 0;
29619}
29620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029621if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029622 ac_cv_lib_jbig_jbg_dec_init=yes
29623else
cristy8b350f62009-11-15 23:12:43 +000029624 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029625fi
cristy8b350f62009-11-15 23:12:43 +000029626rm -f core conftest.err conftest.$ac_objext \
29627 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029628LIBS=$ac_check_lib_save_LIBS
29629fi
cristy8b350f62009-11-15 23:12:43 +000029630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029631$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029632if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029633 passed=`expr $passed + 1`
29634else
29635 failed=`expr $failed + 1`
29636fi
29637
cristy8b350f62009-11-15 23:12:43 +000029638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029639$as_echo_n "checking if JBIG package is complete... " >&6; }
29640 if test $passed -gt 0; then
29641 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29643$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029644 have_jbig='no (failed tests)'
29645 else
29646 JBIG_LIBS='-ljbig'
29647 LIBS="$JBIG_LIBS $LIBS"
29648
cristy8b350f62009-11-15 23:12:43 +000029649$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029650
cristyad38abe2012-12-23 23:03:21 +000029651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29652$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029653 have_jbig='yes'
29654 fi
29655 else
cristyad38abe2012-12-23 23:03:21 +000029656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29657$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029658 fi
29659fi
cristy73bd4a52010-10-05 11:24:23 +000029660 if test "$have_jbig" = 'yes'; then
29661 JBIG_DELEGATE_TRUE=
29662 JBIG_DELEGATE_FALSE='#'
29663else
29664 JBIG_DELEGATE_TRUE='#'
29665 JBIG_DELEGATE_FALSE=
29666fi
29667
cristy3ed852e2009-09-05 21:47:34 +000029668
29669
29670
29671#
29672# Check for JPEG delegate library.
29673#
29674
29675# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029676if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029677 withval=$with_jpeg; with_jpeg=$withval
29678else
29679 with_jpeg='yes'
29680fi
29681
29682
29683if test "$with_jpeg" != 'yes'; then
29684 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29685fi
29686
29687have_jpeg='no'
29688JPEG_LIBS=''
29689if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29691$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029693$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29695$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029696 failed=0
29697 passed=0
cristy8b350f62009-11-15 23:12:43 +000029698 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029699if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029700 passed=`expr $passed + 1`
29701else
29702 failed=`expr $failed + 1`
29703fi
29704
29705
cristy8b350f62009-11-15 23:12:43 +000029706 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029707if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029708 passed=`expr $passed + 1`
29709else
29710 failed=`expr $failed + 1`
29711fi
29712
29713
cristy8b350f62009-11-15 23:12:43 +000029714 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029715if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029716 passed=`expr $passed + 1`
29717else
29718 failed=`expr $failed + 1`
29719fi
29720
29721
cristy8b350f62009-11-15 23:12:43 +000029722 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029723if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029724 passed=`expr $passed + 1`
29725else
29726 failed=`expr $failed + 1`
29727fi
29728
29729
cristy8b350f62009-11-15 23:12:43 +000029730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029731$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029732if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029733 $as_echo_n "(cached) " >&6
29734else
29735 ac_check_lib_save_LIBS=$LIBS
29736LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029738/* end confdefs.h. */
29739
29740/* Override any GCC internal prototype to avoid an error.
29741 Use char because int might match the return type of a GCC
29742 builtin and then its argument prototype would still apply. */
29743#ifdef __cplusplus
29744extern "C"
29745#endif
29746char jpeg_read_header ();
29747int
29748main ()
29749{
29750return jpeg_read_header ();
29751 ;
29752 return 0;
29753}
29754_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029755if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029756 ac_cv_lib_jpeg_jpeg_read_header=yes
29757else
cristy8b350f62009-11-15 23:12:43 +000029758 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029759fi
cristy8b350f62009-11-15 23:12:43 +000029760rm -f core conftest.err conftest.$ac_objext \
29761 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029762LIBS=$ac_check_lib_save_LIBS
29763fi
cristy8b350f62009-11-15 23:12:43 +000029764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029765$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029766if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029767 passed=`expr $passed + 1`
29768else
29769 failed=`expr $failed + 1`
29770fi
29771
29772
29773# Test for compatible JPEG library
29774if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029776$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029777if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029778 $as_echo_n "(cached) " >&6
29779else
cristy8b350f62009-11-15 23:12:43 +000029780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029781/* end confdefs.h. */
29782#include <stdio.h>
29783#include <stdlib.h>
29784#include <jpeglib.h>
29785
29786int
29787main ()
29788{
29789
29790#if JPEG_LIB_VERSION < 62
29791#error IJG JPEG library must be version 6b or newer!
29792#endif
29793return 0;
29794
29795 ;
29796 return 0;
29797}
29798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029799if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029800 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29801else
cristy8b350f62009-11-15 23:12:43 +000029802 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029803fi
cristy3ed852e2009-09-05 21:47:34 +000029804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29805fi
cristy8b350f62009-11-15 23:12:43 +000029806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029807$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29808fi
cristy8b350f62009-11-15 23:12:43 +000029809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029810$as_echo_n "checking if JPEG package is complete... " >&6; }
29811 if test $passed -gt 0; then
29812 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29814$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029815 have_jpeg='no (failed tests)'
29816 else
29817 JPEG_LIBS='-ljpeg'
29818 LIBS="$JPEG_LIBS $LIBS"
29819
cristy8b350f62009-11-15 23:12:43 +000029820$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029821
cristyad38abe2012-12-23 23:03:21 +000029822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29823$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029824 have_jpeg='yes'
29825 fi
29826 else
cristyad38abe2012-12-23 23:03:21 +000029827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29828$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029829 fi
29830fi
cristy73bd4a52010-10-05 11:24:23 +000029831 if test "$have_jpeg" = 'yes'; then
29832 JPEG_DELEGATE_TRUE=
29833 JPEG_DELEGATE_FALSE='#'
29834else
29835 JPEG_DELEGATE_TRUE='#'
29836 JPEG_DELEGATE_FALSE=
29837fi
29838
cristy3ed852e2009-09-05 21:47:34 +000029839
29840
29841
29842#
29843# Check for JPEG Version 2 delegate library.
29844#
29845
29846# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029847if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029848 withval=$with_jp2; with_jp2=$withval
29849else
29850 with_jp2='yes'
29851fi
29852
29853
29854if test "$with_jp2" != 'yes'; then
29855 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29856fi
29857
29858have_jp2='no'
29859JP2_LIBS=''
29860if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29862$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029864$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29866$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029867 failed=0
29868 passed=0
cristy8b350f62009-11-15 23:12:43 +000029869 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 +000029870if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029871 passed=`expr $passed + 1`
29872else
29873 failed=`expr $failed + 1`
29874fi
29875
29876
cristy8b350f62009-11-15 23:12:43 +000029877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029878$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029879if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029880 $as_echo_n "(cached) " >&6
29881else
29882 ac_check_lib_save_LIBS=$LIBS
29883LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029885/* end confdefs.h. */
29886
29887/* Override any GCC internal prototype to avoid an error.
29888 Use char because int might match the return type of a GCC
29889 builtin and then its argument prototype would still apply. */
29890#ifdef __cplusplus
29891extern "C"
29892#endif
29893char jas_stream_fopen ();
29894int
29895main ()
29896{
29897return jas_stream_fopen ();
29898 ;
29899 return 0;
29900}
29901_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029902if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029903 ac_cv_lib_jasper_jas_stream_fopen=yes
29904else
cristy8b350f62009-11-15 23:12:43 +000029905 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029906fi
cristy8b350f62009-11-15 23:12:43 +000029907rm -f core conftest.err conftest.$ac_objext \
29908 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029909LIBS=$ac_check_lib_save_LIBS
29910fi
cristy8b350f62009-11-15 23:12:43 +000029911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029912$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029913if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029914 passed=`expr $passed + 1`
29915else
29916 failed=`expr $failed + 1`
29917fi
29918
cristy8b350f62009-11-15 23:12:43 +000029919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029920$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29921 if test $passed -gt 0; then
29922 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29924$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029925 have_jp2='no (failed tests)'
29926 else
29927 JP2_LIBS='-ljasper'
29928 LIBS="$JP2_LIBS $LIBS"
29929
cristy8b350f62009-11-15 23:12:43 +000029930$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029931
cristyad38abe2012-12-23 23:03:21 +000029932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29933$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029934 have_jp2='yes'
29935 fi
29936 else
cristyad38abe2012-12-23 23:03:21 +000029937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29938$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029939 fi
29940fi
cristy73bd4a52010-10-05 11:24:23 +000029941 if test "$have_jp2" = 'yes'; then
29942 JP2_DELEGATE_TRUE=
29943 JP2_DELEGATE_FALSE='#'
29944else
29945 JP2_DELEGATE_TRUE='#'
29946 JP2_DELEGATE_FALSE=
29947fi
29948
cristy3ed852e2009-09-05 21:47:34 +000029949
29950
29951
29952#
29953# Check for LCMS delegate library.
29954#
cristy71203402010-06-18 13:12:03 +000029955# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029956
29957# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029958if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029959 withval=$with_lcms; with_lcms=$withval
29960else
29961 with_lcms='yes'
29962fi
29963
cristy71203402010-06-18 13:12:03 +000029964if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029965 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29966fi
29967
cristy71203402010-06-18 13:12:03 +000029968# Disable LCMS2.
29969
29970# Check whether --with-lcms2 was given.
29971if test "${with_lcms2+set}" = set; then :
29972 withval=$with_lcms2; with_lcms2=$withval
29973else
29974 with_lcms2='yes'
29975fi
29976
29977if test "$with_lcms2" != 'yes' ; then
29978 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29979fi
29980
29981have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029982LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029983if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29985$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29987$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29989$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029990 failed=0
29991 passed=0
29992 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029993
29994 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029995 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029996if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029997 have_lcms_header='yes'
29998fi
29999
30000
30001 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030002
30003$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30004
cristy71203402010-06-18 13:12:03 +000030005 passed=`expr $passed + 1`
30006 fi
30007
30008 # Check for <lcms2/lcms2.h)
30009 if test "$have_lcms_header" != 'yes'; then
30010 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 +000030011if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030012 have_lcms_header='yes'
30013fi
30014
30015
cristy71203402010-06-18 13:12:03 +000030016 if test "$have_lcms_header" = 'yes'; then
30017 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030018
cristy71203402010-06-18 13:12:03 +000030019$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030020
cristy71203402010-06-18 13:12:03 +000030021 fi
cristyd09bcf92010-03-25 03:04:45 +000030022 fi
cristy71203402010-06-18 13:12:03 +000030023
30024 # Failed to find lcms header?
30025 if test "$have_lcms_header" != 'yes'; then
30026 failed=`expr $failed + 1`
30027 fi
30028
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30030$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030031if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030032 $as_echo_n "(cached) " >&6
30033else
30034 ac_check_lib_save_LIBS=$LIBS
30035LIBS="-llcms2 $LIBS"
30036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30037/* end confdefs.h. */
30038
30039/* Override any GCC internal prototype to avoid an error.
30040 Use char because int might match the return type of a GCC
30041 builtin and then its argument prototype would still apply. */
30042#ifdef __cplusplus
30043extern "C"
30044#endif
cristy71203402010-06-18 13:12:03 +000030045char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030046int
30047main ()
30048{
cristy71203402010-06-18 13:12:03 +000030049return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030050 ;
30051 return 0;
30052}
30053_ACEOF
30054if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030055 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030056else
cristy71203402010-06-18 13:12:03 +000030057 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030058fi
30059rm -f core conftest.err conftest.$ac_objext \
30060 conftest$ac_exeext conftest.$ac_ext
30061LIBS=$ac_check_lib_save_LIBS
30062fi
cristy71203402010-06-18 13:12:03 +000030063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30064$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030065if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030066 passed=`expr $passed + 1`
30067else
30068 failed=`expr $failed + 1`
30069fi
30070
cristy71203402010-06-18 13:12:03 +000030071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30072$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030073 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030074 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30076$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030077 have_lcms2='no (failed tests)'
30078 else
30079 LCMS_LIBS='-llcms2'
30080 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30082$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030083 have_lcms2='yes'
30084 fi
cristyd09bcf92010-03-25 03:04:45 +000030085 else
cristyad38abe2012-12-23 23:03:21 +000030086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30087$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030088 fi
30089fi
30090
cristy71203402010-06-18 13:12:03 +000030091#
30092# Check for LCMS v1 (1.11 or later)
30093#
30094if test $have_lcms2 = 'yes'; then
30095 with_lcms='no'
30096fi
30097
30098have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030099if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30101$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30103$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30105$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030106 failed=0
30107 passed=0
30108 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030109
30110 # Check for <lcms.h>
30111 if test "$have_lcms_header" != 'yes'; then
30112 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030113if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030114 have_lcms_header='yes'
30115fi
30116
30117
cristy71203402010-06-18 13:12:03 +000030118 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030119 passed=`expr $passed + 1`
30120
cristy8b350f62009-11-15 23:12:43 +000030121$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030122
cristy71203402010-06-18 13:12:03 +000030123 fi
30124 fi
30125
30126 # Check for <lcms/lcms.h>
30127 if test "$have_lcms_header" != 'yes'; then
30128 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 +000030129if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030130 have_lcms_header='yes'
30131fi
30132
30133
cristy71203402010-06-18 13:12:03 +000030134 if test "$have_lcms_header" = 'yes'; then
30135 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030136
cristy8b350f62009-11-15 23:12:43 +000030137$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030138
cristy71203402010-06-18 13:12:03 +000030139 fi
cristy3ed852e2009-09-05 21:47:34 +000030140 fi
cristy71203402010-06-18 13:12:03 +000030141
30142 # Failed to find lcms header?
30143 if test "$have_lcms_header" != 'yes'; then
30144 failed=`expr $failed + 1`
30145 fi
30146
30147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30148$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030149if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030150 $as_echo_n "(cached) " >&6
30151else
30152 ac_check_lib_save_LIBS=$LIBS
30153LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030155/* end confdefs.h. */
30156
30157/* Override any GCC internal prototype to avoid an error.
30158 Use char because int might match the return type of a GCC
30159 builtin and then its argument prototype would still apply. */
30160#ifdef __cplusplus
30161extern "C"
30162#endif
cristy71203402010-06-18 13:12:03 +000030163char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030164int
30165main ()
30166{
cristy71203402010-06-18 13:12:03 +000030167return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030168 ;
30169 return 0;
30170}
30171_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030172if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030173 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030174else
cristy71203402010-06-18 13:12:03 +000030175 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030176fi
cristy8b350f62009-11-15 23:12:43 +000030177rm -f core conftest.err conftest.$ac_objext \
30178 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030179LIBS=$ac_check_lib_save_LIBS
30180fi
cristy71203402010-06-18 13:12:03 +000030181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30182$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030183if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030184 passed=`expr $passed + 1`
30185else
30186 failed=`expr $failed + 1`
30187fi
30188
cristy8b350f62009-11-15 23:12:43 +000030189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030190$as_echo_n "checking if LCMS package is complete... " >&6; }
30191 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030192 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30194$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030195 have_lcms='no (failed tests)'
30196 else
30197 LCMS_LIBS='-llcms'
30198 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30200$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030201 have_lcms='yes'
30202 fi
cristy3ed852e2009-09-05 21:47:34 +000030203 else
cristyad38abe2012-12-23 23:03:21 +000030204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30205$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030206 fi
30207fi
cristy71203402010-06-18 13:12:03 +000030208
cristy73bd4a52010-10-05 11:24:23 +000030209 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30210 LCMS_DELEGATE_TRUE=
30211 LCMS_DELEGATE_FALSE='#'
30212else
30213 LCMS_DELEGATE_TRUE='#'
30214 LCMS_DELEGATE_FALSE=
30215fi
30216
cristy71203402010-06-18 13:12:03 +000030217if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30218
30219$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30220
30221fi
30222
cristy3ed852e2009-09-05 21:47:34 +000030223
30224
30225
30226#
30227# Check for the LQR (Liquid Rescale) delegate library.
30228#
30229
30230# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030231if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030232 withval=$with_lqr; with_lqr=$withval
30233else
30234 with_lqr='yes'
30235fi
30236
30237
30238if test "$with_lqr" != 'yes'; then
30239 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30240fi
30241
30242have_lqr='no'
30243LQR_CFLAGS=""
30244LQR_LIBS=""
30245LQR_PKG=""
30246if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30248$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030249
30250pkg_failed=no
30251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30252$as_echo_n "checking for LQR... " >&6; }
30253
30254if test -n "$LQR_CFLAGS"; then
30255 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30256 elif test -n "$PKG_CONFIG"; then
30257 if test -n "$PKG_CONFIG" && \
30258 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30259 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30260 ac_status=$?
30261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30262 test $ac_status = 0; }; then
30263 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30264else
30265 pkg_failed=yes
30266fi
30267 else
30268 pkg_failed=untried
30269fi
30270if test -n "$LQR_LIBS"; then
30271 pkg_cv_LQR_LIBS="$LQR_LIBS"
30272 elif test -n "$PKG_CONFIG"; then
30273 if test -n "$PKG_CONFIG" && \
30274 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30275 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30276 ac_status=$?
30277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30278 test $ac_status = 0; }; then
30279 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30280else
30281 pkg_failed=yes
30282fi
30283 else
30284 pkg_failed=untried
30285fi
30286
30287
30288
30289if test $pkg_failed = yes; then
30290
30291if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30292 _pkg_short_errors_supported=yes
30293else
30294 _pkg_short_errors_supported=no
30295fi
30296 if test $_pkg_short_errors_supported = yes; then
30297 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30298 else
30299 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30300 fi
30301 # Put the nasty error message in config.log where it belongs
30302 echo "$LQR_PKG_ERRORS" >&5
30303
30304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30305$as_echo "no" >&6; }
30306 have_lqr=no
30307elif test $pkg_failed = untried; then
30308 have_lqr=no
30309else
30310 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30311 LQR_LIBS=$pkg_cv_LQR_LIBS
30312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30313$as_echo "yes" >&6; }
30314 have_lqr=yes
30315fi
cristyad38abe2012-12-23 23:03:21 +000030316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30317$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030318fi
30319
30320if test "$have_lqr" = 'yes'; then
30321
cristy8b350f62009-11-15 23:12:43 +000030322$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030323
30324 CFLAGS="$LQR_CFLAGS $CFLAGS"
30325fi
30326
cristy73bd4a52010-10-05 11:24:23 +000030327 if test "$have_lqr" = 'yes'; then
30328 LQR_DELEGATE_TRUE=
30329 LQR_DELEGATE_FALSE='#'
30330else
30331 LQR_DELEGATE_TRUE='#'
30332 LQR_DELEGATE_FALSE=
30333fi
30334
cristy3ed852e2009-09-05 21:47:34 +000030335
30336
30337
30338
cristy81beccd2011-10-03 18:17:24 +000030339# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030340
30341# Check whether --with-lzma was given.
30342if test "${with_lzma+set}" = set; then :
30343 withval=$with_lzma; with_lzma=$withval
30344else
30345 with_lzma='yes'
30346fi
30347
cristy81beccd2011-10-03 18:17:24 +000030348if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030349 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30350fi
30351
cristyb94e5002011-11-14 13:20:10 +000030352LZMA_PKG=""
30353if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30355$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030356
30357pkg_failed=no
30358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030359$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030360
30361if test -n "$LZMA_CFLAGS"; then
30362 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30363 elif test -n "$PKG_CONFIG"; then
30364 if test -n "$PKG_CONFIG" && \
30365 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30366 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30367 ac_status=$?
30368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30369 test $ac_status = 0; }; then
30370 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30371else
30372 pkg_failed=yes
30373fi
30374 else
30375 pkg_failed=untried
30376fi
30377if test -n "$LZMA_LIBS"; then
30378 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30379 elif test -n "$PKG_CONFIG"; then
30380 if test -n "$PKG_CONFIG" && \
30381 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30382 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30383 ac_status=$?
30384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30385 test $ac_status = 0; }; then
30386 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30387else
30388 pkg_failed=yes
30389fi
30390 else
30391 pkg_failed=untried
30392fi
30393
30394
30395
30396if test $pkg_failed = yes; then
30397
30398if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30399 _pkg_short_errors_supported=yes
30400else
30401 _pkg_short_errors_supported=no
30402fi
30403 if test $_pkg_short_errors_supported = yes; then
30404 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30405 else
30406 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30407 fi
30408 # Put the nasty error message in config.log where it belongs
30409 echo "$LZMA_PKG_ERRORS" >&5
30410
30411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30412$as_echo "no" >&6; }
30413 have_lzma=no
30414elif test $pkg_failed = untried; then
30415 have_lzma=no
30416else
30417 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30418 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30420$as_echo "yes" >&6; }
30421 have_lzma=yes
30422fi
cristyad38abe2012-12-23 23:03:21 +000030423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30424$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030425fi
30426
cristyb94e5002011-11-14 13:20:10 +000030427if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030428
30429$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30430
cristyc6722092012-10-14 00:19:31 +000030431 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030432 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030433 fi
cristyfbb0ef02010-12-19 02:32:11 +000030434fi
cristyb94e5002011-11-14 13:20:10 +000030435
cristyfbb0ef02010-12-19 02:32:11 +000030436 if test "$have_lzma" = 'yes'; then
30437 LZMA_DELEGATE_TRUE=
30438 LZMA_DELEGATE_FALSE='#'
30439else
30440 LZMA_DELEGATE_TRUE='#'
30441 LZMA_DELEGATE_FALSE=
30442fi
30443
30444
30445
30446
cristyb94e5002011-11-14 13:20:10 +000030447
cristy3ed852e2009-09-05 21:47:34 +000030448#
30449# Check for the OpenEXR delegate library.
30450#
30451
30452# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030453if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030454 withval=$with_openexr; with_openexr=$withval
30455else
30456 with_openexr='yes'
30457fi
30458
30459
30460if test "$with_openexr" != 'yes'; then
30461 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30462fi
30463
30464have_openexr='no'
30465OPENEXR_CFLAGS=""
30466OPENEXR_LIBS=""
30467OPENEXR_PKG=""
30468if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30470$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030471
30472pkg_failed=no
30473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30474$as_echo_n "checking for OPENEXR... " >&6; }
30475
30476if test -n "$OPENEXR_CFLAGS"; then
30477 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30478 elif test -n "$PKG_CONFIG"; then
30479 if test -n "$PKG_CONFIG" && \
30480 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30481 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30482 ac_status=$?
30483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30484 test $ac_status = 0; }; then
30485 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30486else
30487 pkg_failed=yes
30488fi
30489 else
30490 pkg_failed=untried
30491fi
30492if test -n "$OPENEXR_LIBS"; then
30493 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30494 elif test -n "$PKG_CONFIG"; then
30495 if test -n "$PKG_CONFIG" && \
30496 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30497 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30498 ac_status=$?
30499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30500 test $ac_status = 0; }; then
30501 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30502else
30503 pkg_failed=yes
30504fi
30505 else
30506 pkg_failed=untried
30507fi
30508
30509
30510
30511if test $pkg_failed = yes; then
30512
30513if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30514 _pkg_short_errors_supported=yes
30515else
30516 _pkg_short_errors_supported=no
30517fi
30518 if test $_pkg_short_errors_supported = yes; then
30519 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30520 else
30521 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30522 fi
30523 # Put the nasty error message in config.log where it belongs
30524 echo "$OPENEXR_PKG_ERRORS" >&5
30525
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30527$as_echo "no" >&6; }
30528 have_openexr=no
30529elif test $pkg_failed = untried; then
30530 have_openexr=no
30531else
30532 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30533 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30535$as_echo "yes" >&6; }
30536 have_openexr=yes
30537fi
cristyad38abe2012-12-23 23:03:21 +000030538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30539$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030540fi
30541
30542if test "$have_openexr" = 'yes'; then
30543
cristy8b350f62009-11-15 23:12:43 +000030544$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030545
cristyc6722092012-10-14 00:19:31 +000030546 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030547 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30548 fi
30549fi
30550
cristy73bd4a52010-10-05 11:24:23 +000030551 if test "$have_openexr" = 'yes'; then
30552 OPENEXR_DELEGATE_TRUE=
30553 OPENEXR_DELEGATE_FALSE='#'
30554else
30555 OPENEXR_DELEGATE_TRUE='#'
30556 OPENEXR_DELEGATE_FALSE=
30557fi
30558
cristy3ed852e2009-09-05 21:47:34 +000030559
30560
30561
30562
30563#
cristy41cbe8a2011-10-27 01:35:18 +000030564# Check for PANGO delegate library.
30565#
30566
30567# Check whether --with-pango was given.
30568if test "${with_pango+set}" = set; then :
30569 withval=$with_pango; with_pango=$withval
30570else
cristyfc3d0222012-02-07 15:05:57 +000030571 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030572fi
30573
30574
30575if test "$with_pango" != 'yes'; then
30576 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30577fi
30578
30579have_pango='no'
cristya054b762012-03-26 23:16:00 +000030580have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030581PANGO_CFLAGS=""
30582PANGO_LIBS=""
30583PANGO_PKG=""
30584if test "x$with_pango" = "xyes"; then
30585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30586$as_echo "-------------------------------------------------------------" >&6; }
30587
30588pkg_failed=no
30589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30590$as_echo_n "checking for PANGO... " >&6; }
30591
30592if test -n "$PANGO_CFLAGS"; then
30593 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30594 elif test -n "$PKG_CONFIG"; then
30595 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30597 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030598 ac_status=$?
30599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30600 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030601 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030602else
30603 pkg_failed=yes
30604fi
30605 else
30606 pkg_failed=untried
30607fi
30608if test -n "$PANGO_LIBS"; then
30609 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30610 elif test -n "$PKG_CONFIG"; then
30611 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030612 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30613 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030614 ac_status=$?
30615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30616 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030617 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030618else
30619 pkg_failed=yes
30620fi
30621 else
30622 pkg_failed=untried
30623fi
30624
30625
30626
30627if test $pkg_failed = yes; then
30628
30629if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30630 _pkg_short_errors_supported=yes
30631else
30632 _pkg_short_errors_supported=no
30633fi
30634 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030635 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030636 else
cristya054b762012-03-26 23:16:00 +000030637 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030638 fi
30639 # Put the nasty error message in config.log where it belongs
30640 echo "$PANGO_PKG_ERRORS" >&5
30641
30642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30643$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030644 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030645elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030646 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030647else
30648 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30649 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30651$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030652 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030653fi
30654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30655$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030656
30657pkg_failed=no
30658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30659$as_echo_n "checking for PANGO... " >&6; }
30660
30661if test -n "$PANGO_CFLAGS"; then
30662 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30663 elif test -n "$PKG_CONFIG"; then
30664 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030665 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30666 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030667 ac_status=$?
30668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30669 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030670 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030671else
30672 pkg_failed=yes
30673fi
30674 else
30675 pkg_failed=untried
30676fi
30677if test -n "$PANGO_LIBS"; then
30678 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30679 elif test -n "$PKG_CONFIG"; then
30680 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30682 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030683 ac_status=$?
30684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30685 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030686 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030687else
30688 pkg_failed=yes
30689fi
30690 else
30691 pkg_failed=untried
30692fi
30693
30694
30695
30696if test $pkg_failed = yes; then
30697
30698if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30699 _pkg_short_errors_supported=yes
30700else
30701 _pkg_short_errors_supported=no
30702fi
30703 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030704 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030705 else
cristy2542fc62011-12-06 17:50:25 +000030706 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030707 fi
30708 # Put the nasty error message in config.log where it belongs
30709 echo "$PANGO_PKG_ERRORS" >&5
30710
30711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30712$as_echo "no" >&6; }
30713 have_pango=no
30714elif test $pkg_failed = untried; then
30715 have_pango=no
30716else
30717 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30718 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30720$as_echo "yes" >&6; }
30721 have_pango=yes
30722fi
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30724$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030725fi
30726
30727if test "$have_pango" = 'yes'; then
30728
30729$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30730
cristyc6722092012-10-14 00:19:31 +000030731 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030732 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30733 fi
30734fi
30735
cristya054b762012-03-26 23:16:00 +000030736if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030737
cristya054b762012-03-26 23:16:00 +000030738$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030739
cristyc6722092012-10-14 00:19:31 +000030740 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030741 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030742 fi
30743fi
30744
30745 if test "$have_pango" = 'yes'; then
30746 PANGO_DELEGATE_TRUE=
30747 PANGO_DELEGATE_FALSE='#'
30748else
30749 PANGO_DELEGATE_TRUE='#'
30750 PANGO_DELEGATE_FALSE=
30751fi
30752
cristya054b762012-03-26 23:16:00 +000030753 if test "$have_pangocairo" = 'yes'; then
30754 PANGOCAIRO_DELEGATE_TRUE=
30755 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030756else
cristya054b762012-03-26 23:16:00 +000030757 PANGOCAIRO_DELEGATE_TRUE='#'
30758 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030759fi
30760
30761
30762
30763
30764
30765#
cristy3ed852e2009-09-05 21:47:34 +000030766# Check for PNG delegate library.
30767#
30768
30769# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030770if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030771 withval=$with_png; with_png=$withval
30772else
30773 with_png='yes'
30774fi
30775
30776
30777if test "$with_png" != 'yes'; then
30778 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30779fi
30780
cristy81beccd2011-10-03 18:17:24 +000030781have_png='no'
30782PNG_LIBS=''
30783
30784if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30786$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30788$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30790$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030791 failed=0
30792 passed=0
30793 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30794if test "x$ac_cv_header_png_h" = xyes; then :
30795 passed=`expr $passed + 1`
30796else
30797 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030798fi
30799
cristy81beccd2011-10-03 18:17:24 +000030800
30801
30802 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030803 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030804 if test "$have_png" = 'no' ; then
30805 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030806 pnglib='png'
30807 else
30808 pnglib="png1${var}"
30809 fi
30810
30811# Test for compatible LIBPNG library
30812 failed=0
30813 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030814 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030815 if test "${pnglib}" != 'png' ; then
30816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30817$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30819/* end confdefs.h. */
30820#include <stdio.h>
30821#include <stdlib.h>
30822#include <png.h>
30823
30824int
30825main ()
30826{
30827
30828#if PNG_LIBPNG_VER_MINOR != ${var}
30829#error LIBPNG library must be version 1${var}!
30830Kaboom, Kaboom
30831#endif
30832return 0;
30833
30834 ;
30835 return 0;
30836}
30837_ACEOF
30838if ac_fn_c_try_compile "$LINENO"; then :
30839 ac_cv_libpng_ok='yes'
30840else
30841 ac_cv_libpng_ok='no'
30842fi
30843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30844 if test "$ac_cv_libpng_ok" = 'yes' ; then
30845 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30847$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030848 else
30849 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30851$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030852 fi
30853 else
30854 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30856$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030857 fi
30858 fi
30859
30860 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030861 if test "1${var}" = '17' ; then
30862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30863$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30864if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30865 $as_echo_n "(cached) " >&6
30866else
30867 ac_check_lib_save_LIBS=$LIBS
30868LIBS="-lpng17 $LIBS"
30869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30870/* end confdefs.h. */
30871
30872/* Override any GCC internal prototype to avoid an error.
30873 Use char because int might match the return type of a GCC
30874 builtin and then its argument prototype would still apply. */
30875#ifdef __cplusplus
30876extern "C"
30877#endif
30878char png_get_io_ptr ();
30879int
30880main ()
30881{
30882return png_get_io_ptr ();
30883 ;
30884 return 0;
30885}
30886_ACEOF
30887if ac_fn_c_try_link "$LINENO"; then :
30888 ac_cv_lib_png17_png_get_io_ptr=yes
30889else
30890 ac_cv_lib_png17_png_get_io_ptr=no
30891fi
30892rm -f core conftest.err conftest.$ac_objext \
30893 conftest$ac_exeext conftest.$ac_ext
30894LIBS=$ac_check_lib_save_LIBS
30895fi
30896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30897$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30898if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30899 passed=`expr $passed + 1`
30900else
30901 failed=`expr $failed + 1`
30902fi
30903
30904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30905$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30906if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30907 $as_echo_n "(cached) " >&6
30908else
30909 ac_check_lib_save_LIBS=$LIBS
30910LIBS="-lpng17 $LIBS"
30911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30912/* end confdefs.h. */
30913
30914/* Override any GCC internal prototype to avoid an error.
30915 Use char because int might match the return type of a GCC
30916 builtin and then its argument prototype would still apply. */
30917#ifdef __cplusplus
30918extern "C"
30919#endif
30920char png_longjmp ();
30921int
30922main ()
30923{
30924return png_longjmp ();
30925 ;
30926 return 0;
30927}
30928_ACEOF
30929if ac_fn_c_try_link "$LINENO"; then :
30930 ac_cv_lib_png17_png_longjmp=yes
30931else
30932 ac_cv_lib_png17_png_longjmp=no
30933fi
30934rm -f core conftest.err conftest.$ac_objext \
30935 conftest$ac_exeext conftest.$ac_ext
30936LIBS=$ac_check_lib_save_LIBS
30937fi
30938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30939$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30940if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30941 passed=`expr $passed + 1`
30942else
30943 failed=`expr $failed + 1`
30944fi
30945
30946 fi
30947 if test "1${var}" = '16' ; then
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30949$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30950if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30951 $as_echo_n "(cached) " >&6
30952else
30953 ac_check_lib_save_LIBS=$LIBS
30954LIBS="-lpng16 $LIBS"
30955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30956/* end confdefs.h. */
30957
30958/* Override any GCC internal prototype to avoid an error.
30959 Use char because int might match the return type of a GCC
30960 builtin and then its argument prototype would still apply. */
30961#ifdef __cplusplus
30962extern "C"
30963#endif
30964char png_get_io_ptr ();
30965int
30966main ()
30967{
30968return png_get_io_ptr ();
30969 ;
30970 return 0;
30971}
30972_ACEOF
30973if ac_fn_c_try_link "$LINENO"; then :
30974 ac_cv_lib_png16_png_get_io_ptr=yes
30975else
30976 ac_cv_lib_png16_png_get_io_ptr=no
30977fi
30978rm -f core conftest.err conftest.$ac_objext \
30979 conftest$ac_exeext conftest.$ac_ext
30980LIBS=$ac_check_lib_save_LIBS
30981fi
30982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30983$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30984if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30985 passed=`expr $passed + 1`
30986else
30987 failed=`expr $failed + 1`
30988fi
30989
30990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30991$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30992if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30993 $as_echo_n "(cached) " >&6
30994else
30995 ac_check_lib_save_LIBS=$LIBS
30996LIBS="-lpng16 $LIBS"
30997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30998/* end confdefs.h. */
30999
31000/* Override any GCC internal prototype to avoid an error.
31001 Use char because int might match the return type of a GCC
31002 builtin and then its argument prototype would still apply. */
31003#ifdef __cplusplus
31004extern "C"
31005#endif
31006char png_longjmp ();
31007int
31008main ()
31009{
31010return png_longjmp ();
31011 ;
31012 return 0;
31013}
31014_ACEOF
31015if ac_fn_c_try_link "$LINENO"; then :
31016 ac_cv_lib_png16_png_longjmp=yes
31017else
31018 ac_cv_lib_png16_png_longjmp=no
31019fi
31020rm -f core conftest.err conftest.$ac_objext \
31021 conftest$ac_exeext conftest.$ac_ext
31022LIBS=$ac_check_lib_save_LIBS
31023fi
31024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31025$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31026if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31027 passed=`expr $passed + 1`
31028else
31029 failed=`expr $failed + 1`
31030fi
31031
31032 fi
cristy81beccd2011-10-03 18:17:24 +000031033 if test "1${var}" = '15' ; then
31034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31035$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31036if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31037 $as_echo_n "(cached) " >&6
31038else
31039 ac_check_lib_save_LIBS=$LIBS
31040LIBS="-lpng15 $LIBS"
31041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31042/* end confdefs.h. */
31043
31044/* Override any GCC internal prototype to avoid an error.
31045 Use char because int might match the return type of a GCC
31046 builtin and then its argument prototype would still apply. */
31047#ifdef __cplusplus
31048extern "C"
31049#endif
31050char png_get_io_ptr ();
31051int
31052main ()
31053{
31054return png_get_io_ptr ();
31055 ;
31056 return 0;
31057}
31058_ACEOF
31059if ac_fn_c_try_link "$LINENO"; then :
31060 ac_cv_lib_png15_png_get_io_ptr=yes
31061else
31062 ac_cv_lib_png15_png_get_io_ptr=no
31063fi
31064rm -f core conftest.err conftest.$ac_objext \
31065 conftest$ac_exeext conftest.$ac_ext
31066LIBS=$ac_check_lib_save_LIBS
31067fi
31068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31069$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31070if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31071 passed=`expr $passed + 1`
31072else
31073 failed=`expr $failed + 1`
31074fi
31075
31076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31077$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31078if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31079 $as_echo_n "(cached) " >&6
31080else
31081 ac_check_lib_save_LIBS=$LIBS
31082LIBS="-lpng15 $LIBS"
31083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31084/* end confdefs.h. */
31085
31086/* Override any GCC internal prototype to avoid an error.
31087 Use char because int might match the return type of a GCC
31088 builtin and then its argument prototype would still apply. */
31089#ifdef __cplusplus
31090extern "C"
31091#endif
31092char png_longjmp ();
31093int
31094main ()
31095{
31096return png_longjmp ();
31097 ;
31098 return 0;
31099}
31100_ACEOF
31101if ac_fn_c_try_link "$LINENO"; then :
31102 ac_cv_lib_png15_png_longjmp=yes
31103else
31104 ac_cv_lib_png15_png_longjmp=no
31105fi
31106rm -f core conftest.err conftest.$ac_objext \
31107 conftest$ac_exeext conftest.$ac_ext
31108LIBS=$ac_check_lib_save_LIBS
31109fi
31110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31111$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31112if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31113 passed=`expr $passed + 1`
31114else
31115 failed=`expr $failed + 1`
31116fi
31117
31118 fi
31119 if test "1${var}" = '14' ; then
31120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31121$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31122if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31123 $as_echo_n "(cached) " >&6
31124else
31125 ac_check_lib_save_LIBS=$LIBS
31126LIBS="-lpng14 $LIBS"
31127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31128/* end confdefs.h. */
31129
31130/* Override any GCC internal prototype to avoid an error.
31131 Use char because int might match the return type of a GCC
31132 builtin and then its argument prototype would still apply. */
31133#ifdef __cplusplus
31134extern "C"
31135#endif
31136char png_get_io_ptr ();
31137int
31138main ()
31139{
31140return png_get_io_ptr ();
31141 ;
31142 return 0;
31143}
31144_ACEOF
31145if ac_fn_c_try_link "$LINENO"; then :
31146 ac_cv_lib_png14_png_get_io_ptr=yes
31147else
31148 ac_cv_lib_png14_png_get_io_ptr=no
31149fi
31150rm -f core conftest.err conftest.$ac_objext \
31151 conftest$ac_exeext conftest.$ac_ext
31152LIBS=$ac_check_lib_save_LIBS
31153fi
31154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31155$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31156if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31157 passed=`expr $passed + 1`
31158else
31159 failed=`expr $failed + 1`
31160fi
31161
31162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31163$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31164if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31165 $as_echo_n "(cached) " >&6
31166else
31167 ac_check_lib_save_LIBS=$LIBS
31168LIBS="-lpng14 $LIBS"
31169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31170/* end confdefs.h. */
31171
31172/* Override any GCC internal prototype to avoid an error.
31173 Use char because int might match the return type of a GCC
31174 builtin and then its argument prototype would still apply. */
31175#ifdef __cplusplus
31176extern "C"
31177#endif
31178char png_get_io_state ();
31179int
31180main ()
31181{
31182return png_get_io_state ();
31183 ;
31184 return 0;
31185}
31186_ACEOF
31187if ac_fn_c_try_link "$LINENO"; then :
31188 ac_cv_lib_png14_png_get_io_state=yes
31189else
31190 ac_cv_lib_png14_png_get_io_state=no
31191fi
31192rm -f core conftest.err conftest.$ac_objext \
31193 conftest$ac_exeext conftest.$ac_ext
31194LIBS=$ac_check_lib_save_LIBS
31195fi
31196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31197$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31198if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31199 passed=`expr $passed + 1`
31200else
31201 failed=`expr $failed + 1`
31202fi
31203
31204 fi
31205 if test "1${var}" = '12' ; then
31206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31207$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31208if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31209 $as_echo_n "(cached) " >&6
31210else
31211 ac_check_lib_save_LIBS=$LIBS
31212LIBS="-lpng12 $LIBS"
31213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31214/* end confdefs.h. */
31215
31216/* Override any GCC internal prototype to avoid an error.
31217 Use char because int might match the return type of a GCC
31218 builtin and then its argument prototype would still apply. */
31219#ifdef __cplusplus
31220extern "C"
31221#endif
31222char png_get_io_ptr ();
31223int
31224main ()
31225{
31226return png_get_io_ptr ();
31227 ;
31228 return 0;
31229}
31230_ACEOF
31231if ac_fn_c_try_link "$LINENO"; then :
31232 ac_cv_lib_png12_png_get_io_ptr=yes
31233else
31234 ac_cv_lib_png12_png_get_io_ptr=no
31235fi
31236rm -f core conftest.err conftest.$ac_objext \
31237 conftest$ac_exeext conftest.$ac_ext
31238LIBS=$ac_check_lib_save_LIBS
31239fi
31240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31241$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31242if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31243 passed=`expr $passed + 1`
31244else
31245 failed=`expr $failed + 1`
31246fi
31247
31248 fi
31249 if test "1${var}" = '1' ; then
31250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31251$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31252if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31253 $as_echo_n "(cached) " >&6
31254else
31255 ac_check_lib_save_LIBS=$LIBS
31256LIBS="-lpng $LIBS"
31257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31258/* end confdefs.h. */
31259
31260/* Override any GCC internal prototype to avoid an error.
31261 Use char because int might match the return type of a GCC
31262 builtin and then its argument prototype would still apply. */
31263#ifdef __cplusplus
31264extern "C"
31265#endif
31266char png_get_io_ptr ();
31267int
31268main ()
31269{
31270return png_get_io_ptr ();
31271 ;
31272 return 0;
31273}
31274_ACEOF
31275if ac_fn_c_try_link "$LINENO"; then :
31276 ac_cv_lib_png_png_get_io_ptr=yes
31277else
31278 ac_cv_lib_png_png_get_io_ptr=no
31279fi
31280rm -f core conftest.err conftest.$ac_objext \
31281 conftest$ac_exeext conftest.$ac_ext
31282LIBS=$ac_check_lib_save_LIBS
31283fi
31284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31285$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31286if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31287 passed=`expr $passed + 1`
31288else
31289 failed=`expr $failed + 1`
31290fi
31291
31292 fi
31293 if test $passed -gt 0 -a $failed -le 0 ; then
31294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31295$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31296 if test $passed -gt 0 ; then
31297 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31299$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031300 have_png='no (failed tests)'
31301 else
31302 PNG_LIBS="-l${pnglib}"
31303 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031304
cristy8b350f62009-11-15 23:12:43 +000031305$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031306
cristyad38abe2012-12-23 23:03:21 +000031307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31308$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031309 have_png='yes'
31310 fi
31311 fi
31312 fi
31313 fi
31314 fi
31315 done
31316 fi
cristy3ed852e2009-09-05 21:47:34 +000031317fi
cristy64877302011-08-23 19:10:31 +000031318
cristy73bd4a52010-10-05 11:24:23 +000031319 if test "$have_png" = 'yes'; then
31320 PNG_DELEGATE_TRUE=
31321 PNG_DELEGATE_FALSE='#'
31322else
31323 PNG_DELEGATE_TRUE='#'
31324 PNG_DELEGATE_FALSE=
31325fi
31326
cristy3ed852e2009-09-05 21:47:34 +000031327
cristy50d3f5c2011-09-10 20:09:06 +000031328
cristy3ed852e2009-09-05 21:47:34 +000031329
31330
31331#
31332# Check for RSVG delegate library.
31333#
31334
31335# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031336if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031337 withval=$with_rsvg; with_rsvg=$withval
31338else
cristy1164d5f2012-08-15 00:58:25 +000031339 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031340fi
31341
31342
31343if test "$with_rsvg" != 'yes'; then
31344 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31345fi
31346
31347have_rsvg='no'
31348have_cairo='no'
31349RSVG_CFLAGS=""
31350RSVG_LIBS=""
31351RSVG_PKG=""
31352if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31354$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031355
31356pkg_failed=no
31357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31358$as_echo_n "checking for RSVG... " >&6; }
31359
31360if test -n "$RSVG_CFLAGS"; then
31361 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31362 elif test -n "$PKG_CONFIG"; then
31363 if test -n "$PKG_CONFIG" && \
31364 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31365 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31366 ac_status=$?
31367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31368 test $ac_status = 0; }; then
31369 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31370else
31371 pkg_failed=yes
31372fi
31373 else
31374 pkg_failed=untried
31375fi
31376if test -n "$RSVG_LIBS"; then
31377 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31378 elif test -n "$PKG_CONFIG"; then
31379 if test -n "$PKG_CONFIG" && \
31380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31381 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31382 ac_status=$?
31383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31384 test $ac_status = 0; }; then
31385 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31386else
31387 pkg_failed=yes
31388fi
31389 else
31390 pkg_failed=untried
31391fi
31392
31393
31394
31395if test $pkg_failed = yes; then
31396
31397if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31398 _pkg_short_errors_supported=yes
31399else
31400 _pkg_short_errors_supported=no
31401fi
31402 if test $_pkg_short_errors_supported = yes; then
31403 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31404 else
31405 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31406 fi
31407 # Put the nasty error message in config.log where it belongs
31408 echo "$RSVG_PKG_ERRORS" >&5
31409
31410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31411$as_echo "no" >&6; }
31412 have_rsvg=no
31413elif test $pkg_failed = untried; then
31414 have_rsvg=no
31415else
31416 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31417 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31419$as_echo "yes" >&6; }
31420 have_rsvg=yes
31421fi
cristyad38abe2012-12-23 23:03:21 +000031422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31423$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031424
31425pkg_failed=no
31426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31427$as_echo_n "checking for CAIRO_SVG... " >&6; }
31428
31429if test -n "$CAIRO_SVG_CFLAGS"; then
31430 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31431 elif test -n "$PKG_CONFIG"; then
31432 if test -n "$PKG_CONFIG" && \
31433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31434 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31435 ac_status=$?
31436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31437 test $ac_status = 0; }; then
31438 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31439else
31440 pkg_failed=yes
31441fi
31442 else
31443 pkg_failed=untried
31444fi
31445if test -n "$CAIRO_SVG_LIBS"; then
31446 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31447 elif test -n "$PKG_CONFIG"; then
31448 if test -n "$PKG_CONFIG" && \
31449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31450 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31451 ac_status=$?
31452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31453 test $ac_status = 0; }; then
31454 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31455else
31456 pkg_failed=yes
31457fi
31458 else
31459 pkg_failed=untried
31460fi
31461
31462
31463
31464if test $pkg_failed = yes; then
31465
31466if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31467 _pkg_short_errors_supported=yes
31468else
31469 _pkg_short_errors_supported=no
31470fi
31471 if test $_pkg_short_errors_supported = yes; then
31472 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31473 else
31474 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31475 fi
31476 # Put the nasty error message in config.log where it belongs
31477 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31478
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31480$as_echo "no" >&6; }
31481 have_cairo=no
31482elif test $pkg_failed = untried; then
31483 have_cairo=no
31484else
31485 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31486 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31488$as_echo "yes" >&6; }
31489 have_cairo=yes
31490fi
cristyad38abe2012-12-23 23:03:21 +000031491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31492$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031493fi
31494
31495if test "$have_rsvg" = 'yes'; then
31496
cristy8b350f62009-11-15 23:12:43 +000031497$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031498
cristyc6722092012-10-14 00:19:31 +000031499 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031500 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31501 fi
31502fi
31503
31504if test "$have_cairo" = 'yes'; then
31505
cristy8b350f62009-11-15 23:12:43 +000031506$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031507
cristyc6722092012-10-14 00:19:31 +000031508 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031509 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31510 fi
31511fi
31512
cristy73bd4a52010-10-05 11:24:23 +000031513 if test "$have_rsvg" = 'yes'; then
31514 RSVG_DELEGATE_TRUE=
31515 RSVG_DELEGATE_FALSE='#'
31516else
31517 RSVG_DELEGATE_TRUE='#'
31518 RSVG_DELEGATE_FALSE=
31519fi
31520
31521 if test "$have_cairo" = 'yes'; then
31522 CAIRO_DELEGATE_TRUE=
31523 CAIRO_DELEGATE_FALSE='#'
31524else
31525 CAIRO_DELEGATE_TRUE='#'
31526 CAIRO_DELEGATE_FALSE=
31527fi
31528
cristy3ed852e2009-09-05 21:47:34 +000031529
31530
31531
31532
31533#
31534# Check for TIFF delegate library.
31535#
31536
31537# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031538if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031539 withval=$with_tiff; with_tiff=$withval
31540else
31541 with_tiff='yes'
31542fi
31543
31544
31545if test "$with_tiff" != 'yes'; then
31546 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31547fi
31548
31549have_tiff='no'
31550TIFF_LIBS=''
31551if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31553$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031555$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31557$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031558 failed=0
31559 passed=0
cristy8b350f62009-11-15 23:12:43 +000031560 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031561if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031562 passed=`expr $passed + 1`
31563else
31564 failed=`expr $failed + 1`
31565fi
31566
31567
cristy8b350f62009-11-15 23:12:43 +000031568 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031569if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031570 passed=`expr $passed + 1`
31571else
31572 failed=`expr $failed + 1`
31573fi
31574
31575
cristy8b350f62009-11-15 23:12:43 +000031576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031577$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031578if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031579 $as_echo_n "(cached) " >&6
31580else
31581 ac_check_lib_save_LIBS=$LIBS
31582LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031584/* end confdefs.h. */
31585
31586/* Override any GCC internal prototype to avoid an error.
31587 Use char because int might match the return type of a GCC
31588 builtin and then its argument prototype would still apply. */
31589#ifdef __cplusplus
31590extern "C"
31591#endif
31592char TIFFOpen ();
31593int
31594main ()
31595{
31596return TIFFOpen ();
31597 ;
31598 return 0;
31599}
31600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031601if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031602 ac_cv_lib_tiff_TIFFOpen=yes
31603else
cristy8b350f62009-11-15 23:12:43 +000031604 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031605fi
cristy8b350f62009-11-15 23:12:43 +000031606rm -f core conftest.err conftest.$ac_objext \
31607 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031608LIBS=$ac_check_lib_save_LIBS
31609fi
cristy8b350f62009-11-15 23:12:43 +000031610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031611$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031612if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031613 passed=`expr $passed + 1`
31614else
31615 failed=`expr $failed + 1`
31616fi
31617
cristy8b350f62009-11-15 23:12:43 +000031618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031619$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031620if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031621 $as_echo_n "(cached) " >&6
31622else
31623 ac_check_lib_save_LIBS=$LIBS
31624LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031626/* end confdefs.h. */
31627
31628/* Override any GCC internal prototype to avoid an error.
31629 Use char because int might match the return type of a GCC
31630 builtin and then its argument prototype would still apply. */
31631#ifdef __cplusplus
31632extern "C"
31633#endif
31634char TIFFClientOpen ();
31635int
31636main ()
31637{
31638return TIFFClientOpen ();
31639 ;
31640 return 0;
31641}
31642_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031643if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031644 ac_cv_lib_tiff_TIFFClientOpen=yes
31645else
cristy8b350f62009-11-15 23:12:43 +000031646 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031647fi
cristy8b350f62009-11-15 23:12:43 +000031648rm -f core conftest.err conftest.$ac_objext \
31649 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031650LIBS=$ac_check_lib_save_LIBS
31651fi
cristy8b350f62009-11-15 23:12:43 +000031652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031653$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031654if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031655 passed=`expr $passed + 1`
31656else
31657 failed=`expr $failed + 1`
31658fi
31659
cristy8b350f62009-11-15 23:12:43 +000031660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031661$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031662if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031663 $as_echo_n "(cached) " >&6
31664else
31665 ac_check_lib_save_LIBS=$LIBS
31666LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031668/* end confdefs.h. */
31669
31670/* Override any GCC internal prototype to avoid an error.
31671 Use char because int might match the return type of a GCC
31672 builtin and then its argument prototype would still apply. */
31673#ifdef __cplusplus
31674extern "C"
31675#endif
31676char TIFFIsByteSwapped ();
31677int
31678main ()
31679{
31680return TIFFIsByteSwapped ();
31681 ;
31682 return 0;
31683}
31684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031685if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031686 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31687else
cristy8b350f62009-11-15 23:12:43 +000031688 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031689fi
cristy8b350f62009-11-15 23:12:43 +000031690rm -f core conftest.err conftest.$ac_objext \
31691 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031692LIBS=$ac_check_lib_save_LIBS
31693fi
cristy8b350f62009-11-15 23:12:43 +000031694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031695$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031696if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031697 passed=`expr $passed + 1`
31698else
31699 failed=`expr $failed + 1`
31700fi
31701
cristy8b350f62009-11-15 23:12:43 +000031702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031703$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031704if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031705 $as_echo_n "(cached) " >&6
31706else
31707 ac_check_lib_save_LIBS=$LIBS
31708LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031710/* end confdefs.h. */
31711
31712/* Override any GCC internal prototype to avoid an error.
31713 Use char because int might match the return type of a GCC
31714 builtin and then its argument prototype would still apply. */
31715#ifdef __cplusplus
31716extern "C"
31717#endif
31718char TIFFReadRGBATile ();
31719int
31720main ()
31721{
31722return TIFFReadRGBATile ();
31723 ;
31724 return 0;
31725}
31726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031727if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031728 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31729else
cristy8b350f62009-11-15 23:12:43 +000031730 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031731fi
cristy8b350f62009-11-15 23:12:43 +000031732rm -f core conftest.err conftest.$ac_objext \
31733 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031734LIBS=$ac_check_lib_save_LIBS
31735fi
cristy8b350f62009-11-15 23:12:43 +000031736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031737$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031738if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031739 passed=`expr $passed + 1`
31740else
31741 failed=`expr $failed + 1`
31742fi
31743
cristy8b350f62009-11-15 23:12:43 +000031744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031745$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031746if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031747 $as_echo_n "(cached) " >&6
31748else
31749 ac_check_lib_save_LIBS=$LIBS
31750LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031752/* end confdefs.h. */
31753
31754/* Override any GCC internal prototype to avoid an error.
31755 Use char because int might match the return type of a GCC
31756 builtin and then its argument prototype would still apply. */
31757#ifdef __cplusplus
31758extern "C"
31759#endif
31760char TIFFReadRGBAStrip ();
31761int
31762main ()
31763{
31764return TIFFReadRGBAStrip ();
31765 ;
31766 return 0;
31767}
31768_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031769if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031770 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31771else
cristy8b350f62009-11-15 23:12:43 +000031772 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031773fi
cristy8b350f62009-11-15 23:12:43 +000031774rm -f core conftest.err conftest.$ac_objext \
31775 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031776LIBS=$ac_check_lib_save_LIBS
31777fi
cristy8b350f62009-11-15 23:12:43 +000031778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031779$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031780if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031781 passed=`expr $passed + 1`
31782else
31783 failed=`expr $failed + 1`
31784fi
31785
cristy8b350f62009-11-15 23:12:43 +000031786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031787$as_echo_n "checking if TIFF package is complete... " >&6; }
31788 if test $passed -gt 0; then
31789 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31791$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031792 have_tiff='no (failed tests)'
31793 else
31794 TIFF_LIBS='-ltiff'
31795 LIBS="$TIFF_LIBS $LIBS"
31796
cristy8b350f62009-11-15 23:12:43 +000031797$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031798
cristyad38abe2012-12-23 23:03:21 +000031799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31800$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031801 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031802 for ac_header in tiffconf.h
31803do :
31804 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031805if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031806 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031807#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031808_ACEOF
31809
31810fi
31811
31812done
31813
cristy8b350f62009-11-15 23:12:43 +000031814 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031815 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31816 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31817 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031818do :
31819 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31820ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031821if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031822 cat >>confdefs.h <<_ACEOF
31823#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31824_ACEOF
31825
31826fi
31827done
31828
31829 fi
31830 else
cristyad38abe2012-12-23 23:03:21 +000031831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31832$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031833 fi
31834fi
cristy73bd4a52010-10-05 11:24:23 +000031835 if test "$have_tiff" = 'yes'; then
31836 TIFF_DELEGATE_TRUE=
31837 TIFF_DELEGATE_FALSE='#'
31838else
31839 TIFF_DELEGATE_TRUE='#'
31840 TIFF_DELEGATE_FALSE=
31841fi
31842
cristy3ed852e2009-09-05 21:47:34 +000031843
31844
31845
31846#
cristyb1860752011-03-14 00:27:46 +000031847# Check for WEBP delegate library.
31848#
31849
31850# Check whether --with-webp was given.
31851if test "${with_webp+set}" = set; then :
31852 withval=$with_webp; with_webp=$withval
31853else
31854 with_webp='yes'
31855fi
31856
31857
31858if test "$with_webp" != 'yes'; then
31859 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31860fi
31861
31862have_webp='no'
31863WEBP_LIBS=''
31864if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31866$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31868$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31870$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031871 failed=0
31872 passed=0
31873 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31874if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31875 passed=`expr $passed + 1`
31876else
31877 failed=`expr $failed + 1`
31878fi
31879
31880
cristy6d670312013-03-22 23:23:01 +000031881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31882$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31883if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031884 $as_echo_n "(cached) " >&6
31885else
31886 ac_check_lib_save_LIBS=$LIBS
31887LIBS="-lwebp $LIBS"
31888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31889/* end confdefs.h. */
31890
31891/* Override any GCC internal prototype to avoid an error.
31892 Use char because int might match the return type of a GCC
31893 builtin and then its argument prototype would still apply. */
31894#ifdef __cplusplus
31895extern "C"
31896#endif
cristy6d670312013-03-22 23:23:01 +000031897char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031898int
31899main ()
31900{
cristy6d670312013-03-22 23:23:01 +000031901return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031902 ;
31903 return 0;
31904}
31905_ACEOF
31906if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031907 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031908else
cristy6d670312013-03-22 23:23:01 +000031909 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031910fi
31911rm -f core conftest.err conftest.$ac_objext \
31912 conftest$ac_exeext conftest.$ac_ext
31913LIBS=$ac_check_lib_save_LIBS
31914fi
cristy6d670312013-03-22 23:23:01 +000031915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31916$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31917if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031918 passed=`expr $passed + 1`
31919else
31920 failed=`expr $failed + 1`
31921fi
31922
31923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31924$as_echo_n "checking if WEBP package is complete... " >&6; }
31925 if test $passed -gt 0; then
31926 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31928$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031929 have_webp='no (failed tests)'
31930 else
31931 WEBP_LIBS='-lwebp'
31932 LIBS="$WEBP_LIBS $LIBS"
31933
31934$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31935
cristyad38abe2012-12-23 23:03:21 +000031936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31937$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031938 have_webp='yes'
31939 fi
31940 else
cristyad38abe2012-12-23 23:03:21 +000031941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31942$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031943 fi
31944fi
31945 if test "$have_webp" = 'yes'; then
31946 WEBP_DELEGATE_TRUE=
31947 WEBP_DELEGATE_FALSE='#'
31948else
31949 WEBP_DELEGATE_TRUE='#'
31950 WEBP_DELEGATE_FALSE=
31951fi
31952
31953
31954
31955
31956#
cristy3ed852e2009-09-05 21:47:34 +000031957# Set Windows font directory.
31958#
31959
31960# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031961if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031962 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31963else
31964 with_windows_font_dir=''
31965fi
31966
31967if test "$with_windows_font_dir" != '' ; then
31968 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31969fi
31970
31971
31972#
31973# Check for WMF delegate library.
31974#
31975
31976# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031977if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031978 withval=$with_wmf; with_wmf=$withval
31979else
cristyfc3d0222012-02-07 15:05:57 +000031980 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031981fi
31982
31983
31984if test "$with_wmf" != 'yes'; then
31985 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31986fi
31987
31988have_wmf='no'
31989WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031990WMF_LIBS_DEPS=''
31991OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031992if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31994$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031996$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31998$as_echo "" >&6; }
31999 have_libwmf='no'
32000 have_libwmflite='no'
32001 have_libwmf_ipa_h='no'
32002
32003 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32004"
32005if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32006 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032007fi
32008
32009
cristy03f7cf92011-12-15 01:40:41 +000032010 if test "$have_libwmf_ipa_h" = 'yes'; then
32011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32012$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32013if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032014 $as_echo_n "(cached) " >&6
32015else
32016 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032017LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032019/* end confdefs.h. */
32020
32021/* Override any GCC internal prototype to avoid an error.
32022 Use char because int might match the return type of a GCC
32023 builtin and then its argument prototype would still apply. */
32024#ifdef __cplusplus
32025extern "C"
32026#endif
cristy03f7cf92011-12-15 01:40:41 +000032027char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032028int
32029main ()
32030{
cristy03f7cf92011-12-15 01:40:41 +000032031return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032032 ;
32033 return 0;
32034}
32035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032036if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032037 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032038else
cristy03f7cf92011-12-15 01:40:41 +000032039 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032040fi
cristy8b350f62009-11-15 23:12:43 +000032041rm -f core conftest.err conftest.$ac_objext \
32042 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032043LIBS=$ac_check_lib_save_LIBS
32044fi
cristy03f7cf92011-12-15 01:40:41 +000032045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32046$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32047if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32048 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032049fi
32050
cristy03f7cf92011-12-15 01:40:41 +000032051 if test "$have_libwmflite" = 'yes'; then
32052
32053$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32054
32055 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032056 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032057 have_wmf='yes'
32058 else
32059 WMF_LIBS_DEPS=''
32060 WMF_CONFIG_LIBS=`libwmf-config --libs`
32061 for lib in xml2 expat freetype jpeg png z; do
32062 testlib="-l${lib}"
32063 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32064 done
32065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32066$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32067if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32068 $as_echo_n "(cached) " >&6
32069else
32070 ac_check_lib_save_LIBS=$LIBS
32071LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32073/* end confdefs.h. */
32074
32075/* Override any GCC internal prototype to avoid an error.
32076 Use char because int might match the return type of a GCC
32077 builtin and then its argument prototype would still apply. */
32078#ifdef __cplusplus
32079extern "C"
32080#endif
32081char wmf_api_create ();
32082int
32083main ()
32084{
32085return wmf_api_create ();
32086 ;
32087 return 0;
32088}
32089_ACEOF
32090if ac_fn_c_try_link "$LINENO"; then :
32091 ac_cv_lib_wmf_wmf_api_create=yes
32092else
32093 ac_cv_lib_wmf_wmf_api_create=no
32094fi
32095rm -f core conftest.err conftest.$ac_objext \
32096 conftest$ac_exeext conftest.$ac_ext
32097LIBS=$ac_check_lib_save_LIBS
32098fi
32099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32100$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32101if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32102 have_libwmf='yes'
32103fi
32104
32105 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032106
cristy8b350f62009-11-15 23:12:43 +000032107$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032108
cristy03f7cf92011-12-15 01:40:41 +000032109 WMF_LIBS='-lwmf'
32110 LIBS="$WMF_LIBS $LIBS"
32111 have_wmf='yes'
32112 else
32113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32114$as_echo "no -- some components failed test" >&6; }
32115 have_wmf='no (failed tests)'
32116 have_wmflite='no (failed tests)'
32117 LIBS="$OLIBS"
32118 WMF_LIBS=''
32119 fi
glennrp33e524b2011-08-24 17:41:57 +000032120 fi
cristy03f7cf92011-12-15 01:40:41 +000032121 fi
32122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32123$as_echo_n "checking if WMF package is complete... " >&6; }
32124 if test "$have_wmf" = 'yes'; then
32125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32126$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032127 else
cristy03f7cf92011-12-15 01:40:41 +000032128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32129$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032130 fi
cristy3ed852e2009-09-05 21:47:34 +000032131fi
cristy73bd4a52010-10-05 11:24:23 +000032132 if test "$have_wmf" = 'yes'; then
32133 WMF_DELEGATE_TRUE=
32134 WMF_DELEGATE_FALSE='#'
32135else
32136 WMF_DELEGATE_TRUE='#'
32137 WMF_DELEGATE_FALSE=
32138fi
32139
cristy3ed852e2009-09-05 21:47:34 +000032140
32141
32142
cristy81beccd2011-10-03 18:17:24 +000032143
32144
cristy3ed852e2009-09-05 21:47:34 +000032145#
32146# Check for XML delegate library.
32147#
32148
32149# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032150if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032151 withval=$with_xml; with_xml=$withval
32152else
cristyfc3d0222012-02-07 15:05:57 +000032153 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032154fi
32155
32156
cristy81beccd2011-10-03 18:17:24 +000032157if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032158 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32159fi
32160
cristy81beccd2011-10-03 18:17:24 +000032161have_xml='no'
32162XML_LIBS=''
32163if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32165$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32167$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32169$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032170 PERSIST_LDFLAGS=$LDFLAGS
32171 PERSIST_CPPFLAGS=$CPPFLAGS
32172 xml2_config=''
32173 # Extract the first word of "xml2-config", so it can be a program name with args.
32174set dummy xml2-config; ac_word=$2
32175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32176$as_echo_n "checking for $ac_word... " >&6; }
32177if ${ac_cv_path_xml2_config+:} false; then :
32178 $as_echo_n "(cached) " >&6
32179else
32180 case $xml2_config in
32181 [\\/]* | ?:[\\/]*)
32182 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32183 ;;
32184 *)
32185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32186for as_dir in $PATH
32187do
32188 IFS=$as_save_IFS
32189 test -z "$as_dir" && as_dir=.
32190 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032192 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32194 break 2
32195 fi
32196done
32197 done
32198IFS=$as_save_IFS
32199
32200 ;;
32201esac
32202fi
32203xml2_config=$ac_cv_path_xml2_config
32204if test -n "$xml2_config"; then
32205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32206$as_echo "$xml2_config" >&6; }
32207else
32208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32209$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032210fi
32211
cristy81beccd2011-10-03 18:17:24 +000032212 if test -n "$xml2_config"; then
32213 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32214 # the shared library installed under /usr/lib, whereas the package
32215 # installs itself under $prefix/libxml and $prefix/lib.
32216 xml2_prefix=`xml2-config --prefix`
32217 if test -d "${xml2_prefix}/include/libxml2"; then
32218 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32219 fi
32220 if test "${xml2_prefix}" != '/usr'; then
32221 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32222 fi
32223 fi
32224 failed=0
32225 passed=0
32226 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32227if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32228 passed=`expr $passed + 1`
32229else
32230 failed=`expr $failed + 1`
32231fi
32232
32233
32234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32235$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32236if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32237 $as_echo_n "(cached) " >&6
32238else
32239 ac_check_lib_save_LIBS=$LIBS
32240LIBS="-lxml2 $LIBS"
32241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32242/* end confdefs.h. */
32243
32244/* Override any GCC internal prototype to avoid an error.
32245 Use char because int might match the return type of a GCC
32246 builtin and then its argument prototype would still apply. */
32247#ifdef __cplusplus
32248extern "C"
32249#endif
32250char xmlSAXVersion ();
32251int
32252main ()
32253{
32254return xmlSAXVersion ();
32255 ;
32256 return 0;
32257}
32258_ACEOF
32259if ac_fn_c_try_link "$LINENO"; then :
32260 ac_cv_lib_xml2_xmlSAXVersion=yes
32261else
32262 ac_cv_lib_xml2_xmlSAXVersion=no
32263fi
32264rm -f core conftest.err conftest.$ac_objext \
32265 conftest$ac_exeext conftest.$ac_ext
32266LIBS=$ac_check_lib_save_LIBS
32267fi
32268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32269$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32270if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32271 passed=`expr $passed + 1`
32272else
32273 failed=`expr $failed + 1`
32274fi
32275
32276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32277$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32278if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32279 $as_echo_n "(cached) " >&6
32280else
32281 ac_check_lib_save_LIBS=$LIBS
32282LIBS="-lxml2 $LIBS"
32283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32284/* end confdefs.h. */
32285
32286/* Override any GCC internal prototype to avoid an error.
32287 Use char because int might match the return type of a GCC
32288 builtin and then its argument prototype would still apply. */
32289#ifdef __cplusplus
32290extern "C"
32291#endif
32292char xmlParseChunk ();
32293int
32294main ()
32295{
32296return xmlParseChunk ();
32297 ;
32298 return 0;
32299}
32300_ACEOF
32301if ac_fn_c_try_link "$LINENO"; then :
32302 ac_cv_lib_xml2_xmlParseChunk=yes
32303else
32304 ac_cv_lib_xml2_xmlParseChunk=no
32305fi
32306rm -f core conftest.err conftest.$ac_objext \
32307 conftest$ac_exeext conftest.$ac_ext
32308LIBS=$ac_check_lib_save_LIBS
32309fi
32310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32311$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32312if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32313 passed=`expr $passed + 1`
32314else
32315 failed=`expr $failed + 1`
32316fi
32317
32318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32319$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32320if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32321 $as_echo_n "(cached) " >&6
32322else
32323 ac_check_lib_save_LIBS=$LIBS
32324LIBS="-lxml2 $LIBS"
32325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32326/* end confdefs.h. */
32327
32328/* Override any GCC internal prototype to avoid an error.
32329 Use char because int might match the return type of a GCC
32330 builtin and then its argument prototype would still apply. */
32331#ifdef __cplusplus
32332extern "C"
32333#endif
32334char xmlCreatePushParserCtxt ();
32335int
32336main ()
32337{
32338return xmlCreatePushParserCtxt ();
32339 ;
32340 return 0;
32341}
32342_ACEOF
32343if ac_fn_c_try_link "$LINENO"; then :
32344 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32345else
32346 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32347fi
32348rm -f core conftest.err conftest.$ac_objext \
32349 conftest$ac_exeext conftest.$ac_ext
32350LIBS=$ac_check_lib_save_LIBS
32351fi
32352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32353$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32354if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32355 passed=`expr $passed + 1`
32356else
32357 failed=`expr $failed + 1`
32358fi
32359
32360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32361$as_echo_n "checking if XML package is complete... " >&6; }
32362 if test $passed -gt 0; then
32363 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32365$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032366 have_xml='no (failed tests)'
32367 LDFLAGS="$PERSIST_LDFLAGS"
32368 CPPFLAGS="$PERSIST_CPPFLAGS"
32369 else
32370 XML_LIBS='-lxml2'
32371 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032372
cristy8b350f62009-11-15 23:12:43 +000032373$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032374
cristyad38abe2012-12-23 23:03:21 +000032375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32376$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032377 have_xml='yes'
32378 fi
32379 else
cristyad38abe2012-12-23 23:03:21 +000032380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32381$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032382 fi
32383fi
cristy73bd4a52010-10-05 11:24:23 +000032384 if test "$have_xml" = 'yes'; then
32385 XML_DELEGATE_TRUE=
32386 XML_DELEGATE_FALSE='#'
32387else
32388 XML_DELEGATE_TRUE='#'
32389 XML_DELEGATE_FALSE=
32390fi
32391
cristy3ed852e2009-09-05 21:47:34 +000032392
32393
32394
32395# Substitute compiler name to build/link PerlMagick
32396#
32397
32398
32399#
32400# Configure install Paths
32401#
cristy7def36a2011-10-28 19:04:41 +000032402
cristy2a11bef2011-10-28 18:33:11 +000032403# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032404INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032405INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32406DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032407case "${build_os}" in
32408 mingw* )
32409 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32410 ;;
32411esac
32412
32413cat >>confdefs.h <<_ACEOF
32414#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32415_ACEOF
32416
32417
cristy3ed852e2009-09-05 21:47:34 +000032418
cristye52f12f2012-12-31 15:32:36 +000032419# Path to ImageMagick header files (arch part)
32420INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32421DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32422case "${build_os}" in
32423 mingw* )
32424 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32425 ;;
32426esac
32427
32428cat >>confdefs.h <<_ACEOF
32429#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32430_ACEOF
32431
32432
32433
cristy3ed852e2009-09-05 21:47:34 +000032434# Subdirectory under lib to place ImageMagick lib files
32435LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32436
32437cat >>confdefs.h <<_ACEOF
32438#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32439_ACEOF
32440
32441
32442# Path to ImageMagick bin directory
32443EXECUTABLE_PATH="${BIN_DIR}"
32444DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32445case "${build_os}" in
32446 mingw* )
32447 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32448 ;;
32449esac
32450
32451cat >>confdefs.h <<_ACEOF
32452#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32453_ACEOF
32454
32455
32456
32457# Path to ImageMagick lib
32458LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32459DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32460case "${build_os}" in
32461 mingw* )
32462 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32463 ;;
32464esac
32465
32466cat >>confdefs.h <<_ACEOF
32467#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32468_ACEOF
32469
32470
32471
cristy3ed852e2009-09-05 21:47:34 +000032472#
cristy8d0ff762013-03-10 20:33:28 +000032473# path to local binaries
32474if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32475 LIB_BIN_BASEDIRNAME="bin"
32476fi
32477
32478cat >>confdefs.h <<_ACEOF
32479#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32480_ACEOF
32481
32482
32483
32484if test "x$LIB_BIN_DIR" = "x"; then
32485 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32486fi
32487
32488
32489LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32490
32491LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32492
32493
32494#
cristy01ff9f32012-12-01 18:15:29 +000032495# path to modules lib
32496if test "x$MODULES_BASEDIRNAME" = "x"; then
32497 MODULES_BASEDIRNAME="modules"
32498fi
cristy3ed852e2009-09-05 21:47:34 +000032499
32500cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032501#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032502_ACEOF
32503
cristy01ff9f32012-12-01 18:15:29 +000032504
32505
32506if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032507 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32508else
cristy3ed852e2009-09-05 21:47:34 +000032509
32510cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032511#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032512_ACEOF
32513
cristycf4a3c22012-12-02 21:47:25 +000032514fi
cristy01ff9f32012-12-01 18:15:29 +000032515
32516
cristy371d4812012-12-01 19:48:10 +000032517MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032518
32519MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32520
32521
32522#
32523# path to coders lib
32524if test "x$CODER_DIRNAME" = "x"; then
32525 CODER_DIRNAME="coders"
32526fi
32527
32528cat >>confdefs.h <<_ACEOF
32529#define CODER_DIRNAME "$CODER_DIRNAME"
32530_ACEOF
32531
32532
32533
cristy371d4812012-12-01 19:48:10 +000032534CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032535CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032536
32537
32538#
32539# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032540#
32541# path to coders lib
32542if test "x$FILTER_DIRNAME" = "x"; then
32543 FILTER_DIRNAME="filters"
32544fi
cristy3ed852e2009-09-05 21:47:34 +000032545
32546cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032547#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032548_ACEOF
32549
cristy3ed852e2009-09-05 21:47:34 +000032550
cristy3ed852e2009-09-05 21:47:34 +000032551
cristy371d4812012-12-01 19:48:10 +000032552FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032553FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032554
32555
32556#
32557# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032558DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032559DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32560DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032561case "${build_os}" in
32562 mingw* )
32563 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32564 ;;
32565esac
32566
32567cat >>confdefs.h <<_ACEOF
32568#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32569_ACEOF
32570
32571
32572
cristy2a11bef2011-10-28 18:33:11 +000032573# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032574CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032575
32576cat >>confdefs.h <<_ACEOF
32577#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32578_ACEOF
32579
cristy7def36a2011-10-28 19:04:41 +000032580CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032581DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32582case "${build_os}" in
32583 mingw* )
32584 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32585 ;;
32586esac
32587
32588cat >>confdefs.h <<_ACEOF
32589#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32590_ACEOF
32591
32592
32593
cristy2a11bef2011-10-28 18:33:11 +000032594# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032595SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032596
32597cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032598#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032599_ACEOF
32600
cristy670aa3c2011-11-03 00:54:00 +000032601SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032602DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032603case "${build_os}" in
32604 mingw* )
cristy4f820712011-04-01 12:35:43 +000032605 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032606 ;;
32607esac
32608
32609cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032610#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032611_ACEOF
32612
32613
32614
cristy54378032012-12-04 15:52:20 +000032615#
32616# Subdirectory to place architecture-dependent configuration files.
32617if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32618 SHAREARCH_BASEDIRNAME="config"
32619fi
cristy670aa3c2011-11-03 00:54:00 +000032620
32621cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032622#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032623_ACEOF
32624
cristy54378032012-12-04 15:52:20 +000032625
32626
32627if test "x$SHAREARCH_DIRNAME" = "x"; then
32628 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32629else
cristy670aa3c2011-11-03 00:54:00 +000032630
32631cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032632#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032633_ACEOF
32634
cristy54378032012-12-04 15:52:20 +000032635fi
32636
32637
32638SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32639
32640SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032641
32642
cristy3ed852e2009-09-05 21:47:34 +000032643#
32644# program_transform_name is formed for use in a Makefile, so create a
32645# modified version for use in a shell script.
32646configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32647
32648# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32650$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032652$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32654$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032655AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032656BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032657BZIPDelegateDefault='bzip2'
32658BrowseDelegateDefault='xdg-open'
32659CGMDecodeDelegateDefault='ralcgm'
32660CatDelegateDefault='cat'
32661DNGDecodeDelegateDefault='ufraw-batch'
32662GVCDecodeDelegateDefault='dot'
32663DVIDecodeDelegateDefault='dvips'
32664EchoDelegateDefault='echo'
32665EditorDelegateDefault='xterm'
32666FIGDecodeDelegateDefault='fig2dev'
32667ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32668DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32669MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32670GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032671HPGLDecodeDelegateDefault='hp2xx'
32672HTMLDecodeDelegateDefault='html2ps'
32673ILBMDecodeDelegateDefault='ilbmtoppm'
32674ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032675JXRDecodeDelegateDefault='JxrDecApp'
32676JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032677LPDelegateDefault='lp'
32678LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032679LaunchDelegateDefault='gimp'
32680MANDelegateDefault='groff'
32681MPEGDecodeDelegateDefault='ffmpeg'
32682MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032683MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032684MVDelegateDefault='mv'
32685PCLDelegateDefault='pcl6'
32686PGPDecodeDelegateDefault='pgpv'
32687POVDelegateDefault='povray'
32688if test "$native_win32_build" = 'yes'; then
32689 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032690elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032691 PSDelegateDefault='gsc'
32692else
32693 PSDelegateDefault='gs'
32694fi
32695RLEEncodeDelegateDefault='rawtorle'
32696RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032697RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032698SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032699SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032700TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032701UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032702WMFDecodeDelegateDefault='wmf2eps'
32703WWWDecodeDelegateDefault='curl'
32704XPSDelegateDefault='gxps'
32705ZipDelegateDefault='gzip'
32706
32707# Search for delegates
32708# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32709set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032711$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032712if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032713 $as_echo_n "(cached) " >&6
32714else
32715 case $AutotraceDecodeDelegate in
32716 [\\/]* | ?:[\\/]*)
32717 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32718 ;;
32719 *)
32720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32721for as_dir in $PATH
32722do
32723 IFS=$as_save_IFS
32724 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032725 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032727 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032729 break 2
32730 fi
32731done
cristy8b350f62009-11-15 23:12:43 +000032732 done
cristy3ed852e2009-09-05 21:47:34 +000032733IFS=$as_save_IFS
32734
32735 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32736 ;;
32737esac
32738fi
32739AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32740if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032742$as_echo "$AutotraceDecodeDelegate" >&6; }
32743else
cristy8b350f62009-11-15 23:12:43 +000032744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032745$as_echo "no" >&6; }
32746fi
32747
32748
cristy3ed852e2009-09-05 21:47:34 +000032749# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32750set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032752$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032753if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032754 $as_echo_n "(cached) " >&6
32755else
32756 case $BlenderDecodeDelegate in
32757 [\\/]* | ?:[\\/]*)
32758 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32759 ;;
32760 *)
32761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32762for as_dir in $PATH
32763do
32764 IFS=$as_save_IFS
32765 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032768 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032770 break 2
32771 fi
32772done
cristy8b350f62009-11-15 23:12:43 +000032773 done
cristy3ed852e2009-09-05 21:47:34 +000032774IFS=$as_save_IFS
32775
32776 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32777 ;;
32778esac
32779fi
32780BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32781if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032783$as_echo "$BlenderDecodeDelegate" >&6; }
32784else
cristy8b350f62009-11-15 23:12:43 +000032785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032786$as_echo "no" >&6; }
32787fi
32788
32789
32790# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32791set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032794if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032795 $as_echo_n "(cached) " >&6
32796else
32797 case $BZIPDelegate in
32798 [\\/]* | ?:[\\/]*)
32799 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32800 ;;
32801 *)
32802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32803for as_dir in $PATH
32804do
32805 IFS=$as_save_IFS
32806 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032809 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032811 break 2
32812 fi
32813done
cristy8b350f62009-11-15 23:12:43 +000032814 done
cristy3ed852e2009-09-05 21:47:34 +000032815IFS=$as_save_IFS
32816
32817 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32818 ;;
32819esac
32820fi
32821BZIPDelegate=$ac_cv_path_BZIPDelegate
32822if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032824$as_echo "$BZIPDelegate" >&6; }
32825else
cristy8b350f62009-11-15 23:12:43 +000032826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032827$as_echo "no" >&6; }
32828fi
32829
32830
cristyc59f0e72012-08-27 12:59:33 +000032831for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32832do
32833 # Extract the first word of "$ac_prog", so it can be a program name with args.
32834set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032836$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032837if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032838 $as_echo_n "(cached) " >&6
32839else
32840 case $BrowseDelegate in
32841 [\\/]* | ?:[\\/]*)
32842 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32843 ;;
32844 *)
32845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32846for as_dir in $PATH
32847do
32848 IFS=$as_save_IFS
32849 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032852 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032854 break 2
32855 fi
32856done
cristy8b350f62009-11-15 23:12:43 +000032857 done
cristy3ed852e2009-09-05 21:47:34 +000032858IFS=$as_save_IFS
32859
cristy3ed852e2009-09-05 21:47:34 +000032860 ;;
32861esac
32862fi
32863BrowseDelegate=$ac_cv_path_BrowseDelegate
32864if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032866$as_echo "$BrowseDelegate" >&6; }
32867else
cristy8b350f62009-11-15 23:12:43 +000032868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032869$as_echo "no" >&6; }
32870fi
32871
32872
cristyc59f0e72012-08-27 12:59:33 +000032873 test -n "$BrowseDelegate" && break
32874done
32875test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32876
cristy3ed852e2009-09-05 21:47:34 +000032877# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32878set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032881if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032882 $as_echo_n "(cached) " >&6
32883else
32884 case $CGMDecodeDelegate in
32885 [\\/]* | ?:[\\/]*)
32886 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32887 ;;
32888 *)
32889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32890for as_dir in $PATH
32891do
32892 IFS=$as_save_IFS
32893 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032896 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032898 break 2
32899 fi
32900done
cristy8b350f62009-11-15 23:12:43 +000032901 done
cristy3ed852e2009-09-05 21:47:34 +000032902IFS=$as_save_IFS
32903
32904 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32905 ;;
32906esac
32907fi
32908CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32909if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911$as_echo "$CGMDecodeDelegate" >&6; }
32912else
cristy8b350f62009-11-15 23:12:43 +000032913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032914$as_echo "no" >&6; }
32915fi
32916
32917
32918# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32919set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032922if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032923 $as_echo_n "(cached) " >&6
32924else
32925 case $CatDelegate in
32926 [\\/]* | ?:[\\/]*)
32927 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32928 ;;
32929 *)
32930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32931for as_dir in $PATH
32932do
32933 IFS=$as_save_IFS
32934 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032937 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032939 break 2
32940 fi
32941done
cristy8b350f62009-11-15 23:12:43 +000032942 done
cristy3ed852e2009-09-05 21:47:34 +000032943IFS=$as_save_IFS
32944
32945 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32946 ;;
32947esac
32948fi
32949CatDelegate=$ac_cv_path_CatDelegate
32950if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo "$CatDelegate" >&6; }
32953else
cristy8b350f62009-11-15 23:12:43 +000032954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032955$as_echo "no" >&6; }
32956fi
32957
32958
32959# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32960set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032962$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032963if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032964 $as_echo_n "(cached) " >&6
32965else
32966 case $DNGDecodeDelegate in
32967 [\\/]* | ?:[\\/]*)
32968 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32969 ;;
32970 *)
32971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32972for as_dir in $PATH
32973do
32974 IFS=$as_save_IFS
32975 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032978 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032980 break 2
32981 fi
32982done
cristy8b350f62009-11-15 23:12:43 +000032983 done
cristy3ed852e2009-09-05 21:47:34 +000032984IFS=$as_save_IFS
32985
32986 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32987 ;;
32988esac
32989fi
32990DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32991if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032993$as_echo "$DNGDecodeDelegate" >&6; }
32994else
cristy8b350f62009-11-15 23:12:43 +000032995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032996$as_echo "no" >&6; }
32997fi
32998
32999
33000# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33001set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033003$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033004if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033005 $as_echo_n "(cached) " >&6
33006else
33007 case $GVCDecodeDelegate in
33008 [\\/]* | ?:[\\/]*)
33009 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33010 ;;
33011 *)
33012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33013for as_dir in $PATH
33014do
33015 IFS=$as_save_IFS
33016 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033017 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033019 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033021 break 2
33022 fi
33023done
cristy8b350f62009-11-15 23:12:43 +000033024 done
cristy3ed852e2009-09-05 21:47:34 +000033025IFS=$as_save_IFS
33026
33027 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33028 ;;
33029esac
33030fi
33031GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33032if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033034$as_echo "$GVCDecodeDelegate" >&6; }
33035else
cristy8b350f62009-11-15 23:12:43 +000033036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033037$as_echo "no" >&6; }
33038fi
33039
33040
33041# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33042set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033044$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033045if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033046 $as_echo_n "(cached) " >&6
33047else
33048 case $DVIDecodeDelegate in
33049 [\\/]* | ?:[\\/]*)
33050 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33051 ;;
33052 *)
33053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33054for as_dir in $PATH
33055do
33056 IFS=$as_save_IFS
33057 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033058 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033060 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033062 break 2
33063 fi
33064done
cristy8b350f62009-11-15 23:12:43 +000033065 done
cristy3ed852e2009-09-05 21:47:34 +000033066IFS=$as_save_IFS
33067
33068 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33069 ;;
33070esac
33071fi
33072DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33073if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033075$as_echo "$DVIDecodeDelegate" >&6; }
33076else
cristy8b350f62009-11-15 23:12:43 +000033077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033078$as_echo "no" >&6; }
33079fi
33080
33081
33082# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33083set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033085$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033086if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033087 $as_echo_n "(cached) " >&6
33088else
33089 case $EchoDelegate in
33090 [\\/]* | ?:[\\/]*)
33091 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33092 ;;
33093 *)
33094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33095for as_dir in $PATH
33096do
33097 IFS=$as_save_IFS
33098 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033101 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033103 break 2
33104 fi
33105done
cristy8b350f62009-11-15 23:12:43 +000033106 done
cristy3ed852e2009-09-05 21:47:34 +000033107IFS=$as_save_IFS
33108
33109 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33110 ;;
33111esac
33112fi
33113EchoDelegate=$ac_cv_path_EchoDelegate
33114if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033116$as_echo "$EchoDelegate" >&6; }
33117else
cristy8b350f62009-11-15 23:12:43 +000033118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033119$as_echo "no" >&6; }
33120fi
33121
33122
33123# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33124set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033126$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033127if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033128 $as_echo_n "(cached) " >&6
33129else
33130 case $EditorDelegate in
33131 [\\/]* | ?:[\\/]*)
33132 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33133 ;;
33134 *)
33135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33136for as_dir in $PATH
33137do
33138 IFS=$as_save_IFS
33139 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033142 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033144 break 2
33145 fi
33146done
cristy8b350f62009-11-15 23:12:43 +000033147 done
cristy3ed852e2009-09-05 21:47:34 +000033148IFS=$as_save_IFS
33149
33150 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33151 ;;
33152esac
33153fi
33154EditorDelegate=$ac_cv_path_EditorDelegate
33155if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033157$as_echo "$EditorDelegate" >&6; }
33158else
cristy8b350f62009-11-15 23:12:43 +000033159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033160$as_echo "no" >&6; }
33161fi
33162
33163
33164# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33165set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033167$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033168if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033169 $as_echo_n "(cached) " >&6
33170else
33171 case $FIGDecodeDelegate in
33172 [\\/]* | ?:[\\/]*)
33173 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33174 ;;
33175 *)
33176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33177for as_dir in $PATH
33178do
33179 IFS=$as_save_IFS
33180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033183 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033185 break 2
33186 fi
33187done
cristy8b350f62009-11-15 23:12:43 +000033188 done
cristy3ed852e2009-09-05 21:47:34 +000033189IFS=$as_save_IFS
33190
33191 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33192 ;;
33193esac
33194fi
33195FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33196if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033198$as_echo "$FIGDecodeDelegate" >&6; }
33199else
cristy8b350f62009-11-15 23:12:43 +000033200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033201$as_echo "no" >&6; }
33202fi
33203
33204
33205# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33206set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033208$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033209if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033210 $as_echo_n "(cached) " >&6
33211else
33212 case $ConvertDelegate in
33213 [\\/]* | ?:[\\/]*)
33214 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33215 ;;
33216 *)
33217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33218for as_dir in $PATH
33219do
33220 IFS=$as_save_IFS
33221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033224 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033226 break 2
33227 fi
33228done
cristy8b350f62009-11-15 23:12:43 +000033229 done
cristy3ed852e2009-09-05 21:47:34 +000033230IFS=$as_save_IFS
33231
33232 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33233 ;;
33234esac
33235fi
33236ConvertDelegate=$ac_cv_path_ConvertDelegate
33237if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033239$as_echo "$ConvertDelegate" >&6; }
33240else
cristy8b350f62009-11-15 23:12:43 +000033241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033242$as_echo "no" >&6; }
33243fi
33244
33245
33246# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33247set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033249$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033250if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033251 $as_echo_n "(cached) " >&6
33252else
33253 case $DisplayDelegate in
33254 [\\/]* | ?:[\\/]*)
33255 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33256 ;;
33257 *)
33258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33259for as_dir in $PATH
33260do
33261 IFS=$as_save_IFS
33262 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033263 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033265 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033267 break 2
33268 fi
33269done
cristy8b350f62009-11-15 23:12:43 +000033270 done
cristy3ed852e2009-09-05 21:47:34 +000033271IFS=$as_save_IFS
33272
33273 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33274 ;;
33275esac
33276fi
33277DisplayDelegate=$ac_cv_path_DisplayDelegate
33278if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033280$as_echo "$DisplayDelegate" >&6; }
33281else
cristy8b350f62009-11-15 23:12:43 +000033282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033283$as_echo "no" >&6; }
33284fi
33285
33286
33287# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33288set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033290$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033291if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033292 $as_echo_n "(cached) " >&6
33293else
33294 case $MogrifyDelegate in
33295 [\\/]* | ?:[\\/]*)
33296 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33297 ;;
33298 *)
33299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33300for as_dir in $PATH
33301do
33302 IFS=$as_save_IFS
33303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033306 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033308 break 2
33309 fi
33310done
cristy8b350f62009-11-15 23:12:43 +000033311 done
cristy3ed852e2009-09-05 21:47:34 +000033312IFS=$as_save_IFS
33313
33314 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33315 ;;
33316esac
33317fi
33318MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33319if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033321$as_echo "$MogrifyDelegate" >&6; }
33322else
cristy8b350f62009-11-15 23:12:43 +000033323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033324$as_echo "no" >&6; }
33325fi
33326
33327
33328# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33329set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033331$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033332if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033333 $as_echo_n "(cached) " >&6
33334else
33335 case $GnuplotDecodeDelegate in
33336 [\\/]* | ?:[\\/]*)
33337 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33338 ;;
33339 *)
33340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33341for as_dir in $PATH
33342do
33343 IFS=$as_save_IFS
33344 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033345 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033347 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033349 break 2
33350 fi
33351done
cristy8b350f62009-11-15 23:12:43 +000033352 done
cristy3ed852e2009-09-05 21:47:34 +000033353IFS=$as_save_IFS
33354
33355 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33356 ;;
33357esac
33358fi
33359GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33360if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033362$as_echo "$GnuplotDecodeDelegate" >&6; }
33363else
cristy8b350f62009-11-15 23:12:43 +000033364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033365$as_echo "no" >&6; }
33366fi
33367
33368
cristy3ed852e2009-09-05 21:47:34 +000033369# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33370set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033372$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033373if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033374 $as_echo_n "(cached) " >&6
33375else
33376 case $HPGLDecodeDelegate in
33377 [\\/]* | ?:[\\/]*)
33378 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33379 ;;
33380 *)
33381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33382for as_dir in $PATH
33383do
33384 IFS=$as_save_IFS
33385 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033388 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033390 break 2
33391 fi
33392done
cristy8b350f62009-11-15 23:12:43 +000033393 done
cristy3ed852e2009-09-05 21:47:34 +000033394IFS=$as_save_IFS
33395
33396 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33397 ;;
33398esac
33399fi
33400HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33401if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033403$as_echo "$HPGLDecodeDelegate" >&6; }
33404else
cristy8b350f62009-11-15 23:12:43 +000033405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033406$as_echo "no" >&6; }
33407fi
33408
33409
33410# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33411set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033413$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033414if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033415 $as_echo_n "(cached) " >&6
33416else
33417 case $HTMLDecodeDelegate in
33418 [\\/]* | ?:[\\/]*)
33419 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33420 ;;
33421 *)
33422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33423for as_dir in $PATH
33424do
33425 IFS=$as_save_IFS
33426 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033427 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033429 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033431 break 2
33432 fi
33433done
cristy8b350f62009-11-15 23:12:43 +000033434 done
cristy3ed852e2009-09-05 21:47:34 +000033435IFS=$as_save_IFS
33436
33437 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33438 ;;
33439esac
33440fi
33441HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33442if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033444$as_echo "$HTMLDecodeDelegate" >&6; }
33445else
cristy8b350f62009-11-15 23:12:43 +000033446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033447$as_echo "no" >&6; }
33448fi
33449
33450
33451# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33452set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033455if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033456 $as_echo_n "(cached) " >&6
33457else
33458 case $ILBMDecodeDelegate in
33459 [\\/]* | ?:[\\/]*)
33460 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33461 ;;
33462 *)
33463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33464for as_dir in $PATH
33465do
33466 IFS=$as_save_IFS
33467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033470 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033472 break 2
33473 fi
33474done
cristy8b350f62009-11-15 23:12:43 +000033475 done
cristy3ed852e2009-09-05 21:47:34 +000033476IFS=$as_save_IFS
33477
33478 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33479 ;;
33480esac
33481fi
33482ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33483if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033485$as_echo "$ILBMDecodeDelegate" >&6; }
33486else
cristy8b350f62009-11-15 23:12:43 +000033487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033488$as_echo "no" >&6; }
33489fi
33490
33491
33492# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33493set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033496if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033497 $as_echo_n "(cached) " >&6
33498else
33499 case $ILBMEncodeDelegate in
33500 [\\/]* | ?:[\\/]*)
33501 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33502 ;;
33503 *)
33504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33505for as_dir in $PATH
33506do
33507 IFS=$as_save_IFS
33508 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033511 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033513 break 2
33514 fi
33515done
cristy8b350f62009-11-15 23:12:43 +000033516 done
cristy3ed852e2009-09-05 21:47:34 +000033517IFS=$as_save_IFS
33518
33519 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33520 ;;
33521esac
33522fi
33523ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33524if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033526$as_echo "$ILBMEncodeDelegate" >&6; }
33527else
cristy8b350f62009-11-15 23:12:43 +000033528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033529$as_echo "no" >&6; }
33530fi
33531
33532
cristy71f53d52013-04-27 13:33:59 +000033533# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33534set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33536$as_echo_n "checking for $ac_word... " >&6; }
33537if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33538 $as_echo_n "(cached) " >&6
33539else
33540 case $JXRDecodeDelegate in
33541 [\\/]* | ?:[\\/]*)
33542 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33543 ;;
33544 *)
33545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33546for as_dir in $PATH
33547do
33548 IFS=$as_save_IFS
33549 test -z "$as_dir" && as_dir=.
33550 for ac_exec_ext in '' $ac_executable_extensions; do
33551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33552 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33554 break 2
33555 fi
33556done
33557 done
33558IFS=$as_save_IFS
33559
33560 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33561 ;;
33562esac
33563fi
33564JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33565if test -n "$JXRDecodeDelegate"; then
33566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33567$as_echo "$JXRDecodeDelegate" >&6; }
33568else
33569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33570$as_echo "no" >&6; }
33571fi
33572
33573
33574# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33575set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33577$as_echo_n "checking for $ac_word... " >&6; }
33578if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33579 $as_echo_n "(cached) " >&6
33580else
33581 case $JXREncodeDelegate in
33582 [\\/]* | ?:[\\/]*)
33583 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33584 ;;
33585 *)
33586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33587for as_dir in $PATH
33588do
33589 IFS=$as_save_IFS
33590 test -z "$as_dir" && as_dir=.
33591 for ac_exec_ext in '' $ac_executable_extensions; do
33592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33593 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33595 break 2
33596 fi
33597done
33598 done
33599IFS=$as_save_IFS
33600
33601 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33602 ;;
33603esac
33604fi
33605JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33606if test -n "$JXREncodeDelegate"; then
33607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33608$as_echo "$JXREncodeDelegate" >&6; }
33609else
33610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33611$as_echo "no" >&6; }
33612fi
33613
33614
cristy3ed852e2009-09-05 21:47:34 +000033615# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33616set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033618$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033619if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033620 $as_echo_n "(cached) " >&6
33621else
33622 case $LPDelegate in
33623 [\\/]* | ?:[\\/]*)
33624 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33625 ;;
33626 *)
33627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33628for as_dir in $PATH
33629do
33630 IFS=$as_save_IFS
33631 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033632 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033634 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033636 break 2
33637 fi
33638done
cristy8b350f62009-11-15 23:12:43 +000033639 done
cristy3ed852e2009-09-05 21:47:34 +000033640IFS=$as_save_IFS
33641
33642 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33643 ;;
33644esac
33645fi
33646LPDelegate=$ac_cv_path_LPDelegate
33647if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033649$as_echo "$LPDelegate" >&6; }
33650else
cristy8b350f62009-11-15 23:12:43 +000033651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033652$as_echo "no" >&6; }
33653fi
33654
33655
33656# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33657set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033659$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033660if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033661 $as_echo_n "(cached) " >&6
33662else
33663 case $LPRDelegate in
33664 [\\/]* | ?:[\\/]*)
33665 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33666 ;;
33667 *)
33668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33669for as_dir in $PATH
33670do
33671 IFS=$as_save_IFS
33672 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033675 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033677 break 2
33678 fi
33679done
cristy8b350f62009-11-15 23:12:43 +000033680 done
cristy3ed852e2009-09-05 21:47:34 +000033681IFS=$as_save_IFS
33682
33683 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33684 ;;
33685esac
33686fi
33687LPRDelegate=$ac_cv_path_LPRDelegate
33688if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033690$as_echo "$LPRDelegate" >&6; }
33691else
cristy8b350f62009-11-15 23:12:43 +000033692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033693$as_echo "no" >&6; }
33694fi
33695
33696
cristy3ed852e2009-09-05 21:47:34 +000033697# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33698set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033701if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033702 $as_echo_n "(cached) " >&6
33703else
33704 case $LaunchDelegate in
33705 [\\/]* | ?:[\\/]*)
33706 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33707 ;;
33708 *)
33709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33710for as_dir in $PATH
33711do
33712 IFS=$as_save_IFS
33713 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033714 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033716 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033718 break 2
33719 fi
33720done
cristy8b350f62009-11-15 23:12:43 +000033721 done
cristy3ed852e2009-09-05 21:47:34 +000033722IFS=$as_save_IFS
33723
33724 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33725 ;;
33726esac
33727fi
33728LaunchDelegate=$ac_cv_path_LaunchDelegate
33729if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033731$as_echo "$LaunchDelegate" >&6; }
33732else
cristy8b350f62009-11-15 23:12:43 +000033733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033734$as_echo "no" >&6; }
33735fi
33736
33737
33738# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33739set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033742if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033743 $as_echo_n "(cached) " >&6
33744else
33745 case $MANDelegate in
33746 [\\/]* | ?:[\\/]*)
33747 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33748 ;;
33749 *)
33750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33751for as_dir in $PATH
33752do
33753 IFS=$as_save_IFS
33754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033757 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033759 break 2
33760 fi
33761done
cristy8b350f62009-11-15 23:12:43 +000033762 done
cristy3ed852e2009-09-05 21:47:34 +000033763IFS=$as_save_IFS
33764
33765 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33766 ;;
33767esac
33768fi
33769MANDelegate=$ac_cv_path_MANDelegate
33770if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033772$as_echo "$MANDelegate" >&6; }
33773else
cristy8b350f62009-11-15 23:12:43 +000033774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033775$as_echo "no" >&6; }
33776fi
33777
33778
33779# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33780set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033783if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033784 $as_echo_n "(cached) " >&6
33785else
33786 case $MPEGDecodeDelegate in
33787 [\\/]* | ?:[\\/]*)
33788 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33789 ;;
33790 *)
33791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33792for as_dir in $PATH
33793do
33794 IFS=$as_save_IFS
33795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033798 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033800 break 2
33801 fi
33802done
cristy8b350f62009-11-15 23:12:43 +000033803 done
cristy3ed852e2009-09-05 21:47:34 +000033804IFS=$as_save_IFS
33805
33806 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33807 ;;
33808esac
33809fi
33810MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33811if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033813$as_echo "$MPEGDecodeDelegate" >&6; }
33814else
cristy8b350f62009-11-15 23:12:43 +000033815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033816$as_echo "no" >&6; }
33817fi
33818
33819
33820# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33821set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033823$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033824if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033825 $as_echo_n "(cached) " >&6
33826else
33827 case $MPEGEncodeDelegate in
33828 [\\/]* | ?:[\\/]*)
33829 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33830 ;;
33831 *)
33832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33833for as_dir in $PATH
33834do
33835 IFS=$as_save_IFS
33836 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033837 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033839 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033841 break 2
33842 fi
33843done
cristy8b350f62009-11-15 23:12:43 +000033844 done
cristy3ed852e2009-09-05 21:47:34 +000033845IFS=$as_save_IFS
33846
33847 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33848 ;;
33849esac
33850fi
33851MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33852if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033854$as_echo "$MPEGEncodeDelegate" >&6; }
33855else
cristy8b350f62009-11-15 23:12:43 +000033856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033857$as_echo "no" >&6; }
33858fi
33859
33860
cristy935c86e2010-06-05 23:50:07 +000033861# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33862set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33864$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033865if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033866 $as_echo_n "(cached) " >&6
33867else
33868 case $MrSIDDecodeDelegate in
33869 [\\/]* | ?:[\\/]*)
33870 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33871 ;;
33872 *)
33873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33874for as_dir in $PATH
33875do
33876 IFS=$as_save_IFS
33877 test -z "$as_dir" && as_dir=.
33878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033880 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33882 break 2
33883 fi
33884done
33885 done
33886IFS=$as_save_IFS
33887
33888 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33889 ;;
33890esac
33891fi
33892MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33893if test -n "$MrSIDDecodeDelegate"; then
33894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33895$as_echo "$MrSIDDecodeDelegate" >&6; }
33896else
33897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33898$as_echo "no" >&6; }
33899fi
33900
33901
cristy3ed852e2009-09-05 21:47:34 +000033902# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33903set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033906if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033907 $as_echo_n "(cached) " >&6
33908else
33909 case $MVDelegate in
33910 [\\/]* | ?:[\\/]*)
33911 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33912 ;;
33913 *)
33914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33915for as_dir in $PATH
33916do
33917 IFS=$as_save_IFS
33918 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033921 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033923 break 2
33924 fi
33925done
cristy8b350f62009-11-15 23:12:43 +000033926 done
cristy3ed852e2009-09-05 21:47:34 +000033927IFS=$as_save_IFS
33928
33929 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33930 ;;
33931esac
33932fi
33933MVDelegate=$ac_cv_path_MVDelegate
33934if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033936$as_echo "$MVDelegate" >&6; }
33937else
cristy8b350f62009-11-15 23:12:43 +000033938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033939$as_echo "no" >&6; }
33940fi
33941
33942
33943# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33944set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033946$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033947if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033948 $as_echo_n "(cached) " >&6
33949else
33950 case $PCLDelegate in
33951 [\\/]* | ?:[\\/]*)
33952 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33953 ;;
33954 *)
33955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33956for as_dir in $PATH
33957do
33958 IFS=$as_save_IFS
33959 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033960 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033962 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033964 break 2
33965 fi
33966done
cristy8b350f62009-11-15 23:12:43 +000033967 done
cristy3ed852e2009-09-05 21:47:34 +000033968IFS=$as_save_IFS
33969
33970 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33971 ;;
33972esac
33973fi
33974PCLDelegate=$ac_cv_path_PCLDelegate
33975if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033977$as_echo "$PCLDelegate" >&6; }
33978else
cristy8b350f62009-11-15 23:12:43 +000033979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033980$as_echo "no" >&6; }
33981fi
33982
33983
33984# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33985set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033987$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033988if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033989 $as_echo_n "(cached) " >&6
33990else
33991 case $PGPDecodeDelegate in
33992 [\\/]* | ?:[\\/]*)
33993 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33994 ;;
33995 *)
33996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33997for as_dir in $PATH
33998do
33999 IFS=$as_save_IFS
34000 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034001 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034003 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034005 break 2
34006 fi
34007done
cristy8b350f62009-11-15 23:12:43 +000034008 done
cristy3ed852e2009-09-05 21:47:34 +000034009IFS=$as_save_IFS
34010
34011 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34012 ;;
34013esac
34014fi
34015PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34016if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034018$as_echo "$PGPDecodeDelegate" >&6; }
34019else
cristy8b350f62009-11-15 23:12:43 +000034020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034021$as_echo "no" >&6; }
34022fi
34023
34024
34025# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34026set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034028$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034029if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034030 $as_echo_n "(cached) " >&6
34031else
34032 case $POVDelegate in
34033 [\\/]* | ?:[\\/]*)
34034 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34035 ;;
34036 *)
34037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34038for as_dir in $PATH
34039do
34040 IFS=$as_save_IFS
34041 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034044 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034046 break 2
34047 fi
34048done
cristy8b350f62009-11-15 23:12:43 +000034049 done
cristy3ed852e2009-09-05 21:47:34 +000034050IFS=$as_save_IFS
34051
34052 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34053 ;;
34054esac
34055fi
34056POVDelegate=$ac_cv_path_POVDelegate
34057if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034059$as_echo "$POVDelegate" >&6; }
34060else
cristy8b350f62009-11-15 23:12:43 +000034061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034062$as_echo "no" >&6; }
34063fi
34064
34065
34066for ac_prog in gsx gsc "$PSDelegateDefault"
34067do
34068 # Extract the first word of "$ac_prog", so it can be a program name with args.
34069set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034071$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034072if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034073 $as_echo_n "(cached) " >&6
34074else
34075 case $PSDelegate in
34076 [\\/]* | ?:[\\/]*)
34077 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34078 ;;
34079 *)
34080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34081for as_dir in $PATH
34082do
34083 IFS=$as_save_IFS
34084 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034085 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034087 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034089 break 2
34090 fi
34091done
cristy8b350f62009-11-15 23:12:43 +000034092 done
cristy3ed852e2009-09-05 21:47:34 +000034093IFS=$as_save_IFS
34094
34095 ;;
34096esac
34097fi
34098PSDelegate=$ac_cv_path_PSDelegate
34099if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034101$as_echo "$PSDelegate" >&6; }
34102else
cristy8b350f62009-11-15 23:12:43 +000034103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034104$as_echo "no" >&6; }
34105fi
34106
34107
34108 test -n "$PSDelegate" && break
34109done
34110test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34111
34112# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34113set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034115$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034116if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034117 $as_echo_n "(cached) " >&6
34118else
34119 case $RLEEncodeDelegate in
34120 [\\/]* | ?:[\\/]*)
34121 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34122 ;;
34123 *)
34124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34125for as_dir in $PATH
34126do
34127 IFS=$as_save_IFS
34128 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034129 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034131 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034133 break 2
34134 fi
34135done
cristy8b350f62009-11-15 23:12:43 +000034136 done
cristy3ed852e2009-09-05 21:47:34 +000034137IFS=$as_save_IFS
34138
34139 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34140 ;;
34141esac
34142fi
34143RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34144if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034146$as_echo "$RLEEncodeDelegate" >&6; }
34147else
cristy8b350f62009-11-15 23:12:43 +000034148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034149$as_echo "no" >&6; }
34150fi
34151
34152
34153# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34154set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034156$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034157if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034158 $as_echo_n "(cached) " >&6
34159else
34160 case $RMDelegate in
34161 [\\/]* | ?:[\\/]*)
34162 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34163 ;;
34164 *)
34165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34166for as_dir in $PATH
34167do
34168 IFS=$as_save_IFS
34169 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034172 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034174 break 2
34175 fi
34176done
cristy8b350f62009-11-15 23:12:43 +000034177 done
cristy3ed852e2009-09-05 21:47:34 +000034178IFS=$as_save_IFS
34179
34180 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34181 ;;
34182esac
34183fi
34184RMDelegate=$ac_cv_path_RMDelegate
34185if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034187$as_echo "$RMDelegate" >&6; }
34188else
cristy8b350f62009-11-15 23:12:43 +000034189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034190$as_echo "no" >&6; }
34191fi
34192
34193
cristy4689cf02010-02-17 21:15:45 +000034194# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34195set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34197$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034198if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034199 $as_echo_n "(cached) " >&6
34200else
34201 case $RSVGDecodeDelegate in
34202 [\\/]* | ?:[\\/]*)
34203 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34204 ;;
34205 *)
34206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34207for as_dir in $PATH
34208do
34209 IFS=$as_save_IFS
34210 test -z "$as_dir" && as_dir=.
34211 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034213 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34215 break 2
34216 fi
34217done
34218 done
34219IFS=$as_save_IFS
34220
34221 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34222 ;;
34223esac
34224fi
34225RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34226if test -n "$RSVGDecodeDelegate"; then
34227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34228$as_echo "$RSVGDecodeDelegate" >&6; }
34229else
34230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34231$as_echo "no" >&6; }
34232fi
34233
34234
cristy3ed852e2009-09-05 21:47:34 +000034235# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34236set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034238$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034239if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034240 $as_echo_n "(cached) " >&6
34241else
34242 case $SCANDecodeDelegate in
34243 [\\/]* | ?:[\\/]*)
34244 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34245 ;;
34246 *)
34247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34248for as_dir in $PATH
34249do
34250 IFS=$as_save_IFS
34251 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034252 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034254 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034256 break 2
34257 fi
34258done
cristy8b350f62009-11-15 23:12:43 +000034259 done
cristy3ed852e2009-09-05 21:47:34 +000034260IFS=$as_save_IFS
34261
34262 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34263 ;;
34264esac
34265fi
34266SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34267if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034269$as_echo "$SCANDecodeDelegate" >&6; }
34270else
cristy8b350f62009-11-15 23:12:43 +000034271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034272$as_echo "no" >&6; }
34273fi
34274
34275
cristyec6934f2012-08-14 18:38:40 +000034276# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34277set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34279$as_echo_n "checking for $ac_word... " >&6; }
34280if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34281 $as_echo_n "(cached) " >&6
34282else
34283 case $SVGDecodeDelegate in
34284 [\\/]* | ?:[\\/]*)
34285 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34286 ;;
34287 *)
34288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34289for as_dir in $PATH
34290do
34291 IFS=$as_save_IFS
34292 test -z "$as_dir" && as_dir=.
34293 for ac_exec_ext in '' $ac_executable_extensions; do
34294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34295 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34297 break 2
34298 fi
34299done
34300 done
34301IFS=$as_save_IFS
34302
34303 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34304 ;;
34305esac
34306fi
34307SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34308if test -n "$SVGDecodeDelegate"; then
34309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34310$as_echo "$SVGDecodeDelegate" >&6; }
34311else
34312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34313$as_echo "no" >&6; }
34314fi
34315
34316
cristy3ed852e2009-09-05 21:47:34 +000034317# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34318set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034320$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034321if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034322 $as_echo_n "(cached) " >&6
34323else
34324 case $TXTDelegate in
34325 [\\/]* | ?:[\\/]*)
34326 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34327 ;;
34328 *)
34329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34330for as_dir in $PATH
34331do
34332 IFS=$as_save_IFS
34333 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034336 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034338 break 2
34339 fi
34340done
cristy8b350f62009-11-15 23:12:43 +000034341 done
cristy3ed852e2009-09-05 21:47:34 +000034342IFS=$as_save_IFS
34343
34344 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34345 ;;
34346esac
34347fi
34348TXTDelegate=$ac_cv_path_TXTDelegate
34349if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034351$as_echo "$TXTDelegate" >&6; }
34352else
cristy8b350f62009-11-15 23:12:43 +000034353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034354$as_echo "no" >&6; }
34355fi
34356
34357
cristy5ac9ac82010-07-29 13:24:24 +000034358# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34359set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34361$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034362if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034363 $as_echo_n "(cached) " >&6
34364else
34365 case $UniconvertorDelegate in
34366 [\\/]* | ?:[\\/]*)
34367 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34368 ;;
34369 *)
34370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34371for as_dir in $PATH
34372do
34373 IFS=$as_save_IFS
34374 test -z "$as_dir" && as_dir=.
34375 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034377 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34379 break 2
34380 fi
34381done
34382 done
34383IFS=$as_save_IFS
34384
34385 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34386 ;;
34387esac
34388fi
34389UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34390if test -n "$UniconvertorDelegate"; then
34391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34392$as_echo "$UniconvertorDelegate" >&6; }
34393else
34394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34395$as_echo "no" >&6; }
34396fi
34397
34398
cristy3ed852e2009-09-05 21:47:34 +000034399# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34400set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034402$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034403if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034404 $as_echo_n "(cached) " >&6
34405else
34406 case $WMFDecodeDelegate in
34407 [\\/]* | ?:[\\/]*)
34408 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34409 ;;
34410 *)
34411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34412for as_dir in $PATH
34413do
34414 IFS=$as_save_IFS
34415 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034416 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034418 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034420 break 2
34421 fi
34422done
cristy8b350f62009-11-15 23:12:43 +000034423 done
cristy3ed852e2009-09-05 21:47:34 +000034424IFS=$as_save_IFS
34425
34426 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34427 ;;
34428esac
34429fi
34430WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34431if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034433$as_echo "$WMFDecodeDelegate" >&6; }
34434else
cristy8b350f62009-11-15 23:12:43 +000034435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034436$as_echo "no" >&6; }
34437fi
34438
34439
34440# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34441set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034443$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034444if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034445 $as_echo_n "(cached) " >&6
34446else
34447 case $WWWDecodeDelegate in
34448 [\\/]* | ?:[\\/]*)
34449 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34450 ;;
34451 *)
34452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34453for as_dir in $PATH
34454do
34455 IFS=$as_save_IFS
34456 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034457 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034459 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034461 break 2
34462 fi
34463done
cristy8b350f62009-11-15 23:12:43 +000034464 done
cristy3ed852e2009-09-05 21:47:34 +000034465IFS=$as_save_IFS
34466
34467 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34468 ;;
34469esac
34470fi
34471WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34472if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034474$as_echo "$WWWDecodeDelegate" >&6; }
34475else
cristy8b350f62009-11-15 23:12:43 +000034476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034477$as_echo "no" >&6; }
34478fi
34479
34480
34481# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34482set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034484$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034485if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034486 $as_echo_n "(cached) " >&6
34487else
34488 case $XPSDelegate in
34489 [\\/]* | ?:[\\/]*)
34490 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34491 ;;
34492 *)
34493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34494for as_dir in $PATH
34495do
34496 IFS=$as_save_IFS
34497 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034498 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034500 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034502 break 2
34503 fi
34504done
cristy8b350f62009-11-15 23:12:43 +000034505 done
cristy3ed852e2009-09-05 21:47:34 +000034506IFS=$as_save_IFS
34507
34508 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34509 ;;
34510esac
34511fi
34512XPSDelegate=$ac_cv_path_XPSDelegate
34513if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034515$as_echo "$XPSDelegate" >&6; }
34516else
cristy8b350f62009-11-15 23:12:43 +000034517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034518$as_echo "no" >&6; }
34519fi
34520
34521
34522# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34523set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034525$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034526if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034527 $as_echo_n "(cached) " >&6
34528else
34529 case $ZipDelegate in
34530 [\\/]* | ?:[\\/]*)
34531 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34532 ;;
34533 *)
34534 as_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_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
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
34549 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34550 ;;
34551esac
34552fi
34553ZipDelegate=$ac_cv_path_ZipDelegate
34554if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034556$as_echo "$ZipDelegate" >&6; }
34557else
cristy8b350f62009-11-15 23:12:43 +000034558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034559$as_echo "no" >&6; }
34560fi
34561
34562
34563
34564# Prefer lpr to lp; lp needs options tacked on.
34565if test "$LPRDelegate" != no; then
34566 PrintDelegate="$LPRDelegate"
34567else
34568 PrintDelegate="$LPDelegate -c -s"
34569fi
34570
34571
34572# Installed ImageMagick utiltity paths
34573ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34574DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34575MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34576
34577# Set delegate booleans
34578have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34579have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34580have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34581have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34582have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034583have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034584have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34585have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034586have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34587have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34588
34589#
34590# Test for font directories
34591#
34592type_include_files=''
34593
cristy430a7312010-01-21 20:44:04 +000034594# Dejavu fonts.
34595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34596$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34597dejavu_font_dir=''
34598if test "${with_dejavu_font_dir}" != 'default'; then
34599 dejavu_font_dir="${with_dejavu_font_dir}/"
34600else
34601 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34602 if test -f "${font_dir}DejaVuSerif.ttf"; then
34603 dejavu_font_dir="${font_dir}"
34604 break 1
34605 fi
34606 done
34607fi
34608if test "${dejavu_font_dir}x" != 'x'; then
34609 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34611$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034612else
cristyad38abe2012-12-23 23:03:21 +000034613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34614$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034615fi
34616
34617
cristy3ed852e2009-09-05 21:47:34 +000034618# Windows
34619windows_font_dir=''
34620if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34621 windows_font_dir="${with_windows_font_dir}/"
34622fi
cristy430a7312010-01-21 20:44:04 +000034623if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034624 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34625 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34626 fi
34627 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34628 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34629 fi
34630 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34631 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34632 fi
34633fi
cristy430a7312010-01-21 20:44:04 +000034634if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034635 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34636fi
34637
34638
34639# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034641$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34642ghostscript_font_dir=''
34643if test "${with_gs_font_dir}" != 'default'; then
34644 ghostscript_font_dir="${with_gs_font_dir}/"
34645else
34646 if test "${native_win32_build}" = 'yes'; then
34647 # Native Windows Build
34648 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34649 if test -f "${font_dir}a010013l.pfb"; then
34650 ghostscript_font_dir="$font_dir"
34651 break 1
34652 fi
34653 done
34654 if test "${PSDelegate}" != 'gswin32c'; then
34655 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34656 fi
34657 else
34658 # Linux / Mac OS X / Unix Build
34659 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
34660 if test -f "${font_dir}a010013l.pfb"; then
34661 ghostscript_font_dir="${font_dir}"
34662 break 1
34663 fi
34664 done
34665 if test "${ghostscript_font_dir}x" = 'x'; then
34666 if test "$PSDelegate" != 'gs'; then
34667 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34668 fi
34669 fi
34670 fi
34671fi
34672if test "${ghostscript_font_dir}x" != 'x'; then
34673 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34675$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034676else
cristyad38abe2012-12-23 23:03:21 +000034677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34678$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034679fi
34680
34681case "${build_os}" in
34682 mingw* )
34683 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34684 ;;
34685esac
34686
34687
34688
34689#
34690# Handle case where user doesn't want frozen paths
34691#
34692if test "$with_frozenpaths" != 'yes'; then
34693 # Re-set delegate definitions to default (no paths)
34694 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034695 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34696 BZIPDelegate="$BZIPDelegateDefault"
34697 BrowseDelegate="$BrowseDelegateDefault"
34698 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34699 CatDelegate="$CatDelegateDefault"
34700 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034701 DisplayDelegate="$DisplayDelegateDefault"
34702 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034703 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34704 EchoDelegate="$EchoDelegateDefault"
34705 EditorDelegate="$EditorDelegateDefault"
34706 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34707 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034708 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034709 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34710 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34711 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34712 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034713 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34714 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034715 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034716 LaunchDelegate="$LaunchDelegateDefault"
34717 MANDelegate="$MANDelegateDefault"
34718 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34719 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034720 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034721 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34722 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034723 PCLDelegate="$PCLDelegateDefault"
34724 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34725 POVDelegate="$POVDelegateDefault"
34726 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034727 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34728 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034729 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034730 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034731 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034732 ShowImageDelegate="$ShowImageDelegateDefault"
34733 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034734 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034735 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34736 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34737 XPSDelegate="$XPSDelegateDefault"
34738 ZipDelegate="$ZipDelegateDefault"
34739fi
34740
34741# Delegate substitutions
34742
34743
34744
34745
34746
34747
34748
34749
34750
34751
34752
34753
34754
34755
34756
34757
34758
34759
34760
34761
34762
34763
34764
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
cristy71f53d52013-04-27 13:33:59 +000034782
34783
cristy3ed852e2009-09-05 21:47:34 +000034784#
34785# RPM support.
34786#
34787RPM=''
34788for ac_prog in gnutar gtar tar
34789do
34790 # Extract the first word of "$ac_prog", so it can be a program name with args.
34791set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034794if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034795 $as_echo_n "(cached) " >&6
34796else
34797 if test -n "$TAR"; then
34798 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34799else
34800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34801for as_dir in $PATH
34802do
34803 IFS=$as_save_IFS
34804 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034807 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034809 break 2
34810 fi
34811done
cristy8b350f62009-11-15 23:12:43 +000034812 done
cristy3ed852e2009-09-05 21:47:34 +000034813IFS=$as_save_IFS
34814
34815fi
34816fi
34817TAR=$ac_cv_prog_TAR
34818if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034820$as_echo "$TAR" >&6; }
34821else
cristy8b350f62009-11-15 23:12:43 +000034822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034823$as_echo "no" >&6; }
34824fi
34825
34826
34827 test -n "$TAR" && break
34828done
34829
34830for ac_prog in perl
34831do
34832 # Extract the first word of "$ac_prog", so it can be a program name with args.
34833set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034835$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034836if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034837 $as_echo_n "(cached) " >&6
34838else
34839 if test -n "$PERL"; then
34840 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34841else
34842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34843for as_dir in $PATH
34844do
34845 IFS=$as_save_IFS
34846 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034847 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034849 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034851 break 2
34852 fi
34853done
cristy8b350f62009-11-15 23:12:43 +000034854 done
cristy3ed852e2009-09-05 21:47:34 +000034855IFS=$as_save_IFS
34856
34857fi
34858fi
34859PERL=$ac_cv_prog_PERL
34860if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034862$as_echo "$PERL" >&6; }
34863else
cristy8b350f62009-11-15 23:12:43 +000034864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034865$as_echo "no" >&6; }
34866fi
34867
34868
34869 test -n "$PERL" && break
34870done
34871
34872for ac_prog in rpmbuild rpm
34873do
34874 # Extract the first word of "$ac_prog", so it can be a program name with args.
34875set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034877$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034878if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034879 $as_echo_n "(cached) " >&6
34880else
34881 if test -n "$RPM"; then
34882 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34883else
34884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34885for as_dir in $PATH
34886do
34887 IFS=$as_save_IFS
34888 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034891 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034893 break 2
34894 fi
34895done
cristy8b350f62009-11-15 23:12:43 +000034896 done
cristy3ed852e2009-09-05 21:47:34 +000034897IFS=$as_save_IFS
34898
34899fi
34900fi
34901RPM=$ac_cv_prog_RPM
34902if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034904$as_echo "$RPM" >&6; }
34905else
cristy8b350f62009-11-15 23:12:43 +000034906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034907$as_echo "no" >&6; }
34908fi
34909
34910
34911 test -n "$RPM" && break
34912done
34913
34914
cristy73bd4a52010-10-05 11:24:23 +000034915ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34916
34917
34918AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34919
34920
34921AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34922
34923
34924AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34925
34926
34927 if test "x$RPM" != "x" ; then
34928 RPM_DELEGATE_TRUE=
34929 RPM_DELEGATE_FALSE='#'
34930else
34931 RPM_DELEGATE_TRUE='#'
34932 RPM_DELEGATE_FALSE=
34933fi
34934
cristy3ed852e2009-09-05 21:47:34 +000034935
34936#
34937# 7ZIP support (http://p7zip.sourceforge.net/)
34938#
34939P7ZIP=''
34940for ac_prog in 7za
34941do
34942 # Extract the first word of "$ac_prog", so it can be a program name with args.
34943set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034945$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034946if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034947 $as_echo_n "(cached) " >&6
34948else
34949 if test -n "$P7ZIP"; then
34950 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34951else
34952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34953for as_dir in $PATH
34954do
34955 IFS=$as_save_IFS
34956 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034957 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034959 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034961 break 2
34962 fi
34963done
cristy8b350f62009-11-15 23:12:43 +000034964 done
cristy3ed852e2009-09-05 21:47:34 +000034965IFS=$as_save_IFS
34966
34967fi
34968fi
34969P7ZIP=$ac_cv_prog_P7ZIP
34970if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034972$as_echo "$P7ZIP" >&6; }
34973else
cristy8b350f62009-11-15 23:12:43 +000034974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034975$as_echo "no" >&6; }
34976fi
34977
34978
34979 test -n "$P7ZIP" && break
34980done
34981
34982
cristy73bd4a52010-10-05 11:24:23 +000034983 if test "x$P7ZIP" != "x" ; then
34984 P7ZIP_DELEGATE_TRUE=
34985 P7ZIP_DELEGATE_FALSE='#'
34986else
34987 P7ZIP_DELEGATE_TRUE='#'
34988 P7ZIP_DELEGATE_FALSE=
34989fi
34990
cristy3ed852e2009-09-05 21:47:34 +000034991
34992#
34993# ZIP support (http://www.info-zip.org/Zip.html)
34994#
34995ZIP=''
34996for ac_prog in zip
34997do
34998 # Extract the first word of "$ac_prog", so it can be a program name with args.
34999set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035001$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035002if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035003 $as_echo_n "(cached) " >&6
35004else
35005 if test -n "$ZIP"; then
35006 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35007else
35008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35009for as_dir in $PATH
35010do
35011 IFS=$as_save_IFS
35012 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035015 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035017 break 2
35018 fi
35019done
cristy8b350f62009-11-15 23:12:43 +000035020 done
cristy3ed852e2009-09-05 21:47:34 +000035021IFS=$as_save_IFS
35022
35023fi
35024fi
35025ZIP=$ac_cv_prog_ZIP
35026if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035028$as_echo "$ZIP" >&6; }
35029else
cristy8b350f62009-11-15 23:12:43 +000035030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035031$as_echo "no" >&6; }
35032fi
35033
35034
35035 test -n "$ZIP" && break
35036done
35037
35038
cristy73bd4a52010-10-05 11:24:23 +000035039 if test "x$ZIP" != "x" ; then
35040 ZIP_DELEGATE_TRUE=
35041 ZIP_DELEGATE_FALSE='#'
35042else
35043 ZIP_DELEGATE_TRUE='#'
35044 ZIP_DELEGATE_FALSE=
35045fi
35046
cristy3ed852e2009-09-05 21:47:34 +000035047
35048#
35049# GhostPCL related configuration.
35050#
35051PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035052PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035053PCLMonoDevice=pbmraw
35054if test -z "$PCLVersion"; then
35055 PCLVersion='unknown'
35056fi
35057if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35059$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035061$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35063$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035064 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035066$as_echo_n "checking for pcl color device... " >&6; }
35067 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35068 :
35069 else
35070 PCLColorDevice=ppmraw
35071 fi
cristyad38abe2012-12-23 23:03:21 +000035072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35073$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035074
35075 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035077$as_echo_n "checking for pcl CMYK device... " >&6; }
35078 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35079 :
35080 else
35081 PCLCMYKDevice=$PCLColorDevice
35082 fi
cristyad38abe2012-12-23 23:03:21 +000035083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35084$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035085
35086 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035088$as_echo_n "checking for pcl mono device... " >&6; }
35089 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35090 :
35091 else
35092 PCLMonoDevice=$PCLColorDevice
35093 fi
cristyad38abe2012-12-23 23:03:21 +000035094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35095$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035096fi
35097
35098
35099
35100
35101
35102
35103#
35104# GhostXPS related configuration.
35105#
35106XPSColorDevice=ppmraw
35107XPSCMYKDevice=bmpsep8
35108XPSMonoDevice=pbmraw
35109if test -z "$XPSVersion"; then
35110 XPSVersion='unknown'
35111fi
35112if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35114$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035116$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35118$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035119 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035121$as_echo_n "checking for xps color device... " >&6; }
35122 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35123 :
35124 else
35125 XPSColorDevice=ppmraw
35126 fi
cristyad38abe2012-12-23 23:03:21 +000035127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35128$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035129
35130 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035132$as_echo_n "checking for xps CMYK device... " >&6; }
35133 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35134 :
35135 else
35136 XPSCMYKDevice=$XPSColorDevice
35137 fi
cristyad38abe2012-12-23 23:03:21 +000035138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35139$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035140
35141 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035143$as_echo_n "checking for xps mono device... " >&6; }
35144 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35145 :
35146 else
35147 XPSMonoDevice=$XPSColorDevice
35148 fi
cristyad38abe2012-12-23 23:03:21 +000035149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35150$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035151fi
35152
35153
35154
35155
35156
35157
35158#
35159# Ghostscript related configuration.
35160#
cristya97426c2011-02-04 01:41:27 +000035161GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035162GSColorDevice=pnmraw
35163GSCMYKDevice=pam
35164GSMonoDevice=pbmraw
35165GSPDFDevice=pdfwrite
35166GSPSDevice=pswrite
35167GSEPSDevice=epswrite
35168GSVersion='unknown'
35169if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35171$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035173$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35175$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035177$as_echo_n "checking for Ghostscript version... " >&6; }
35178 if GSVersion=`$PSDelegate --version`; then
35179 :
35180 else
35181 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35182 fi
cristyad38abe2012-12-23 23:03:21 +000035183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35184$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035185
35186 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035188$as_echo_n "checking for gs alpha device... " >&6; }
35189 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35190 :
35191 else
35192 GSAlphaDevice=pnmraw
35193 fi
cristyad38abe2012-12-23 23:03:21 +000035194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35195$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035196
35197 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035199$as_echo_n "checking for gs color device... " >&6; }
35200 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35201 :
35202 else
35203 GSColorDevice=pnmraw
35204 fi
cristyad38abe2012-12-23 23:03:21 +000035205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35206$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035207
35208 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035210$as_echo_n "checking for gs CMYK device... " >&6; }
35211 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35212 :
35213 else
35214 GSCMYKDevice=bmpsep8
35215 fi
cristyad38abe2012-12-23 23:03:21 +000035216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35217$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035218
35219 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035221$as_echo_n "checking for gs mono device... " >&6; }
35222 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35223 :
35224 else
35225 GSMonoDevice=$GSColorDevice
35226 fi
cristyad38abe2012-12-23 23:03:21 +000035227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35228$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035229
35230 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035232$as_echo_n "checking for gs PDF writing device... " >&6; }
35233 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35234 :
35235 else
35236 GSPDFDevice=nodevice
35237 fi
cristyad38abe2012-12-23 23:03:21 +000035238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35239$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035240
35241 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035243$as_echo_n "checking for gs PS writing device... " >&6; }
35244 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35245 :
35246 else
35247 GSPSDevice=nodevice
35248 fi
cristyad38abe2012-12-23 23:03:21 +000035249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35250$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035251
35252 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035254$as_echo_n "checking for gs EPS writing device... " >&6; }
35255 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35256 :
35257 else
35258 GSEPSDevice=nodevice
35259 fi
cristyad38abe2012-12-23 23:03:21 +000035260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35261$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035262fi
35263
35264
35265
35266
35267
35268
35269
35270
35271
35272
35273#
35274# PerlMagick-related configuration
35275#
35276
35277# Look for PERL if PerlMagick requested
35278# If name/path of desired PERL interpreter is specified, look for that one first
35279have_perl='no'
35280if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35282$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035284$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35286$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035287 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035289$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035290if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035291 $as_echo_n "(cached) " >&6
35292else
35293 ac_cv_path_PERL="$with_perl"
35294fi
cristy8b350f62009-11-15 23:12:43 +000035295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035296$as_echo "$ac_cv_path_PERL" >&6; };
35297 PERL=$ac_cv_path_PERL
35298 have_perl="$ac_cv_path_PERL"
35299 else
35300 for ac_prog in perl perl5
35301do
35302 # Extract the first word of "$ac_prog", so it can be a program name with args.
35303set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035305$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035306if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035307 $as_echo_n "(cached) " >&6
35308else
35309 case $PERL in
35310 [\\/]* | ?:[\\/]*)
35311 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35312 ;;
35313 *)
35314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35315for as_dir in $PATH
35316do
35317 IFS=$as_save_IFS
35318 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035319 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035321 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035323 break 2
35324 fi
35325done
cristy8b350f62009-11-15 23:12:43 +000035326 done
cristy3ed852e2009-09-05 21:47:34 +000035327IFS=$as_save_IFS
35328
35329 ;;
35330esac
35331fi
35332PERL=$ac_cv_path_PERL
35333if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035335$as_echo "$PERL" >&6; }
35336else
cristy8b350f62009-11-15 23:12:43 +000035337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035338$as_echo "no" >&6; }
35339fi
35340
35341
35342 test -n "$PERL" && break
35343done
35344 if test "$ac_cv_path_PERL"; then
35345 have_perl="$ac_cv_path_PERL"
35346 fi
35347 fi
35348fi
35349
cristy949301e2010-01-06 01:38:40 +000035350if test "$with_perl" != 'yes' ; then
35351 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35352fi
35353
35354PERL_SUPPORTS_DESTDIR='no'
35355
cristy3ed852e2009-09-05 21:47:34 +000035356with_perl_static='no'
35357with_perl_dynamic='no'
35358if test "$have_perl" != 'no'; then
35359 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35360 with_perl_static='yes'
35361 fi
35362 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35363 with_perl_dynamic='yes'
35364 fi
35365 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035366
35367
35368
35369
35370 if test -n "$PERL"; then :
35371
35372 ax_perl_version="5.8.1"
35373
35374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35375$as_echo_n "checking for perl version... " >&6; }
35376
35377 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35378
35379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35380$as_echo "$perl_version" >&6; }
35381
35382 PERL_VERSION=$perl_version
35383
35384
35385
35386
35387
35388 # Used to indicate true or false condition
35389 ax_compare_version=false
35390
35391 # Convert the two version strings to be compared into a format that
35392 # allows a simple string comparison. The end result is that a version
35393 # string of the form 1.12.5-r617 will be converted to the form
35394 # 0001001200050617. In other words, each number is zero padded to four
35395 # digits, and non digits are removed.
35396
35397 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35398 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35399 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35400 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35401 -e 's/[^0-9]//g'`
35402
35403
35404 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35405 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35406 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35407 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35408 -e 's/[^0-9]//g'`
35409
35410
35411 ax_compare_version=`echo "x$ax_compare_version_A
35412x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35413
35414
35415
35416 if test "$ax_compare_version" = "true" ; then
35417
35418 :
35419 PERL_SUPPORTS_DESTDIR='yes'
35420
35421 else
35422 :
35423 PERL_SUPPORTS_DESTDIR='no'
35424
35425 fi
35426
35427
35428else
35429
35430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35431$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35432 PERL_SUPPORTS_DESTDIR='no'
35433
cristy3ed852e2009-09-05 21:47:34 +000035434fi
cristy73bd4a52010-10-05 11:24:23 +000035435
35436fi
35437 if test "$have_perl" != 'no'; then
35438 WITH_PERL_TRUE=
35439 WITH_PERL_FALSE='#'
35440else
35441 WITH_PERL_TRUE='#'
35442 WITH_PERL_FALSE=
35443fi
35444
35445 if test $with_perl_static = 'yes'; then
35446 WITH_PERL_STATIC_TRUE=
35447 WITH_PERL_STATIC_FALSE='#'
35448else
35449 WITH_PERL_STATIC_TRUE='#'
35450 WITH_PERL_STATIC_FALSE=
35451fi
35452
35453 if test $with_perl_dynamic = 'yes'; then
35454 WITH_PERL_DYNAMIC_TRUE=
35455 WITH_PERL_DYNAMIC_FALSE='#'
35456else
35457 WITH_PERL_DYNAMIC_TRUE='#'
35458 WITH_PERL_DYNAMIC_FALSE=
35459fi
35460
cristy3ed852e2009-09-05 21:47:34 +000035461
35462
35463# Determine path to pick up MagickCore library from for use with building PerlMagick
35464MAGICKCORE_PATH="${LIB_DIR}"
35465if test $with_perl_static = 'yes'; then
35466 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35467 libtool_objdir=$objdir
35468
35469 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035470 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035471fi
35472
35473
cristy2a3eb392012-12-17 13:39:20 +000035474# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035475MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035476if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035477 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035478fi
cristy2a3eb392012-12-17 13:39:20 +000035479if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035480 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035481fi
35482if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035483 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035484fi
35485if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035486 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035487fi
35488if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035489 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035490fi
35491if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035492 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035493fi
35494if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035495 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035496fi
35497if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035498 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035499fi
35500if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035501 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035502fi
35503if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035504 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035505fi
35506if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035507 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035508fi
35509if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035510 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035511fi
35512if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035513 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035514fi
35515if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035516 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035517fi
35518if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035519 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035520fi
35521if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035522 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035523fi
35524if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035525 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035526fi
35527if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035528 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035529fi
35530if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035531 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035532fi
35533if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035534 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035535fi
35536if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035537 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035538fi
35539have_ps='no'
35540if test "$have_dps" = 'yes' || \
35541 test "$have_gs" = 'yes' || \
35542 test "${native_win32_build}" = 'yes' ; then
35543 have_ps='yes'
35544fi
35545if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035546 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035547fi
35548if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035549 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035550fi
35551if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035552 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035553fi
35554if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035555 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035556fi
35557if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035558 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035559fi
35560if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035561 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035562fi
35563if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035564 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035565fi
35566if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035567 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035568fi
35569if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035570 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035571fi
35572if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035573 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035574fi
cristy2a3eb392012-12-17 13:39:20 +000035575# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035576MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035577MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035578
35579
cristyfa161182012-12-19 15:45:28 +000035580
cristy3ed852e2009-09-05 21:47:34 +000035581#
35582# Handle special compiler flags
35583#
35584
35585# Add '-p' if prof source profiling support enabled
35586if test "$enable_prof" = 'yes'; then
35587 CFLAGS="-p $CFLAGS"
35588 CXXFLAGS="-p $CXXFLAGS"
35589 LDFLAGS="-p $LDFLAGS"
35590fi
35591
35592# Add '-pg' if gprof source profiling support enabled
35593if test "$enable_gprof" = 'yes'; then
35594 CFLAGS="-pg $CFLAGS"
35595 CXXFLAGS="-pg $CXXFLAGS"
35596 LDFLAGS="-pg $LDFLAGS"
35597fi
35598
35599# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35600# This is a gcc-specific feature
35601if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035603$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035604if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035605 $as_echo_n "(cached) " >&6
35606else
35607 ac_check_lib_save_LIBS=$LIBS
35608LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035610/* end confdefs.h. */
35611
35612/* Override any GCC internal prototype to avoid an error.
35613 Use char because int might match the return type of a GCC
35614 builtin and then its argument prototype would still apply. */
35615#ifdef __cplusplus
35616extern "C"
35617#endif
35618char _gcov_init ();
35619int
35620main ()
35621{
35622return _gcov_init ();
35623 ;
35624 return 0;
35625}
35626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035628 ac_cv_lib_gcov__gcov_init=yes
35629else
cristy8b350f62009-11-15 23:12:43 +000035630 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035631fi
cristy8b350f62009-11-15 23:12:43 +000035632rm -f core conftest.err conftest.$ac_objext \
35633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035634LIBS=$ac_check_lib_save_LIBS
35635fi
cristy8b350f62009-11-15 23:12:43 +000035636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035637$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035638if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035639 cat >>confdefs.h <<_ACEOF
35640#define HAVE_LIBGCOV 1
35641_ACEOF
35642
35643 LIBS="-lgcov $LIBS"
35644
35645fi
35646
cristy8b350f62009-11-15 23:12:43 +000035647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035648$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035649if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035650 $as_echo_n "(cached) " >&6
35651else
35652 ac_check_lib_save_LIBS=$LIBS
35653LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035655/* end confdefs.h. */
35656
35657/* Override any GCC internal prototype to avoid an error.
35658 Use char because int might match the return type of a GCC
35659 builtin and then its argument prototype would still apply. */
35660#ifdef __cplusplus
35661extern "C"
35662#endif
35663char __gcov_init ();
35664int
35665main ()
35666{
35667return __gcov_init ();
35668 ;
35669 return 0;
35670}
35671_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035672if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035673 ac_cv_lib_gcov___gcov_init=yes
35674else
cristy8b350f62009-11-15 23:12:43 +000035675 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035676fi
cristy8b350f62009-11-15 23:12:43 +000035677rm -f core conftest.err conftest.$ac_objext \
35678 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035679LIBS=$ac_check_lib_save_LIBS
35680fi
cristy8b350f62009-11-15 23:12:43 +000035681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035682$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035683if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035684 cat >>confdefs.h <<_ACEOF
35685#define HAVE_LIBGCOV 1
35686_ACEOF
35687
35688 LIBS="-lgcov $LIBS"
35689
35690fi
35691
35692 case "$target_os" in
35693 darwin*)
35694 OSX_GCOV_LDFLAG="-Wl,-single_module"
35695 ;;
35696 *)
35697 OSX_GCOV_LDFLAG=""
35698 ;;
35699 esac
35700
35701 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35702 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35703 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35704fi
35705
35706#
35707# Build library dependency list for libMagickCore
35708#
35709
cristyc6722092012-10-14 00:19:31 +000035710if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035711 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 +000035712else
cristy3a75f062012-09-08 23:29:40 +000035713 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 +000035714fi
35715
35716
35717#
35718# Remove extraneous spaces from output variables (asthetic)
35719#
35720X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35721X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35722X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35723X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35724
35725CC=`echo $CC | sed -e 's/ */ /g'`
35726CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35727CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35728CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035729DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35730LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35731TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35732MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35733#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35734
35735# Pass only user-provided LIBS as "global" libraries
35736LIBS=$USER_LIBS
35737
35738#AC_SUBST(CPPFLAGS)
35739
35740#AC_SUBST(LDFLAGS)
35741#AC_SUBST(X_PRE_LIBS)
35742#AC_SUBST(X_LIBS)
35743#AC_SUBST(X_EXTRA_LIBS)
35744
35745MAGICK_CFLAGS=$CFLAGS
35746MAGICK_CXXFLAGS="$CXXFLAGS"
35747MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35748MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35749MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035750MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035751
35752
35753
35754
35755
35756
35757
35758
35759# Set configured scripts to executable.
35760ac_config_commands="$ac_config_commands default"
35761
cristy2bd4b6e2012-07-22 15:29:11 +000035762ac_config_commands="$ac_config_commands magick.sh.in"
35763
cristy3ed852e2009-09-05 21:47:34 +000035764ac_config_commands="$ac_config_commands MagickCore-config.in"
35765
cristy3ed852e2009-09-05 21:47:34 +000035766ac_config_commands="$ac_config_commands MagickWand-config.in"
35767
cristy3ed852e2009-09-05 21:47:34 +000035768ac_config_commands="$ac_config_commands Magick++-config.in"
35769
35770ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35771
35772
cristyad38abe2012-12-23 23:03:21 +000035773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35774$as_echo "-------------------------------------------------------------" >&6; }
35775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35776$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035777cat >confcache <<\_ACEOF
35778# This file is a shell script that caches the results of configure
35779# tests run on this system so they can be shared between configure
35780# scripts and configure runs, see configure's option --config-cache.
35781# It is not useful on other systems. If it contains results you don't
35782# want to keep, you may remove or edit it.
35783#
35784# config.status only pays attention to the cache file if you give it
35785# the --recheck option to rerun configure.
35786#
35787# `ac_cv_env_foo' variables (set or unset) will be overridden when
35788# loading this file, other *unset* `ac_cv_foo' will be assigned the
35789# following values.
35790
35791_ACEOF
35792
35793# The following way of writing the cache mishandles newlines in values,
35794# but we know of no workaround that is simple, portable, and efficient.
35795# So, we kill variables containing newlines.
35796# Ultrix sh set writes to stderr and can't be redirected directly,
35797# and sets the high bit in the cache file unless we assign to the vars.
35798(
35799 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35800 eval ac_val=\$$ac_var
35801 case $ac_val in #(
35802 *${as_nl}*)
35803 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035804 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035805$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35806 esac
35807 case $ac_var in #(
35808 _ | IFS | as_nl) ;; #(
35809 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035810 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035811 esac ;;
35812 esac
35813 done
35814
35815 (set) 2>&1 |
35816 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35817 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035818 # `set' does not quote correctly, so add quotes: double-quote
35819 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035820 sed -n \
35821 "s/'/'\\\\''/g;
35822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35823 ;; #(
35824 *)
35825 # `set' quotes correctly as required by POSIX, so do not add quotes.
35826 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35827 ;;
35828 esac |
35829 sort
35830) |
35831 sed '
35832 /^ac_cv_env_/b end
35833 t clear
35834 :clear
35835 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35836 t end
35837 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35838 :end' >>confcache
35839if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35840 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035841 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035842 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035843$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035844 if test ! -f "$cache_file" || test -h "$cache_file"; then
35845 cat confcache >"$cache_file"
35846 else
35847 case $cache_file in #(
35848 */* | ?:*)
35849 mv -f confcache "$cache_file"$$ &&
35850 mv -f "$cache_file"$$ "$cache_file" ;; #(
35851 *)
35852 mv -f confcache "$cache_file" ;;
35853 esac
35854 fi
35855 fi
cristy3ed852e2009-09-05 21:47:34 +000035856 else
cristy8b350f62009-11-15 23:12:43 +000035857 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035858$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35859 fi
35860fi
35861rm -f confcache
35862
35863test "x$prefix" = xNONE && prefix=$ac_default_prefix
35864# Let make expand exec_prefix.
35865test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35866
35867DEFS=-DHAVE_CONFIG_H
35868
35869ac_libobjs=
35870ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035871U=
cristy3ed852e2009-09-05 21:47:34 +000035872for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35873 # 1. Remove the extension, and $U if already installed.
35874 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35875 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35876 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35877 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035878 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35879 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035880done
35881LIBOBJS=$ac_libobjs
35882
35883LTLIBOBJS=$ac_ltlibobjs
35884
35885
cristyc0890a62012-07-19 00:18:20 +000035886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35887$as_echo_n "checking that generated files are newer than configure... " >&6; }
35888 if test -n "$am_sleep_pid"; then
35889 # Hide warnings about reused PIDs.
35890 wait $am_sleep_pid 2>/dev/null
35891 fi
35892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35893$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035894 if test -n "$EXEEXT"; then
35895 am__EXEEXT_TRUE=
35896 am__EXEEXT_FALSE='#'
35897else
35898 am__EXEEXT_TRUE='#'
35899 am__EXEEXT_FALSE=
35900fi
cristy3ed852e2009-09-05 21:47:34 +000035901
cristy73bd4a52010-10-05 11:24:23 +000035902if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035903 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035904Usually this means the macro was only invoked conditionally." "$LINENO" 5
35905fi
35906if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035907 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035908Usually this means the macro was only invoked conditionally." "$LINENO" 5
35909fi
35910if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035911 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035912Usually this means the macro was only invoked conditionally." "$LINENO" 5
35913fi
35914if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035915 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035916Usually this means the macro was only invoked conditionally." "$LINENO" 5
35917fi
cristy9b86f202012-11-28 21:55:35 +000035918if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35919 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35920Usually this means the macro was only invoked conditionally." "$LINENO" 5
35921fi
cristy73bd4a52010-10-05 11:24:23 +000035922if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035923 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035924Usually this means the macro was only invoked conditionally." "$LINENO" 5
35925fi
35926if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035927 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035928Usually this means the macro was only invoked conditionally." "$LINENO" 5
35929fi
35930if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035931 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035932Usually this means the macro was only invoked conditionally." "$LINENO" 5
35933fi
35934if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035935 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035936Usually this means the macro was only invoked conditionally." "$LINENO" 5
35937fi
cristy73bd4a52010-10-05 11:24:23 +000035938if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035939 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035940Usually this means the macro was only invoked conditionally." "$LINENO" 5
35941fi
35942if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035943 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035944Usually this means the macro was only invoked conditionally." "$LINENO" 5
35945fi
cristy73bd4a52010-10-05 11:24:23 +000035946if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035947 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035948Usually this means the macro was only invoked conditionally." "$LINENO" 5
35949fi
cristy71d8c202012-03-20 17:05:01 +000035950if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35951 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35952Usually this means the macro was only invoked conditionally." "$LINENO" 5
35953fi
cristy73bd4a52010-10-05 11:24:23 +000035954
35955if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035956 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035957Usually this means the macro was only invoked conditionally." "$LINENO" 5
35958fi
35959if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035960 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035961Usually this means the macro was only invoked conditionally." "$LINENO" 5
35962fi
35963if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035964 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035965Usually this means the macro was only invoked conditionally." "$LINENO" 5
35966fi
35967if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035968 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035969Usually this means the macro was only invoked conditionally." "$LINENO" 5
35970fi
35971if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035972 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035973Usually this means the macro was only invoked conditionally." "$LINENO" 5
35974fi
35975if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035976 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035977Usually this means the macro was only invoked conditionally." "$LINENO" 5
35978fi
cristy5eef09f2012-10-16 12:08:28 +000035979if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35980 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35981Usually this means the macro was only invoked conditionally." "$LINENO" 5
35982fi
cristy73bd4a52010-10-05 11:24:23 +000035983if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035984 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035985Usually this means the macro was only invoked conditionally." "$LINENO" 5
35986fi
35987if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035988 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035989Usually this means the macro was only invoked conditionally." "$LINENO" 5
35990fi
35991if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035992 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035993Usually this means the macro was only invoked conditionally." "$LINENO" 5
35994fi
35995if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035996 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035997Usually this means the macro was only invoked conditionally." "$LINENO" 5
35998fi
35999if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036000 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036001Usually this means the macro was only invoked conditionally." "$LINENO" 5
36002fi
36003if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036004 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036005Usually this means the macro was only invoked conditionally." "$LINENO" 5
36006fi
36007if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036008 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036009Usually this means the macro was only invoked conditionally." "$LINENO" 5
36010fi
36011if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036012 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036013Usually this means the macro was only invoked conditionally." "$LINENO" 5
36014fi
36015if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036016 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036017Usually this means the macro was only invoked conditionally." "$LINENO" 5
36018fi
36019if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036020 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036021Usually this means the macro was only invoked conditionally." "$LINENO" 5
36022fi
36023if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036024 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036025Usually this means the macro was only invoked conditionally." "$LINENO" 5
36026fi
36027if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036028 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036029Usually this means the macro was only invoked conditionally." "$LINENO" 5
36030fi
36031if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036032 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036033Usually this means the macro was only invoked conditionally." "$LINENO" 5
36034fi
36035if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036036 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036037Usually this means the macro was only invoked conditionally." "$LINENO" 5
36038fi
cristyfbb0ef02010-12-19 02:32:11 +000036039if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36040 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36041Usually this means the macro was only invoked conditionally." "$LINENO" 5
36042fi
cristy73bd4a52010-10-05 11:24:23 +000036043if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036044 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036045Usually this means the macro was only invoked conditionally." "$LINENO" 5
36046fi
cristy41cbe8a2011-10-27 01:35:18 +000036047if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36048 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36049Usually this means the macro was only invoked conditionally." "$LINENO" 5
36050fi
cristya054b762012-03-26 23:16:00 +000036051if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36052 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036053Usually this means the macro was only invoked conditionally." "$LINENO" 5
36054fi
cristy73bd4a52010-10-05 11:24:23 +000036055if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036056 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036057Usually this means the macro was only invoked conditionally." "$LINENO" 5
36058fi
36059if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036060 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036061Usually this means the macro was only invoked conditionally." "$LINENO" 5
36062fi
36063if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036064 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036065Usually this means the macro was only invoked conditionally." "$LINENO" 5
36066fi
36067if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036068 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036069Usually this means the macro was only invoked conditionally." "$LINENO" 5
36070fi
cristyb1860752011-03-14 00:27:46 +000036071if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36072 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36073Usually this means the macro was only invoked conditionally." "$LINENO" 5
36074fi
cristy73bd4a52010-10-05 11:24:23 +000036075if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036076 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036077Usually this means the macro was only invoked conditionally." "$LINENO" 5
36078fi
36079if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036080 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036081Usually this means the macro was only invoked conditionally." "$LINENO" 5
36082fi
36083if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036084 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036085Usually this means the macro was only invoked conditionally." "$LINENO" 5
36086fi
36087if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036088 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036089Usually this means the macro was only invoked conditionally." "$LINENO" 5
36090fi
36091if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036092 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036093Usually this means the macro was only invoked conditionally." "$LINENO" 5
36094fi
36095if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036096 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036097Usually this means the macro was only invoked conditionally." "$LINENO" 5
36098fi
36099if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036100 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036101Usually this means the macro was only invoked conditionally." "$LINENO" 5
36102fi
36103if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036104 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036105Usually this means the macro was only invoked conditionally." "$LINENO" 5
36106fi
cristy3ed852e2009-09-05 21:47:34 +000036107
cristyda16f162011-02-19 23:52:17 +000036108: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036109ac_write_fail=0
36110ac_clean_files_save=$ac_clean_files
36111ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036112{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036113$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036114as_write_fail=0
36115cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036116#! $SHELL
36117# Generated by $as_me.
36118# Run this file to recreate the current configuration.
36119# Compiler output produced by configure, useful for debugging
36120# configure, is in config.log if it exists.
36121
36122debug=false
36123ac_cs_recheck=false
36124ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036125
cristy8b350f62009-11-15 23:12:43 +000036126SHELL=\${CONFIG_SHELL-$SHELL}
36127export SHELL
36128_ASEOF
36129cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36130## -------------------- ##
36131## M4sh Initialization. ##
36132## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036133
36134# Be more Bourne compatible
36135DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036136if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036137 emulate sh
36138 NULLCMD=:
36139 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36140 # is contrary to our usage. Disable this feature.
36141 alias -g '${1+"$@"}'='"$@"'
36142 setopt NO_GLOB_SUBST
36143else
cristy8b350f62009-11-15 23:12:43 +000036144 case `(set -o) 2>/dev/null` in #(
36145 *posix*) :
36146 set -o posix ;; #(
36147 *) :
36148 ;;
cristy3ed852e2009-09-05 21:47:34 +000036149esac
cristy3ed852e2009-09-05 21:47:34 +000036150fi
36151
36152
cristy3ed852e2009-09-05 21:47:34 +000036153as_nl='
36154'
36155export as_nl
36156# Printing a long string crashes Solaris 7 /usr/bin/printf.
36157as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36158as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36159as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036160# Prefer a ksh shell builtin over an external printf program on Solaris,
36161# but without wasting forks for bash or zsh.
36162if test -z "$BASH_VERSION$ZSH_VERSION" \
36163 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36164 as_echo='print -r --'
36165 as_echo_n='print -rn --'
36166elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036167 as_echo='printf %s\n'
36168 as_echo_n='printf %s'
36169else
36170 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36171 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36172 as_echo_n='/usr/ucb/echo -n'
36173 else
36174 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36175 as_echo_n_body='eval
36176 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036177 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036178 *"$as_nl"*)
36179 expr "X$arg" : "X\\(.*\\)$as_nl";
36180 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36181 esac;
36182 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36183 '
36184 export as_echo_n_body
36185 as_echo_n='sh -c $as_echo_n_body as_echo'
36186 fi
36187 export as_echo_body
36188 as_echo='sh -c $as_echo_body as_echo'
36189fi
36190
36191# The user is always right.
36192if test "${PATH_SEPARATOR+set}" != set; then
36193 PATH_SEPARATOR=:
36194 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36195 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36196 PATH_SEPARATOR=';'
36197 }
36198fi
36199
cristy3ed852e2009-09-05 21:47:34 +000036200
36201# IFS
36202# We need space, tab and new line, in precisely that order. Quoting is
36203# there to prevent editors from complaining about space-tab.
36204# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36205# splitting by setting IFS to empty value.)
36206IFS=" "" $as_nl"
36207
36208# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036209as_myself=
cristy8b350f62009-11-15 23:12:43 +000036210case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036211 *[\\/]* ) as_myself=$0 ;;
36212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36213for as_dir in $PATH
36214do
36215 IFS=$as_save_IFS
36216 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36218 done
cristy3ed852e2009-09-05 21:47:34 +000036219IFS=$as_save_IFS
36220
36221 ;;
36222esac
36223# We did not find ourselves, most probably we were run as `sh COMMAND'
36224# in which case we are not to be found in the path.
36225if test "x$as_myself" = x; then
36226 as_myself=$0
36227fi
36228if test ! -f "$as_myself"; then
36229 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036230 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036231fi
36232
cristy8b350f62009-11-15 23:12:43 +000036233# Unset variables that we do not need and which cause bugs (e.g. in
36234# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36235# suppresses any "Segmentation fault" message there. '((' could
36236# trigger a bug in pdksh 5.2.14.
36237for as_var in BASH_ENV ENV MAIL MAILPATH
36238do eval test x\${$as_var+set} = xset \
36239 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036240done
36241PS1='$ '
36242PS2='> '
36243PS4='+ '
36244
36245# NLS nuisances.
36246LC_ALL=C
36247export LC_ALL
36248LANGUAGE=C
36249export LANGUAGE
36250
cristy8b350f62009-11-15 23:12:43 +000036251# CDPATH.
36252(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36253
36254
cristy98dddb52010-11-04 00:30:15 +000036255# as_fn_error STATUS ERROR [LINENO LOG_FD]
36256# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036257# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36258# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036259# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036260as_fn_error ()
36261{
cristy98dddb52010-11-04 00:30:15 +000036262 as_status=$1; test $as_status -eq 0 && as_status=1
36263 if test "$4"; then
36264 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36265 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036266 fi
cristy98dddb52010-11-04 00:30:15 +000036267 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036268 as_fn_exit $as_status
36269} # as_fn_error
36270
36271
36272# as_fn_set_status STATUS
36273# -----------------------
36274# Set $? to STATUS, without forking.
36275as_fn_set_status ()
36276{
36277 return $1
36278} # as_fn_set_status
36279
36280# as_fn_exit STATUS
36281# -----------------
36282# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36283as_fn_exit ()
36284{
36285 set +e
36286 as_fn_set_status $1
36287 exit $1
36288} # as_fn_exit
36289
36290# as_fn_unset VAR
36291# ---------------
36292# Portably unset VAR.
36293as_fn_unset ()
36294{
36295 { eval $1=; unset $1;}
36296}
36297as_unset=as_fn_unset
36298# as_fn_append VAR VALUE
36299# ----------------------
36300# Append the text in VALUE to the end of the definition contained in VAR. Take
36301# advantage of any shell optimizations that allow amortized linear growth over
36302# repeated appends, instead of the typical quadratic growth present in naive
36303# implementations.
36304if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36305 eval 'as_fn_append ()
36306 {
36307 eval $1+=\$2
36308 }'
36309else
36310 as_fn_append ()
36311 {
36312 eval $1=\$$1\$2
36313 }
36314fi # as_fn_append
36315
36316# as_fn_arith ARG...
36317# ------------------
36318# Perform arithmetic evaluation on the ARGs, and store the result in the
36319# global $as_val. Take advantage of shells that can avoid forks. The arguments
36320# must be portable across $(()) and expr.
36321if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36322 eval 'as_fn_arith ()
36323 {
36324 as_val=$(( $* ))
36325 }'
36326else
36327 as_fn_arith ()
36328 {
36329 as_val=`expr "$@" || test $? -eq 1`
36330 }
36331fi # as_fn_arith
36332
36333
cristy3ed852e2009-09-05 21:47:34 +000036334if expr a : '\(a\)' >/dev/null 2>&1 &&
36335 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36336 as_expr=expr
36337else
36338 as_expr=false
36339fi
36340
36341if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36342 as_basename=basename
36343else
36344 as_basename=false
36345fi
36346
cristy8b350f62009-11-15 23:12:43 +000036347if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36348 as_dirname=dirname
36349else
36350 as_dirname=false
36351fi
cristy3ed852e2009-09-05 21:47:34 +000036352
cristy3ed852e2009-09-05 21:47:34 +000036353as_me=`$as_basename -- "$0" ||
36354$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36355 X"$0" : 'X\(//\)$' \| \
36356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36357$as_echo X/"$0" |
36358 sed '/^.*\/\([^/][^/]*\)\/*$/{
36359 s//\1/
36360 q
36361 }
36362 /^X\/\(\/\/\)$/{
36363 s//\1/
36364 q
36365 }
36366 /^X\/\(\/\).*/{
36367 s//\1/
36368 q
36369 }
36370 s/.*/./; q'`
36371
cristy8b350f62009-11-15 23:12:43 +000036372# Avoid depending upon Character Ranges.
36373as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36374as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36375as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36376as_cr_digits='0123456789'
36377as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036378
36379ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036380case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036381-n*)
cristy8b350f62009-11-15 23:12:43 +000036382 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036383 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036384 xy) ECHO_C='\c';;
36385 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36386 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036387 esac;;
36388*)
36389 ECHO_N='-n';;
36390esac
cristy3ed852e2009-09-05 21:47:34 +000036391
36392rm -f conf$$ conf$$.exe conf$$.file
36393if test -d conf$$.dir; then
36394 rm -f conf$$.dir/conf$$.file
36395else
36396 rm -f conf$$.dir
36397 mkdir conf$$.dir 2>/dev/null
36398fi
36399if (echo >conf$$.file) 2>/dev/null; then
36400 if ln -s conf$$.file conf$$ 2>/dev/null; then
36401 as_ln_s='ln -s'
36402 # ... but there are two gotchas:
36403 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36404 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036405 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036406 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036407 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036408 elif ln conf$$.file conf$$ 2>/dev/null; then
36409 as_ln_s=ln
36410 else
cristy14fefe52012-05-21 00:59:18 +000036411 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036412 fi
36413else
cristy14fefe52012-05-21 00:59:18 +000036414 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036415fi
36416rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36417rmdir conf$$.dir 2>/dev/null
36418
cristy8b350f62009-11-15 23:12:43 +000036419
36420# as_fn_mkdir_p
36421# -------------
36422# Create "$as_dir" as a directory, including parents if necessary.
36423as_fn_mkdir_p ()
36424{
36425
36426 case $as_dir in #(
36427 -*) as_dir=./$as_dir;;
36428 esac
36429 test -d "$as_dir" || eval $as_mkdir_p || {
36430 as_dirs=
36431 while :; do
36432 case $as_dir in #(
36433 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36434 *) as_qdir=$as_dir;;
36435 esac
36436 as_dirs="'$as_qdir' $as_dirs"
36437 as_dir=`$as_dirname -- "$as_dir" ||
36438$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36439 X"$as_dir" : 'X\(//\)[^/]' \| \
36440 X"$as_dir" : 'X\(//\)$' \| \
36441 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36442$as_echo X"$as_dir" |
36443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36444 s//\1/
36445 q
36446 }
36447 /^X\(\/\/\)[^/].*/{
36448 s//\1/
36449 q
36450 }
36451 /^X\(\/\/\)$/{
36452 s//\1/
36453 q
36454 }
36455 /^X\(\/\).*/{
36456 s//\1/
36457 q
36458 }
36459 s/.*/./; q'`
36460 test -d "$as_dir" && break
36461 done
36462 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036463 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036464
36465
36466} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036467if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036468 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036469else
36470 test -d ./-p && rmdir ./-p
36471 as_mkdir_p=false
36472fi
36473
cristy14fefe52012-05-21 00:59:18 +000036474
36475# as_fn_executable_p FILE
36476# -----------------------
36477# Test if FILE is an executable regular file.
36478as_fn_executable_p ()
36479{
36480 test -f "$1" && test -x "$1"
36481} # as_fn_executable_p
36482as_test_x='test -x'
36483as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036484
36485# Sed expression to map a string onto a valid CPP name.
36486as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36487
36488# Sed expression to map a string onto a valid variable name.
36489as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36490
36491
36492exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036493## ----------------------------------- ##
36494## Main body of $CONFIG_STATUS script. ##
36495## ----------------------------------- ##
36496_ASEOF
36497test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036498
cristy8b350f62009-11-15 23:12:43 +000036499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36500# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036501# report actual input values of CONFIG_FILES etc. instead of their
36502# values after options handling.
36503ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036504This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036505generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036506
36507 CONFIG_FILES = $CONFIG_FILES
36508 CONFIG_HEADERS = $CONFIG_HEADERS
36509 CONFIG_LINKS = $CONFIG_LINKS
36510 CONFIG_COMMANDS = $CONFIG_COMMANDS
36511 $ $0 $@
36512
36513on `(hostname || uname -n) 2>/dev/null | sed 1q`
36514"
36515
36516_ACEOF
36517
36518case $ac_config_files in *"
36519"*) set x $ac_config_files; shift; ac_config_files=$*;;
36520esac
36521
36522case $ac_config_headers in *"
36523"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36524esac
36525
36526
36527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36528# Files that config.status was made for.
36529config_files="$ac_config_files"
36530config_headers="$ac_config_headers"
36531config_commands="$ac_config_commands"
36532
36533_ACEOF
36534
36535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36536ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036537\`$as_me' instantiates files and other configuration actions
36538from templates according to the current configuration. Unless the files
36539and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036540
cristy8b350f62009-11-15 23:12:43 +000036541Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036542
36543 -h, --help print this help, then exit
36544 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036545 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036546 -q, --quiet, --silent
36547 do not print progress messages
36548 -d, --debug don't remove temporary files
36549 --recheck update $as_me by reconfiguring in the same conditions
36550 --file=FILE[:TEMPLATE]
36551 instantiate the configuration file FILE
36552 --header=FILE[:TEMPLATE]
36553 instantiate the configuration header FILE
36554
36555Configuration files:
36556$config_files
36557
36558Configuration headers:
36559$config_headers
36560
36561Configuration commands:
36562$config_commands
36563
cristy8b350f62009-11-15 23:12:43 +000036564Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036565
36566_ACEOF
36567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036568ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036569ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036570ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036571configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036572 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036573
cristy14fefe52012-05-21 00:59:18 +000036574Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036575This config.status script is free software; the Free Software Foundation
36576gives unlimited permission to copy, distribute and modify it."
36577
36578ac_pwd='$ac_pwd'
36579srcdir='$srcdir'
36580INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036581MKDIR_P='$MKDIR_P'
36582AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036583test -n "\$AWK" || AWK=awk
36584_ACEOF
36585
36586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36587# The default lists apply if the user does not specify any file.
36588ac_need_defaults=:
36589while test $# != 0
36590do
36591 case $1 in
cristyda16f162011-02-19 23:52:17 +000036592 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036593 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36594 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36595 ac_shift=:
36596 ;;
cristyda16f162011-02-19 23:52:17 +000036597 --*=)
36598 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36599 ac_optarg=
36600 ac_shift=:
36601 ;;
cristy3ed852e2009-09-05 21:47:34 +000036602 *)
36603 ac_option=$1
36604 ac_optarg=$2
36605 ac_shift=shift
36606 ;;
36607 esac
36608
36609 case $ac_option in
36610 # Handling of the options.
36611 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36612 ac_cs_recheck=: ;;
36613 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36614 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036615 --config | --confi | --conf | --con | --co | --c )
36616 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036617 --debug | --debu | --deb | --de | --d | -d )
36618 debug=: ;;
36619 --file | --fil | --fi | --f )
36620 $ac_shift
36621 case $ac_optarg in
36622 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036623 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036624 esac
cristy8b350f62009-11-15 23:12:43 +000036625 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036626 ac_need_defaults=false;;
36627 --header | --heade | --head | --hea )
36628 $ac_shift
36629 case $ac_optarg in
36630 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36631 esac
cristy8b350f62009-11-15 23:12:43 +000036632 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036633 ac_need_defaults=false;;
36634 --he | --h)
36635 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036636 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036637Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036638 --help | --hel | -h )
36639 $as_echo "$ac_cs_usage"; exit ;;
36640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36641 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36642 ac_cs_silent=: ;;
36643
36644 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036645 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036646Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036647
cristy8b350f62009-11-15 23:12:43 +000036648 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036649 ac_need_defaults=false ;;
36650
36651 esac
36652 shift
36653done
36654
36655ac_configure_extra_args=
36656
36657if $ac_cs_silent; then
36658 exec 6>/dev/null
36659 ac_configure_extra_args="$ac_configure_extra_args --silent"
36660fi
36661
36662_ACEOF
36663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36664if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036665 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036666 shift
36667 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36668 CONFIG_SHELL='$SHELL'
36669 export CONFIG_SHELL
36670 exec "\$@"
36671fi
36672
36673_ACEOF
36674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36675exec 5>>config.log
36676{
36677 echo
36678 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36679## Running $as_me. ##
36680_ASBOX
36681 $as_echo "$ac_log"
36682} >&5
36683
36684_ACEOF
36685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036686#
36687# INIT-COMMANDS
36688#
36689PACKAGE="$PACKAGE"
36690AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36691
36692
36693# The HP-UX ksh and POSIX shell print the target directory to stdout
36694# if CDPATH is set.
36695(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36696
36697sed_quote_subst='$sed_quote_subst'
36698double_quote_subst='$double_quote_subst'
36699delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036700SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36701Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36702GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36703EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36704FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36705SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36706ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36707LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36708macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36709macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36710AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36711DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36712OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36713enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36714enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36715pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36716enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036717PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036718host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36719host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36720host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36721build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36722build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36723build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36724NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36725LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36726max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36727ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36728exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36729lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36730lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36731lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036732lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36733lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036734reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36735reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36736deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36737file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036738file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36739want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36740sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036741AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36742AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036743archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036744STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36745RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36746old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36747old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36748old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36749lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36750CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36751CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36752compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36753GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36754lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36755lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36756lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36757lt_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 +000036758nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36759lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036760objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36761MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36762lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036763lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036764lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036765lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36766lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36767need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036768MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036769DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36770NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36771LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36772OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36773OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36774libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36775shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36776extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36777archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36778enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36779export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36780whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36781compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36782old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36783old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36784archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36785archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36786module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36787module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36788with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36789allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36790no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36791hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036792hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36793hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36794hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36795hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36796hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36797hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36798inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36799link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036800always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36801export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36802exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36803include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36804prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036805postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036806file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36807variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36808need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36809need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36810version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36811runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36812shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36813shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36814libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36815library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36816soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36817install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36818postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36819postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36820finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36821finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36822hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36823sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36824sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36825hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36826enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36827enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36828enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36829old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36830striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36831compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36832predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36833postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36834predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36835postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36836compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36837LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36838reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36839reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36840old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36841compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36842GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36843lt_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 +000036844lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036845lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036846lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36847lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36848archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36849enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36850export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36851whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36852compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36853old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36854old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36855archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36856archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36857module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36858module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36859with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36860allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36861no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36862hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036863hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36864hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36865hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36866hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36867hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36868hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36869inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36870link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036871always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36872export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36873exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36874include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36875prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036876postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036877file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36878hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36879compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36880predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36881postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36882predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36883postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36884compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036885
36886LTCC='$LTCC'
36887LTCFLAGS='$LTCFLAGS'
36888compiler='$compiler_DEFAULT'
36889
cristy0c60a692010-11-04 01:09:47 +000036890# A function that is used when there is no print builtin or printf.
36891func_fallback_echo ()
36892{
36893 eval 'cat <<_LTECHO_EOF
36894\$1
36895_LTECHO_EOF'
36896}
36897
cristy73bd4a52010-10-05 11:24:23 +000036898# Quote evaled strings.
36899for var in SED \
36900GREP \
36901EGREP \
36902FGREP \
cristy0c60a692010-11-04 01:09:47 +000036903SHELL \
36904ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036905LD \
cristy0c60a692010-11-04 01:09:47 +000036906AS \
36907DLLTOOL \
36908OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036909PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036910NM \
36911LN_S \
36912lt_SP2NL \
36913lt_NL2SP \
36914reload_flag \
36915deplibs_check_method \
36916file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036917file_magic_glob \
36918want_nocaseglob \
36919sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036920AR \
36921AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036922archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036923STRIP \
36924RANLIB \
36925CC \
36926CFLAGS \
36927compiler \
36928lt_cv_sys_global_symbol_pipe \
36929lt_cv_sys_global_symbol_to_cdecl \
36930lt_cv_sys_global_symbol_to_c_name_address \
36931lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036932nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036933lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036934lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036935lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036936lt_prog_compiler_static \
36937lt_cv_prog_compiler_c_o \
36938need_locks \
cristyda16f162011-02-19 23:52:17 +000036939MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036940DSYMUTIL \
36941NMEDIT \
36942LIPO \
36943OTOOL \
36944OTOOL64 \
36945shrext_cmds \
36946export_dynamic_flag_spec \
36947whole_archive_flag_spec \
36948compiler_needs_object \
36949with_gnu_ld \
36950allow_undefined_flag \
36951no_undefined_flag \
36952hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036953hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036954exclude_expsyms \
36955include_expsyms \
36956file_list_spec \
36957variables_saved_for_relink \
36958libname_spec \
36959library_names_spec \
36960soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036961install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036962finish_eval \
36963old_striplib \
36964striplib \
36965compiler_lib_search_dirs \
36966predep_objects \
36967postdep_objects \
36968predeps \
36969postdeps \
36970compiler_lib_search_path \
36971LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036972reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036973compiler_CXX \
36974lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036975lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036976lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036977lt_prog_compiler_static_CXX \
36978lt_cv_prog_compiler_c_o_CXX \
36979export_dynamic_flag_spec_CXX \
36980whole_archive_flag_spec_CXX \
36981compiler_needs_object_CXX \
36982with_gnu_ld_CXX \
36983allow_undefined_flag_CXX \
36984no_undefined_flag_CXX \
36985hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036986hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036987exclude_expsyms_CXX \
36988include_expsyms_CXX \
36989file_list_spec_CXX \
36990compiler_lib_search_dirs_CXX \
36991predep_objects_CXX \
36992postdep_objects_CXX \
36993predeps_CXX \
36994postdeps_CXX \
36995compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036996 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036997 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036998 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036999 ;;
37000 *)
37001 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37002 ;;
37003 esac
37004done
37005
37006# Double-quote double-evaled strings.
37007for var in reload_cmds \
37008old_postinstall_cmds \
37009old_postuninstall_cmds \
37010old_archive_cmds \
37011extract_expsyms_cmds \
37012old_archive_from_new_cmds \
37013old_archive_from_expsyms_cmds \
37014archive_cmds \
37015archive_expsym_cmds \
37016module_cmds \
37017module_expsym_cmds \
37018export_symbols_cmds \
37019prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037020postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037021postinstall_cmds \
37022postuninstall_cmds \
37023finish_cmds \
37024sys_lib_search_path_spec \
37025sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037026reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037027old_archive_cmds_CXX \
37028old_archive_from_new_cmds_CXX \
37029old_archive_from_expsyms_cmds_CXX \
37030archive_cmds_CXX \
37031archive_expsym_cmds_CXX \
37032module_cmds_CXX \
37033module_expsym_cmds_CXX \
37034export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037035prelink_cmds_CXX \
37036postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037037 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037038 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037039 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037040 ;;
37041 *)
37042 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37043 ;;
37044 esac
37045done
37046
cristy73bd4a52010-10-05 11:24:23 +000037047ac_aux_dir='$ac_aux_dir'
37048xsi_shell='$xsi_shell'
37049lt_shell_append='$lt_shell_append'
37050
37051# See if we are running on zsh, and set the options which allow our
37052# commands through without removal of \ escapes INIT.
37053if test -n "\${ZSH_VERSION+set}" ; then
37054 setopt NO_GLOB_SUBST
37055fi
37056
37057
37058 PACKAGE='$PACKAGE'
37059 VERSION='$VERSION'
37060 TIMESTAMP='$TIMESTAMP'
37061 RM='$RM'
37062 ofile='$ofile'
37063
37064
37065
37066
37067
37068
cristy3ed852e2009-09-05 21:47:34 +000037069_ACEOF
37070
37071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37072
37073# Handling of arguments.
37074for ac_config_target in $ac_config_targets
37075do
37076 case $ac_config_target in
37077 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037078 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037079 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037080 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37081 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37082 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37083 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37084 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037085 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037086 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037087 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37088 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37089 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37090 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37091 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037092 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037093 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037094 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37095 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37096 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037097 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37098 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037099 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037100 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037101 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037102 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037103 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37104 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37105 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37106 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037107 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37108 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37109 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37110 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37111 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37112 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37113 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37114 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37115 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37116 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37117 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37118 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037119 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37120 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037121 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37122 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037123 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037124 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037125 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037126 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037127 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37128 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37129
cristy98dddb52010-11-04 00:30:15 +000037130 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037131 esac
37132done
37133
37134
37135# If the user did not use the arguments to specify the items to instantiate,
37136# then the envvar interface is used. Set only those that are not.
37137# We use the long form for the default assignment because of an extremely
37138# bizarre bug on SunOS 4.1.3.
37139if $ac_need_defaults; then
37140 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37141 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37142 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37143fi
37144
37145# Have a temporary directory for convenience. Make it in the build tree
37146# simply because there is no reason against having it here, and in addition,
37147# creating and moving files from /tmp can sometimes cause problems.
37148# Hook for its removal unless debugging.
37149# Note that there is a small window in which the directory will not be cleaned:
37150# after its creation but before its name has been assigned to `$tmp'.
37151$debug ||
37152{
cristyda16f162011-02-19 23:52:17 +000037153 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037154 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037155 : "${ac_tmp:=$tmp}"
37156 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037157' 0
cristy8b350f62009-11-15 23:12:43 +000037158 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037159}
37160# Create a (secure) tmp directory for tmp files.
37161
37162{
37163 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037164 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037165} ||
37166{
37167 tmp=./conf$$-$RANDOM
37168 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037169} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037170ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037171
37172# Set up the scripts for CONFIG_FILES section.
37173# No need to generate them if there are no CONFIG_FILES.
37174# This happens for instance with `./config.status config.h'.
37175if test -n "$CONFIG_FILES"; then
37176
37177
cristy8b350f62009-11-15 23:12:43 +000037178ac_cr=`echo X | tr X '\015'`
37179# On cygwin, bash can eat \r inside `` if the user requested igncr.
37180# But we know of no other shell where ac_cr would be empty at this
37181# point, so we can use a bashism as a fallback.
37182if test "x$ac_cr" = x; then
37183 eval ac_cr=\$\'\\r\'
37184fi
cristy3ed852e2009-09-05 21:47:34 +000037185ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37186if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037187 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037188else
37189 ac_cs_awk_cr=$ac_cr
37190fi
37191
cristyda16f162011-02-19 23:52:17 +000037192echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037193_ACEOF
37194
37195
37196{
37197 echo "cat >conf$$subs.awk <<_ACEOF" &&
37198 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37199 echo "_ACEOF"
37200} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037201 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37202ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037203ac_delim='%!_!# '
37204for ac_last_try in false false false false false :; do
37205 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037206 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037207
37208 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37209 if test $ac_delim_n = $ac_delim_num; then
37210 break
37211 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037213 else
37214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37215 fi
37216done
37217rm -f conf$$subs.sh
37218
37219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037220cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037221_ACEOF
37222sed -n '
37223h
37224s/^/S["/; s/!.*/"]=/
37225p
37226g
37227s/^[^!]*!//
37228:repl
37229t repl
37230s/'"$ac_delim"'$//
37231t delim
37232:nl
37233h
cristycd4c5312009-11-22 01:19:08 +000037234s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037235t more1
37236s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37237p
37238n
37239b repl
37240:more1
37241s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37242p
37243g
37244s/.\{148\}//
37245t nl
37246:delim
37247h
cristycd4c5312009-11-22 01:19:08 +000037248s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037249t more2
37250s/["\\]/\\&/g; s/^/"/; s/$/"/
37251p
37252b
37253:more2
37254s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37255p
37256g
37257s/.\{148\}//
37258t delim
37259' <conf$$subs.awk | sed '
37260/^[^""]/{
37261 N
37262 s/\n//
37263}
37264' >>$CONFIG_STATUS || ac_write_fail=1
37265rm -f conf$$subs.awk
37266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37267_ACAWK
cristyda16f162011-02-19 23:52:17 +000037268cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037269 for (key in S) S_is_set[key] = 1
37270 FS = ""
37271
37272}
37273{
37274 line = $ 0
37275 nfields = split(line, field, "@")
37276 substed = 0
37277 len = length(field[1])
37278 for (i = 2; i < nfields; i++) {
37279 key = field[i]
37280 keylen = length(key)
37281 if (S_is_set[key]) {
37282 value = S[key]
37283 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37284 len += length(value) + length(field[++i])
37285 substed = 1
37286 } else
37287 len += 1 + keylen
37288 }
37289
37290 print line
37291}
37292
37293_ACAWK
37294_ACEOF
37295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37296if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37297 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37298else
37299 cat
cristyda16f162011-02-19 23:52:17 +000037300fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037301 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037302_ACEOF
37303
cristy98dddb52010-11-04 00:30:15 +000037304# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37305# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037306# trailing colons and then remove the whole line if VPATH becomes empty
37307# (actually we leave an empty line to preserve line numbers).
37308if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037309 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37310h
37311s///
37312s/^/:/
37313s/[ ]*$/:/
37314s/:\$(srcdir):/:/g
37315s/:\${srcdir}:/:/g
37316s/:@srcdir@:/:/g
37317s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037318s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037319x
37320s/\(=[ ]*\).*/\1/
37321G
37322s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037323s/^[^=]*=[ ]*$//
37324}'
37325fi
37326
37327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37328fi # test -n "$CONFIG_FILES"
37329
37330# Set up the scripts for CONFIG_HEADERS section.
37331# No need to generate them if there are no CONFIG_HEADERS.
37332# This happens for instance with `./config.status Makefile'.
37333if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037334cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037335BEGIN {
37336_ACEOF
37337
37338# Transform confdefs.h into an awk script `defines.awk', embedded as
37339# here-document in config.status, that substitutes the proper values into
37340# config.h.in to produce config.h.
37341
37342# Create a delimiter string that does not exist in confdefs.h, to ease
37343# handling of long lines.
37344ac_delim='%!_!# '
37345for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037346 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37347 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037348 break
37349 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037350 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037351 else
37352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37353 fi
37354done
37355
37356# For the awk script, D is an array of macro values keyed by name,
37357# likewise P contains macro parameters if any. Preserve backslash
37358# newline sequences.
37359
37360ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37361sed -n '
37362s/.\{148\}/&'"$ac_delim"'/g
37363t rset
37364:rset
37365s/^[ ]*#[ ]*define[ ][ ]*/ /
37366t def
37367d
37368:def
37369s/\\$//
37370t bsnl
37371s/["\\]/\\&/g
37372s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37373D["\1"]=" \3"/p
37374s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37375d
37376:bsnl
37377s/["\\]/\\&/g
37378s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37379D["\1"]=" \3\\\\\\n"\\/p
37380t cont
37381s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37382t cont
37383d
37384:cont
37385n
37386s/.\{148\}/&'"$ac_delim"'/g
37387t clear
37388:clear
37389s/\\$//
37390t bsnlc
37391s/["\\]/\\&/g; s/^/"/; s/$/"/p
37392d
37393:bsnlc
37394s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37395b cont
37396' <confdefs.h | sed '
37397s/'"$ac_delim"'/"\\\
37398"/g' >>$CONFIG_STATUS || ac_write_fail=1
37399
37400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37401 for (key in D) D_is_set[key] = 1
37402 FS = ""
37403}
37404/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37405 line = \$ 0
37406 split(line, arg, " ")
37407 if (arg[1] == "#") {
37408 defundef = arg[2]
37409 mac1 = arg[3]
37410 } else {
37411 defundef = substr(arg[1], 2)
37412 mac1 = arg[2]
37413 }
37414 split(mac1, mac2, "(") #)
37415 macro = mac2[1]
37416 prefix = substr(line, 1, index(line, defundef) - 1)
37417 if (D_is_set[macro]) {
37418 # Preserve the white space surrounding the "#".
37419 print prefix "define", macro P[macro] D[macro]
37420 next
37421 } else {
37422 # Replace #undef with comments. This is necessary, for example,
37423 # in the case of _POSIX_SOURCE, which is predefined and required
37424 # on some systems where configure will not decide to define it.
37425 if (defundef == "undef") {
37426 print "/*", prefix defundef, macro, "*/"
37427 next
37428 }
37429 }
37430}
37431{ print }
37432_ACAWK
37433_ACEOF
37434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037435 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037436fi # test -n "$CONFIG_HEADERS"
37437
37438
37439eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37440shift
37441for ac_tag
37442do
37443 case $ac_tag in
37444 :[FHLC]) ac_mode=$ac_tag; continue;;
37445 esac
37446 case $ac_mode$ac_tag in
37447 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037448 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037449 :[FH]-) ac_tag=-:-;;
37450 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37451 esac
37452 ac_save_IFS=$IFS
37453 IFS=:
37454 set x $ac_tag
37455 IFS=$ac_save_IFS
37456 shift
37457 ac_file=$1
37458 shift
37459
37460 case $ac_mode in
37461 :L) ac_source=$1;;
37462 :[FH])
37463 ac_file_inputs=
37464 for ac_f
37465 do
37466 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037467 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037468 *) # Look for the file first in the build tree, then in the source tree
37469 # (if the path is not absolute). The absolute path cannot be DOS-style,
37470 # because $ac_f cannot contain `:'.
37471 test -f "$ac_f" ||
37472 case $ac_f in
37473 [\\/$]*) false;;
37474 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37475 esac ||
cristy98dddb52010-11-04 00:30:15 +000037476 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037477 esac
37478 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037479 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037480 done
37481
37482 # Let's still pretend it is `configure' which instantiates (i.e., don't
37483 # use $as_me), people would be surprised to read:
37484 # /* config.h. Generated by config.status. */
37485 configure_input='Generated from '`
37486 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37487 `' by configure.'
37488 if test x"$ac_file" != x-; then
37489 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037491$as_echo "$as_me: creating $ac_file" >&6;}
37492 fi
37493 # Neutralize special characters interpreted by sed in replacement strings.
37494 case $configure_input in #(
37495 *\&* | *\|* | *\\* )
37496 ac_sed_conf_input=`$as_echo "$configure_input" |
37497 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37498 *) ac_sed_conf_input=$configure_input;;
37499 esac
37500
37501 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037502 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037504 esac
37505 ;;
37506 esac
37507
37508 ac_dir=`$as_dirname -- "$ac_file" ||
37509$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37510 X"$ac_file" : 'X\(//\)[^/]' \| \
37511 X"$ac_file" : 'X\(//\)$' \| \
37512 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37513$as_echo X"$ac_file" |
37514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37515 s//\1/
37516 q
37517 }
37518 /^X\(\/\/\)[^/].*/{
37519 s//\1/
37520 q
37521 }
37522 /^X\(\/\/\)$/{
37523 s//\1/
37524 q
37525 }
37526 /^X\(\/\).*/{
37527 s//\1/
37528 q
37529 }
37530 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037531 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037532 ac_builddir=.
37533
37534case "$ac_dir" in
37535.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37536*)
37537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37538 # A ".." for each directory in $ac_dir_suffix.
37539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37540 case $ac_top_builddir_sub in
37541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37543 esac ;;
37544esac
37545ac_abs_top_builddir=$ac_pwd
37546ac_abs_builddir=$ac_pwd$ac_dir_suffix
37547# for backward compatibility:
37548ac_top_builddir=$ac_top_build_prefix
37549
37550case $srcdir in
37551 .) # We are building in place.
37552 ac_srcdir=.
37553 ac_top_srcdir=$ac_top_builddir_sub
37554 ac_abs_top_srcdir=$ac_pwd ;;
37555 [\\/]* | ?:[\\/]* ) # Absolute name.
37556 ac_srcdir=$srcdir$ac_dir_suffix;
37557 ac_top_srcdir=$srcdir
37558 ac_abs_top_srcdir=$srcdir ;;
37559 *) # Relative name.
37560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37561 ac_top_srcdir=$ac_top_build_prefix$srcdir
37562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37563esac
37564ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37565
37566
37567 case $ac_mode in
37568 :F)
37569 #
37570 # CONFIG_FILE
37571 #
37572
37573 case $INSTALL in
37574 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37575 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37576 esac
cristy73bd4a52010-10-05 11:24:23 +000037577 ac_MKDIR_P=$MKDIR_P
37578 case $MKDIR_P in
37579 [\\/$]* | ?:[\\/]* ) ;;
37580 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37581 esac
cristy3ed852e2009-09-05 21:47:34 +000037582_ACEOF
37583
37584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37585# If the template does not know about datarootdir, expand it.
37586# FIXME: This hack should be removed a few years after 2.60.
37587ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037588ac_sed_dataroot='
37589/datarootdir/ {
37590 p
37591 q
37592}
37593/@datadir@/p
37594/@docdir@/p
37595/@infodir@/p
37596/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037597/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037598case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37599*datarootdir*) ac_datarootdir_seen=yes;;
37600*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037602$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37603_ACEOF
37604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37605 ac_datarootdir_hack='
37606 s&@datadir@&$datadir&g
37607 s&@docdir@&$docdir&g
37608 s&@infodir@&$infodir&g
37609 s&@localedir@&$localedir&g
37610 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037611 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037612esac
37613_ACEOF
37614
37615# Neutralize VPATH when `$srcdir' = `.'.
37616# Shell code in configure.ac might set extrasub.
37617# FIXME: do we really want to maintain this feature?
37618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37619ac_sed_extra="$ac_vpsub
37620$extrasub
37621_ACEOF
37622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37623:t
37624/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37625s|@configure_input@|$ac_sed_conf_input|;t t
37626s&@top_builddir@&$ac_top_builddir_sub&;t t
37627s&@top_build_prefix@&$ac_top_build_prefix&;t t
37628s&@srcdir@&$ac_srcdir&;t t
37629s&@abs_srcdir@&$ac_abs_srcdir&;t t
37630s&@top_srcdir@&$ac_top_srcdir&;t t
37631s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37632s&@builddir@&$ac_builddir&;t t
37633s&@abs_builddir@&$ac_abs_builddir&;t t
37634s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37635s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037636s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037637$ac_datarootdir_hack
37638"
cristyda16f162011-02-19 23:52:17 +000037639eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37640 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037641
37642test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037643 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37644 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37645 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037647which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037648$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037649which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037650
cristyda16f162011-02-19 23:52:17 +000037651 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037652 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037653 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37654 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037655 esac \
cristy98dddb52010-11-04 00:30:15 +000037656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037657 ;;
37658 :H)
37659 #
37660 # CONFIG_HEADER
37661 #
37662 if test x"$ac_file" != x-; then
37663 {
37664 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037665 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37666 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037668 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037669 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037670$as_echo "$as_me: $ac_file is unchanged" >&6;}
37671 else
37672 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037673 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037675 fi
37676 else
37677 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037678 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037679 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037680 fi
cristy73bd4a52010-10-05 11:24:23 +000037681# Compute "$ac_file"'s index in $config_headers.
37682_am_arg="$ac_file"
37683_am_stamp_count=1
37684for _am_header in $config_headers :; do
37685 case $_am_header in
37686 $_am_arg | $_am_arg:* )
37687 break ;;
37688 * )
37689 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37690 esac
37691done
37692echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37693$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37694 X"$_am_arg" : 'X\(//\)[^/]' \| \
37695 X"$_am_arg" : 'X\(//\)$' \| \
37696 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37697$as_echo X"$_am_arg" |
37698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37699 s//\1/
37700 q
37701 }
37702 /^X\(\/\/\)[^/].*/{
37703 s//\1/
37704 q
37705 }
37706 /^X\(\/\/\)$/{
37707 s//\1/
37708 q
37709 }
37710 /^X\(\/\).*/{
37711 s//\1/
37712 q
37713 }
37714 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037715 ;;
37716
cristy8b350f62009-11-15 23:12:43 +000037717 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037718$as_echo "$as_me: executing $ac_file commands" >&6;}
37719 ;;
37720 esac
37721
37722
37723 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037724 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037725ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37726ac_prefix_conf_PKG=`echo MagickCore`
37727ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37728ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37729ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37730if test ".$ac_prefix_conf_INP" = "."; then
37731 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37732 case "$ac_file" in
37733 *.h) ac_prefix_conf_INP=$ac_file ;;
37734 *)
37735 esac
37736 test ".$ac_prefix_conf_INP" != "." && break
37737 done
37738fi
37739if test ".$ac_prefix_conf_INP" = "."; then
37740 case "$ac_prefix_conf_OUT" in
37741 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37742 ;;
37743 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37744 ;;
37745 *) ac_prefix_conf_INP=config.h
37746 ;;
37747 esac
37748fi
37749if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037750 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037751else
37752 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37753 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37754 fi fi
37755 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37756$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37757 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037758 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37759 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37760 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37761 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37762 $as_echo "#endif/" >> conftest.prefix
37763 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37764 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37765 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037766 # now executing _script on _DEF input to create _OUT output file
37767 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37768 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37769 echo ' ' >>$tmp/pconfig.h
37770 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37771
37772 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37773 echo ' ' >>$tmp/pconfig.h
37774 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37775 echo "#endif" >>$tmp/pconfig.h
37776 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37777 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37778$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37779 else
37780 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37781$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37782 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37783 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37784 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37785$as_echo X"$ac_prefix_conf_OUT" |
37786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37787 s//\1/
37788 q
37789 }
37790 /^X\(\/\/\)[^/].*/{
37791 s//\1/
37792 q
37793 }
37794 /^X\(\/\/\)$/{
37795 s//\1/
37796 q
37797 }
37798 /^X\(\/\).*/{
37799 s//\1/
37800 q
37801 }
37802 s/.*/./; q'`
37803 as_dir="$ac_dir"; as_fn_mkdir_p
37804 rm -f "$ac_prefix_conf_OUT"
37805 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37806 fi
37807 cp conftest.prefix _configs.sed
37808 else
cristy98dddb52010-11-04 00:30:15 +000037809 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 +000037810 fi
37811 rm -f conftest.*
37812fi
37813 ;;
37814 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037815 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037816 # are listed without --file. Let's play safe and only enable the eval
37817 # if we detect the quoting.
37818 case $CONFIG_FILES in
37819 *\'*) eval set x "$CONFIG_FILES" ;;
37820 *) set x $CONFIG_FILES ;;
37821 esac
37822 shift
37823 for mf
37824 do
37825 # Strip MF so we end up with the name of the file.
37826 mf=`echo "$mf" | sed -e 's/:.*$//'`
37827 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037828 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037829 # some people rename them; so instead we look at the file content.
37830 # Grep'ing the first line is not enough: some people post-process
37831 # each Makefile.in and add a new line on top of each file to say so.
37832 # Grep'ing the whole file is not good either: AIX grep has a line
37833 # limit of 2048, but all sed's we know have understand at least 4000.
37834 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37835 dirpart=`$as_dirname -- "$mf" ||
37836$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37837 X"$mf" : 'X\(//\)[^/]' \| \
37838 X"$mf" : 'X\(//\)$' \| \
37839 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37840$as_echo X"$mf" |
37841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37842 s//\1/
37843 q
37844 }
37845 /^X\(\/\/\)[^/].*/{
37846 s//\1/
37847 q
37848 }
37849 /^X\(\/\/\)$/{
37850 s//\1/
37851 q
37852 }
37853 /^X\(\/\).*/{
37854 s//\1/
37855 q
37856 }
37857 s/.*/./; q'`
37858 else
37859 continue
37860 fi
37861 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037862 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037863 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37864 test -z "$DEPDIR" && continue
37865 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37866 test -z "am__include" && continue
37867 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037868 # Find all dependency output files, they are included files with
37869 # $(DEPDIR) in their names. We invoke sed twice because it is the
37870 # simplest approach to changing $(DEPDIR) to its actual value in the
37871 # expansion.
37872 for file in `sed -n "
37873 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037874 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037875 # Make sure the directory exists.
37876 test -f "$dirpart/$file" && continue
37877 fdir=`$as_dirname -- "$file" ||
37878$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37879 X"$file" : 'X\(//\)[^/]' \| \
37880 X"$file" : 'X\(//\)$' \| \
37881 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37882$as_echo X"$file" |
37883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37884 s//\1/
37885 q
37886 }
37887 /^X\(\/\/\)[^/].*/{
37888 s//\1/
37889 q
37890 }
37891 /^X\(\/\/\)$/{
37892 s//\1/
37893 q
37894 }
37895 /^X\(\/\).*/{
37896 s//\1/
37897 q
37898 }
37899 s/.*/./; q'`
37900 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37901 # echo "creating $dirpart/$file"
37902 echo '# dummy' > "$dirpart/$file"
37903 done
37904 done
37905}
37906 ;;
37907 "libtool":C)
37908
37909 # See if we are running on zsh, and set the options which allow our
37910 # commands through without removal of \ escapes.
37911 if test -n "${ZSH_VERSION+set}" ; then
37912 setopt NO_GLOB_SUBST
37913 fi
37914
37915 cfgfile="${ofile}T"
37916 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37917 $RM "$cfgfile"
37918
37919 cat <<_LT_EOF >> "$cfgfile"
37920#! $SHELL
37921
37922# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37923# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37924# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37925# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37926#
37927# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037928# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37929# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037930# Written by Gordon Matzigkeit, 1996
37931#
37932# This file is part of GNU Libtool.
37933#
37934# GNU Libtool is free software; you can redistribute it and/or
37935# modify it under the terms of the GNU General Public License as
37936# published by the Free Software Foundation; either version 2 of
37937# the License, or (at your option) any later version.
37938#
37939# As a special exception to the GNU General Public License,
37940# if you distribute this file as part of a program or library that
37941# is built using GNU Libtool, you may include this file under the
37942# same distribution terms that you use for the rest of that program.
37943#
37944# GNU Libtool is distributed in the hope that it will be useful,
37945# but WITHOUT ANY WARRANTY; without even the implied warranty of
37946# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37947# GNU General Public License for more details.
37948#
37949# You should have received a copy of the GNU General Public License
37950# along with GNU Libtool; see the file COPYING. If not, a copy
37951# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37952# obtained by writing to the Free Software Foundation, Inc.,
37953# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37954
37955
37956# The names of the tagged configurations supported by this script.
37957available_tags="CXX "
37958
37959# ### BEGIN LIBTOOL CONFIG
37960
37961# A sed program that does not truncate output.
37962SED=$lt_SED
37963
37964# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37965Xsed="\$SED -e 1s/^X//"
37966
37967# A grep program that handles long lines.
37968GREP=$lt_GREP
37969
37970# An ERE matcher.
37971EGREP=$lt_EGREP
37972
37973# A literal string matcher.
37974FGREP=$lt_FGREP
37975
cristy0c60a692010-11-04 01:09:47 +000037976# Shell to use when invoking shell scripts.
37977SHELL=$lt_SHELL
37978
37979# An echo program that protects backslashes.
37980ECHO=$lt_ECHO
37981
cristy73bd4a52010-10-05 11:24:23 +000037982# Which release of libtool.m4 was used?
37983macro_version=$macro_version
37984macro_revision=$macro_revision
37985
37986# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037987AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037988
37989# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037990DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037991
37992# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037993OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037994
37995# Whether or not to build shared libraries.
37996build_libtool_libs=$enable_shared
37997
37998# Whether or not to build static libraries.
37999build_old_libs=$enable_static
38000
38001# What type of objects to build.
38002pic_mode=$pic_mode
38003
38004# Whether or not to optimize for fast installation.
38005fast_install=$enable_fast_install
38006
cristy99bd5232011-12-07 14:38:20 +000038007# The PATH separator for the build system.
38008PATH_SEPARATOR=$lt_PATH_SEPARATOR
38009
cristy73bd4a52010-10-05 11:24:23 +000038010# The host system.
38011host_alias=$host_alias
38012host=$host
38013host_os=$host_os
38014
38015# The build system.
38016build_alias=$build_alias
38017build=$build
38018build_os=$build_os
38019
38020# A BSD- or MS-compatible name lister.
38021NM=$lt_NM
38022
38023# Whether we need soft or hard links.
38024LN_S=$lt_LN_S
38025
38026# What is the maximum length of a command?
38027max_cmd_len=$max_cmd_len
38028
38029# Object file suffix (normally "o").
38030objext=$ac_objext
38031
38032# Executable file suffix (normally "").
38033exeext=$exeext
38034
38035# whether the shell understands "unset".
38036lt_unset=$lt_unset
38037
38038# turn spaces into newlines.
38039SP2NL=$lt_lt_SP2NL
38040
38041# turn newlines into spaces.
38042NL2SP=$lt_lt_NL2SP
38043
cristyda16f162011-02-19 23:52:17 +000038044# convert \$build file names to \$host format.
38045to_host_file_cmd=$lt_cv_to_host_file_cmd
38046
38047# convert \$build files to toolchain format.
38048to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38049
cristy73bd4a52010-10-05 11:24:23 +000038050# Method to check whether dependent libraries are shared objects.
38051deplibs_check_method=$lt_deplibs_check_method
38052
cristyda16f162011-02-19 23:52:17 +000038053# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038054file_magic_cmd=$lt_file_magic_cmd
38055
cristyda16f162011-02-19 23:52:17 +000038056# How to find potential files when deplibs_check_method = "file_magic".
38057file_magic_glob=$lt_file_magic_glob
38058
38059# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38060want_nocaseglob=$lt_want_nocaseglob
38061
38062# Command to associate shared and link libraries.
38063sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38064
cristy73bd4a52010-10-05 11:24:23 +000038065# The archiver.
38066AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038067
38068# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038069AR_FLAGS=$lt_AR_FLAGS
38070
cristyda16f162011-02-19 23:52:17 +000038071# How to feed a file listing to the archiver.
38072archiver_list_spec=$lt_archiver_list_spec
38073
cristy73bd4a52010-10-05 11:24:23 +000038074# A symbol stripping program.
38075STRIP=$lt_STRIP
38076
38077# Commands used to install an old-style archive.
38078RANLIB=$lt_RANLIB
38079old_postinstall_cmds=$lt_old_postinstall_cmds
38080old_postuninstall_cmds=$lt_old_postuninstall_cmds
38081
cristy0c60a692010-11-04 01:09:47 +000038082# Whether to use a lock for old archive extraction.
38083lock_old_archive_extraction=$lock_old_archive_extraction
38084
cristy73bd4a52010-10-05 11:24:23 +000038085# A C compiler.
38086LTCC=$lt_CC
38087
38088# LTCC compiler flags.
38089LTCFLAGS=$lt_CFLAGS
38090
38091# Take the output of nm and produce a listing of raw symbols and C names.
38092global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38093
38094# Transform the output of nm in a proper C declaration.
38095global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38096
38097# Transform the output of nm in a C name address pair.
38098global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38099
38100# Transform the output of nm in a C name address pair when lib prefix is needed.
38101global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38102
cristyda16f162011-02-19 23:52:17 +000038103# Specify filename containing input files for \$NM.
38104nm_file_list_spec=$lt_nm_file_list_spec
38105
38106# The root where to search for dependent libraries,and in which our libraries should be installed.
38107lt_sysroot=$lt_sysroot
38108
cristy73bd4a52010-10-05 11:24:23 +000038109# The name of the directory that contains temporary libtool files.
38110objdir=$objdir
38111
cristy73bd4a52010-10-05 11:24:23 +000038112# Used to examine libraries when file_magic_cmd begins with "file".
38113MAGIC_CMD=$MAGIC_CMD
38114
38115# Must we lock files when doing compilation?
38116need_locks=$lt_need_locks
38117
cristyda16f162011-02-19 23:52:17 +000038118# Manifest tool.
38119MANIFEST_TOOL=$lt_MANIFEST_TOOL
38120
cristy73bd4a52010-10-05 11:24:23 +000038121# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38122DSYMUTIL=$lt_DSYMUTIL
38123
38124# Tool to change global to local symbols on Mac OS X.
38125NMEDIT=$lt_NMEDIT
38126
38127# Tool to manipulate fat objects and archives on Mac OS X.
38128LIPO=$lt_LIPO
38129
38130# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38131OTOOL=$lt_OTOOL
38132
38133# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38134OTOOL64=$lt_OTOOL64
38135
38136# Old archive suffix (normally "a").
38137libext=$libext
38138
38139# Shared library suffix (normally ".so").
38140shrext_cmds=$lt_shrext_cmds
38141
38142# The commands to extract the exported symbol list from a shared archive.
38143extract_expsyms_cmds=$lt_extract_expsyms_cmds
38144
38145# Variables whose values should be saved in libtool wrapper scripts and
38146# restored at link time.
38147variables_saved_for_relink=$lt_variables_saved_for_relink
38148
38149# Do we need the "lib" prefix for modules?
38150need_lib_prefix=$need_lib_prefix
38151
38152# Do we need a version for libraries?
38153need_version=$need_version
38154
38155# Library versioning type.
38156version_type=$version_type
38157
38158# Shared library runtime path variable.
38159runpath_var=$runpath_var
38160
38161# Shared library path variable.
38162shlibpath_var=$shlibpath_var
38163
38164# Is shlibpath searched before the hard-coded library search path?
38165shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38166
38167# Format of library name prefix.
38168libname_spec=$lt_libname_spec
38169
38170# List of archive names. First name is the real one, the rest are links.
38171# The last name is the one that the linker finds with -lNAME
38172library_names_spec=$lt_library_names_spec
38173
38174# The coded name of the library, if different from the real name.
38175soname_spec=$lt_soname_spec
38176
cristy0c60a692010-11-04 01:09:47 +000038177# Permission mode override for installation of shared libraries.
38178install_override_mode=$lt_install_override_mode
38179
cristy73bd4a52010-10-05 11:24:23 +000038180# Command to use after installation of a shared archive.
38181postinstall_cmds=$lt_postinstall_cmds
38182
38183# Command to use after uninstallation of a shared archive.
38184postuninstall_cmds=$lt_postuninstall_cmds
38185
38186# Commands used to finish a libtool library installation in a directory.
38187finish_cmds=$lt_finish_cmds
38188
38189# As "finish_cmds", except a single script fragment to be evaled but
38190# not shown.
38191finish_eval=$lt_finish_eval
38192
38193# Whether we should hardcode library paths into libraries.
38194hardcode_into_libs=$hardcode_into_libs
38195
38196# Compile-time system search path for libraries.
38197sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38198
38199# Run-time system search path for libraries.
38200sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38201
38202# Whether dlopen is supported.
38203dlopen_support=$enable_dlopen
38204
38205# Whether dlopen of programs is supported.
38206dlopen_self=$enable_dlopen_self
38207
38208# Whether dlopen of statically linked programs is supported.
38209dlopen_self_static=$enable_dlopen_self_static
38210
38211# Commands to strip libraries.
38212old_striplib=$lt_old_striplib
38213striplib=$lt_striplib
38214
38215
38216# The linker used to build libraries.
38217LD=$lt_LD
38218
cristy0c60a692010-11-04 01:09:47 +000038219# How to create reloadable object files.
38220reload_flag=$lt_reload_flag
38221reload_cmds=$lt_reload_cmds
38222
cristy73bd4a52010-10-05 11:24:23 +000038223# Commands used to build an old-style archive.
38224old_archive_cmds=$lt_old_archive_cmds
38225
38226# A language specific compiler.
38227CC=$lt_compiler
38228
38229# Is the compiler the GNU compiler?
38230with_gcc=$GCC
38231
38232# Compiler flag to turn off builtin functions.
38233no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38234
cristy73bd4a52010-10-05 11:24:23 +000038235# Additional compiler flags for building library objects.
38236pic_flag=$lt_lt_prog_compiler_pic
38237
cristyda16f162011-02-19 23:52:17 +000038238# How to pass a linker flag through the compiler.
38239wl=$lt_lt_prog_compiler_wl
38240
cristy73bd4a52010-10-05 11:24:23 +000038241# Compiler flag to prevent dynamic linking.
38242link_static_flag=$lt_lt_prog_compiler_static
38243
38244# Does compiler simultaneously support -c and -o options?
38245compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38246
38247# Whether or not to add -lc for building shared libraries.
38248build_libtool_need_lc=$archive_cmds_need_lc
38249
38250# Whether or not to disallow shared libs when runtime libs are static.
38251allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38252
38253# Compiler flag to allow reflexive dlopens.
38254export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38255
38256# Compiler flag to generate shared objects directly from archives.
38257whole_archive_flag_spec=$lt_whole_archive_flag_spec
38258
38259# Whether the compiler copes with passing no objects directly.
38260compiler_needs_object=$lt_compiler_needs_object
38261
38262# Create an old-style archive from a shared archive.
38263old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38264
38265# Create a temporary old-style archive to link instead of a shared archive.
38266old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38267
38268# Commands used to build a shared archive.
38269archive_cmds=$lt_archive_cmds
38270archive_expsym_cmds=$lt_archive_expsym_cmds
38271
38272# Commands used to build a loadable module if different from building
38273# a shared archive.
38274module_cmds=$lt_module_cmds
38275module_expsym_cmds=$lt_module_expsym_cmds
38276
38277# Whether we are building with GNU ld or not.
38278with_gnu_ld=$lt_with_gnu_ld
38279
38280# Flag that allows shared libraries with undefined symbols to be built.
38281allow_undefined_flag=$lt_allow_undefined_flag
38282
38283# Flag that enforces no undefined symbols.
38284no_undefined_flag=$lt_no_undefined_flag
38285
38286# Flag to hardcode \$libdir into a binary during linking.
38287# This must work even if \$libdir does not exist
38288hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38289
cristy73bd4a52010-10-05 11:24:23 +000038290# Whether we need a single "-rpath" flag with a separated argument.
38291hardcode_libdir_separator=$lt_hardcode_libdir_separator
38292
38293# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38294# DIR into the resulting binary.
38295hardcode_direct=$hardcode_direct
38296
38297# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38298# DIR into the resulting binary and the resulting library dependency is
38299# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38300# library is relocated.
38301hardcode_direct_absolute=$hardcode_direct_absolute
38302
38303# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38304# into the resulting binary.
38305hardcode_minus_L=$hardcode_minus_L
38306
38307# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38308# into the resulting binary.
38309hardcode_shlibpath_var=$hardcode_shlibpath_var
38310
38311# Set to "yes" if building a shared library automatically hardcodes DIR
38312# into the library and all subsequent libraries and executables linked
38313# against it.
38314hardcode_automatic=$hardcode_automatic
38315
38316# Set to yes if linker adds runtime paths of dependent libraries
38317# to runtime path list.
38318inherit_rpath=$inherit_rpath
38319
38320# Whether libtool must link a program against all its dependency libraries.
38321link_all_deplibs=$link_all_deplibs
38322
cristy73bd4a52010-10-05 11:24:23 +000038323# Set to "yes" if exported symbols are required.
38324always_export_symbols=$always_export_symbols
38325
38326# The commands to list exported symbols.
38327export_symbols_cmds=$lt_export_symbols_cmds
38328
38329# Symbols that should not be listed in the preloaded symbols.
38330exclude_expsyms=$lt_exclude_expsyms
38331
38332# Symbols that must always be exported.
38333include_expsyms=$lt_include_expsyms
38334
38335# Commands necessary for linking programs (against libraries) with templates.
38336prelink_cmds=$lt_prelink_cmds
38337
cristyda16f162011-02-19 23:52:17 +000038338# Commands necessary for finishing linking programs.
38339postlink_cmds=$lt_postlink_cmds
38340
cristy73bd4a52010-10-05 11:24:23 +000038341# Specify filename containing input files.
38342file_list_spec=$lt_file_list_spec
38343
38344# How to hardcode a shared library path into an executable.
38345hardcode_action=$hardcode_action
38346
38347# The directories searched by this compiler when creating a shared library.
38348compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38349
38350# Dependencies to place before and after the objects being linked to
38351# create a shared library.
38352predep_objects=$lt_predep_objects
38353postdep_objects=$lt_postdep_objects
38354predeps=$lt_predeps
38355postdeps=$lt_postdeps
38356
38357# The library search path used internally by the compiler when linking
38358# a shared library.
38359compiler_lib_search_path=$lt_compiler_lib_search_path
38360
38361# ### END LIBTOOL CONFIG
38362
38363_LT_EOF
38364
38365 case $host_os in
38366 aix3*)
38367 cat <<\_LT_EOF >> "$cfgfile"
38368# AIX sometimes has problems with the GCC collect2 program. For some
38369# reason, if we set the COLLECT_NAMES environment variable, the problems
38370# vanish in a puff of smoke.
38371if test "X${COLLECT_NAMES+set}" != Xset; then
38372 COLLECT_NAMES=
38373 export COLLECT_NAMES
38374fi
38375_LT_EOF
38376 ;;
38377 esac
38378
38379
38380ltmain="$ac_aux_dir/ltmain.sh"
38381
38382
38383 # We use sed instead of cat because bash on DJGPP gets confused if
38384 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38385 # text mode, it properly converts lines to CR/LF. This bash problem
38386 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038387 sed '$q' "$ltmain" >> "$cfgfile" \
38388 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038389
cristyda16f162011-02-19 23:52:17 +000038390 if test x"$xsi_shell" = xyes; then
38391 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38392func_dirname ()\
38393{\
38394\ case ${1} in\
38395\ */*) func_dirname_result="${1%/*}${2}" ;;\
38396\ * ) func_dirname_result="${3}" ;;\
38397\ esac\
38398} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38399 && mv -f "$cfgfile.tmp" "$cfgfile" \
38400 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38401test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038402
38403
cristyda16f162011-02-19 23:52:17 +000038404 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38405func_basename ()\
38406{\
38407\ func_basename_result="${1##*/}"\
38408} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38409 && mv -f "$cfgfile.tmp" "$cfgfile" \
38410 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38411test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038412
38413
cristyda16f162011-02-19 23:52:17 +000038414 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38415func_dirname_and_basename ()\
38416{\
38417\ case ${1} in\
38418\ */*) func_dirname_result="${1%/*}${2}" ;;\
38419\ * ) func_dirname_result="${3}" ;;\
38420\ esac\
38421\ func_basename_result="${1##*/}"\
38422} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38423 && mv -f "$cfgfile.tmp" "$cfgfile" \
38424 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38425test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038426
cristyda16f162011-02-19 23:52:17 +000038427
38428 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38429func_stripname ()\
38430{\
38431\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38432\ # positional parameters, so assign one to ordinary parameter first.\
38433\ func_stripname_result=${3}\
38434\ func_stripname_result=${func_stripname_result#"${1}"}\
38435\ func_stripname_result=${func_stripname_result%"${2}"}\
38436} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38437 && mv -f "$cfgfile.tmp" "$cfgfile" \
38438 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38439test 0 -eq $? || _lt_function_replace_fail=:
38440
38441
38442 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38443func_split_long_opt ()\
38444{\
38445\ func_split_long_opt_name=${1%%=*}\
38446\ func_split_long_opt_arg=${1#*=}\
38447} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38448 && mv -f "$cfgfile.tmp" "$cfgfile" \
38449 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38450test 0 -eq $? || _lt_function_replace_fail=:
38451
38452
38453 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38454func_split_short_opt ()\
38455{\
38456\ func_split_short_opt_arg=${1#??}\
38457\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38458} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38459 && mv -f "$cfgfile.tmp" "$cfgfile" \
38460 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38461test 0 -eq $? || _lt_function_replace_fail=:
38462
38463
38464 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38465func_lo2o ()\
38466{\
38467\ case ${1} in\
38468\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38469\ *) func_lo2o_result=${1} ;;\
38470\ esac\
38471} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38472 && mv -f "$cfgfile.tmp" "$cfgfile" \
38473 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38474test 0 -eq $? || _lt_function_replace_fail=:
38475
38476
38477 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38478func_xform ()\
38479{\
38480 func_xform_result=${1%.*}.lo\
38481} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38482 && mv -f "$cfgfile.tmp" "$cfgfile" \
38483 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38484test 0 -eq $? || _lt_function_replace_fail=:
38485
38486
38487 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38488func_arith ()\
38489{\
38490 func_arith_result=$(( $* ))\
38491} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38492 && mv -f "$cfgfile.tmp" "$cfgfile" \
38493 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38494test 0 -eq $? || _lt_function_replace_fail=:
38495
38496
38497 sed -e '/^func_len ()$/,/^} # func_len /c\
38498func_len ()\
38499{\
38500 func_len_result=${#1}\
38501} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38502 && mv -f "$cfgfile.tmp" "$cfgfile" \
38503 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38504test 0 -eq $? || _lt_function_replace_fail=:
38505
38506fi
38507
38508if test x"$lt_shell_append" = xyes; then
38509 sed -e '/^func_append ()$/,/^} # func_append /c\
38510func_append ()\
38511{\
38512 eval "${1}+=\\${2}"\
38513} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38514 && mv -f "$cfgfile.tmp" "$cfgfile" \
38515 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38516test 0 -eq $? || _lt_function_replace_fail=:
38517
38518
38519 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38520func_append_quoted ()\
38521{\
38522\ func_quote_for_eval "${2}"\
38523\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38524} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38525 && mv -f "$cfgfile.tmp" "$cfgfile" \
38526 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38527test 0 -eq $? || _lt_function_replace_fail=:
38528
38529
38530 # Save a `func_append' function call where possible by direct use of '+='
38531 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38532 && mv -f "$cfgfile.tmp" "$cfgfile" \
38533 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38534 test 0 -eq $? || _lt_function_replace_fail=:
38535else
38536 # Save a `func_append' function call even when '+=' is not available
38537 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38538 && mv -f "$cfgfile.tmp" "$cfgfile" \
38539 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38540 test 0 -eq $? || _lt_function_replace_fail=:
38541fi
38542
38543if test x"$_lt_function_replace_fail" = x":"; then
38544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38545$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38546fi
38547
38548
38549 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038550 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38551 chmod +x "$ofile"
38552
38553
38554 cat <<_LT_EOF >> "$ofile"
38555
38556# ### BEGIN LIBTOOL TAG CONFIG: CXX
38557
38558# The linker used to build libraries.
38559LD=$lt_LD_CXX
38560
cristy0c60a692010-11-04 01:09:47 +000038561# How to create reloadable object files.
38562reload_flag=$lt_reload_flag_CXX
38563reload_cmds=$lt_reload_cmds_CXX
38564
cristy73bd4a52010-10-05 11:24:23 +000038565# Commands used to build an old-style archive.
38566old_archive_cmds=$lt_old_archive_cmds_CXX
38567
38568# A language specific compiler.
38569CC=$lt_compiler_CXX
38570
38571# Is the compiler the GNU compiler?
38572with_gcc=$GCC_CXX
38573
38574# Compiler flag to turn off builtin functions.
38575no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38576
cristy73bd4a52010-10-05 11:24:23 +000038577# Additional compiler flags for building library objects.
38578pic_flag=$lt_lt_prog_compiler_pic_CXX
38579
cristyda16f162011-02-19 23:52:17 +000038580# How to pass a linker flag through the compiler.
38581wl=$lt_lt_prog_compiler_wl_CXX
38582
cristy73bd4a52010-10-05 11:24:23 +000038583# Compiler flag to prevent dynamic linking.
38584link_static_flag=$lt_lt_prog_compiler_static_CXX
38585
38586# Does compiler simultaneously support -c and -o options?
38587compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38588
38589# Whether or not to add -lc for building shared libraries.
38590build_libtool_need_lc=$archive_cmds_need_lc_CXX
38591
38592# Whether or not to disallow shared libs when runtime libs are static.
38593allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38594
38595# Compiler flag to allow reflexive dlopens.
38596export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38597
38598# Compiler flag to generate shared objects directly from archives.
38599whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38600
38601# Whether the compiler copes with passing no objects directly.
38602compiler_needs_object=$lt_compiler_needs_object_CXX
38603
38604# Create an old-style archive from a shared archive.
38605old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38606
38607# Create a temporary old-style archive to link instead of a shared archive.
38608old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38609
38610# Commands used to build a shared archive.
38611archive_cmds=$lt_archive_cmds_CXX
38612archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38613
38614# Commands used to build a loadable module if different from building
38615# a shared archive.
38616module_cmds=$lt_module_cmds_CXX
38617module_expsym_cmds=$lt_module_expsym_cmds_CXX
38618
38619# Whether we are building with GNU ld or not.
38620with_gnu_ld=$lt_with_gnu_ld_CXX
38621
38622# Flag that allows shared libraries with undefined symbols to be built.
38623allow_undefined_flag=$lt_allow_undefined_flag_CXX
38624
38625# Flag that enforces no undefined symbols.
38626no_undefined_flag=$lt_no_undefined_flag_CXX
38627
38628# Flag to hardcode \$libdir into a binary during linking.
38629# This must work even if \$libdir does not exist
38630hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38631
cristy73bd4a52010-10-05 11:24:23 +000038632# Whether we need a single "-rpath" flag with a separated argument.
38633hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38634
38635# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38636# DIR into the resulting binary.
38637hardcode_direct=$hardcode_direct_CXX
38638
38639# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38640# DIR into the resulting binary and the resulting library dependency is
38641# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38642# library is relocated.
38643hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38644
38645# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38646# into the resulting binary.
38647hardcode_minus_L=$hardcode_minus_L_CXX
38648
38649# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38650# into the resulting binary.
38651hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38652
38653# Set to "yes" if building a shared library automatically hardcodes DIR
38654# into the library and all subsequent libraries and executables linked
38655# against it.
38656hardcode_automatic=$hardcode_automatic_CXX
38657
38658# Set to yes if linker adds runtime paths of dependent libraries
38659# to runtime path list.
38660inherit_rpath=$inherit_rpath_CXX
38661
38662# Whether libtool must link a program against all its dependency libraries.
38663link_all_deplibs=$link_all_deplibs_CXX
38664
cristy73bd4a52010-10-05 11:24:23 +000038665# Set to "yes" if exported symbols are required.
38666always_export_symbols=$always_export_symbols_CXX
38667
38668# The commands to list exported symbols.
38669export_symbols_cmds=$lt_export_symbols_cmds_CXX
38670
38671# Symbols that should not be listed in the preloaded symbols.
38672exclude_expsyms=$lt_exclude_expsyms_CXX
38673
38674# Symbols that must always be exported.
38675include_expsyms=$lt_include_expsyms_CXX
38676
38677# Commands necessary for linking programs (against libraries) with templates.
38678prelink_cmds=$lt_prelink_cmds_CXX
38679
cristyda16f162011-02-19 23:52:17 +000038680# Commands necessary for finishing linking programs.
38681postlink_cmds=$lt_postlink_cmds_CXX
38682
cristy73bd4a52010-10-05 11:24:23 +000038683# Specify filename containing input files.
38684file_list_spec=$lt_file_list_spec_CXX
38685
38686# How to hardcode a shared library path into an executable.
38687hardcode_action=$hardcode_action_CXX
38688
38689# The directories searched by this compiler when creating a shared library.
38690compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38691
38692# Dependencies to place before and after the objects being linked to
38693# create a shared library.
38694predep_objects=$lt_predep_objects_CXX
38695postdep_objects=$lt_postdep_objects_CXX
38696predeps=$lt_predeps_CXX
38697postdeps=$lt_postdeps_CXX
38698
38699# The library search path used internally by the compiler when linking
38700# a shared library.
38701compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38702
38703# ### END LIBTOOL TAG CONFIG: CXX
38704_LT_EOF
38705
38706 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038707 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038708 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038709 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038710 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38711 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38712
38713 esac
38714done # for ac_tag
38715
38716
cristy8b350f62009-11-15 23:12:43 +000038717as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038718_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038719ac_clean_files=$ac_clean_files_save
38720
38721test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038722 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038723
38724
38725# configure is writing to config.log, and then calls config.status.
38726# config.status does its own redirection, appending to config.log.
38727# Unfortunately, on DOS this fails, as config.log is still kept open
38728# by configure, so config.status won't be able to write to it; its
38729# output is simply discarded. So we exec the FD to /dev/null,
38730# effectively closing config.log, so it can be properly (re)opened and
38731# appended to by config.status. When coming back to configure, we
38732# need to make the FD available again.
38733if test "$no_create" != yes; then
38734 ac_cs_success=:
38735 ac_config_status_args=
38736 test "$silent" = yes &&
38737 ac_config_status_args="$ac_config_status_args --quiet"
38738 exec 5>/dev/null
38739 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38740 exec 5>>config.log
38741 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38742 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038743 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038744fi
38745if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038747$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38748fi
38749
38750
38751rm -f magick-version
38752
cristy430a7312010-01-21 20:44:04 +000038753result_dejavu_font_dir='none'
38754if test "${dejavu_font_dir}x" != 'x'; then
38755 result_dejavu_font_dir=$dejavu_font_dir
38756fi
38757
cristy3ed852e2009-09-05 21:47:34 +000038758result_ghostscript_font_dir='none'
38759if test "${ghostscript_font_dir}x" != 'x'; then
38760 result_ghostscript_font_dir=$ghostscript_font_dir
38761fi
38762
38763result_windows_font_dir='none'
38764if test "${windows_font_dir}x" != 'x'; then
38765 result_windows_font_dir=${windows_font_dir}
38766fi
38767
cristyad38abe2012-12-23 23:03:21 +000038768{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038769ImageMagick is configured as follows. Please verify that this configuration
38770matches your expectations.
38771
38772Host system type: $host
38773Build system type: $build
38774
38775 Option Value
38776-------------------------------------------------------------------------------
38777Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38778Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038779Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038780GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38781Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38782High Dynamic Range Imagery
38783 --enable-hdri=$enable_hdri $enable_hdri
38784
38785Delegate Configuration:
38786BZLIB --with-bzlib=$with_bzlib $have_bzlib
38787Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038788Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038789DJVU --with-djvu=$with_djvu $have_djvu
38790DPS --with-dps=$with_dps $have_dps
38791FFTW --with-fftw=$with_fftw $have_fftw
38792FlashPIX --with-fpx=$with_fpx $have_fpx
38793FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38794FreeType --with-freetype=$with_freetype $have_freetype
38795GhostPCL None $PCLDelegate ($PCLVersion)
38796GhostXPS None $XPSDelegate ($XPSVersion)
38797Ghostscript None $PSDelegate ($GSVersion)
38798Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38799Ghostscript lib --with-gslib=$with_gslib $have_gslib
38800Graphviz --with-gvc=$with_gvc $have_gvc
38801JBIG --with-jbig=$with_jbig $have_jbig
38802JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38803JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038804LCMS v1 --with-lcms=$with_lcms $have_lcms
38805LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038806LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038807LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038808LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038809Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38810OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038811PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038812PERL --with-perl=$with_perl $have_perl
38813PNG --with-png=$with_png $have_png
38814RSVG --with-rsvg=$with_rsvg $have_rsvg
38815TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038816WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038817Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038818WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038819X11 --with-x=$with_x $have_x
38820XML --with-xml=$with_xml $have_xml
38821ZLIB --with-zlib=$with_zlib $have_zlib
38822
38823X11 Configuration:
38824 X_CFLAGS = $X_CFLAGS
38825 X_PRE_LIBS = $X_PRE_LIBS
38826 X_LIBS = $X_LIBS
38827 X_EXTRA_LIBS = $X_EXTRA_LIBS
38828
38829Options used to compile and link:
38830 PREFIX = $PREFIX_DIR
38831 EXEC-PREFIX = $EXEC_PREFIX_DIR
38832 VERSION = $PACKAGE_VERSION
38833 CC = $CC
38834 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038835 CPPFLAGS = $MAGICK_CPPFLAGS
38836 PCFLAGS = $MAGICK_PCFLAGS
38837 DEFS = $DEFS
38838 LDFLAGS = $LDFLAGS
38839 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38840 LIBS = $MAGICK_LIBS
38841 CXX = $CXX
38842 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038843 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038844 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038845" >&5
cristyad38abe2012-12-23 23:03:21 +000038846$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038847ImageMagick is configured as follows. Please verify that this configuration
38848matches your expectations.
38849
38850Host system type: $host
38851Build system type: $build
38852
38853 Option Value
38854-------------------------------------------------------------------------------
38855Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38856Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038857Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038858GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38859Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38860High Dynamic Range Imagery
38861 --enable-hdri=$enable_hdri $enable_hdri
38862
38863Delegate Configuration:
38864BZLIB --with-bzlib=$with_bzlib $have_bzlib
38865Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038866Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038867DJVU --with-djvu=$with_djvu $have_djvu
38868DPS --with-dps=$with_dps $have_dps
38869FFTW --with-fftw=$with_fftw $have_fftw
38870FlashPIX --with-fpx=$with_fpx $have_fpx
38871FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38872FreeType --with-freetype=$with_freetype $have_freetype
38873GhostPCL None $PCLDelegate ($PCLVersion)
38874GhostXPS None $XPSDelegate ($XPSVersion)
38875Ghostscript None $PSDelegate ($GSVersion)
38876Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38877Ghostscript lib --with-gslib=$with_gslib $have_gslib
38878Graphviz --with-gvc=$with_gvc $have_gvc
38879JBIG --with-jbig=$with_jbig $have_jbig
38880JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38881JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038882LCMS v1 --with-lcms=$with_lcms $have_lcms
38883LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038884LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038885LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038886LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038887Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38888OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038889PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038890PERL --with-perl=$with_perl $have_perl
38891PNG --with-png=$with_png $have_png
38892RSVG --with-rsvg=$with_rsvg $have_rsvg
38893TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038894WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038895Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038896WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038897X11 --with-x=$with_x $have_x
38898XML --with-xml=$with_xml $have_xml
38899ZLIB --with-zlib=$with_zlib $have_zlib
38900
38901X11 Configuration:
38902 X_CFLAGS = $X_CFLAGS
38903 X_PRE_LIBS = $X_PRE_LIBS
38904 X_LIBS = $X_LIBS
38905 X_EXTRA_LIBS = $X_EXTRA_LIBS
38906
38907Options used to compile and link:
38908 PREFIX = $PREFIX_DIR
38909 EXEC-PREFIX = $EXEC_PREFIX_DIR
38910 VERSION = $PACKAGE_VERSION
38911 CC = $CC
38912 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038913 CPPFLAGS = $MAGICK_CPPFLAGS
38914 PCFLAGS = $MAGICK_PCFLAGS
38915 DEFS = $DEFS
38916 LDFLAGS = $LDFLAGS
38917 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38918 LIBS = $MAGICK_LIBS
38919 CXX = $CXX
38920 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038921 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038922 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038923" >&6; }