blob: a2e29e9d5e45e360d13e00f5dfcd93f500135c14 [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 +0000868GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000869WITH_MAGICK_PLUS_PLUS_FALSE
870WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000872MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000873POW_LIB
874LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000875UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000876UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000877UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000878UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000879UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000880UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000881INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000882INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000883UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000884UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000885INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000886INT32_T
887UINT16_T
888INT16_T
889UINT8_T
890INT8_T
891LIBRARY_EXTRA_CPPFLAGS
892MODULE_EXTRA_CPPFLAGS
893LIBSTDCLDFLAGS
894PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000895MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000896MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000897QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000898LEGACY_SUPPORT_FALSE
899LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000900MAINT
901MAINTAINER_MODE_FALSE
902MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000903MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000904WITH_MODULES_FALSE
905WITH_MODULES_TRUE
906WITH_SHARED_LIBS_FALSE
907WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000908LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000909CXXCPP
910OTOOL64
911OTOOL
912LIPO
913NMEDIT
914DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000915MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000916RANLIB
cristyda16f162011-02-19 23:52:17 +0000917ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000918AR
919NM
920ac_ct_DUMPBIN
921DUMPBIN
922LIBTOOL
923OBJDUMP
924DLLTOOL
925AS
cristy3ed852e2009-09-05 21:47:34 +0000926LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000927CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000928CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000929OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000930THREAD_LIBS
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
cristy5ed9c6e2013-07-14 21:20:31 +00001003MAGICKPP_LIB_VERSION_TEXT
1004MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001005MAGICK_LIB_VERSION_NUMBER
1006MAGICK_LIB_VERSION_TEXT
1007MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001008AM_BACKSLASH
1009AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001010AM_DEFAULT_V
1011AM_V
cristy73bd4a52010-10-05 11:24:23 +00001012am__untar
1013am__tar
1014AMTAR
1015am__leading_dot
1016SET_MAKE
1017AWK
1018mkdir_p
1019MKDIR_P
1020INSTALL_STRIP_PROGRAM
1021STRIP
1022install_sh
1023MAKEINFO
1024AUTOHEADER
1025AUTOMAKE
1026AUTOCONF
1027ACLOCAL
1028VERSION
1029PACKAGE
1030CYGPATH_W
1031am__isrc
1032INSTALL_DATA
1033INSTALL_SCRIPT
1034INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001035PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001036PACKAGE_RELEASE_DATE
1037PACKAGE_LIB_VERSION_NUMBER
1038PACKAGE_LIB_VERSION
1039PACKAGE_CHANGE_DATE
1040PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001041PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001042MAGICKPP_LIBRARY_VERSION_INFO
1043MAGICKPP_LIBRARY_CURRENT_MIN
1044MAGICKPP_LIBRARY_AGE
1045MAGICKPP_LIBRARY_REVISION
1046MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001047MAGICK_LIBRARY_VERSION_INFO
1048MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001049MAGICK_LIBRARY_AGE
1050MAGICK_LIBRARY_REVISION
1051MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001052MAGICK_SVN_REVISION
1053MAGICK_VERSION
1054MAGICK_PATCHLEVEL_VERSION
1055MAGICK_MICRO_VERSION
1056MAGICK_MINOR_VERSION
1057MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001058MAGICK_TARGET_OS
1059MAGICK_TARGET_VENDOR
1060MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001061target_os
1062target_vendor
1063target_cpu
1064target
1065host_os
1066host_vendor
1067host_cpu
1068host
1069build_os
1070build_vendor
1071build_cpu
1072build
1073CONFIGURE_ARGS
1074DISTCHECK_CONFIG_FLAGS
1075target_alias
1076host_alias
1077build_alias
1078LIBS
1079ECHO_T
1080ECHO_N
1081ECHO_C
1082DEFS
1083mandir
1084localedir
1085libdir
1086psdir
1087pdfdir
1088dvidir
1089htmldir
1090infodir
1091docdir
1092oldincludedir
1093includedir
1094localstatedir
1095sharedstatedir
1096sysconfdir
1097datadir
1098datarootdir
1099libexecdir
1100sbindir
1101bindir
1102program_transform_name
1103prefix
1104exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001105PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001106PACKAGE_BUGREPORT
1107PACKAGE_STRING
1108PACKAGE_VERSION
1109PACKAGE_TARNAME
1110PACKAGE_NAME
1111PATH_SEPARATOR
1112SHELL'
1113ac_subst_files=''
1114ac_user_opts='
1115enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001116enable_silent_rules
1117enable_dependency_tracking
1118with_gnu_ld
1119with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001120with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001121enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001122enable_bounds_checking
1123enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001124with_includearch_dir
1125with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001126with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001127with_threads
1128enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001129enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001130enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001131enable_shared
1132enable_static
1133with_pic
1134enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001135with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001136enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001137with_modules
1138enable_delegate_build
1139enable_deprecated
1140enable_installed
1141enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001142enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001143enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001144enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001145enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001146enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001147enable_ccmalloc
1148enable_efence
1149enable_prof
1150enable_gprof
1151enable_gcov
1152with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001153enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001154with_quantum_depth
1155with_cache
1156with_frozenpaths
1157with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001158with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001159with_perl
1160with_perl_options
1161with_umem
1162with_libstdc
1163with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001164with_x
cristy3ed852e2009-09-05 21:47:34 +00001165with_zlib
1166with_autotrace
1167with_dps
1168with_djvu
cristy430a7312010-01-21 20:44:04 +00001169with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001170with_fftw
1171with_fpx
1172with_fontconfig
1173with_freetype
1174with_gslib
1175with_fontpath
1176with_gs_font_dir
1177with_gvc
1178with_jbig
1179with_jpeg
1180with_jp2
1181with_lcms
cristy71203402010-06-18 13:12:03 +00001182with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001183with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001184with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001185with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001186with_pango
cristy3ed852e2009-09-05 21:47:34 +00001187with_png
1188with_rsvg
1189with_tiff
cristyb1860752011-03-14 00:27:46 +00001190with_webp
cristy3ed852e2009-09-05 21:47:34 +00001191with_windows_font_dir
1192with_wmf
1193with_xml
1194'
1195 ac_precious_vars='build_alias
1196host_alias
1197target_alias
1198CC
1199CFLAGS
1200LDFLAGS
1201LIBS
1202CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001203CPP
cristy3ed852e2009-09-05 21:47:34 +00001204CXX
1205CXXFLAGS
1206CCC
cristy73bd4a52010-10-05 11:24:23 +00001207PKG_CONFIG
1208CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001209XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001210AUTOTRACE_CFLAGS
1211AUTOTRACE_LIBS
1212FONTCONFIG_CFLAGS
1213FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001214FREETYPE_CFLAGS
1215FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001216GVC_CFLAGS
1217GVC_LIBS
1218LQR_CFLAGS
1219LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001220LZMA_CFLAGS
1221LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001222OPENEXR_CFLAGS
1223OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001224PANGO_CFLAGS
1225PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001226RSVG_CFLAGS
1227RSVG_LIBS
1228CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001229CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001230
1231
1232# Initialize some variables set by options.
1233ac_init_help=
1234ac_init_version=false
1235ac_unrecognized_opts=
1236ac_unrecognized_sep=
1237# The variables have the same names as the options, with
1238# dashes changed to underlines.
1239cache_file=/dev/null
1240exec_prefix=NONE
1241no_create=
1242no_recursion=
1243prefix=NONE
1244program_prefix=NONE
1245program_suffix=NONE
1246program_transform_name=s,x,x,
1247silent=
1248site=
1249srcdir=
1250verbose=
1251x_includes=NONE
1252x_libraries=NONE
1253
1254# Installation directory options.
1255# These are left unexpanded so users can "make install exec_prefix=/foo"
1256# and all the variables that are supposed to be based on exec_prefix
1257# by default will actually change.
1258# Use braces instead of parens because sh, perl, etc. also accept them.
1259# (The list follows the same order as the GNU Coding Standards.)
1260bindir='${exec_prefix}/bin'
1261sbindir='${exec_prefix}/sbin'
1262libexecdir='${exec_prefix}/libexec'
1263datarootdir='${prefix}/share'
1264datadir='${datarootdir}'
1265sysconfdir='${prefix}/etc'
1266sharedstatedir='${prefix}/com'
1267localstatedir='${prefix}/var'
1268includedir='${prefix}/include'
1269oldincludedir='/usr/include'
1270docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1271infodir='${datarootdir}/info'
1272htmldir='${docdir}'
1273dvidir='${docdir}'
1274pdfdir='${docdir}'
1275psdir='${docdir}'
1276libdir='${exec_prefix}/lib'
1277localedir='${datarootdir}/locale'
1278mandir='${datarootdir}/man'
1279
1280ac_prev=
1281ac_dashdash=
1282for ac_option
1283do
1284 # If the previous option needs an argument, assign it.
1285 if test -n "$ac_prev"; then
1286 eval $ac_prev=\$ac_option
1287 ac_prev=
1288 continue
1289 fi
1290
1291 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001292 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1293 *=) ac_optarg= ;;
1294 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001295 esac
1296
1297 # Accept the important Cygnus configure options, so we can diagnose typos.
1298
1299 case $ac_dashdash$ac_option in
1300 --)
1301 ac_dashdash=yes ;;
1302
1303 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1304 ac_prev=bindir ;;
1305 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1306 bindir=$ac_optarg ;;
1307
1308 -build | --build | --buil | --bui | --bu)
1309 ac_prev=build_alias ;;
1310 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1311 build_alias=$ac_optarg ;;
1312
1313 -cache-file | --cache-file | --cache-fil | --cache-fi \
1314 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1315 ac_prev=cache_file ;;
1316 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1317 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1318 cache_file=$ac_optarg ;;
1319
1320 --config-cache | -C)
1321 cache_file=config.cache ;;
1322
1323 -datadir | --datadir | --datadi | --datad)
1324 ac_prev=datadir ;;
1325 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1326 datadir=$ac_optarg ;;
1327
1328 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1329 | --dataroo | --dataro | --datar)
1330 ac_prev=datarootdir ;;
1331 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1332 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1333 datarootdir=$ac_optarg ;;
1334
1335 -disable-* | --disable-*)
1336 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001339 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1343 *"
1344"enable_$ac_useropt"
1345"*) ;;
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1348 esac
1349 eval enable_$ac_useropt=no ;;
1350
1351 -docdir | --docdir | --docdi | --doc | --do)
1352 ac_prev=docdir ;;
1353 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1354 docdir=$ac_optarg ;;
1355
1356 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1357 ac_prev=dvidir ;;
1358 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1359 dvidir=$ac_optarg ;;
1360
1361 -enable-* | --enable-*)
1362 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001365 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001366 ac_useropt_orig=$ac_useropt
1367 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1368 case $ac_user_opts in
1369 *"
1370"enable_$ac_useropt"
1371"*) ;;
1372 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1373 ac_unrecognized_sep=', ';;
1374 esac
1375 eval enable_$ac_useropt=\$ac_optarg ;;
1376
1377 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1378 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1379 | --exec | --exe | --ex)
1380 ac_prev=exec_prefix ;;
1381 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1382 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1383 | --exec=* | --exe=* | --ex=*)
1384 exec_prefix=$ac_optarg ;;
1385
1386 -gas | --gas | --ga | --g)
1387 # Obsolete; use --with-gas.
1388 with_gas=yes ;;
1389
1390 -help | --help | --hel | --he | -h)
1391 ac_init_help=long ;;
1392 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1393 ac_init_help=recursive ;;
1394 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1395 ac_init_help=short ;;
1396
1397 -host | --host | --hos | --ho)
1398 ac_prev=host_alias ;;
1399 -host=* | --host=* | --hos=* | --ho=*)
1400 host_alias=$ac_optarg ;;
1401
1402 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1403 ac_prev=htmldir ;;
1404 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1405 | --ht=*)
1406 htmldir=$ac_optarg ;;
1407
1408 -includedir | --includedir | --includedi | --included | --include \
1409 | --includ | --inclu | --incl | --inc)
1410 ac_prev=includedir ;;
1411 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1412 | --includ=* | --inclu=* | --incl=* | --inc=*)
1413 includedir=$ac_optarg ;;
1414
1415 -infodir | --infodir | --infodi | --infod | --info | --inf)
1416 ac_prev=infodir ;;
1417 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1418 infodir=$ac_optarg ;;
1419
1420 -libdir | --libdir | --libdi | --libd)
1421 ac_prev=libdir ;;
1422 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1423 libdir=$ac_optarg ;;
1424
1425 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1426 | --libexe | --libex | --libe)
1427 ac_prev=libexecdir ;;
1428 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1429 | --libexe=* | --libex=* | --libe=*)
1430 libexecdir=$ac_optarg ;;
1431
1432 -localedir | --localedir | --localedi | --localed | --locale)
1433 ac_prev=localedir ;;
1434 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1435 localedir=$ac_optarg ;;
1436
1437 -localstatedir | --localstatedir | --localstatedi | --localstated \
1438 | --localstate | --localstat | --localsta | --localst | --locals)
1439 ac_prev=localstatedir ;;
1440 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1441 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1442 localstatedir=$ac_optarg ;;
1443
1444 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1445 ac_prev=mandir ;;
1446 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1447 mandir=$ac_optarg ;;
1448
1449 -nfp | --nfp | --nf)
1450 # Obsolete; use --without-fp.
1451 with_fp=no ;;
1452
1453 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1454 | --no-cr | --no-c | -n)
1455 no_create=yes ;;
1456
1457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1459 no_recursion=yes ;;
1460
1461 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1462 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1463 | --oldin | --oldi | --old | --ol | --o)
1464 ac_prev=oldincludedir ;;
1465 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1466 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1467 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1468 oldincludedir=$ac_optarg ;;
1469
1470 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1471 ac_prev=prefix ;;
1472 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1473 prefix=$ac_optarg ;;
1474
1475 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1476 | --program-pre | --program-pr | --program-p)
1477 ac_prev=program_prefix ;;
1478 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1479 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1480 program_prefix=$ac_optarg ;;
1481
1482 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1483 | --program-suf | --program-su | --program-s)
1484 ac_prev=program_suffix ;;
1485 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1486 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1487 program_suffix=$ac_optarg ;;
1488
1489 -program-transform-name | --program-transform-name \
1490 | --program-transform-nam | --program-transform-na \
1491 | --program-transform-n | --program-transform- \
1492 | --program-transform | --program-transfor \
1493 | --program-transfo | --program-transf \
1494 | --program-trans | --program-tran \
1495 | --progr-tra | --program-tr | --program-t)
1496 ac_prev=program_transform_name ;;
1497 -program-transform-name=* | --program-transform-name=* \
1498 | --program-transform-nam=* | --program-transform-na=* \
1499 | --program-transform-n=* | --program-transform-=* \
1500 | --program-transform=* | --program-transfor=* \
1501 | --program-transfo=* | --program-transf=* \
1502 | --program-trans=* | --program-tran=* \
1503 | --progr-tra=* | --program-tr=* | --program-t=*)
1504 program_transform_name=$ac_optarg ;;
1505
1506 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1507 ac_prev=pdfdir ;;
1508 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1509 pdfdir=$ac_optarg ;;
1510
1511 -psdir | --psdir | --psdi | --psd | --ps)
1512 ac_prev=psdir ;;
1513 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1514 psdir=$ac_optarg ;;
1515
1516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1517 | -silent | --silent | --silen | --sile | --sil)
1518 silent=yes ;;
1519
1520 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1521 ac_prev=sbindir ;;
1522 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1523 | --sbi=* | --sb=*)
1524 sbindir=$ac_optarg ;;
1525
1526 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1527 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1528 | --sharedst | --shareds | --shared | --share | --shar \
1529 | --sha | --sh)
1530 ac_prev=sharedstatedir ;;
1531 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1532 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1533 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1534 | --sha=* | --sh=*)
1535 sharedstatedir=$ac_optarg ;;
1536
1537 -site | --site | --sit)
1538 ac_prev=site ;;
1539 -site=* | --site=* | --sit=*)
1540 site=$ac_optarg ;;
1541
1542 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1543 ac_prev=srcdir ;;
1544 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1545 srcdir=$ac_optarg ;;
1546
1547 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1548 | --syscon | --sysco | --sysc | --sys | --sy)
1549 ac_prev=sysconfdir ;;
1550 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1551 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1552 sysconfdir=$ac_optarg ;;
1553
1554 -target | --target | --targe | --targ | --tar | --ta | --t)
1555 ac_prev=target_alias ;;
1556 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1557 target_alias=$ac_optarg ;;
1558
1559 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1560 verbose=yes ;;
1561
1562 -version | --version | --versio | --versi | --vers | -V)
1563 ac_init_version=: ;;
1564
1565 -with-* | --with-*)
1566 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1567 # Reject names that are not valid shell variable names.
1568 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001569 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001570 ac_useropt_orig=$ac_useropt
1571 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1572 case $ac_user_opts in
1573 *"
1574"with_$ac_useropt"
1575"*) ;;
1576 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1577 ac_unrecognized_sep=', ';;
1578 esac
1579 eval with_$ac_useropt=\$ac_optarg ;;
1580
1581 -without-* | --without-*)
1582 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1583 # Reject names that are not valid shell variable names.
1584 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001585 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001586 ac_useropt_orig=$ac_useropt
1587 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1588 case $ac_user_opts in
1589 *"
1590"with_$ac_useropt"
1591"*) ;;
1592 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1593 ac_unrecognized_sep=', ';;
1594 esac
1595 eval with_$ac_useropt=no ;;
1596
1597 --x)
1598 # Obsolete; use --with-x.
1599 with_x=yes ;;
1600
1601 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1602 | --x-incl | --x-inc | --x-in | --x-i)
1603 ac_prev=x_includes ;;
1604 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1605 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1606 x_includes=$ac_optarg ;;
1607
1608 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1609 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1610 ac_prev=x_libraries ;;
1611 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1612 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1613 x_libraries=$ac_optarg ;;
1614
cristy98dddb52010-11-04 00:30:15 +00001615 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1616Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001617 ;;
1618
1619 *=*)
1620 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1621 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001622 case $ac_envvar in #(
1623 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001624 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001625 esac
cristy3ed852e2009-09-05 21:47:34 +00001626 eval $ac_envvar=\$ac_optarg
1627 export $ac_envvar ;;
1628
1629 *)
1630 # FIXME: should be removed in autoconf 3.0.
1631 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1632 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1633 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001634 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001635 ;;
1636
1637 esac
1638done
1639
1640if test -n "$ac_prev"; then
1641 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001642 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001643fi
1644
1645if test -n "$ac_unrecognized_opts"; then
1646 case $enable_option_checking in
1647 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001648 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001649 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1650 esac
1651fi
1652
1653# Check all directory arguments for consistency.
1654for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1655 datadir sysconfdir sharedstatedir localstatedir includedir \
1656 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1657 libdir localedir mandir
1658do
1659 eval ac_val=\$$ac_var
1660 # Remove trailing slashes.
1661 case $ac_val in
1662 */ )
1663 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1664 eval $ac_var=\$ac_val;;
1665 esac
1666 # Be sure to have absolute directory names.
1667 case $ac_val in
1668 [\\/$]* | ?:[\\/]* ) continue;;
1669 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1670 esac
cristy98dddb52010-11-04 00:30:15 +00001671 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001672done
1673
1674# There might be people who depend on the old broken behavior: `$host'
1675# used to hold the argument of --host etc.
1676# FIXME: To remove some day.
1677build=$build_alias
1678host=$host_alias
1679target=$target_alias
1680
1681# FIXME: To remove some day.
1682if test "x$host_alias" != x; then
1683 if test "x$build_alias" = x; then
1684 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001685 elif test "x$build_alias" != "x$host_alias"; then
1686 cross_compiling=yes
1687 fi
1688fi
1689
1690ac_tool_prefix=
1691test -n "$host_alias" && ac_tool_prefix=$host_alias-
1692
1693test "$silent" = yes && exec 6>/dev/null
1694
1695
1696ac_pwd=`pwd` && test -n "$ac_pwd" &&
1697ac_ls_di=`ls -di .` &&
1698ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001699 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001700test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001701 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001702
1703
1704# Find the source files, if location was not specified.
1705if test -z "$srcdir"; then
1706 ac_srcdir_defaulted=yes
1707 # Try the directory containing this script, then the parent directory.
1708 ac_confdir=`$as_dirname -- "$as_myself" ||
1709$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1710 X"$as_myself" : 'X\(//\)[^/]' \| \
1711 X"$as_myself" : 'X\(//\)$' \| \
1712 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1713$as_echo X"$as_myself" |
1714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1715 s//\1/
1716 q
1717 }
1718 /^X\(\/\/\)[^/].*/{
1719 s//\1/
1720 q
1721 }
1722 /^X\(\/\/\)$/{
1723 s//\1/
1724 q
1725 }
1726 /^X\(\/\).*/{
1727 s//\1/
1728 q
1729 }
1730 s/.*/./; q'`
1731 srcdir=$ac_confdir
1732 if test ! -r "$srcdir/$ac_unique_file"; then
1733 srcdir=..
1734 fi
1735else
1736 ac_srcdir_defaulted=no
1737fi
1738if test ! -r "$srcdir/$ac_unique_file"; then
1739 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001740 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001741fi
1742ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1743ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001744 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001745 pwd)`
1746# When building in place, set srcdir=.
1747if test "$ac_abs_confdir" = "$ac_pwd"; then
1748 srcdir=.
1749fi
1750# Remove unnecessary trailing slashes from srcdir.
1751# Double slashes in file names in object file debugging info
1752# mess up M-x gdb in Emacs.
1753case $srcdir in
1754*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1755esac
1756for ac_var in $ac_precious_vars; do
1757 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1758 eval ac_env_${ac_var}_value=\$${ac_var}
1759 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1760 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1761done
1762
1763#
1764# Report the --help message.
1765#
1766if test "$ac_init_help" = "long"; then
1767 # Omit some internal or obsolete options to make the list less imposing.
1768 # This message is too long to be a string in the A/UX 3.1 sh.
1769 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001770\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001771
1772Usage: $0 [OPTION]... [VAR=VALUE]...
1773
1774To assign environment variables (e.g., CC, CFLAGS...), specify them as
1775VAR=VALUE. See below for descriptions of some of the useful variables.
1776
1777Defaults for the options are specified in brackets.
1778
1779Configuration:
1780 -h, --help display this help and exit
1781 --help=short display options specific to this package
1782 --help=recursive display the short help of all the included packages
1783 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001784 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001785 --cache-file=FILE cache test results in FILE [disabled]
1786 -C, --config-cache alias for \`--cache-file=config.cache'
1787 -n, --no-create do not create output files
1788 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1789
1790Installation directories:
1791 --prefix=PREFIX install architecture-independent files in PREFIX
1792 [$ac_default_prefix]
1793 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1794 [PREFIX]
1795
1796By default, \`make install' will install all the files in
1797\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1798an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1799for instance \`--prefix=\$HOME'.
1800
1801For better control, use the options below.
1802
1803Fine tuning of the installation directories:
1804 --bindir=DIR user executables [EPREFIX/bin]
1805 --sbindir=DIR system admin executables [EPREFIX/sbin]
1806 --libexecdir=DIR program executables [EPREFIX/libexec]
1807 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1808 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1809 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1810 --libdir=DIR object code libraries [EPREFIX/lib]
1811 --includedir=DIR C header files [PREFIX/include]
1812 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1813 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1814 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1815 --infodir=DIR info documentation [DATAROOTDIR/info]
1816 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1817 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001818 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001819 --htmldir=DIR html documentation [DOCDIR]
1820 --dvidir=DIR dvi documentation [DOCDIR]
1821 --pdfdir=DIR pdf documentation [DOCDIR]
1822 --psdir=DIR ps documentation [DOCDIR]
1823_ACEOF
1824
1825 cat <<\_ACEOF
1826
cristy73bd4a52010-10-05 11:24:23 +00001827Program names:
1828 --program-prefix=PREFIX prepend PREFIX to installed program names
1829 --program-suffix=SUFFIX append SUFFIX to installed program names
1830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1831
cristy3ed852e2009-09-05 21:47:34 +00001832X features:
1833 --x-includes=DIR X include files are in DIR
1834 --x-libraries=DIR X library files are in DIR
1835
1836System types:
1837 --build=BUILD configure for building on BUILD [guessed]
1838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1839 --target=TARGET configure for building compilers for TARGET [HOST]
1840_ACEOF
1841fi
1842
1843if test -n "$ac_init_help"; then
1844 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001845 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001846 esac
1847 cat <<\_ACEOF
1848
1849Optional Features:
1850 --disable-option-checking ignore unrecognized --enable/--with options
1851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001853 --enable-silent-rules less verbose build output (undo: "make V=1")
1854 --disable-silent-rules verbose build output (undo: "make V=0")
1855 --enable-dependency-tracking
1856 do not reject slow dependency extractors
1857 --disable-dependency-tracking
1858 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001859 --enable-ld-version-script
1860 enable linker version script (default is enabled
1861 when possible)
cristya3824692012-03-30 17:22:07 +00001862 --enable-bounds-checking
1863 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001864 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001865 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001866 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001867 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001868 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001869 --enable-shared[=PKGS] build shared libraries [default=yes]
1870 --enable-static[=PKGS] build static libraries [default=yes]
1871 --enable-fast-install[=PKGS]
1872 optimize for fast installation [default=yes]
1873 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001874 --enable-delegate-build look for delegate libraries in build directory
1875 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001876 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001877 --disable-installed Formally install ImageMagick under PREFIX
1878 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001879 --enable-zero-configuration
1880 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001881 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001882 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001883 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001884 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001885 --enable-maintainer-mode
1886 enable make rules and dependencies not useful (and
1887 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001888 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001889 --enable-ccmalloc enable 'ccmalloc' memory debug support
1890 --enable-efence enable 'efence' memory debug support
1891 --enable-prof enable 'prof' profiling support
1892 --enable-gprof enable 'gprof' profiling support
1893 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001894 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001895 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001896
1897Optional Packages:
1898 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1899 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001900 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001901 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001902 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1903 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001904 --includearch-dir=DIR ARCH specific include directory
1905 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001906 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001907 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001908 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001909 both]
cristyda16f162011-02-19 23:52:17 +00001910 --with-sysroot=DIR Search for dependent libraries within DIR
1911 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001912 --with-modules enable building dynamically loadable modules
1913 --with-method-prefix=PREFIX
1914 prefix MagickCore API methods
1915 --with-quantum-depth=DEPTH
1916 number of bits in a pixel quantum (default 16)
1917 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1918 memory)
1919 --with-frozenpaths freeze delegate paths
1920 --without-magick-plus-plus
1921 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001922 --with-package-release-name=NAME
1923 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001924 --with-perl enable build/install of PerlMagick
1925 --with-perl-options=OPTIONS
1926 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001927 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001928 --with-umem enable umem memory allocation library support
1929 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1930 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001931 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001932 --without-zlib disable ZLIB support
1933 --with-autotrace enable autotrace support
1934 --without-dps disable Display Postscript support
1935 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001936 --with-dejavu-font-dir=DIR
1937 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001938 --without-fftw disable FFTW support
1939 --without-fpx disable FlashPIX support
1940 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001941 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001942 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001943 --with-fontpath=DIR prepend to default font search path
1944 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001945 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-jbig disable JBIG support
1947 --without-jpeg disable JPEG support
1948 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001949 --without-lcms disable lcms (v1.1X) support
1950 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001951 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001952 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001953 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001954 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001955 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001956 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001957 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001958 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001959 --with-windows-font-dir=DIR
1960 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001961 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001962 --without-xml disable XML support
1963
1964Some influential environment variables:
1965 CC C compiler command
1966 CFLAGS C compiler flags
1967 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1968 nonstandard directory <lib dir>
1969 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001970 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001971 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001972 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001973 CXX C++ compiler command
1974 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001975 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001976 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001977 XMKMF Path to xmkmf, Makefile generator for X Window System
1978 AUTOTRACE_CFLAGS
1979 C compiler flags for AUTOTRACE, overriding pkg-config
1980 AUTOTRACE_LIBS
1981 linker flags for AUTOTRACE, overriding pkg-config
1982 FONTCONFIG_CFLAGS
1983 C compiler flags for FONTCONFIG, overriding pkg-config
1984 FONTCONFIG_LIBS
1985 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001986 FREETYPE_CFLAGS
1987 C compiler flags for FREETYPE, overriding pkg-config
1988 FREETYPE_LIBS
1989 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001990 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1991 GVC_LIBS linker flags for GVC, overriding pkg-config
1992 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1993 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001994 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1995 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001996 OPENEXR_CFLAGS
1997 C compiler flags for OPENEXR, overriding pkg-config
1998 OPENEXR_LIBS
1999 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002000 PANGO_CFLAGS
2001 C compiler flags for PANGO, overriding pkg-config
2002 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002003 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2004 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2005 CAIRO_SVG_CFLAGS
2006 C compiler flags for CAIRO_SVG, overriding pkg-config
2007 CAIRO_SVG_LIBS
2008 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002009
2010Use these variables to override the choices made by `configure' or to help
2011it to find libraries and programs with nonstandard names/locations.
2012
2013Report bugs to <http://www.imagemagick.org>.
2014_ACEOF
2015ac_status=$?
2016fi
2017
2018if test "$ac_init_help" = "recursive"; then
2019 # If there are subdirs, report their specific --help.
2020 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2021 test -d "$ac_dir" ||
2022 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2023 continue
2024 ac_builddir=.
2025
2026case "$ac_dir" in
2027.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2028*)
2029 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2030 # A ".." for each directory in $ac_dir_suffix.
2031 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2032 case $ac_top_builddir_sub in
2033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2035 esac ;;
2036esac
2037ac_abs_top_builddir=$ac_pwd
2038ac_abs_builddir=$ac_pwd$ac_dir_suffix
2039# for backward compatibility:
2040ac_top_builddir=$ac_top_build_prefix
2041
2042case $srcdir in
2043 .) # We are building in place.
2044 ac_srcdir=.
2045 ac_top_srcdir=$ac_top_builddir_sub
2046 ac_abs_top_srcdir=$ac_pwd ;;
2047 [\\/]* | ?:[\\/]* ) # Absolute name.
2048 ac_srcdir=$srcdir$ac_dir_suffix;
2049 ac_top_srcdir=$srcdir
2050 ac_abs_top_srcdir=$srcdir ;;
2051 *) # Relative name.
2052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2053 ac_top_srcdir=$ac_top_build_prefix$srcdir
2054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2055esac
2056ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2057
2058 cd "$ac_dir" || { ac_status=$?; continue; }
2059 # Check for guested configure.
2060 if test -f "$ac_srcdir/configure.gnu"; then
2061 echo &&
2062 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2063 elif test -f "$ac_srcdir/configure"; then
2064 echo &&
2065 $SHELL "$ac_srcdir/configure" --help=recursive
2066 else
2067 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2068 fi || ac_status=$?
2069 cd "$ac_pwd" || { ac_status=$?; break; }
2070 done
2071fi
2072
2073test -n "$ac_init_help" && exit $ac_status
2074if $ac_init_version; then
2075 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002076ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002077generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002078
cristy14fefe52012-05-21 00:59:18 +00002079Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002080This configure script is free software; the Free Software Foundation
2081gives unlimited permission to copy, distribute and modify it.
2082_ACEOF
2083 exit
2084fi
cristy8b350f62009-11-15 23:12:43 +00002085
2086## ------------------------ ##
2087## Autoconf initialization. ##
2088## ------------------------ ##
2089
2090# ac_fn_c_try_compile LINENO
2091# --------------------------
2092# Try to compile conftest.$ac_ext, and return whether this succeeded.
2093ac_fn_c_try_compile ()
2094{
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 rm -f conftest.$ac_objext
2097 if { { ac_try="$ac_compile"
2098case "(($ac_try" in
2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2101esac
2102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2103$as_echo "$ac_try_echo"; } >&5
2104 (eval "$ac_compile") 2>conftest.err
2105 ac_status=$?
2106 if test -s conftest.err; then
2107 grep -v '^ *+' conftest.err >conftest.er1
2108 cat conftest.er1 >&5
2109 mv -f conftest.er1 conftest.err
2110 fi
2111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2112 test $ac_status = 0; } && {
2113 test -z "$ac_c_werror_flag" ||
2114 test ! -s conftest.err
2115 } && test -s conftest.$ac_objext; then :
2116 ac_retval=0
2117else
2118 $as_echo "$as_me: failed program was:" >&5
2119sed 's/^/| /' conftest.$ac_ext >&5
2120
2121 ac_retval=1
2122fi
cristyda16f162011-02-19 23:52:17 +00002123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002124 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002125
2126} # ac_fn_c_try_compile
2127
cristy95646052009-11-28 23:05:30 +00002128# ac_fn_c_try_cpp LINENO
2129# ----------------------
2130# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2131ac_fn_c_try_cpp ()
2132{
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 if { { ac_try="$ac_cpp conftest.$ac_ext"
2135case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138esac
2139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140$as_echo "$ac_try_echo"; } >&5
2141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2142 ac_status=$?
2143 if test -s conftest.err; then
2144 grep -v '^ *+' conftest.err >conftest.er1
2145 cat conftest.er1 >&5
2146 mv -f conftest.er1 conftest.err
2147 fi
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002149 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2151 test ! -s conftest.err
2152 }; then :
2153 ac_retval=0
2154else
2155 $as_echo "$as_me: failed program was:" >&5
2156sed 's/^/| /' conftest.$ac_ext >&5
2157
2158 ac_retval=1
2159fi
cristyda16f162011-02-19 23:52:17 +00002160 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002161 as_fn_set_status $ac_retval
2162
2163} # ac_fn_c_try_cpp
2164
cristy8b350f62009-11-15 23:12:43 +00002165# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2166# -------------------------------------------------------
2167# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2168# the include files in INCLUDES and setting the cache variable VAR
2169# accordingly.
2170ac_fn_c_check_header_mongrel ()
2171{
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002173 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002176if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002177 $as_echo_n "(cached) " >&6
2178fi
2179eval ac_res=\$$3
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181$as_echo "$ac_res" >&6; }
2182else
2183 # Is the header compilable?
2184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2185$as_echo_n "checking $2 usability... " >&6; }
2186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187/* end confdefs.h. */
2188$4
2189#include <$2>
2190_ACEOF
2191if ac_fn_c_try_compile "$LINENO"; then :
2192 ac_header_compiler=yes
2193else
2194 ac_header_compiler=no
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2198$as_echo "$ac_header_compiler" >&6; }
2199
2200# Is the header present?
2201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2202$as_echo_n "checking $2 presence... " >&6; }
2203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204/* end confdefs.h. */
2205#include <$2>
2206_ACEOF
2207if ac_fn_c_try_cpp "$LINENO"; then :
2208 ac_header_preproc=yes
2209else
2210 ac_header_preproc=no
2211fi
cristyda16f162011-02-19 23:52:17 +00002212rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2214$as_echo "$ac_header_preproc" >&6; }
2215
2216# So? What about this header?
2217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2218 yes:no: )
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2220$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2222$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2223 ;;
2224 no:yes:* )
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2226$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2228$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2230$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2232$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2234$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002235( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002236## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002237## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002238 ) | sed "s/^/$as_me: WARNING: /" >&2
2239 ;;
2240esac
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002243if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002244 $as_echo_n "(cached) " >&6
2245else
2246 eval "$3=\$ac_header_compiler"
2247fi
2248eval ac_res=\$$3
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250$as_echo "$ac_res" >&6; }
2251fi
cristyda16f162011-02-19 23:52:17 +00002252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002253
2254} # ac_fn_c_check_header_mongrel
2255
2256# ac_fn_c_try_run LINENO
2257# ----------------------
2258# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2259# that executables *can* be run.
2260ac_fn_c_try_run ()
2261{
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 if { { ac_try="$ac_link"
2264case "(($ac_try" in
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2267esac
2268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269$as_echo "$ac_try_echo"; } >&5
2270 (eval "$ac_link") 2>&5
2271 ac_status=$?
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2274 { { case "(($ac_try" in
2275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276 *) ac_try_echo=$ac_try;;
2277esac
2278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2279$as_echo "$ac_try_echo"; } >&5
2280 (eval "$ac_try") 2>&5
2281 ac_status=$?
2282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2283 test $ac_status = 0; }; }; then :
2284 ac_retval=0
2285else
2286 $as_echo "$as_me: program exited with status $ac_status" >&5
2287 $as_echo "$as_me: failed program was:" >&5
2288sed 's/^/| /' conftest.$ac_ext >&5
2289
2290 ac_retval=$ac_status
2291fi
2292 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002294 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002295
2296} # ac_fn_c_try_run
2297
2298# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2299# -------------------------------------------------------
2300# Tests whether HEADER exists and can be compiled using the include files in
2301# INCLUDES, setting the cache variable VAR accordingly.
2302ac_fn_c_check_header_compile ()
2303{
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002307if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002308 $as_echo_n "(cached) " >&6
2309else
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311/* end confdefs.h. */
2312$4
2313#include <$2>
2314_ACEOF
2315if ac_fn_c_try_compile "$LINENO"; then :
2316 eval "$3=yes"
2317else
2318 eval "$3=no"
2319fi
2320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321fi
2322eval ac_res=\$$3
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002325 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002326
2327} # ac_fn_c_check_header_compile
2328
cristya0b81c32010-01-22 02:54:33 +00002329# ac_fn_cxx_try_compile LINENO
2330# ----------------------------
2331# Try to compile conftest.$ac_ext, and return whether this succeeded.
2332ac_fn_cxx_try_compile ()
2333{
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 rm -f conftest.$ac_objext
2336 if { { ac_try="$ac_compile"
2337case "(($ac_try" in
2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339 *) ac_try_echo=$ac_try;;
2340esac
2341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2342$as_echo "$ac_try_echo"; } >&5
2343 (eval "$ac_compile") 2>conftest.err
2344 ac_status=$?
2345 if test -s conftest.err; then
2346 grep -v '^ *+' conftest.err >conftest.er1
2347 cat conftest.er1 >&5
2348 mv -f conftest.er1 conftest.err
2349 fi
2350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2351 test $ac_status = 0; } && {
2352 test -z "$ac_cxx_werror_flag" ||
2353 test ! -s conftest.err
2354 } && test -s conftest.$ac_objext; then :
2355 ac_retval=0
2356else
2357 $as_echo "$as_me: failed program was:" >&5
2358sed 's/^/| /' conftest.$ac_ext >&5
2359
2360 ac_retval=1
2361fi
cristyda16f162011-02-19 23:52:17 +00002362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002363 as_fn_set_status $ac_retval
2364
2365} # ac_fn_cxx_try_compile
2366
cristy8b350f62009-11-15 23:12:43 +00002367# ac_fn_c_try_link LINENO
2368# -----------------------
2369# Try to link conftest.$ac_ext, and return whether this succeeded.
2370ac_fn_c_try_link ()
2371{
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 rm -f conftest.$ac_objext conftest$ac_exeext
2374 if { { ac_try="$ac_link"
2375case "(($ac_try" in
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2378esac
2379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2380$as_echo "$ac_try_echo"; } >&5
2381 (eval "$ac_link") 2>conftest.err
2382 ac_status=$?
2383 if test -s conftest.err; then
2384 grep -v '^ *+' conftest.err >conftest.er1
2385 cat conftest.er1 >&5
2386 mv -f conftest.er1 conftest.err
2387 fi
2388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2389 test $ac_status = 0; } && {
2390 test -z "$ac_c_werror_flag" ||
2391 test ! -s conftest.err
2392 } && test -s conftest$ac_exeext && {
2393 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002394 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002395 }; then :
2396 ac_retval=0
2397else
2398 $as_echo "$as_me: failed program was:" >&5
2399sed 's/^/| /' conftest.$ac_ext >&5
2400
2401 ac_retval=1
2402fi
2403 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2404 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2405 # interfere with the next link command; also delete a directory that is
2406 # left behind by Apple's compiler. We do this before executing the actions.
2407 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002409 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002410
2411} # ac_fn_c_try_link
2412
cristy73bd4a52010-10-05 11:24:23 +00002413# ac_fn_c_check_func LINENO FUNC VAR
2414# ----------------------------------
2415# Tests whether FUNC exists, setting the cache variable VAR accordingly
2416ac_fn_c_check_func ()
2417{
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2420$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002421if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002422 $as_echo_n "(cached) " >&6
2423else
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425/* end confdefs.h. */
2426/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2428#define $2 innocuous_$2
2429
2430/* System header to define __stub macros and hopefully few prototypes,
2431 which can conflict with char $2 (); below.
2432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2433 <limits.h> exists even on freestanding compilers. */
2434
2435#ifdef __STDC__
2436# include <limits.h>
2437#else
2438# include <assert.h>
2439#endif
2440
2441#undef $2
2442
2443/* Override any GCC internal prototype to avoid an error.
2444 Use char because int might match the return type of a GCC
2445 builtin and then its argument prototype would still apply. */
2446#ifdef __cplusplus
2447extern "C"
2448#endif
2449char $2 ();
2450/* The GNU C library defines this for functions which it implements
2451 to always fail with ENOSYS. Some functions are actually named
2452 something starting with __ and the normal name is an alias. */
2453#if defined __stub_$2 || defined __stub___$2
2454choke me
2455#endif
2456
2457int
2458main ()
2459{
2460return $2 ();
2461 ;
2462 return 0;
2463}
2464_ACEOF
2465if ac_fn_c_try_link "$LINENO"; then :
2466 eval "$3=yes"
2467else
2468 eval "$3=no"
2469fi
2470rm -f core conftest.err conftest.$ac_objext \
2471 conftest$ac_exeext conftest.$ac_ext
2472fi
2473eval ac_res=\$$3
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002477
2478} # ac_fn_c_check_func
2479
2480# ac_fn_cxx_try_cpp LINENO
2481# ------------------------
2482# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2483ac_fn_cxx_try_cpp ()
2484{
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 if { { ac_try="$ac_cpp conftest.$ac_ext"
2487case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2490esac
2491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2492$as_echo "$ac_try_echo"; } >&5
2493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2494 ac_status=$?
2495 if test -s conftest.err; then
2496 grep -v '^ *+' conftest.err >conftest.er1
2497 cat conftest.er1 >&5
2498 mv -f conftest.er1 conftest.err
2499 fi
2500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002501 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002502 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2503 test ! -s conftest.err
2504 }; then :
2505 ac_retval=0
2506else
2507 $as_echo "$as_me: failed program was:" >&5
2508sed 's/^/| /' conftest.$ac_ext >&5
2509
2510 ac_retval=1
2511fi
cristyda16f162011-02-19 23:52:17 +00002512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002513 as_fn_set_status $ac_retval
2514
2515} # ac_fn_cxx_try_cpp
2516
2517# ac_fn_cxx_try_link LINENO
2518# -------------------------
2519# Try to link conftest.$ac_ext, and return whether this succeeded.
2520ac_fn_cxx_try_link ()
2521{
2522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523 rm -f conftest.$ac_objext conftest$ac_exeext
2524 if { { ac_try="$ac_link"
2525case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2530$as_echo "$ac_try_echo"; } >&5
2531 (eval "$ac_link") 2>conftest.err
2532 ac_status=$?
2533 if test -s conftest.err; then
2534 grep -v '^ *+' conftest.err >conftest.er1
2535 cat conftest.er1 >&5
2536 mv -f conftest.er1 conftest.err
2537 fi
2538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2539 test $ac_status = 0; } && {
2540 test -z "$ac_cxx_werror_flag" ||
2541 test ! -s conftest.err
2542 } && test -s conftest$ac_exeext && {
2543 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002544 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002545 }; then :
2546 ac_retval=0
2547else
2548 $as_echo "$as_me: failed program was:" >&5
2549sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 ac_retval=1
2552fi
2553 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2554 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2555 # interfere with the next link command; also delete a directory that is
2556 # left behind by Apple's compiler. We do this before executing the actions.
2557 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002559 as_fn_set_status $ac_retval
2560
2561} # ac_fn_cxx_try_link
2562
cristy8b350f62009-11-15 23:12:43 +00002563# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2564# -------------------------------------------
2565# Tests whether TYPE exists after having included INCLUDES, setting cache
2566# variable VAR accordingly.
2567ac_fn_c_check_type ()
2568{
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002572if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002573 $as_echo_n "(cached) " >&6
2574else
2575 eval "$3=no"
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577/* end confdefs.h. */
2578$4
2579int
2580main ()
2581{
2582if (sizeof ($2))
2583 return 0;
2584 ;
2585 return 0;
2586}
2587_ACEOF
2588if ac_fn_c_try_compile "$LINENO"; then :
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590/* end confdefs.h. */
2591$4
2592int
2593main ()
2594{
2595if (sizeof (($2)))
2596 return 0;
2597 ;
2598 return 0;
2599}
2600_ACEOF
2601if ac_fn_c_try_compile "$LINENO"; then :
2602
2603else
2604 eval "$3=yes"
2605fi
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609fi
2610eval ac_res=\$$3
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002614
2615} # ac_fn_c_check_type
2616
cristy92703d82010-04-26 00:18:18 +00002617# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2618# ----------------------------------------------------
2619# Tries to find if the field MEMBER exists in type AGGR, after including
2620# INCLUDES, setting cache variable VAR accordingly.
2621ac_fn_c_check_member ()
2622{
2623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2625$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002626if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002627 $as_echo_n "(cached) " >&6
2628else
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630/* end confdefs.h. */
2631$5
2632int
2633main ()
2634{
2635static $2 ac_aggr;
2636if (ac_aggr.$3)
2637return 0;
2638 ;
2639 return 0;
2640}
2641_ACEOF
2642if ac_fn_c_try_compile "$LINENO"; then :
2643 eval "$4=yes"
2644else
2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646/* end confdefs.h. */
2647$5
2648int
2649main ()
2650{
2651static $2 ac_aggr;
2652if (sizeof ac_aggr.$3)
2653return 0;
2654 ;
2655 return 0;
2656}
2657_ACEOF
2658if ac_fn_c_try_compile "$LINENO"; then :
2659 eval "$4=yes"
2660else
2661 eval "$4=no"
2662fi
2663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664fi
2665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666fi
2667eval ac_res=\$$4
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2669$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002671
2672} # ac_fn_c_check_member
2673
cristy5eef09f2012-10-16 12:08:28 +00002674# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2675# ---------------------------------------------
2676# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2677# accordingly.
2678ac_fn_c_check_decl ()
2679{
2680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681 as_decl_name=`echo $2|sed 's/ *(.*//'`
2682 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2684$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2685if eval \${$3+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687else
2688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2689/* end confdefs.h. */
2690$4
2691int
2692main ()
2693{
2694#ifndef $as_decl_name
2695#ifdef __cplusplus
2696 (void) $as_decl_use;
2697#else
2698 (void) $as_decl_name;
2699#endif
2700#endif
2701
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706if ac_fn_c_try_compile "$LINENO"; then :
2707 eval "$3=yes"
2708else
2709 eval "$3=no"
2710fi
2711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712fi
2713eval ac_res=\$$3
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2715$as_echo "$ac_res" >&6; }
2716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2717
2718} # ac_fn_c_check_decl
2719
cristy501c8042011-05-26 17:46:28 +00002720# ac_fn_c_find_intX_t LINENO BITS VAR
2721# -----------------------------------
2722# Finds a signed integer type with width BITS, setting cache variable VAR
2723# accordingly.
2724ac_fn_c_find_intX_t ()
2725{
2726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2728$as_echo_n "checking for int$2_t... " >&6; }
2729if eval \${$3+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731else
2732 eval "$3=no"
2733 # Order is important - never check a type that is potentially smaller
2734 # than half of the expected target width.
2735 for ac_type in int$2_t 'int' 'long int' \
2736 'long long int' 'short int' 'signed char'; do
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738/* end confdefs.h. */
2739$ac_includes_default
2740 enum { N = $2 / 2 - 1 };
2741int
2742main ()
2743{
2744static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002745test_array [0] = 0;
2746return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002747
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752if ac_fn_c_try_compile "$LINENO"; then :
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754/* end confdefs.h. */
2755$ac_includes_default
2756 enum { N = $2 / 2 - 1 };
2757int
2758main ()
2759{
2760static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2761 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002762test_array [0] = 0;
2763return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002764
2765 ;
2766 return 0;
2767}
2768_ACEOF
2769if ac_fn_c_try_compile "$LINENO"; then :
2770
2771else
2772 case $ac_type in #(
2773 int$2_t) :
2774 eval "$3=yes" ;; #(
2775 *) :
2776 eval "$3=\$ac_type" ;;
2777esac
2778fi
2779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2780fi
2781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 if eval test \"x\$"$3"\" = x"no"; then :
2783
2784else
2785 break
2786fi
2787 done
2788fi
2789eval ac_res=\$$3
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2791$as_echo "$ac_res" >&6; }
2792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2793
2794} # ac_fn_c_find_intX_t
2795
2796# ac_fn_c_find_uintX_t LINENO BITS VAR
2797# ------------------------------------
2798# Finds an unsigned integer type with width BITS, setting cache variable VAR
2799# accordingly.
2800ac_fn_c_find_uintX_t ()
2801{
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2804$as_echo_n "checking for uint$2_t... " >&6; }
2805if eval \${$3+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807else
2808 eval "$3=no"
2809 # Order is important - never check a type that is potentially smaller
2810 # than half of the expected target width.
2811 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2812 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2814/* end confdefs.h. */
2815$ac_includes_default
2816int
2817main ()
2818{
2819static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002820test_array [0] = 0;
2821return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002822
2823 ;
2824 return 0;
2825}
2826_ACEOF
2827if ac_fn_c_try_compile "$LINENO"; then :
2828 case $ac_type in #(
2829 uint$2_t) :
2830 eval "$3=yes" ;; #(
2831 *) :
2832 eval "$3=\$ac_type" ;;
2833esac
2834fi
2835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836 if eval test \"x\$"$3"\" = x"no"; then :
2837
2838else
2839 break
2840fi
2841 done
2842fi
2843eval ac_res=\$$3
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2845$as_echo "$ac_res" >&6; }
2846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2847
2848} # ac_fn_c_find_uintX_t
2849
cristy8b350f62009-11-15 23:12:43 +00002850# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2851# --------------------------------------------
2852# Tries to find the compile-time value of EXPR in a program that includes
2853# INCLUDES, setting VAR accordingly. Returns whether the value could be
2854# computed
2855ac_fn_c_compute_int ()
2856{
2857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2858 if test "$cross_compiling" = yes; then
2859 # Depending upon the size, compute the lo and hi bounds.
2860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861/* end confdefs.h. */
2862$4
2863int
2864main ()
2865{
2866static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002867test_array [0] = 0;
2868return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002869
2870 ;
2871 return 0;
2872}
2873_ACEOF
2874if ac_fn_c_try_compile "$LINENO"; then :
2875 ac_lo=0 ac_mid=0
2876 while :; do
2877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878/* end confdefs.h. */
2879$4
2880int
2881main ()
2882{
2883static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002884test_array [0] = 0;
2885return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002886
2887 ;
2888 return 0;
2889}
2890_ACEOF
2891if ac_fn_c_try_compile "$LINENO"; then :
2892 ac_hi=$ac_mid; break
2893else
2894 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2895 if test $ac_lo -le $ac_mid; then
2896 ac_lo= ac_hi=
2897 break
2898 fi
2899 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2900fi
2901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 done
2903else
2904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2905/* end confdefs.h. */
2906$4
2907int
2908main ()
2909{
2910static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002911test_array [0] = 0;
2912return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002913
2914 ;
2915 return 0;
2916}
2917_ACEOF
2918if ac_fn_c_try_compile "$LINENO"; then :
2919 ac_hi=-1 ac_mid=-1
2920 while :; do
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922/* end confdefs.h. */
2923$4
2924int
2925main ()
2926{
2927static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002928test_array [0] = 0;
2929return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002930
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935if ac_fn_c_try_compile "$LINENO"; then :
2936 ac_lo=$ac_mid; break
2937else
2938 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2939 if test $ac_mid -le $ac_hi; then
2940 ac_lo= ac_hi=
2941 break
2942 fi
2943 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2944fi
2945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946 done
2947else
2948 ac_lo= ac_hi=
2949fi
2950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2951fi
2952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2953# Binary search between lo and hi bounds.
2954while test "x$ac_lo" != "x$ac_hi"; do
2955 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2957/* end confdefs.h. */
2958$4
2959int
2960main ()
2961{
2962static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002963test_array [0] = 0;
2964return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002965
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970if ac_fn_c_try_compile "$LINENO"; then :
2971 ac_hi=$ac_mid
2972else
2973 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2974fi
2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976done
2977case $ac_lo in #((
2978?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2979'') ac_retval=1 ;;
2980esac
2981 else
2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983/* end confdefs.h. */
2984$4
2985static long int longval () { return $2; }
2986static unsigned long int ulongval () { return $2; }
2987#include <stdio.h>
2988#include <stdlib.h>
2989int
2990main ()
2991{
2992
2993 FILE *f = fopen ("conftest.val", "w");
2994 if (! f)
2995 return 1;
2996 if (($2) < 0)
2997 {
2998 long int i = longval ();
2999 if (i != ($2))
3000 return 1;
3001 fprintf (f, "%ld", i);
3002 }
3003 else
3004 {
3005 unsigned long int i = ulongval ();
3006 if (i != ($2))
3007 return 1;
3008 fprintf (f, "%lu", i);
3009 }
3010 /* Do not output a trailing newline, as this causes \r\n confusion
3011 on some platforms. */
3012 return ferror (f) || fclose (f) != 0;
3013
3014 ;
3015 return 0;
3016}
3017_ACEOF
3018if ac_fn_c_try_run "$LINENO"; then :
3019 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3020else
3021 ac_retval=1
3022fi
3023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3024 conftest.$ac_objext conftest.beam conftest.$ac_ext
3025rm -f conftest.val
3026
3027 fi
cristyda16f162011-02-19 23:52:17 +00003028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003029 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003030
3031} # ac_fn_c_compute_int
3032
3033# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3034# ---------------------------------------------------------
3035# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3036# the include files in INCLUDES and setting the cache variable VAR
3037# accordingly.
3038ac_fn_cxx_check_header_mongrel ()
3039{
3040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003041 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3043$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003044if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003045 $as_echo_n "(cached) " >&6
3046fi
3047eval ac_res=\$$3
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3049$as_echo "$ac_res" >&6; }
3050else
3051 # Is the header compilable?
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3053$as_echo_n "checking $2 usability... " >&6; }
3054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055/* end confdefs.h. */
3056$4
3057#include <$2>
3058_ACEOF
3059if ac_fn_cxx_try_compile "$LINENO"; then :
3060 ac_header_compiler=yes
3061else
3062 ac_header_compiler=no
3063fi
3064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3066$as_echo "$ac_header_compiler" >&6; }
3067
3068# Is the header present?
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3070$as_echo_n "checking $2 presence... " >&6; }
3071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072/* end confdefs.h. */
3073#include <$2>
3074_ACEOF
3075if ac_fn_cxx_try_cpp "$LINENO"; then :
3076 ac_header_preproc=yes
3077else
3078 ac_header_preproc=no
3079fi
cristyda16f162011-02-19 23:52:17 +00003080rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3082$as_echo "$ac_header_preproc" >&6; }
3083
3084# So? What about this header?
3085case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3086 yes:no: )
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3088$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3090$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3091 ;;
3092 no:yes:* )
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3094$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3096$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3098$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3100$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3102$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003103( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003104## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003105## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003106 ) | sed "s/^/$as_me: WARNING: /" >&2
3107 ;;
3108esac
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3110$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003111if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003112 $as_echo_n "(cached) " >&6
3113else
3114 eval "$3=\$ac_header_compiler"
3115fi
3116eval ac_res=\$$3
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3118$as_echo "$ac_res" >&6; }
3119fi
cristyda16f162011-02-19 23:52:17 +00003120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003121
3122} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003123cat >config.log <<_ACEOF
3124This file contains any messages produced by compilers while
3125running configure, to aid debugging if configure makes a mistake.
3126
cristy29eb34e2011-10-16 00:46:08 +00003127It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003128generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003129
3130 $ $0 $@
3131
3132_ACEOF
3133exec 5>>config.log
3134{
3135cat <<_ASUNAME
3136## --------- ##
3137## Platform. ##
3138## --------- ##
3139
3140hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3141uname -m = `(uname -m) 2>/dev/null || echo unknown`
3142uname -r = `(uname -r) 2>/dev/null || echo unknown`
3143uname -s = `(uname -s) 2>/dev/null || echo unknown`
3144uname -v = `(uname -v) 2>/dev/null || echo unknown`
3145
3146/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3147/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3148
3149/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3150/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3151/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3152/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3153/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3154/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3155/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3156
3157_ASUNAME
3158
3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160for as_dir in $PATH
3161do
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003164 $as_echo "PATH: $as_dir"
3165 done
cristy3ed852e2009-09-05 21:47:34 +00003166IFS=$as_save_IFS
3167
3168} >&5
3169
3170cat >&5 <<_ACEOF
3171
3172
3173## ----------- ##
3174## Core tests. ##
3175## ----------- ##
3176
3177_ACEOF
3178
3179
3180# Keep a trace of the command line.
3181# Strip out --no-create and --no-recursion so they do not pile up.
3182# Strip out --silent because we don't want to record it for future runs.
3183# Also quote any args containing shell meta-characters.
3184# Make two passes to allow for proper duplicate-argument suppression.
3185ac_configure_args=
3186ac_configure_args0=
3187ac_configure_args1=
3188ac_must_keep_next=false
3189for ac_pass in 1 2
3190do
3191 for ac_arg
3192 do
3193 case $ac_arg in
3194 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3196 | -silent | --silent | --silen | --sile | --sil)
3197 continue ;;
3198 *\'*)
3199 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3200 esac
3201 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003202 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003203 2)
cristy8b350f62009-11-15 23:12:43 +00003204 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003205 if test $ac_must_keep_next = true; then
3206 ac_must_keep_next=false # Got value, back to normal.
3207 else
3208 case $ac_arg in
3209 *=* | --config-cache | -C | -disable-* | --disable-* \
3210 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3211 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3212 | -with-* | --with-* | -without-* | --without-* | --x)
3213 case "$ac_configure_args0 " in
3214 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3215 esac
3216 ;;
3217 -* ) ac_must_keep_next=true ;;
3218 esac
3219 fi
cristy8b350f62009-11-15 23:12:43 +00003220 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003221 ;;
3222 esac
3223 done
3224done
cristy8b350f62009-11-15 23:12:43 +00003225{ ac_configure_args0=; unset ac_configure_args0;}
3226{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003227
3228# When interrupted or exit'd, cleanup temporary files, and complete
3229# config.log. We remove comments because anyway the quotes in there
3230# would cause problems or look ugly.
3231# WARNING: Use '\'' to represent an apostrophe within the trap.
3232# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3233trap 'exit_status=$?
3234 # Save into config.log some information that might help in debugging.
3235 {
3236 echo
3237
cristy98dddb52010-11-04 00:30:15 +00003238 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003239## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003240## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003241 echo
3242 # The following way of writing the cache mishandles newlines in values,
3243(
3244 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3245 eval ac_val=\$$ac_var
3246 case $ac_val in #(
3247 *${as_nl}*)
3248 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003249 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003250$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3251 esac
3252 case $ac_var in #(
3253 _ | IFS | as_nl) ;; #(
3254 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003255 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003256 esac ;;
3257 esac
3258 done
3259 (set) 2>&1 |
3260 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3261 *${as_nl}ac_space=\ *)
3262 sed -n \
3263 "s/'\''/'\''\\\\'\'''\''/g;
3264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3265 ;; #(
3266 *)
3267 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3268 ;;
3269 esac |
3270 sort
3271)
3272 echo
3273
cristy98dddb52010-11-04 00:30:15 +00003274 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003275## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003276## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003277 echo
3278 for ac_var in $ac_subst_vars
3279 do
3280 eval ac_val=\$$ac_var
3281 case $ac_val in
3282 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3283 esac
3284 $as_echo "$ac_var='\''$ac_val'\''"
3285 done | sort
3286 echo
3287
3288 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003289 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003290## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003291## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003292 echo
3293 for ac_var in $ac_subst_files
3294 do
3295 eval ac_val=\$$ac_var
3296 case $ac_val in
3297 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3298 esac
3299 $as_echo "$ac_var='\''$ac_val'\''"
3300 done | sort
3301 echo
3302 fi
3303
3304 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003305 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003306## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003307## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003308 echo
3309 cat confdefs.h
3310 echo
3311 fi
3312 test "$ac_signal" != 0 &&
3313 $as_echo "$as_me: caught signal $ac_signal"
3314 $as_echo "$as_me: exit $exit_status"
3315 } >&5
3316 rm -f core *.core core.conftest.* &&
3317 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3318 exit $exit_status
3319' 0
3320for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003321 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003322done
3323ac_signal=0
3324
3325# confdefs.h avoids OS command line length limits that DEFS can exceed.
3326rm -f -r conftest* confdefs.h
3327
cristy8b350f62009-11-15 23:12:43 +00003328$as_echo "/* confdefs.h */" > confdefs.h
3329
cristy3ed852e2009-09-05 21:47:34 +00003330# Predefined preprocessor variables.
3331
3332cat >>confdefs.h <<_ACEOF
3333#define PACKAGE_NAME "$PACKAGE_NAME"
3334_ACEOF
3335
cristy3ed852e2009-09-05 21:47:34 +00003336cat >>confdefs.h <<_ACEOF
3337#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3338_ACEOF
3339
cristy3ed852e2009-09-05 21:47:34 +00003340cat >>confdefs.h <<_ACEOF
3341#define PACKAGE_VERSION "$PACKAGE_VERSION"
3342_ACEOF
3343
cristy3ed852e2009-09-05 21:47:34 +00003344cat >>confdefs.h <<_ACEOF
3345#define PACKAGE_STRING "$PACKAGE_STRING"
3346_ACEOF
3347
cristy3ed852e2009-09-05 21:47:34 +00003348cat >>confdefs.h <<_ACEOF
3349#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3350_ACEOF
3351
cristy8b350f62009-11-15 23:12:43 +00003352cat >>confdefs.h <<_ACEOF
3353#define PACKAGE_URL "$PACKAGE_URL"
3354_ACEOF
3355
cristy3ed852e2009-09-05 21:47:34 +00003356
3357# Let the site file select an alternate cache file if it wants to.
3358# Prefer an explicitly selected file to automatically selected ones.
3359ac_site_file1=NONE
3360ac_site_file2=NONE
3361if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003362 # We do not want a PATH search for config.site.
3363 case $CONFIG_SITE in #((
3364 -*) ac_site_file1=./$CONFIG_SITE;;
3365 */*) ac_site_file1=$CONFIG_SITE;;
3366 *) ac_site_file1=./$CONFIG_SITE;;
3367 esac
cristy3ed852e2009-09-05 21:47:34 +00003368elif test "x$prefix" != xNONE; then
3369 ac_site_file1=$prefix/share/config.site
3370 ac_site_file2=$prefix/etc/config.site
3371else
3372 ac_site_file1=$ac_default_prefix/share/config.site
3373 ac_site_file2=$ac_default_prefix/etc/config.site
3374fi
3375for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3376do
3377 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003378 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003379 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003380$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3381 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003382 . "$ac_site_file" \
3383 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385as_fn_error $? "failed to load site script $ac_site_file
3386See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003387 fi
3388done
3389
3390if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003391 # Some versions of bash will fail to source /dev/null (special files
3392 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3393 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003394 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003395$as_echo "$as_me: loading cache $cache_file" >&6;}
3396 case $cache_file in
3397 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3398 *) . "./$cache_file";;
3399 esac
3400 fi
3401else
cristy8b350f62009-11-15 23:12:43 +00003402 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003403$as_echo "$as_me: creating cache $cache_file" >&6;}
3404 >$cache_file
3405fi
3406
cristycd4c5312009-11-22 01:19:08 +00003407as_fn_append ac_header_list " stdlib.h"
3408as_fn_append ac_header_list " unistd.h"
3409as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003410# Check that the precious variables saved in the cache have kept the same
3411# value.
3412ac_cache_corrupted=false
3413for ac_var in $ac_precious_vars; do
3414 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3415 eval ac_new_set=\$ac_env_${ac_var}_set
3416 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3417 eval ac_new_val=\$ac_env_${ac_var}_value
3418 case $ac_old_set,$ac_new_set in
3419 set,)
cristy8b350f62009-11-15 23:12:43 +00003420 { $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 +00003421$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3422 ac_cache_corrupted=: ;;
3423 ,set)
cristy8b350f62009-11-15 23:12:43 +00003424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003425$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3426 ac_cache_corrupted=: ;;
3427 ,);;
3428 *)
3429 if test "x$ac_old_val" != "x$ac_new_val"; then
3430 # differences in whitespace do not lead to failure.
3431 ac_old_val_w=`echo x $ac_old_val`
3432 ac_new_val_w=`echo x $ac_new_val`
3433 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003435$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3436 ac_cache_corrupted=:
3437 else
cristy8b350f62009-11-15 23:12:43 +00003438 { $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 +00003439$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3440 eval $ac_var=\$ac_old_val
3441 fi
cristy8b350f62009-11-15 23:12:43 +00003442 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003443$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003444 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003445$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3446 fi;;
3447 esac
3448 # Pass precious variables to config.status.
3449 if test "$ac_new_set" = set; then
3450 case $ac_new_val in
3451 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3452 *) ac_arg=$ac_var=$ac_new_val ;;
3453 esac
3454 case " $ac_configure_args " in
3455 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003456 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003457 esac
3458 fi
3459done
3460if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003464$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003465 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003466fi
cristy8b350f62009-11-15 23:12:43 +00003467## -------------------- ##
3468## Main body of script. ##
3469## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003470
3471ac_ext=c
3472ac_cpp='$CPP $CPPFLAGS'
3473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476
3477
3478
3479ac_aux_dir=
3480for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003481 if test -f "$ac_dir/install-sh"; then
3482 ac_aux_dir=$ac_dir
3483 ac_install_sh="$ac_aux_dir/install-sh -c"
3484 break
3485 elif test -f "$ac_dir/install.sh"; then
3486 ac_aux_dir=$ac_dir
3487 ac_install_sh="$ac_aux_dir/install.sh -c"
3488 break
3489 elif test -f "$ac_dir/shtool"; then
3490 ac_aux_dir=$ac_dir
3491 ac_install_sh="$ac_aux_dir/shtool install -c"
3492 break
3493 fi
cristy3ed852e2009-09-05 21:47:34 +00003494done
3495if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003496 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003497fi
3498
3499# These three variables are undocumented and unsupported,
3500# and are intended to be withdrawn in a future Autoconf release.
3501# They can cause serious problems if a builder's source tree is in a directory
3502# whose full name contains unusual characters.
3503ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3504ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3505ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3506
3507
3508
3509
3510ac_config_headers="$ac_config_headers config/config.h"
3511
cristy24fc1fe2010-10-23 21:13:01 +00003512
cristy01ff9f32012-12-01 18:15:29 +00003513ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003514
cristy8d0ff762013-03-10 20:33:28 +00003515ac_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 +00003516
3517
3518#
3519# Save initial user-tunable values
3520#
3521USER_LIBS=$LIBS
3522for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3523 eval isset=\${$var+set}
3524 if test "$isset" = 'set'; then
3525 eval val=$`echo $var`
3526 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3527 fi
3528done
3529
3530
3531CONFIGURE_ARGS="$0 ${ac_configure_args}"
3532
3533
3534# Source file containing package/library versioning information.
3535. ${srcdir}/version.sh
3536
cristy15a88782010-01-31 23:24:49 +00003537echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003538# Make sure we can run config.sub.
3539$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003540 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003541
cristy8b350f62009-11-15 23:12:43 +00003542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003543$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003544if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003545 $as_echo_n "(cached) " >&6
3546else
3547 ac_build_alias=$build_alias
3548test "x$ac_build_alias" = x &&
3549 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3550test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003551 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003552ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003553 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003554
3555fi
cristy8b350f62009-11-15 23:12:43 +00003556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003557$as_echo "$ac_cv_build" >&6; }
3558case $ac_cv_build in
3559*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003560*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003561esac
3562build=$ac_cv_build
3563ac_save_IFS=$IFS; IFS='-'
3564set x $ac_cv_build
3565shift
3566build_cpu=$1
3567build_vendor=$2
3568shift; shift
3569# Remember, the first character of IFS is used to create $*,
3570# except with old shells:
3571build_os=$*
3572IFS=$ac_save_IFS
3573case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3574
3575
cristy8b350f62009-11-15 23:12:43 +00003576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003577$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003578if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003579 $as_echo_n "(cached) " >&6
3580else
3581 if test "x$host_alias" = x; then
3582 ac_cv_host=$ac_cv_build
3583else
3584 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003585 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003586fi
3587
3588fi
cristy8b350f62009-11-15 23:12:43 +00003589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003590$as_echo "$ac_cv_host" >&6; }
3591case $ac_cv_host in
3592*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003593*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003594esac
3595host=$ac_cv_host
3596ac_save_IFS=$IFS; IFS='-'
3597set x $ac_cv_host
3598shift
3599host_cpu=$1
3600host_vendor=$2
3601shift; shift
3602# Remember, the first character of IFS is used to create $*,
3603# except with old shells:
3604host_os=$*
3605IFS=$ac_save_IFS
3606case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3607
3608
cristy8b350f62009-11-15 23:12:43 +00003609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003610$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003611if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003612 $as_echo_n "(cached) " >&6
3613else
3614 if test "x$target_alias" = x; then
3615 ac_cv_target=$ac_cv_host
3616else
3617 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003618 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003619fi
3620
3621fi
cristy8b350f62009-11-15 23:12:43 +00003622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003623$as_echo "$ac_cv_target" >&6; }
3624case $ac_cv_target in
3625*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003626*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003627esac
3628target=$ac_cv_target
3629ac_save_IFS=$IFS; IFS='-'
3630set x $ac_cv_target
3631shift
3632target_cpu=$1
3633target_vendor=$2
3634shift; shift
3635# Remember, the first character of IFS is used to create $*,
3636# except with old shells:
3637target_os=$*
3638IFS=$ac_save_IFS
3639case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3640
3641
3642# The aliases save the names the user supplied, while $host etc.
3643# will get canonicalized.
3644test -n "$target_alias" &&
3645 test "$program_prefix$program_suffix$program_transform_name" = \
3646 NONENONEs,x,x, &&
3647 program_prefix=${target_alias}-
3648
cristy837d6dc2010-02-27 01:16:57 +00003649
3650
3651
cristy8be34142012-06-17 14:07:18 +00003652
cristy19615b82011-04-13 20:02:01 +00003653MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003654
3655
cristy27d53d62012-07-29 23:30:07 +00003656cat >>confdefs.h <<_ACEOF
3657#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3658_ACEOF
3659
3660
cristy19615b82011-04-13 20:02:01 +00003661MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003662
3663
cristy27d53d62012-07-29 23:30:07 +00003664cat >>confdefs.h <<_ACEOF
3665#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3666_ACEOF
3667
3668
cristy19615b82011-04-13 20:02:01 +00003669MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003670
3671
cristy27d53d62012-07-29 23:30:07 +00003672cat >>confdefs.h <<_ACEOF
3673#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3674_ACEOF
3675
3676
cristy37442762013-02-10 21:07:23 +00003677
3678# Substitute versioning
3679MAGICK_MAJOR_VERSION=7
3680
3681MAGICK_MINOR_VERSION=0
3682
3683MAGICK_MICRO_VERSION=0
3684
3685MAGICK_PATCHLEVEL_VERSION=0
3686
3687MAGICK_VERSION=7.0.0-0
3688
cristy1ae5c992013-07-30 14:55:07 +00003689MAGICK_SVN_REVISION=12801:12802M
cristy37442762013-02-10 21:07:23 +00003690
3691
cristy3ed852e2009-09-05 21:47:34 +00003692# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003693MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3694
3695MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3696
cristy37442762013-02-10 21:07:23 +00003697
cristy5ed9c6e2013-07-14 21:20:31 +00003698MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3699
3700MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3701
3702
cristyd694ca32011-03-27 21:42:54 +00003703
cristy3ed852e2009-09-05 21:47:34 +00003704# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3706$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003707# Reject unsafe characters in $srcdir or the absolute working directory
3708# name. Accept space and tab only in the latter.
3709am_lf='
3710'
3711case `pwd` in
3712 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003713 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003714esac
3715case $srcdir in
3716 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003717 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003718esac
cristy3ed852e2009-09-05 21:47:34 +00003719
cristyc0890a62012-07-19 00:18:20 +00003720# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003721# arguments. Must try -L first in case configure is actually a
3722# symlink; some systems play weird games with the mod time of symlinks
3723# (eg FreeBSD returns the mod time of the symlink's containing
3724# directory).
3725if (
cristyc0890a62012-07-19 00:18:20 +00003726 am_has_slept=no
3727 for am_try in 1 2; do
3728 echo "timestamp, slept: $am_has_slept" > conftest.file
3729 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3730 if test "$*" = "X"; then
3731 # -L didn't work.
3732 set X `ls -t "$srcdir/configure" conftest.file`
3733 fi
3734 if test "$*" != "X $srcdir/configure conftest.file" \
3735 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003736
cristyc0890a62012-07-19 00:18:20 +00003737 # If neither matched, then we have a broken ls. This can happen
3738 # if, for instance, CONFIG_SHELL is bash and it inherits a
3739 # broken ls alias from the environment. This has actually
3740 # happened. Such a system could not be considered "sane".
3741 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3742 alias in your environment" "$LINENO" 5
3743 fi
3744 if test "$2" = conftest.file || test $am_try -eq 2; then
3745 break
3746 fi
3747 # Just in case.
3748 sleep 1
3749 am_has_slept=yes
3750 done
cristy73bd4a52010-10-05 11:24:23 +00003751 test "$2" = conftest.file
3752 )
3753then
3754 # Ok.
3755 :
3756else
cristy98dddb52010-11-04 00:30:15 +00003757 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003758Check your system clock" "$LINENO" 5
3759fi
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3761$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003762# If we didn't sleep, we still need to ensure time stamps of config.status and
3763# generated files are strictly newer.
3764am_sleep_pid=
3765if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3766 ( sleep 1 ) &
3767 am_sleep_pid=$!
3768fi
cristy73bd4a52010-10-05 11:24:23 +00003769
cristyc0890a62012-07-19 00:18:20 +00003770rm -f conftest.file
3771
3772
cristy58d34aa2013-01-24 15:11:54 +00003773am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003774
3775# Find a good install program. We prefer a C program (faster),
3776# so one script is as good as another. But avoid the broken or
3777# incompatible versions:
3778# SysV /etc/install, /usr/sbin/install
3779# SunOS /usr/etc/install
3780# IRIX /sbin/install
3781# AIX /bin/install
3782# AmigaOS /C/install, which installs bootblocks on floppy discs
3783# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3784# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3785# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3786# OS/2's system install, which has a completely different semantic
3787# ./install, which can be erroneously created by make from ./install.sh.
3788# Reject install programs that cannot install multiple files.
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3790$as_echo_n "checking for a BSD-compatible install... " >&6; }
3791if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003792if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003793 $as_echo_n "(cached) " >&6
3794else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 # Account for people who put trailing slashes in PATH elements.
3801case $as_dir/ in #((
3802 ./ | .// | /[cC]/* | \
3803 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3804 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3805 /usr/ucb/* ) ;;
3806 *)
3807 # OSF1 and SCO ODT 3.0 have their own names for install.
3808 # Don't use installbsd from OSF since it installs stuff as root
3809 # by default.
3810 for ac_prog in ginstall scoinst install; do
3811 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003812 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003813 if test $ac_prog = install &&
3814 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3815 # AIX install. It has an incompatible calling convention.
3816 :
3817 elif test $ac_prog = install &&
3818 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3819 # program-specific install script used by HP pwplus--don't use.
3820 :
3821 else
3822 rm -rf conftest.one conftest.two conftest.dir
3823 echo one > conftest.one
3824 echo two > conftest.two
3825 mkdir conftest.dir
3826 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3827 test -s conftest.one && test -s conftest.two &&
3828 test -s conftest.dir/conftest.one &&
3829 test -s conftest.dir/conftest.two
3830 then
3831 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3832 break 3
3833 fi
3834 fi
3835 fi
3836 done
3837 done
3838 ;;
3839esac
3840
3841 done
3842IFS=$as_save_IFS
3843
3844rm -rf conftest.one conftest.two conftest.dir
3845
3846fi
3847 if test "${ac_cv_path_install+set}" = set; then
3848 INSTALL=$ac_cv_path_install
3849 else
3850 # As a last resort, use the slow shell script. Don't cache a
3851 # value for INSTALL within a source directory, because that will
3852 # break other packages using the cache if that directory is
3853 # removed, or if the value is a relative name.
3854 INSTALL=$ac_install_sh
3855 fi
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3858$as_echo "$INSTALL" >&6; }
3859
3860# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3861# It thinks the first close brace ends the variable substitution.
3862test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3863
3864test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3865
3866test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3867
3868test "$program_prefix" != NONE &&
3869 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3870# Use a double $ so make ignores it.
3871test "$program_suffix" != NONE &&
3872 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3873# Double any \ or $.
3874# By default was `s,x,x', remove it if useless.
3875ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3876program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3877
3878# expand $ac_aux_dir to an absolute path
3879am_aux_dir=`cd $ac_aux_dir && pwd`
3880
3881if test x"${MISSING+set}" != xset; then
3882 case $am_aux_dir in
3883 *\ * | *\ *)
3884 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3885 *)
3886 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3887 esac
3888fi
3889# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003890if eval "$MISSING --is-lightweight"; then
3891 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003892else
3893 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3895$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003896fi
3897
3898if test x"${install_sh}" != xset; then
3899 case $am_aux_dir in
3900 *\ * | *\ *)
3901 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3902 *)
3903 install_sh="\${SHELL} $am_aux_dir/install-sh"
3904 esac
3905fi
3906
cristyc0890a62012-07-19 00:18:20 +00003907# Installed binaries are usually stripped using 'strip' when the user
3908# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003909# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003910# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003911if test "$cross_compiling" != no; then
3912 if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3914set dummy ${ac_tool_prefix}strip; ac_word=$2
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003917if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003918 $as_echo_n "(cached) " >&6
3919else
3920 if test -n "$STRIP"; then
3921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3922else
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934done
3935 done
3936IFS=$as_save_IFS
3937
3938fi
3939fi
3940STRIP=$ac_cv_prog_STRIP
3941if test -n "$STRIP"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3943$as_echo "$STRIP" >&6; }
3944else
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946$as_echo "no" >&6; }
3947fi
3948
3949
3950fi
3951if test -z "$ac_cv_prog_STRIP"; then
3952 ac_ct_STRIP=$STRIP
3953 # Extract the first word of "strip", so it can be a program name with args.
3954set dummy strip; ac_word=$2
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003957if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003958 $as_echo_n "(cached) " >&6
3959else
3960 if test -n "$ac_ct_STRIP"; then
3961 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3962else
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003970 ac_cv_prog_ac_ct_STRIP="strip"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974done
3975 done
3976IFS=$as_save_IFS
3977
3978fi
3979fi
3980ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3981if test -n "$ac_ct_STRIP"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3983$as_echo "$ac_ct_STRIP" >&6; }
3984else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986$as_echo "no" >&6; }
3987fi
3988
3989 if test "x$ac_ct_STRIP" = x; then
3990 STRIP=":"
3991 else
3992 case $cross_compiling:$ac_tool_warned in
3993yes:)
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3996ac_tool_warned=yes ;;
3997esac
3998 STRIP=$ac_ct_STRIP
3999 fi
4000else
4001 STRIP="$ac_cv_prog_STRIP"
4002fi
4003
4004fi
4005INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4006
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4008$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4009if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004010 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004011 $as_echo_n "(cached) " >&6
4012else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4015do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_prog in mkdir gmkdir; do
4019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004020 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004021 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4022 'mkdir (GNU coreutils) '* | \
4023 'mkdir (coreutils) '* | \
4024 'mkdir (fileutils) '4.1*)
4025 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4026 break 3;;
4027 esac
4028 done
4029 done
4030 done
4031IFS=$as_save_IFS
4032
4033fi
4034
4035 test -d ./--version && rmdir ./--version
4036 if test "${ac_cv_path_mkdir+set}" = set; then
4037 MKDIR_P="$ac_cv_path_mkdir -p"
4038 else
4039 # As a last resort, use the slow shell script. Don't cache a
4040 # value for MKDIR_P within a source directory, because that will
4041 # break other packages using the cache if that directory is
4042 # removed, or if the value is a relative name.
4043 MKDIR_P="$ac_install_sh -d"
4044 fi
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4047$as_echo "$MKDIR_P" >&6; }
4048
cristy73bd4a52010-10-05 11:24:23 +00004049for ac_prog in gawk mawk nawk awk
4050do
4051 # Extract the first word of "$ac_prog", so it can be a program name with args.
4052set dummy $ac_prog; ac_word=$2
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004055if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004056 $as_echo_n "(cached) " >&6
4057else
4058 if test -n "$AWK"; then
4059 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4060else
4061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062for as_dir in $PATH
4063do
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004068 ac_cv_prog_AWK="$ac_prog"
4069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 break 2
4071 fi
4072done
4073 done
4074IFS=$as_save_IFS
4075
4076fi
4077fi
4078AWK=$ac_cv_prog_AWK
4079if test -n "$AWK"; then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4081$as_echo "$AWK" >&6; }
4082else
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084$as_echo "no" >&6; }
4085fi
4086
4087
4088 test -n "$AWK" && break
4089done
4090
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4092$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4093set x ${MAKE-make}
4094ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004095if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004096 $as_echo_n "(cached) " >&6
4097else
4098 cat >conftest.make <<\_ACEOF
4099SHELL = /bin/sh
4100all:
4101 @echo '@@@%%%=$(MAKE)=@@@%%%'
4102_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004103# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004104case `${MAKE-make} -f conftest.make 2>/dev/null` in
4105 *@@@%%%=?*=@@@%%%*)
4106 eval ac_cv_prog_make_${ac_make}_set=yes;;
4107 *)
4108 eval ac_cv_prog_make_${ac_make}_set=no;;
4109esac
4110rm -f conftest.make
4111fi
4112if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4114$as_echo "yes" >&6; }
4115 SET_MAKE=
4116else
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118$as_echo "no" >&6; }
4119 SET_MAKE="MAKE=${MAKE-make}"
4120fi
4121
4122rm -rf .tst 2>/dev/null
4123mkdir .tst 2>/dev/null
4124if test -d .tst; then
4125 am__leading_dot=.
4126else
4127 am__leading_dot=_
4128fi
4129rmdir .tst 2>/dev/null
4130
cristya448bd22011-10-14 12:38:13 +00004131# Check whether --enable-silent-rules was given.
4132if test "${enable_silent_rules+set}" = set; then :
4133 enableval=$enable_silent_rules;
4134fi
4135
cristyc0890a62012-07-19 00:18:20 +00004136case $enable_silent_rules in # (((
4137 yes) AM_DEFAULT_VERBOSITY=0;;
4138 no) AM_DEFAULT_VERBOSITY=1;;
4139 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004140esac
cristyc3fb77b2012-02-06 01:49:41 +00004141am_make=${MAKE-make}
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4143$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4144if ${am_cv_make_support_nested_variables+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146else
4147 if $as_echo 'TRUE=$(BAR$(V))
4148BAR0=false
4149BAR1=true
4150V=1
4151am__doit:
4152 @$(TRUE)
4153.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4154 am_cv_make_support_nested_variables=yes
4155else
4156 am_cv_make_support_nested_variables=no
4157fi
4158fi
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4160$as_echo "$am_cv_make_support_nested_variables" >&6; }
4161if test $am_cv_make_support_nested_variables = yes; then
4162 AM_V='$(V)'
4163 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4164else
4165 AM_V=$AM_DEFAULT_VERBOSITY
4166 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4167fi
cristya448bd22011-10-14 12:38:13 +00004168AM_BACKSLASH='\'
4169
cristy73bd4a52010-10-05 11:24:23 +00004170if test "`cd $srcdir && pwd`" != "`pwd`"; then
4171 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4172 # is not polluted with repeated "-I."
4173 am__isrc=' -I$(srcdir)'
4174 # test to see if srcdir already configured
4175 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004176 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004177 fi
4178fi
4179
4180# test whether we have cygpath
4181if test -z "$CYGPATH_W"; then
4182 if (cygpath --version) >/dev/null 2>/dev/null; then
4183 CYGPATH_W='cygpath -w'
4184 else
4185 CYGPATH_W=echo
4186 fi
4187fi
4188
4189
4190# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004191 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004192 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004193
4194
cristya448bd22011-10-14 12:38:13 +00004195cat >>confdefs.h <<_ACEOF
4196#define PACKAGE "$PACKAGE"
4197_ACEOF
4198
4199
4200cat >>confdefs.h <<_ACEOF
4201#define VERSION "$VERSION"
4202_ACEOF
4203
cristy73bd4a52010-10-05 11:24:23 +00004204# Some tools Automake needs.
4205
4206ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4207
4208
4209AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4210
4211
4212AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4213
4214
4215AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4216
4217
4218MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4219
cristyc0890a62012-07-19 00:18:20 +00004220# For better backward compatibility. To be removed once Automake 1.9.x
4221# dies out for good. For more background, see:
4222# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4223# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4224mkdir_p='$(MKDIR_P)'
4225
cristy73bd4a52010-10-05 11:24:23 +00004226# We need awk for the "check" target. The system "awk" is bad on
4227# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004228# Always define AMTAR for backward compatibility. Yes, it's still used
4229# in the wild :-( We should find a proper way to deprecate it ...
4230AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004231
cristye69bdbe2013-05-03 21:40:44 +00004232
4233# We'll loop over all known methods to create a tar archive until one works.
4234_am_tools='gnutar pax cpio none'
4235
cristyc3fb77b2012-02-06 01:49:41 +00004236am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004237
4238
4239
4240
4241
cristy3ed852e2009-09-05 21:47:34 +00004242
cristye69bdbe2013-05-03 21:40:44 +00004243
cristy3ed852e2009-09-05 21:47:34 +00004244# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004245# Check whether --enable-silent-rules was given.
4246if test "${enable_silent_rules+set}" = set; then :
4247 enableval=$enable_silent_rules;
4248fi
4249
cristyc0890a62012-07-19 00:18:20 +00004250case $enable_silent_rules in # (((
4251 yes) AM_DEFAULT_VERBOSITY=0;;
4252 no) AM_DEFAULT_VERBOSITY=1;;
4253 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004254esac
cristyc3fb77b2012-02-06 01:49:41 +00004255am_make=${MAKE-make}
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4257$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4258if ${am_cv_make_support_nested_variables+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260else
4261 if $as_echo 'TRUE=$(BAR$(V))
4262BAR0=false
4263BAR1=true
4264V=1
4265am__doit:
4266 @$(TRUE)
4267.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4268 am_cv_make_support_nested_variables=yes
4269else
4270 am_cv_make_support_nested_variables=no
4271fi
4272fi
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4274$as_echo "$am_cv_make_support_nested_variables" >&6; }
4275if test $am_cv_make_support_nested_variables = yes; then
4276 AM_V='$(V)'
4277 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4278else
4279 AM_V=$AM_DEFAULT_VERBOSITY
4280 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4281fi
cristy73bd4a52010-10-05 11:24:23 +00004282AM_BACKSLASH='\'
4283
cristy3ed852e2009-09-05 21:47:34 +00004284
cristy5ed9c6e2013-07-14 21:20:31 +00004285# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004286MAGICK_LIB_VERSION="0x"
4287if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4288 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4289fi
4290MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4291if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4292 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4293fi
4294MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4295if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4296 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4297fi
4298MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4299
4300
4301# Definition used to define MagickLibVersionText in version.h
4302MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4303
4304
4305# Definition used to define MagickLibVersionNumber in version.h
4306MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4307
4308
cristy5ed9c6e2013-07-14 21:20:31 +00004309MAGICKPP_LIB_VERSION="0x"
4310if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4311 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4312fi
4313MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4314if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4315 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4316fi
4317MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4318if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4319 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4320fi
4321MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4322
4323
4324# Definition used to define MagickLibVersionText in version.h
4325MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4326
4327
4328# Definition used to define MagickLibVersionNumber in version.h
4329MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4330
4331
4332
4333
cristy3ed852e2009-09-05 21:47:34 +00004334# Regenerate config.status if ChangeLog or version.sh is updated.
4335CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4336
4337
4338PERLMAINCC=$CC
4339
4340MAGICK_CFLAGS=''
4341MAGICK_CPPFLAGS=$CPPFLAGS_USER
4342MAGICK_PCFLAGS=$CPPFLAGS_USER
4343MAGICK_LDFLAGS=''
4344MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004345MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004346
4347#
4348# Evaluate shell variable equivalents to Makefile directory variables
4349#
4350if test "x$prefix" = xNONE; then
4351 prefix=$ac_default_prefix
4352fi
4353# Let make expand exec_prefix.
4354if test "x$exec_prefix" = xNONE; then
4355 exec_prefix='${prefix}'
4356fi
4357
4358#
4359eval "eval PREFIX_DIR=${prefix}"
4360
4361eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4362
4363eval "eval BIN_DIR=$bindir"
4364
4365eval "eval SBIN_DIR=$sbindir"
4366
4367eval "eval LIBEXEC_DIR=$libexecdir"
4368
4369eval "eval DATA_DIR=$datadir"
4370
cristy4e65ec22012-04-08 01:33:27 +00004371eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004372
cristy3ed852e2009-09-05 21:47:34 +00004373eval "eval SYSCONF_DIR=$sysconfdir"
4374
4375eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4376
4377eval "eval LOCALSTATE_DIR=$localstatedir"
4378
4379eval "eval LIB_DIR=$libdir"
4380
4381eval "eval INCLUDE_DIR=$includedir"
4382
4383eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4384
4385eval "eval INFO_DIR=$infodir"
4386
4387eval "eval MAN_DIR=$mandir"
4388
4389
4390# Get full paths to source and build directories
4391srcdirfull="`cd $srcdir && pwd`"
4392builddir="`pwd`"
4393
4394#
4395# Compute variables useful for running uninstalled software.
4396#
4397MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4398MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4399MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4400MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4401DIRSEP=':'
4402case "${build_os}" in
4403 mingw* )
4404 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4405 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4406 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4407 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4408 DIRSEP=';'
4409 ;;
4410esac
4411case "${host_os}" in
4412 mingw* )
4413 DIRSEP=';'
4414 ;;
4415esac
4416
4417
4418
4419
4420
4421
cristya0b81c32010-01-22 02:54:33 +00004422
4423#
4424# Enable OS features.
4425#
cristy73bd4a52010-10-05 11:24:23 +00004426DEPDIR="${am__leading_dot}deps"
4427
4428ac_config_commands="$ac_config_commands depfiles"
4429
4430
4431am_make=${MAKE-make}
4432cat > confinc << 'END'
4433am__doit:
4434 @echo this is the am__doit target
4435.PHONY: am__doit
4436END
4437# If we don't find an include directive, just comment out the code.
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4439$as_echo_n "checking for style of include used by $am_make... " >&6; }
4440am__include="#"
4441am__quote=
4442_am_result=none
4443# First try GNU make style include.
4444echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004445# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004446case `$am_make -s -f confmf 2> /dev/null` in #(
4447*the\ am__doit\ target*)
4448 am__include=include
4449 am__quote=
4450 _am_result=GNU
4451 ;;
4452esac
4453# Now try BSD make style include.
4454if test "$am__include" = "#"; then
4455 echo '.include "confinc"' > confmf
4456 case `$am_make -s -f confmf 2> /dev/null` in #(
4457 *the\ am__doit\ target*)
4458 am__include=.include
4459 am__quote="\""
4460 _am_result=BSD
4461 ;;
4462 esac
4463fi
4464
4465
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4467$as_echo "$_am_result" >&6; }
4468rm -f confinc confmf
4469
4470# Check whether --enable-dependency-tracking was given.
4471if test "${enable_dependency_tracking+set}" = set; then :
4472 enableval=$enable_dependency_tracking;
4473fi
4474
4475if test "x$enable_dependency_tracking" != xno; then
4476 am_depcomp="$ac_aux_dir/depcomp"
4477 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004478 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004479fi
4480 if test "x$enable_dependency_tracking" != xno; then
4481 AMDEP_TRUE=
4482 AMDEP_FALSE='#'
4483else
4484 AMDEP_TRUE='#'
4485 AMDEP_FALSE=
4486fi
4487
4488
cristy3ed852e2009-09-05 21:47:34 +00004489ac_ext=c
4490ac_cpp='$CPP $CPPFLAGS'
4491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494if test -n "$ac_tool_prefix"; then
4495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4496set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004499if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004500 $as_echo_n "(cached) " >&6
4501else
4502 if test -n "$CC"; then
4503 ac_cv_prog_CC="$CC" # Let the user override the test.
4504else
4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
4507do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004510 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004514 break 2
4515 fi
4516done
cristy8b350f62009-11-15 23:12:43 +00004517 done
cristy3ed852e2009-09-05 21:47:34 +00004518IFS=$as_save_IFS
4519
4520fi
4521fi
4522CC=$ac_cv_prog_CC
4523if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004525$as_echo "$CC" >&6; }
4526else
cristy8b350f62009-11-15 23:12:43 +00004527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004528$as_echo "no" >&6; }
4529fi
4530
4531
4532fi
4533if test -z "$ac_cv_prog_CC"; then
4534 ac_ct_CC=$CC
4535 # Extract the first word of "gcc", so it can be a program name with args.
4536set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004539if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004540 $as_echo_n "(cached) " >&6
4541else
4542 if test -n "$ac_ct_CC"; then
4543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4544else
4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004552 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004554 break 2
4555 fi
4556done
cristy8b350f62009-11-15 23:12:43 +00004557 done
cristy3ed852e2009-09-05 21:47:34 +00004558IFS=$as_save_IFS
4559
4560fi
4561fi
4562ac_ct_CC=$ac_cv_prog_ac_ct_CC
4563if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004565$as_echo "$ac_ct_CC" >&6; }
4566else
cristy8b350f62009-11-15 23:12:43 +00004567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004568$as_echo "no" >&6; }
4569fi
4570
4571 if test "x$ac_ct_CC" = x; then
4572 CC=""
4573 else
4574 case $cross_compiling:$ac_tool_warned in
4575yes:)
cristy8b350f62009-11-15 23:12:43 +00004576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4578ac_tool_warned=yes ;;
4579esac
4580 CC=$ac_ct_CC
4581 fi
4582else
4583 CC="$ac_cv_prog_CC"
4584fi
4585
4586if test -z "$CC"; then
4587 if test -n "$ac_tool_prefix"; then
4588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4589set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004592if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004593 $as_echo_n "(cached) " >&6
4594else
4595 if test -n "$CC"; then
4596 ac_cv_prog_CC="$CC" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004605 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004607 break 2
4608 fi
4609done
cristy8b350f62009-11-15 23:12:43 +00004610 done
cristy3ed852e2009-09-05 21:47:34 +00004611IFS=$as_save_IFS
4612
4613fi
4614fi
4615CC=$ac_cv_prog_CC
4616if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004618$as_echo "$CC" >&6; }
4619else
cristy8b350f62009-11-15 23:12:43 +00004620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004621$as_echo "no" >&6; }
4622fi
4623
4624
4625 fi
4626fi
4627if test -z "$CC"; then
4628 # Extract the first word of "cc", so it can be a program name with args.
4629set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004631$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004632if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004633 $as_echo_n "(cached) " >&6
4634else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637else
4638 ac_prog_rejected=no
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4647 ac_prog_rejected=yes
4648 continue
4649 fi
4650 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004652 break 2
4653 fi
4654done
cristy8b350f62009-11-15 23:12:43 +00004655 done
cristy3ed852e2009-09-05 21:47:34 +00004656IFS=$as_save_IFS
4657
4658if test $ac_prog_rejected = yes; then
4659 # We found a bogon in the path, so make sure we never use it.
4660 set dummy $ac_cv_prog_CC
4661 shift
4662 if test $# != 0; then
4663 # We chose a different compiler from the bogus one.
4664 # However, it has the same basename, so the bogon will be chosen
4665 # first if we set CC to just the basename; use the full file name.
4666 shift
4667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4668 fi
4669fi
4670fi
4671fi
4672CC=$ac_cv_prog_CC
4673if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004675$as_echo "$CC" >&6; }
4676else
cristy8b350f62009-11-15 23:12:43 +00004677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004678$as_echo "no" >&6; }
4679fi
4680
4681
4682fi
4683if test -z "$CC"; then
4684 if test -n "$ac_tool_prefix"; then
4685 for ac_prog in cl.exe
4686 do
4687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004690$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004691if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004692 $as_echo_n "(cached) " >&6
4693else
4694 if test -n "$CC"; then
4695 ac_cv_prog_CC="$CC" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004702 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004706 break 2
4707 fi
4708done
cristy8b350f62009-11-15 23:12:43 +00004709 done
cristy3ed852e2009-09-05 21:47:34 +00004710IFS=$as_save_IFS
4711
4712fi
4713fi
4714CC=$ac_cv_prog_CC
4715if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004717$as_echo "$CC" >&6; }
4718else
cristy8b350f62009-11-15 23:12:43 +00004719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004720$as_echo "no" >&6; }
4721fi
4722
4723
4724 test -n "$CC" && break
4725 done
4726fi
4727if test -z "$CC"; then
4728 ac_ct_CC=$CC
4729 for ac_prog in cl.exe
4730do
4731 # Extract the first word of "$ac_prog", so it can be a program name with args.
4732set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004734$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004735if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004736 $as_echo_n "(cached) " >&6
4737else
4738 if test -n "$ac_ct_CC"; then
4739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4740else
4741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH
4743do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004746 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004748 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004750 break 2
4751 fi
4752done
cristy8b350f62009-11-15 23:12:43 +00004753 done
cristy3ed852e2009-09-05 21:47:34 +00004754IFS=$as_save_IFS
4755
4756fi
4757fi
4758ac_ct_CC=$ac_cv_prog_ac_ct_CC
4759if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004761$as_echo "$ac_ct_CC" >&6; }
4762else
cristy8b350f62009-11-15 23:12:43 +00004763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004764$as_echo "no" >&6; }
4765fi
4766
4767
4768 test -n "$ac_ct_CC" && break
4769done
4770
4771 if test "x$ac_ct_CC" = x; then
4772 CC=""
4773 else
4774 case $cross_compiling:$ac_tool_warned in
4775yes:)
cristy8b350f62009-11-15 23:12:43 +00004776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778ac_tool_warned=yes ;;
4779esac
4780 CC=$ac_ct_CC
4781 fi
4782fi
4783
4784fi
4785
4786
cristy8b350f62009-11-15 23:12:43 +00004787test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004789as_fn_error $? "no acceptable C compiler found in \$PATH
4790See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004791
4792# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004793$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004794set X $ac_compile
4795ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004796for ac_option in --version -v -V -qversion; do
4797 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004798case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801esac
cristy8b350f62009-11-15 23:12:43 +00004802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4803$as_echo "$ac_try_echo"; } >&5
4804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004805 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004806 if test -s conftest.err; then
4807 sed '10a\
4808... rest of stderr output deleted ...
4809 10q' conftest.err >conftest.er1
4810 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004811 fi
cristycd4c5312009-11-22 01:19:08 +00004812 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4814 test $ac_status = 0; }
4815done
cristy3ed852e2009-09-05 21:47:34 +00004816
cristy8b350f62009-11-15 23:12:43 +00004817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004818/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004819
cristy3ed852e2009-09-05 21:47:34 +00004820int
4821main ()
4822{
4823
4824 ;
4825 return 0;
4826}
4827_ACEOF
4828ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004829ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004830# Try to create an executable without -o first, disregard a.out.
4831# It will help us diagnose broken compilers, and finding out an intuition
4832# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4834$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004835ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4836
4837# The possible output files:
4838ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4839
4840ac_rmfiles=
4841for ac_file in $ac_files
4842do
4843 case $ac_file in
4844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4846 esac
4847done
4848rm -f $ac_rmfiles
4849
cristy8b350f62009-11-15 23:12:43 +00004850if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004851case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854esac
cristy8b350f62009-11-15 23:12:43 +00004855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4856$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004857 (eval "$ac_link_default") 2>&5
4858 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4860 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4862# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4863# in a Makefile. We should not override ac_cv_exeext if it was cached,
4864# so that the user can short-circuit this test for compilers unknown to
4865# Autoconf.
4866for ac_file in $ac_files ''
4867do
4868 test -f "$ac_file" || continue
4869 case $ac_file in
4870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4871 ;;
4872 [ab].out )
4873 # We found the default executable, but exeext='' is most
4874 # certainly right.
4875 break;;
4876 *.* )
cristy8b350f62009-11-15 23:12:43 +00004877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004878 then :; else
4879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4880 fi
4881 # We set ac_cv_exeext here because the later test for it is not
4882 # safe: cross compilers may not add the suffix if given an `-o'
4883 # argument, so we may need to know it at that point already.
4884 # Even if this section looks crufty: it has the advantage of
4885 # actually working.
4886 break;;
4887 * )
4888 break;;
4889 esac
4890done
4891test "$ac_cv_exeext" = no && ac_cv_exeext=
4892
4893else
4894 ac_file=''
4895fi
cristy8b350f62009-11-15 23:12:43 +00004896if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898$as_echo "no" >&6; }
4899$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004900sed 's/^/| /' conftest.$ac_ext >&5
4901
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 77 "C compiler cannot create executables
4905See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004906else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4908$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004909fi
cristycd4c5312009-11-22 01:19:08 +00004910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4911$as_echo_n "checking for C compiler default output file name... " >&6; }
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4913$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004914ac_exeext=$ac_cv_exeext
4915
cristycd4c5312009-11-22 01:19:08 +00004916rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004917ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004919$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004920if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004921case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924esac
cristy8b350f62009-11-15 23:12:43 +00004925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4926$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004927 (eval "$ac_link") 2>&5
4928 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4930 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4932# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4933# work properly (i.e., refer to `conftest.exe'), while it won't with
4934# `rm'.
4935for ac_file in conftest.exe conftest conftest.*; do
4936 test -f "$ac_file" || continue
4937 case $ac_file in
4938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4940 break;;
4941 * ) break;;
4942 esac
4943done
4944else
cristy8b350f62009-11-15 23:12:43 +00004945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004947as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4948See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004949fi
cristycd4c5312009-11-22 01:19:08 +00004950rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004952$as_echo "$ac_cv_exeext" >&6; }
4953
4954rm -f conftest.$ac_ext
4955EXEEXT=$ac_cv_exeext
4956ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958/* end confdefs.h. */
4959#include <stdio.h>
4960int
4961main ()
4962{
4963FILE *f = fopen ("conftest.out", "w");
4964 return ferror (f) || fclose (f) != 0;
4965
4966 ;
4967 return 0;
4968}
4969_ACEOF
4970ac_clean_files="$ac_clean_files conftest.out"
4971# Check that the compiler produces executables we can run. If not, either
4972# the compiler is broken, or we cross compile.
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4974$as_echo_n "checking whether we are cross compiling... " >&6; }
4975if test "$cross_compiling" != yes; then
4976 { { ac_try="$ac_link"
4977case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980esac
4981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4982$as_echo "$ac_try_echo"; } >&5
4983 (eval "$ac_link") 2>&5
4984 ac_status=$?
4985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4986 test $ac_status = 0; }
4987 if { ac_try='./conftest$ac_cv_exeext'
4988 { { case "(($ac_try" in
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4991esac
4992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4993$as_echo "$ac_try_echo"; } >&5
4994 (eval "$ac_try") 2>&5
4995 ac_status=$?
4996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4997 test $ac_status = 0; }; }; then
4998 cross_compiling=no
4999 else
5000 if test "$cross_compiling" = maybe; then
5001 cross_compiling=yes
5002 else
5003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005005as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005006If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005007See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005008 fi
5009 fi
5010fi
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5012$as_echo "$cross_compiling" >&6; }
5013
5014rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5015ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005017$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005018if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005019 $as_echo_n "(cached) " >&6
5020else
cristy8b350f62009-11-15 23:12:43 +00005021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005022/* end confdefs.h. */
5023
5024int
5025main ()
5026{
5027
5028 ;
5029 return 0;
5030}
5031_ACEOF
5032rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005033if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005034case "(($ac_try" in
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5037esac
cristy8b350f62009-11-15 23:12:43 +00005038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5039$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005040 (eval "$ac_compile") 2>&5
5041 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5043 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005044 for ac_file in conftest.o conftest.obj conftest.*; do
5045 test -f "$ac_file" || continue;
5046 case $ac_file in
5047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5049 break;;
5050 esac
5051done
5052else
5053 $as_echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
cristy8b350f62009-11-15 23:12:43 +00005056{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005058as_fn_error $? "cannot compute suffix of object files: cannot compile
5059See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005060fi
cristy3ed852e2009-09-05 21:47:34 +00005061rm -f conftest.$ac_cv_objext conftest.$ac_ext
5062fi
cristy8b350f62009-11-15 23:12:43 +00005063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005064$as_echo "$ac_cv_objext" >&6; }
5065OBJEXT=$ac_cv_objext
5066ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005068$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005069if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005070 $as_echo_n "(cached) " >&6
5071else
cristy8b350f62009-11-15 23:12:43 +00005072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005073/* end confdefs.h. */
5074
5075int
5076main ()
5077{
5078#ifndef __GNUC__
5079 choke me
5080#endif
5081
5082 ;
5083 return 0;
5084}
5085_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005086if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005087 ac_compiler_gnu=yes
5088else
cristy8b350f62009-11-15 23:12:43 +00005089 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005090fi
cristy3ed852e2009-09-05 21:47:34 +00005091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092ac_cv_c_compiler_gnu=$ac_compiler_gnu
5093
5094fi
cristy8b350f62009-11-15 23:12:43 +00005095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005096$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5097if test $ac_compiler_gnu = yes; then
5098 GCC=yes
5099else
5100 GCC=
5101fi
5102ac_test_CFLAGS=${CFLAGS+set}
5103ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005105$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005106if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005107 $as_echo_n "(cached) " >&6
5108else
5109 ac_save_c_werror_flag=$ac_c_werror_flag
5110 ac_c_werror_flag=yes
5111 ac_cv_prog_cc_g=no
5112 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005114/* end confdefs.h. */
5115
5116int
5117main ()
5118{
5119
5120 ;
5121 return 0;
5122}
5123_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005124if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005125 ac_cv_prog_cc_g=yes
5126else
cristy8b350f62009-11-15 23:12:43 +00005127 CFLAGS=""
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005129/* end confdefs.h. */
5130
5131int
5132main ()
5133{
5134
5135 ;
5136 return 0;
5137}
5138_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005139if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005140
cristy8b350f62009-11-15 23:12:43 +00005141else
5142 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005143 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005145/* end confdefs.h. */
5146
5147int
5148main ()
5149{
5150
5151 ;
5152 return 0;
5153}
5154_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005155if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005156 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005157fi
cristy3ed852e2009-09-05 21:47:34 +00005158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159fi
cristy3ed852e2009-09-05 21:47:34 +00005160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161fi
cristy3ed852e2009-09-05 21:47:34 +00005162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163 ac_c_werror_flag=$ac_save_c_werror_flag
5164fi
cristy8b350f62009-11-15 23:12:43 +00005165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005166$as_echo "$ac_cv_prog_cc_g" >&6; }
5167if test "$ac_test_CFLAGS" = set; then
5168 CFLAGS=$ac_save_CFLAGS
5169elif test $ac_cv_prog_cc_g = yes; then
5170 if test "$GCC" = yes; then
5171 CFLAGS="-g -O2"
5172 else
5173 CFLAGS="-g"
5174 fi
5175else
5176 if test "$GCC" = yes; then
5177 CFLAGS="-O2"
5178 else
5179 CFLAGS=
5180 fi
5181fi
cristy8b350f62009-11-15 23:12:43 +00005182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005183$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005184if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005185 $as_echo_n "(cached) " >&6
5186else
5187 ac_cv_prog_cc_c89=no
5188ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005190/* end confdefs.h. */
5191#include <stdarg.h>
5192#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005193struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005194/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5195struct buf { int x; };
5196FILE * (*rcsopen) (struct buf *, struct stat *, int);
5197static char *e (p, i)
5198 char **p;
5199 int i;
5200{
5201 return p[i];
5202}
5203static char *f (char * (*g) (char **, int), char **p, ...)
5204{
5205 char *s;
5206 va_list v;
5207 va_start (v,p);
5208 s = g (p, va_arg (v,int));
5209 va_end (v);
5210 return s;
5211}
5212
5213/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5214 function prototypes and stuff, but not '\xHH' hex character constants.
5215 These don't provoke an error unfortunately, instead are silently treated
5216 as 'x'. The following induces an error, until -std is added to get
5217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5218 array size at least. It's necessary to write '\x00'==0 to get something
5219 that's true only with -std. */
5220int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5221
5222/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5223 inside strings and character constants. */
5224#define FOO(x) 'x'
5225int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5226
5227int test (int i, double x);
5228struct s1 {int (*f) (int a);};
5229struct s2 {int (*f) (double a);};
5230int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5231int argc;
5232char **argv;
5233int
5234main ()
5235{
5236return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5237 ;
5238 return 0;
5239}
5240_ACEOF
5241for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5243do
5244 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005245 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005246 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005247fi
cristy3ed852e2009-09-05 21:47:34 +00005248rm -f core conftest.err conftest.$ac_objext
5249 test "x$ac_cv_prog_cc_c89" != "xno" && break
5250done
5251rm -f conftest.$ac_ext
5252CC=$ac_save_CC
5253
5254fi
5255# AC_CACHE_VAL
5256case "x$ac_cv_prog_cc_c89" in
5257 x)
cristy8b350f62009-11-15 23:12:43 +00005258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005259$as_echo "none needed" >&6; } ;;
5260 xno)
cristy8b350f62009-11-15 23:12:43 +00005261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005262$as_echo "unsupported" >&6; } ;;
5263 *)
5264 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005266$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5267esac
cristy8b350f62009-11-15 23:12:43 +00005268if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005269
cristy8b350f62009-11-15 23:12:43 +00005270fi
cristy3ed852e2009-09-05 21:47:34 +00005271
5272ac_ext=c
5273ac_cpp='$CPP $CPPFLAGS'
5274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005277
cristy73bd4a52010-10-05 11:24:23 +00005278depcc="$CC" am_compiler_list=
5279
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5281$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005282if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005283 $as_echo_n "(cached) " >&6
5284else
5285 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5286 # We make a subdir and do the tests there. Otherwise we can end up
5287 # making bogus files that we don't know about and never remove. For
5288 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005289 # making a dummy file named 'D' -- because '-MD' means "put the output
5290 # in D".
cristy7247bba2012-02-05 16:37:27 +00005291 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005292 mkdir conftest.dir
5293 # Copy depcomp to subdir because otherwise we won't find it if we're
5294 # using a relative directory.
5295 cp "$am_depcomp" conftest.dir
5296 cd conftest.dir
5297 # We will build objects and dependencies in a subdirectory because
5298 # it helps to detect inapplicable dependency modes. For instance
5299 # both Tru64's cc and ICC support -MD to output dependencies as a
5300 # side effect of compilation, but ICC will put the dependencies in
5301 # the current directory while Tru64 will put them in the object
5302 # directory.
5303 mkdir sub
5304
5305 am_cv_CC_dependencies_compiler_type=none
5306 if test "$am_compiler_list" = ""; then
5307 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5308 fi
5309 am__universal=false
5310 case " $depcc " in #(
5311 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5312 esac
5313
5314 for depmode in $am_compiler_list; do
5315 # Setup a source with many dependencies, because some compilers
5316 # like to wrap large dependency lists on column 80 (with \), and
5317 # we should not choose a depcomp mode which is confused by this.
5318 #
5319 # We need to recreate these files for each test, as the compiler may
5320 # overwrite some of them when testing with obscure command lines.
5321 # This happens at least with the AIX C compiler.
5322 : > sub/conftest.c
5323 for i in 1 2 3 4 5 6; do
5324 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005325 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5326 # Solaris 10 /bin/sh.
5327 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005328 done
5329 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5330
cristyc0890a62012-07-19 00:18:20 +00005331 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005332 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005333 # handle '-M -o', and we need to detect this. Also, some Intel
5334 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005335 am__obj=sub/conftest.${OBJEXT-o}
5336 am__minus_obj="-o $am__obj"
5337 case $depmode in
5338 gcc)
5339 # This depmode causes a compiler race in universal mode.
5340 test "$am__universal" = false || continue
5341 ;;
5342 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005343 # After this tag, mechanisms are not by side-effect, so they'll
5344 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005345 if test "x$enable_dependency_tracking" = xyes; then
5346 continue
5347 else
5348 break
5349 fi
5350 ;;
cristy7247bba2012-02-05 16:37:27 +00005351 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005352 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005353 # not run yet. These depmodes are late enough in the game, and
5354 # so weak that their functioning should not be impacted.
5355 am__obj=conftest.${OBJEXT-o}
5356 am__minus_obj=
5357 ;;
5358 none) break ;;
5359 esac
5360 if depmode=$depmode \
5361 source=sub/conftest.c object=$am__obj \
5362 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5363 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5364 >/dev/null 2>conftest.err &&
5365 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5366 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5367 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5368 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5369 # icc doesn't choke on unknown options, it will just issue warnings
5370 # or remarks (even with -Werror). So we grep stderr for any message
5371 # that says an option was ignored or not supported.
5372 # When given -MP, icc 7.0 and 7.1 complain thusly:
5373 # icc: Command line warning: ignoring option '-M'; no argument required
5374 # The diagnosis changed in icc 8.0:
5375 # icc: Command line remark: option '-MP' not supported
5376 if (grep 'ignoring option' conftest.err ||
5377 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5378 am_cv_CC_dependencies_compiler_type=$depmode
5379 break
5380 fi
5381 fi
5382 done
5383
5384 cd ..
5385 rm -rf conftest.dir
5386else
5387 am_cv_CC_dependencies_compiler_type=none
5388fi
5389
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5392$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5393CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5394
5395 if
5396 test "x$enable_dependency_tracking" != xno \
5397 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5398 am__fastdepCC_TRUE=
5399 am__fastdepCC_FALSE='#'
5400else
5401 am__fastdepCC_TRUE='#'
5402 am__fastdepCC_FALSE=
5403fi
5404
5405
cristy3ed852e2009-09-05 21:47:34 +00005406
cristya0b81c32010-01-22 02:54:33 +00005407ac_ext=c
5408ac_cpp='$CPP $CPPFLAGS'
5409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5413$as_echo_n "checking how to run the C preprocessor... " >&6; }
5414# On Suns, sometimes $CPP names a directory.
5415if test -n "$CPP" && test -d "$CPP"; then
5416 CPP=
5417fi
5418if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005419 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005420 $as_echo_n "(cached) " >&6
5421else
5422 # Double quotes because CPP needs to be expanded
5423 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5424 do
5425 ac_preproc_ok=false
5426for ac_c_preproc_warn_flag in '' yes
5427do
5428 # Use a header file that comes with gcc, so configuring glibc
5429 # with a fresh cross-compiler works.
5430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5431 # <limits.h> exists even on freestanding compilers.
5432 # On the NeXT, cc -E runs the code through the compiler's parser,
5433 # not just through cpp. "Syntax error" is here to catch this case.
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h. */
5436#ifdef __STDC__
5437# include <limits.h>
5438#else
5439# include <assert.h>
5440#endif
5441 Syntax error
5442_ACEOF
5443if ac_fn_c_try_cpp "$LINENO"; then :
5444
5445else
5446 # Broken: fails on valid input.
5447continue
5448fi
cristyda16f162011-02-19 23:52:17 +00005449rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005450
5451 # OK, works on sane cases. Now check whether nonexistent headers
5452 # can be detected and how.
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h. */
5455#include <ac_nonexistent.h>
5456_ACEOF
5457if ac_fn_c_try_cpp "$LINENO"; then :
5458 # Broken: success on invalid input.
5459continue
5460else
5461 # Passes both tests.
5462ac_preproc_ok=:
5463break
5464fi
cristyda16f162011-02-19 23:52:17 +00005465rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005466
5467done
5468# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005469rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005470if $ac_preproc_ok; then :
5471 break
5472fi
5473
5474 done
5475 ac_cv_prog_CPP=$CPP
5476
5477fi
5478 CPP=$ac_cv_prog_CPP
5479else
5480 ac_cv_prog_CPP=$CPP
5481fi
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5483$as_echo "$CPP" >&6; }
5484ac_preproc_ok=false
5485for ac_c_preproc_warn_flag in '' yes
5486do
5487 # Use a header file that comes with gcc, so configuring glibc
5488 # with a fresh cross-compiler works.
5489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5490 # <limits.h> exists even on freestanding compilers.
5491 # On the NeXT, cc -E runs the code through the compiler's parser,
5492 # not just through cpp. "Syntax error" is here to catch this case.
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h. */
5495#ifdef __STDC__
5496# include <limits.h>
5497#else
5498# include <assert.h>
5499#endif
5500 Syntax error
5501_ACEOF
5502if ac_fn_c_try_cpp "$LINENO"; then :
5503
5504else
5505 # Broken: fails on valid input.
5506continue
5507fi
cristyda16f162011-02-19 23:52:17 +00005508rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005509
5510 # OK, works on sane cases. Now check whether nonexistent headers
5511 # can be detected and how.
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513/* end confdefs.h. */
5514#include <ac_nonexistent.h>
5515_ACEOF
5516if ac_fn_c_try_cpp "$LINENO"; then :
5517 # Broken: success on invalid input.
5518continue
5519else
5520 # Passes both tests.
5521ac_preproc_ok=:
5522break
5523fi
cristyda16f162011-02-19 23:52:17 +00005524rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005525
5526done
5527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005528rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005529if $ac_preproc_ok; then :
5530
5531else
5532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005534as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5535See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005536fi
5537
5538ac_ext=c
5539ac_cpp='$CPP $CPPFLAGS'
5540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542ac_compiler_gnu=$ac_cv_c_compiler_gnu
5543
5544
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5546$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005547if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005548 $as_echo_n "(cached) " >&6
5549else
5550 if test -z "$GREP"; then
5551 ac_path_GREP_found=false
5552 # Loop through the user's path and test for each of PROGNAME-LIST
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5555do
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_prog in grep ggrep; do
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005561 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005562# Check for GNU ac_path_GREP and select it if it is found.
5563 # Check for GNU $ac_path_GREP
5564case `"$ac_path_GREP" --version 2>&1` in
5565*GNU*)
5566 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5567*)
5568 ac_count=0
5569 $as_echo_n 0123456789 >"conftest.in"
5570 while :
5571 do
5572 cat "conftest.in" "conftest.in" >"conftest.tmp"
5573 mv "conftest.tmp" "conftest.in"
5574 cp "conftest.in" "conftest.nl"
5575 $as_echo 'GREP' >> "conftest.nl"
5576 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5578 as_fn_arith $ac_count + 1 && ac_count=$as_val
5579 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5580 # Best one so far, save it but keep looking for a better one
5581 ac_cv_path_GREP="$ac_path_GREP"
5582 ac_path_GREP_max=$ac_count
5583 fi
5584 # 10*(2^10) chars as input seems more than enough
5585 test $ac_count -gt 10 && break
5586 done
5587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5588esac
5589
5590 $ac_path_GREP_found && break 3
5591 done
5592 done
5593 done
5594IFS=$as_save_IFS
5595 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005596 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005597 fi
5598else
5599 ac_cv_path_GREP=$GREP
5600fi
5601
5602fi
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5604$as_echo "$ac_cv_path_GREP" >&6; }
5605 GREP="$ac_cv_path_GREP"
5606
5607
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5609$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005610if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005611 $as_echo_n "(cached) " >&6
5612else
5613 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5614 then ac_cv_path_EGREP="$GREP -E"
5615 else
5616 if test -z "$EGREP"; then
5617 ac_path_EGREP_found=false
5618 # Loop through the user's path and test for each of PROGNAME-LIST
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5621do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_prog in egrep; do
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005627 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005628# Check for GNU ac_path_EGREP and select it if it is found.
5629 # Check for GNU $ac_path_EGREP
5630case `"$ac_path_EGREP" --version 2>&1` in
5631*GNU*)
5632 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5633*)
5634 ac_count=0
5635 $as_echo_n 0123456789 >"conftest.in"
5636 while :
5637 do
5638 cat "conftest.in" "conftest.in" >"conftest.tmp"
5639 mv "conftest.tmp" "conftest.in"
5640 cp "conftest.in" "conftest.nl"
5641 $as_echo 'EGREP' >> "conftest.nl"
5642 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5644 as_fn_arith $ac_count + 1 && ac_count=$as_val
5645 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5646 # Best one so far, save it but keep looking for a better one
5647 ac_cv_path_EGREP="$ac_path_EGREP"
5648 ac_path_EGREP_max=$ac_count
5649 fi
5650 # 10*(2^10) chars as input seems more than enough
5651 test $ac_count -gt 10 && break
5652 done
5653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5654esac
5655
5656 $ac_path_EGREP_found && break 3
5657 done
5658 done
5659 done
5660IFS=$as_save_IFS
5661 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005662 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005663 fi
5664else
5665 ac_cv_path_EGREP=$EGREP
5666fi
5667
5668 fi
5669fi
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5671$as_echo "$ac_cv_path_EGREP" >&6; }
5672 EGREP="$ac_cv_path_EGREP"
5673
5674
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5676$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005677if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005678 $as_echo_n "(cached) " >&6
5679else
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681/* end confdefs.h. */
5682#include <stdlib.h>
5683#include <stdarg.h>
5684#include <string.h>
5685#include <float.h>
5686
5687int
5688main ()
5689{
5690
5691 ;
5692 return 0;
5693}
5694_ACEOF
5695if ac_fn_c_try_compile "$LINENO"; then :
5696 ac_cv_header_stdc=yes
5697else
5698 ac_cv_header_stdc=no
5699fi
5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701
5702if test $ac_cv_header_stdc = yes; then
5703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h. */
5706#include <string.h>
5707
5708_ACEOF
5709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5710 $EGREP "memchr" >/dev/null 2>&1; then :
5711
5712else
5713 ac_cv_header_stdc=no
5714fi
5715rm -f conftest*
5716
5717fi
5718
5719if test $ac_cv_header_stdc = yes; then
5720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h. */
5723#include <stdlib.h>
5724
5725_ACEOF
5726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5727 $EGREP "free" >/dev/null 2>&1; then :
5728
5729else
5730 ac_cv_header_stdc=no
5731fi
5732rm -f conftest*
5733
5734fi
5735
5736if test $ac_cv_header_stdc = yes; then
5737 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5738 if test "$cross_compiling" = yes; then :
5739 :
5740else
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742/* end confdefs.h. */
5743#include <ctype.h>
5744#include <stdlib.h>
5745#if ((' ' & 0x0FF) == 0x020)
5746# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5747# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5748#else
5749# define ISLOWER(c) \
5750 (('a' <= (c) && (c) <= 'i') \
5751 || ('j' <= (c) && (c) <= 'r') \
5752 || ('s' <= (c) && (c) <= 'z'))
5753# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5754#endif
5755
5756#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5757int
5758main ()
5759{
5760 int i;
5761 for (i = 0; i < 256; i++)
5762 if (XOR (islower (i), ISLOWER (i))
5763 || toupper (i) != TOUPPER (i))
5764 return 2;
5765 return 0;
5766}
5767_ACEOF
5768if ac_fn_c_try_run "$LINENO"; then :
5769
5770else
5771 ac_cv_header_stdc=no
5772fi
5773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5774 conftest.$ac_objext conftest.beam conftest.$ac_ext
5775fi
5776
5777fi
5778fi
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5780$as_echo "$ac_cv_header_stdc" >&6; }
5781if test $ac_cv_header_stdc = yes; then
5782
5783$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5784
5785fi
5786
5787# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5788for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5789 inttypes.h stdint.h unistd.h
5790do :
5791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5792ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5793"
cristy98dddb52010-11-04 00:30:15 +00005794if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005795 cat >>confdefs.h <<_ACEOF
5796#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5797_ACEOF
5798
5799fi
5800
5801done
5802
5803
5804
5805 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 +00005806if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005807 MINIX=yes
5808else
5809 MINIX=
5810fi
5811
5812
5813 if test "$MINIX" = yes; then
5814
5815$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5816
5817
5818$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5819
5820
5821$as_echo "#define _MINIX 1" >>confdefs.h
5822
5823 fi
5824
5825
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5827$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005828if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005829 $as_echo_n "(cached) " >&6
5830else
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h. */
5833
cristy14fefe52012-05-21 00:59:18 +00005834# define __EXTENSIONS__ 1
5835 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005836int
5837main ()
5838{
5839
5840 ;
5841 return 0;
5842}
5843_ACEOF
5844if ac_fn_c_try_compile "$LINENO"; then :
5845 ac_cv_safe_to_define___extensions__=yes
5846else
5847 ac_cv_safe_to_define___extensions__=no
5848fi
5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850fi
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5852$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5853 test $ac_cv_safe_to_define___extensions__ = yes &&
5854 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5855
5856 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5857
5858 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5859
5860 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5861
5862 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5863
5864
5865
5866# Check for programs
5867ac_ext=c
5868ac_cpp='$CPP $CPPFLAGS'
5869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5871ac_compiler_gnu=$ac_cv_c_compiler_gnu
5872if test -n "$ac_tool_prefix"; then
5873 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5874set dummy ${ac_tool_prefix}gcc; ac_word=$2
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005877if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005878 $as_echo_n "(cached) " >&6
5879else
5880 if test -n "$CC"; then
5881 ac_cv_prog_CC="$CC" # Let the user override the test.
5882else
5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005890 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894done
5895 done
5896IFS=$as_save_IFS
5897
5898fi
5899fi
5900CC=$ac_cv_prog_CC
5901if test -n "$CC"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5903$as_echo "$CC" >&6; }
5904else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906$as_echo "no" >&6; }
5907fi
5908
5909
5910fi
5911if test -z "$ac_cv_prog_CC"; then
5912 ac_ct_CC=$CC
5913 # Extract the first word of "gcc", so it can be a program name with args.
5914set dummy gcc; ac_word=$2
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005917if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005918 $as_echo_n "(cached) " >&6
5919else
5920 if test -n "$ac_ct_CC"; then
5921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5922else
5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH
5925do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005930 ac_cv_prog_ac_ct_CC="gcc"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934done
5935 done
5936IFS=$as_save_IFS
5937
5938fi
5939fi
5940ac_ct_CC=$ac_cv_prog_ac_ct_CC
5941if test -n "$ac_ct_CC"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5943$as_echo "$ac_ct_CC" >&6; }
5944else
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946$as_echo "no" >&6; }
5947fi
5948
5949 if test "x$ac_ct_CC" = x; then
5950 CC=""
5951 else
5952 case $cross_compiling:$ac_tool_warned in
5953yes:)
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956ac_tool_warned=yes ;;
5957esac
5958 CC=$ac_ct_CC
5959 fi
5960else
5961 CC="$ac_cv_prog_CC"
5962fi
5963
5964if test -z "$CC"; then
5965 if test -n "$ac_tool_prefix"; then
5966 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5967set dummy ${ac_tool_prefix}cc; ac_word=$2
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005970if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005971 $as_echo_n "(cached) " >&6
5972else
5973 if test -n "$CC"; then
5974 ac_cv_prog_CC="$CC" # Let the user override the test.
5975else
5976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977for as_dir in $PATH
5978do
5979 IFS=$as_save_IFS
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005983 ac_cv_prog_CC="${ac_tool_prefix}cc"
5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 break 2
5986 fi
5987done
5988 done
5989IFS=$as_save_IFS
5990
5991fi
5992fi
5993CC=$ac_cv_prog_CC
5994if test -n "$CC"; then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5996$as_echo "$CC" >&6; }
5997else
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999$as_echo "no" >&6; }
6000fi
6001
6002
6003 fi
6004fi
6005if test -z "$CC"; then
6006 # Extract the first word of "cc", so it can be a program name with args.
6007set dummy cc; ac_word=$2
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006010if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006011 $as_echo_n "(cached) " >&6
6012else
6013 if test -n "$CC"; then
6014 ac_cv_prog_CC="$CC" # Let the user override the test.
6015else
6016 ac_prog_rejected=no
6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006024 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6025 ac_prog_rejected=yes
6026 continue
6027 fi
6028 ac_cv_prog_CC="cc"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032done
6033 done
6034IFS=$as_save_IFS
6035
6036if test $ac_prog_rejected = yes; then
6037 # We found a bogon in the path, so make sure we never use it.
6038 set dummy $ac_cv_prog_CC
6039 shift
6040 if test $# != 0; then
6041 # We chose a different compiler from the bogus one.
6042 # However, it has the same basename, so the bogon will be chosen
6043 # first if we set CC to just the basename; use the full file name.
6044 shift
6045 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6046 fi
6047fi
6048fi
6049fi
6050CC=$ac_cv_prog_CC
6051if test -n "$CC"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6053$as_echo "$CC" >&6; }
6054else
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056$as_echo "no" >&6; }
6057fi
6058
6059
6060fi
6061if test -z "$CC"; then
6062 if test -n "$ac_tool_prefix"; then
6063 for ac_prog in cl.exe
6064 do
6065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6066set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006069if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006070 $as_echo_n "(cached) " >&6
6071else
6072 if test -n "$CC"; then
6073 ac_cv_prog_CC="$CC" # Let the user override the test.
6074else
6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006082 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6085 fi
6086done
6087 done
6088IFS=$as_save_IFS
6089
6090fi
6091fi
6092CC=$ac_cv_prog_CC
6093if test -n "$CC"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6095$as_echo "$CC" >&6; }
6096else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098$as_echo "no" >&6; }
6099fi
6100
6101
6102 test -n "$CC" && break
6103 done
6104fi
6105if test -z "$CC"; then
6106 ac_ct_CC=$CC
6107 for ac_prog in cl.exe
6108do
6109 # Extract the first word of "$ac_prog", so it can be a program name with args.
6110set dummy $ac_prog; ac_word=$2
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006113if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006114 $as_echo_n "(cached) " >&6
6115else
6116 if test -n "$ac_ct_CC"; then
6117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6118else
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006126 ac_cv_prog_ac_ct_CC="$ac_prog"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6129 fi
6130done
6131 done
6132IFS=$as_save_IFS
6133
6134fi
6135fi
6136ac_ct_CC=$ac_cv_prog_ac_ct_CC
6137if test -n "$ac_ct_CC"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6139$as_echo "$ac_ct_CC" >&6; }
6140else
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142$as_echo "no" >&6; }
6143fi
6144
6145
6146 test -n "$ac_ct_CC" && break
6147done
6148
6149 if test "x$ac_ct_CC" = x; then
6150 CC=""
6151 else
6152 case $cross_compiling:$ac_tool_warned in
6153yes:)
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6156ac_tool_warned=yes ;;
6157esac
6158 CC=$ac_ct_CC
6159 fi
6160fi
6161
6162fi
6163
6164
6165test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006167as_fn_error $? "no acceptable C compiler found in \$PATH
6168See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006169
6170# Provide some information about the compiler.
6171$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6172set X $ac_compile
6173ac_compiler=$2
6174for ac_option in --version -v -V -qversion; do
6175 { { ac_try="$ac_compiler $ac_option >&5"
6176case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6179esac
6180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6181$as_echo "$ac_try_echo"; } >&5
6182 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6183 ac_status=$?
6184 if test -s conftest.err; then
6185 sed '10a\
6186... rest of stderr output deleted ...
6187 10q' conftest.err >conftest.er1
6188 cat conftest.er1 >&5
6189 fi
6190 rm -f conftest.er1 conftest.err
6191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6192 test $ac_status = 0; }
6193done
6194
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6196$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006197if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006198 $as_echo_n "(cached) " >&6
6199else
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201/* end confdefs.h. */
6202
6203int
6204main ()
6205{
6206#ifndef __GNUC__
6207 choke me
6208#endif
6209
6210 ;
6211 return 0;
6212}
6213_ACEOF
6214if ac_fn_c_try_compile "$LINENO"; then :
6215 ac_compiler_gnu=yes
6216else
6217 ac_compiler_gnu=no
6218fi
6219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220ac_cv_c_compiler_gnu=$ac_compiler_gnu
6221
6222fi
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6224$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6225if test $ac_compiler_gnu = yes; then
6226 GCC=yes
6227else
6228 GCC=
6229fi
6230ac_test_CFLAGS=${CFLAGS+set}
6231ac_save_CFLAGS=$CFLAGS
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6233$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006234if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006235 $as_echo_n "(cached) " >&6
6236else
6237 ac_save_c_werror_flag=$ac_c_werror_flag
6238 ac_c_werror_flag=yes
6239 ac_cv_prog_cc_g=no
6240 CFLAGS="-g"
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242/* end confdefs.h. */
6243
6244int
6245main ()
6246{
6247
6248 ;
6249 return 0;
6250}
6251_ACEOF
6252if ac_fn_c_try_compile "$LINENO"; then :
6253 ac_cv_prog_cc_g=yes
6254else
6255 CFLAGS=""
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257/* end confdefs.h. */
6258
6259int
6260main ()
6261{
6262
6263 ;
6264 return 0;
6265}
6266_ACEOF
6267if ac_fn_c_try_compile "$LINENO"; then :
6268
6269else
6270 ac_c_werror_flag=$ac_save_c_werror_flag
6271 CFLAGS="-g"
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h. */
6274
6275int
6276main ()
6277{
6278
6279 ;
6280 return 0;
6281}
6282_ACEOF
6283if ac_fn_c_try_compile "$LINENO"; then :
6284 ac_cv_prog_cc_g=yes
6285fi
6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287fi
6288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289fi
6290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 ac_c_werror_flag=$ac_save_c_werror_flag
6292fi
6293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6294$as_echo "$ac_cv_prog_cc_g" >&6; }
6295if test "$ac_test_CFLAGS" = set; then
6296 CFLAGS=$ac_save_CFLAGS
6297elif test $ac_cv_prog_cc_g = yes; then
6298 if test "$GCC" = yes; then
6299 CFLAGS="-g -O2"
6300 else
6301 CFLAGS="-g"
6302 fi
6303else
6304 if test "$GCC" = yes; then
6305 CFLAGS="-O2"
6306 else
6307 CFLAGS=
6308 fi
6309fi
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6311$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006312if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006313 $as_echo_n "(cached) " >&6
6314else
6315 ac_cv_prog_cc_c89=no
6316ac_save_CC=$CC
6317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318/* end confdefs.h. */
6319#include <stdarg.h>
6320#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006321struct stat;
cristya0b81c32010-01-22 02:54:33 +00006322/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6323struct buf { int x; };
6324FILE * (*rcsopen) (struct buf *, struct stat *, int);
6325static char *e (p, i)
6326 char **p;
6327 int i;
6328{
6329 return p[i];
6330}
6331static char *f (char * (*g) (char **, int), char **p, ...)
6332{
6333 char *s;
6334 va_list v;
6335 va_start (v,p);
6336 s = g (p, va_arg (v,int));
6337 va_end (v);
6338 return s;
6339}
6340
6341/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6342 function prototypes and stuff, but not '\xHH' hex character constants.
6343 These don't provoke an error unfortunately, instead are silently treated
6344 as 'x'. The following induces an error, until -std is added to get
6345 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6346 array size at least. It's necessary to write '\x00'==0 to get something
6347 that's true only with -std. */
6348int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6349
6350/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6351 inside strings and character constants. */
6352#define FOO(x) 'x'
6353int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6354
6355int test (int i, double x);
6356struct s1 {int (*f) (int a);};
6357struct s2 {int (*f) (double a);};
6358int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6359int argc;
6360char **argv;
6361int
6362main ()
6363{
6364return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6365 ;
6366 return 0;
6367}
6368_ACEOF
6369for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6370 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6371do
6372 CC="$ac_save_CC $ac_arg"
6373 if ac_fn_c_try_compile "$LINENO"; then :
6374 ac_cv_prog_cc_c89=$ac_arg
6375fi
6376rm -f core conftest.err conftest.$ac_objext
6377 test "x$ac_cv_prog_cc_c89" != "xno" && break
6378done
6379rm -f conftest.$ac_ext
6380CC=$ac_save_CC
6381
6382fi
6383# AC_CACHE_VAL
6384case "x$ac_cv_prog_cc_c89" in
6385 x)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6387$as_echo "none needed" >&6; } ;;
6388 xno)
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6390$as_echo "unsupported" >&6; } ;;
6391 *)
6392 CC="$CC $ac_cv_prog_cc_c89"
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6394$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6395esac
6396if test "x$ac_cv_prog_cc_c89" != xno; then :
6397
6398fi
6399
6400ac_ext=c
6401ac_cpp='$CPP $CPPFLAGS'
6402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6404ac_compiler_gnu=$ac_cv_c_compiler_gnu
6405
cristy73bd4a52010-10-05 11:24:23 +00006406depcc="$CC" am_compiler_list=
6407
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6409$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006410if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006411 $as_echo_n "(cached) " >&6
6412else
6413 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6414 # We make a subdir and do the tests there. Otherwise we can end up
6415 # making bogus files that we don't know about and never remove. For
6416 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006417 # making a dummy file named 'D' -- because '-MD' means "put the output
6418 # in D".
cristy7247bba2012-02-05 16:37:27 +00006419 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006420 mkdir conftest.dir
6421 # Copy depcomp to subdir because otherwise we won't find it if we're
6422 # using a relative directory.
6423 cp "$am_depcomp" conftest.dir
6424 cd conftest.dir
6425 # We will build objects and dependencies in a subdirectory because
6426 # it helps to detect inapplicable dependency modes. For instance
6427 # both Tru64's cc and ICC support -MD to output dependencies as a
6428 # side effect of compilation, but ICC will put the dependencies in
6429 # the current directory while Tru64 will put them in the object
6430 # directory.
6431 mkdir sub
6432
6433 am_cv_CC_dependencies_compiler_type=none
6434 if test "$am_compiler_list" = ""; then
6435 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6436 fi
6437 am__universal=false
6438 case " $depcc " in #(
6439 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6440 esac
6441
6442 for depmode in $am_compiler_list; do
6443 # Setup a source with many dependencies, because some compilers
6444 # like to wrap large dependency lists on column 80 (with \), and
6445 # we should not choose a depcomp mode which is confused by this.
6446 #
6447 # We need to recreate these files for each test, as the compiler may
6448 # overwrite some of them when testing with obscure command lines.
6449 # This happens at least with the AIX C compiler.
6450 : > sub/conftest.c
6451 for i in 1 2 3 4 5 6; do
6452 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006453 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6454 # Solaris 10 /bin/sh.
6455 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006456 done
6457 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6458
cristyc0890a62012-07-19 00:18:20 +00006459 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006460 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006461 # handle '-M -o', and we need to detect this. Also, some Intel
6462 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006463 am__obj=sub/conftest.${OBJEXT-o}
6464 am__minus_obj="-o $am__obj"
6465 case $depmode in
6466 gcc)
6467 # This depmode causes a compiler race in universal mode.
6468 test "$am__universal" = false || continue
6469 ;;
6470 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006471 # After this tag, mechanisms are not by side-effect, so they'll
6472 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006473 if test "x$enable_dependency_tracking" = xyes; then
6474 continue
6475 else
6476 break
6477 fi
6478 ;;
cristy7247bba2012-02-05 16:37:27 +00006479 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006480 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006481 # not run yet. These depmodes are late enough in the game, and
6482 # so weak that their functioning should not be impacted.
6483 am__obj=conftest.${OBJEXT-o}
6484 am__minus_obj=
6485 ;;
6486 none) break ;;
6487 esac
6488 if depmode=$depmode \
6489 source=sub/conftest.c object=$am__obj \
6490 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6491 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6492 >/dev/null 2>conftest.err &&
6493 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6494 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6495 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6496 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6497 # icc doesn't choke on unknown options, it will just issue warnings
6498 # or remarks (even with -Werror). So we grep stderr for any message
6499 # that says an option was ignored or not supported.
6500 # When given -MP, icc 7.0 and 7.1 complain thusly:
6501 # icc: Command line warning: ignoring option '-M'; no argument required
6502 # The diagnosis changed in icc 8.0:
6503 # icc: Command line remark: option '-MP' not supported
6504 if (grep 'ignoring option' conftest.err ||
6505 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6506 am_cv_CC_dependencies_compiler_type=$depmode
6507 break
6508 fi
6509 fi
6510 done
6511
6512 cd ..
6513 rm -rf conftest.dir
6514else
6515 am_cv_CC_dependencies_compiler_type=none
6516fi
6517
6518fi
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6520$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6521CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6522
6523 if
6524 test "x$enable_dependency_tracking" != xno \
6525 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6526 am__fastdepCC_TRUE=
6527 am__fastdepCC_FALSE='#'
6528else
6529 am__fastdepCC_TRUE='#'
6530 am__fastdepCC_FALSE=
6531fi
6532
6533
cristy95646052009-11-28 23:05:30 +00006534ac_ext=cpp
6535ac_cpp='$CXXCPP $CPPFLAGS'
6536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6539if test -z "$CXX"; then
6540 if test -n "$CCC"; then
6541 CXX=$CCC
6542 else
6543 if test -n "$ac_tool_prefix"; then
6544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6545 do
6546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6547set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006550if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006551 $as_echo_n "(cached) " >&6
6552else
6553 if test -n "$CXX"; then
6554 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6555else
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006563 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567done
6568 done
6569IFS=$as_save_IFS
6570
6571fi
6572fi
6573CXX=$ac_cv_prog_CXX
6574if test -n "$CXX"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6576$as_echo "$CXX" >&6; }
6577else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }
6580fi
6581
6582
6583 test -n "$CXX" && break
6584 done
6585fi
6586if test -z "$CXX"; then
6587 ac_ct_CXX=$CXX
6588 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6589do
6590 # Extract the first word of "$ac_prog", so it can be a program name with args.
6591set dummy $ac_prog; ac_word=$2
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006594if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006595 $as_echo_n "(cached) " >&6
6596else
6597 if test -n "$ac_ct_CXX"; then
6598 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006607 ac_cv_prog_ac_ct_CXX="$ac_prog"
6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611done
6612 done
6613IFS=$as_save_IFS
6614
6615fi
6616fi
6617ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6618if test -n "$ac_ct_CXX"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6620$as_echo "$ac_ct_CXX" >&6; }
6621else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
6624fi
6625
6626
6627 test -n "$ac_ct_CXX" && break
6628done
6629
6630 if test "x$ac_ct_CXX" = x; then
6631 CXX="g++"
6632 else
6633 case $cross_compiling:$ac_tool_warned in
6634yes:)
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6637ac_tool_warned=yes ;;
6638esac
6639 CXX=$ac_ct_CXX
6640 fi
6641fi
6642
6643 fi
6644fi
6645# Provide some information about the compiler.
6646$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6647set X $ac_compile
6648ac_compiler=$2
6649for ac_option in --version -v -V -qversion; do
6650 { { ac_try="$ac_compiler $ac_option >&5"
6651case "(($ac_try" in
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6654esac
6655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6656$as_echo "$ac_try_echo"; } >&5
6657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6658 ac_status=$?
6659 if test -s conftest.err; then
6660 sed '10a\
6661... rest of stderr output deleted ...
6662 10q' conftest.err >conftest.er1
6663 cat conftest.er1 >&5
6664 fi
6665 rm -f conftest.er1 conftest.err
6666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667 test $ac_status = 0; }
6668done
6669
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6671$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006672if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006673 $as_echo_n "(cached) " >&6
6674else
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676/* end confdefs.h. */
6677
6678int
6679main ()
6680{
6681#ifndef __GNUC__
6682 choke me
6683#endif
6684
6685 ;
6686 return 0;
6687}
6688_ACEOF
6689if ac_fn_cxx_try_compile "$LINENO"; then :
6690 ac_compiler_gnu=yes
6691else
6692 ac_compiler_gnu=no
6693fi
6694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6696
6697fi
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6699$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6700if test $ac_compiler_gnu = yes; then
6701 GXX=yes
6702else
6703 GXX=
6704fi
6705ac_test_CXXFLAGS=${CXXFLAGS+set}
6706ac_save_CXXFLAGS=$CXXFLAGS
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6708$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006709if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006710 $as_echo_n "(cached) " >&6
6711else
6712 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6713 ac_cxx_werror_flag=yes
6714 ac_cv_prog_cxx_g=no
6715 CXXFLAGS="-g"
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717/* end confdefs.h. */
6718
6719int
6720main ()
6721{
6722
6723 ;
6724 return 0;
6725}
6726_ACEOF
6727if ac_fn_cxx_try_compile "$LINENO"; then :
6728 ac_cv_prog_cxx_g=yes
6729else
6730 CXXFLAGS=""
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732/* end confdefs.h. */
6733
6734int
6735main ()
6736{
6737
6738 ;
6739 return 0;
6740}
6741_ACEOF
6742if ac_fn_cxx_try_compile "$LINENO"; then :
6743
6744else
6745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6746 CXXFLAGS="-g"
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748/* end confdefs.h. */
6749
6750int
6751main ()
6752{
6753
6754 ;
6755 return 0;
6756}
6757_ACEOF
6758if ac_fn_cxx_try_compile "$LINENO"; then :
6759 ac_cv_prog_cxx_g=yes
6760fi
6761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762fi
6763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764fi
6765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6767fi
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6769$as_echo "$ac_cv_prog_cxx_g" >&6; }
6770if test "$ac_test_CXXFLAGS" = set; then
6771 CXXFLAGS=$ac_save_CXXFLAGS
6772elif test $ac_cv_prog_cxx_g = yes; then
6773 if test "$GXX" = yes; then
6774 CXXFLAGS="-g -O2"
6775 else
6776 CXXFLAGS="-g"
6777 fi
6778else
6779 if test "$GXX" = yes; then
6780 CXXFLAGS="-O2"
6781 else
6782 CXXFLAGS=
6783 fi
6784fi
6785ac_ext=c
6786ac_cpp='$CPP $CPPFLAGS'
6787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789ac_compiler_gnu=$ac_cv_c_compiler_gnu
6790
cristy73bd4a52010-10-05 11:24:23 +00006791depcc="$CXX" am_compiler_list=
6792
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6794$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006795if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006796 $as_echo_n "(cached) " >&6
6797else
6798 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6799 # We make a subdir and do the tests there. Otherwise we can end up
6800 # making bogus files that we don't know about and never remove. For
6801 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006802 # making a dummy file named 'D' -- because '-MD' means "put the output
6803 # in D".
cristy7247bba2012-02-05 16:37:27 +00006804 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006805 mkdir conftest.dir
6806 # Copy depcomp to subdir because otherwise we won't find it if we're
6807 # using a relative directory.
6808 cp "$am_depcomp" conftest.dir
6809 cd conftest.dir
6810 # We will build objects and dependencies in a subdirectory because
6811 # it helps to detect inapplicable dependency modes. For instance
6812 # both Tru64's cc and ICC support -MD to output dependencies as a
6813 # side effect of compilation, but ICC will put the dependencies in
6814 # the current directory while Tru64 will put them in the object
6815 # directory.
6816 mkdir sub
6817
6818 am_cv_CXX_dependencies_compiler_type=none
6819 if test "$am_compiler_list" = ""; then
6820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6821 fi
6822 am__universal=false
6823 case " $depcc " in #(
6824 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6825 esac
6826
6827 for depmode in $am_compiler_list; do
6828 # Setup a source with many dependencies, because some compilers
6829 # like to wrap large dependency lists on column 80 (with \), and
6830 # we should not choose a depcomp mode which is confused by this.
6831 #
6832 # We need to recreate these files for each test, as the compiler may
6833 # overwrite some of them when testing with obscure command lines.
6834 # This happens at least with the AIX C compiler.
6835 : > sub/conftest.c
6836 for i in 1 2 3 4 5 6; do
6837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006838 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6839 # Solaris 10 /bin/sh.
6840 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006841 done
6842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6843
cristyc0890a62012-07-19 00:18:20 +00006844 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006845 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006846 # handle '-M -o', and we need to detect this. Also, some Intel
6847 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006848 am__obj=sub/conftest.${OBJEXT-o}
6849 am__minus_obj="-o $am__obj"
6850 case $depmode in
6851 gcc)
6852 # This depmode causes a compiler race in universal mode.
6853 test "$am__universal" = false || continue
6854 ;;
6855 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006856 # After this tag, mechanisms are not by side-effect, so they'll
6857 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006858 if test "x$enable_dependency_tracking" = xyes; then
6859 continue
6860 else
6861 break
6862 fi
6863 ;;
cristy7247bba2012-02-05 16:37:27 +00006864 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006865 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006866 # not run yet. These depmodes are late enough in the game, and
6867 # so weak that their functioning should not be impacted.
6868 am__obj=conftest.${OBJEXT-o}
6869 am__minus_obj=
6870 ;;
6871 none) break ;;
6872 esac
6873 if depmode=$depmode \
6874 source=sub/conftest.c object=$am__obj \
6875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6876 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6877 >/dev/null 2>conftest.err &&
6878 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6880 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6882 # icc doesn't choke on unknown options, it will just issue warnings
6883 # or remarks (even with -Werror). So we grep stderr for any message
6884 # that says an option was ignored or not supported.
6885 # When given -MP, icc 7.0 and 7.1 complain thusly:
6886 # icc: Command line warning: ignoring option '-M'; no argument required
6887 # The diagnosis changed in icc 8.0:
6888 # icc: Command line remark: option '-MP' not supported
6889 if (grep 'ignoring option' conftest.err ||
6890 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6891 am_cv_CXX_dependencies_compiler_type=$depmode
6892 break
6893 fi
6894 fi
6895 done
6896
6897 cd ..
6898 rm -rf conftest.dir
6899else
6900 am_cv_CXX_dependencies_compiler_type=none
6901fi
6902
6903fi
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6905$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6906CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6907
6908 if
6909 test "x$enable_dependency_tracking" != xno \
6910 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6911 am__fastdepCXX_TRUE=
6912 am__fastdepCXX_FALSE='#'
6913else
6914 am__fastdepCXX_TRUE='#'
6915 am__fastdepCXX_FALSE=
6916fi
6917
6918
cristy8b350f62009-11-15 23:12:43 +00006919 case $ac_cv_prog_cc_stdc in #(
6920 no) :
6921 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6922 *) :
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006924$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006925if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006926 $as_echo_n "(cached) " >&6
6927else
6928 ac_cv_prog_cc_c99=no
6929ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006931/* end confdefs.h. */
6932#include <stdarg.h>
6933#include <stdbool.h>
6934#include <stdlib.h>
6935#include <wchar.h>
6936#include <stdio.h>
6937
6938// Check varargs macros. These examples are taken from C99 6.10.3.5.
6939#define debug(...) fprintf (stderr, __VA_ARGS__)
6940#define showlist(...) puts (#__VA_ARGS__)
6941#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6942static void
6943test_varargs_macros (void)
6944{
6945 int x = 1234;
6946 int y = 5678;
6947 debug ("Flag");
6948 debug ("X = %d\n", x);
6949 showlist (The first, second, and third items.);
6950 report (x>y, "x is %d but y is %d", x, y);
6951}
6952
6953// Check long long types.
6954#define BIG64 18446744073709551615ull
6955#define BIG32 4294967295ul
6956#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6957#if !BIG_OK
6958 your preprocessor is broken;
6959#endif
6960#if BIG_OK
6961#else
6962 your preprocessor is broken;
6963#endif
6964static long long int bignum = -9223372036854775807LL;
6965static unsigned long long int ubignum = BIG64;
6966
6967struct incomplete_array
6968{
6969 int datasize;
6970 double data[];
6971};
6972
6973struct named_init {
6974 int number;
6975 const wchar_t *name;
6976 double average;
6977};
6978
6979typedef const char *ccp;
6980
6981static inline int
6982test_restrict (ccp restrict text)
6983{
6984 // See if C++-style comments work.
6985 // Iterate through items via the restricted pointer.
6986 // Also check for declarations in for loops.
6987 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6988 continue;
6989 return 0;
6990}
6991
6992// Check varargs and va_copy.
6993static void
6994test_varargs (const char *format, ...)
6995{
6996 va_list args;
6997 va_start (args, format);
6998 va_list args_copy;
6999 va_copy (args_copy, args);
7000
7001 const char *str;
7002 int number;
7003 float fnumber;
7004
7005 while (*format)
7006 {
7007 switch (*format++)
7008 {
7009 case 's': // string
7010 str = va_arg (args_copy, const char *);
7011 break;
7012 case 'd': // int
7013 number = va_arg (args_copy, int);
7014 break;
7015 case 'f': // float
7016 fnumber = va_arg (args_copy, double);
7017 break;
7018 default:
7019 break;
7020 }
7021 }
7022 va_end (args_copy);
7023 va_end (args);
7024}
7025
7026int
7027main ()
7028{
7029
7030 // Check bool.
7031 _Bool success = false;
7032
7033 // Check restrict.
7034 if (test_restrict ("String literal") == 0)
7035 success = true;
7036 char *restrict newvar = "Another string";
7037
7038 // Check varargs.
7039 test_varargs ("s, d' f .", "string", 65, 34.234);
7040 test_varargs_macros ();
7041
7042 // Check flexible array members.
7043 struct incomplete_array *ia =
7044 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7045 ia->datasize = 10;
7046 for (int i = 0; i < ia->datasize; ++i)
7047 ia->data[i] = i * 1.234;
7048
7049 // Check named initializers.
7050 struct named_init ni = {
7051 .number = 34,
7052 .name = L"Test wide string",
7053 .average = 543.34343,
7054 };
7055
7056 ni.number = 58;
7057
7058 int dynamic_array[ni.number];
7059 dynamic_array[ni.number - 1] = 543;
7060
7061 // work around unused variable warnings
7062 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7063 || dynamic_array[ni.number - 1] != 543);
7064
7065 ;
7066 return 0;
7067}
7068_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007069for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007070do
7071 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007072 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007073 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007074fi
cristy3ed852e2009-09-05 21:47:34 +00007075rm -f core conftest.err conftest.$ac_objext
7076 test "x$ac_cv_prog_cc_c99" != "xno" && break
7077done
7078rm -f conftest.$ac_ext
7079CC=$ac_save_CC
7080
7081fi
7082# AC_CACHE_VAL
7083case "x$ac_cv_prog_cc_c99" in
7084 x)
cristy8b350f62009-11-15 23:12:43 +00007085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007086$as_echo "none needed" >&6; } ;;
7087 xno)
cristy8b350f62009-11-15 23:12:43 +00007088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007089$as_echo "unsupported" >&6; } ;;
7090 *)
7091 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007093$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7094esac
cristy8b350f62009-11-15 23:12:43 +00007095if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007096 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7097else
cristy8b350f62009-11-15 23:12:43 +00007098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007099$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007100if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007101 $as_echo_n "(cached) " >&6
7102else
7103 ac_cv_prog_cc_c89=no
7104ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007106/* end confdefs.h. */
7107#include <stdarg.h>
7108#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007109struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007110/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7111struct buf { int x; };
7112FILE * (*rcsopen) (struct buf *, struct stat *, int);
7113static char *e (p, i)
7114 char **p;
7115 int i;
7116{
7117 return p[i];
7118}
7119static char *f (char * (*g) (char **, int), char **p, ...)
7120{
7121 char *s;
7122 va_list v;
7123 va_start (v,p);
7124 s = g (p, va_arg (v,int));
7125 va_end (v);
7126 return s;
7127}
7128
7129/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7130 function prototypes and stuff, but not '\xHH' hex character constants.
7131 These don't provoke an error unfortunately, instead are silently treated
7132 as 'x'. The following induces an error, until -std is added to get
7133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7134 array size at least. It's necessary to write '\x00'==0 to get something
7135 that's true only with -std. */
7136int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7137
7138/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7139 inside strings and character constants. */
7140#define FOO(x) 'x'
7141int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7142
7143int test (int i, double x);
7144struct s1 {int (*f) (int a);};
7145struct s2 {int (*f) (double a);};
7146int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7147int argc;
7148char **argv;
7149int
7150main ()
7151{
7152return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7153 ;
7154 return 0;
7155}
7156_ACEOF
7157for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7158 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7159do
7160 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007161 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007162 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007163fi
cristy3ed852e2009-09-05 21:47:34 +00007164rm -f core conftest.err conftest.$ac_objext
7165 test "x$ac_cv_prog_cc_c89" != "xno" && break
7166done
7167rm -f conftest.$ac_ext
7168CC=$ac_save_CC
7169
7170fi
7171# AC_CACHE_VAL
7172case "x$ac_cv_prog_cc_c89" in
7173 x)
cristy8b350f62009-11-15 23:12:43 +00007174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007175$as_echo "none needed" >&6; } ;;
7176 xno)
cristy8b350f62009-11-15 23:12:43 +00007177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007178$as_echo "unsupported" >&6; } ;;
7179 *)
7180 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007182$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7183esac
cristy8b350f62009-11-15 23:12:43 +00007184if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007185 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7186else
7187 ac_cv_prog_cc_stdc=no
7188fi
7189
cristy3ed852e2009-09-05 21:47:34 +00007190fi
cristy3ed852e2009-09-05 21:47:34 +00007191 ;;
7192esac
cristy8b350f62009-11-15 23:12:43 +00007193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007194$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007195 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007196 $as_echo_n "(cached) " >&6
7197fi
7198
cristy8b350f62009-11-15 23:12:43 +00007199 case $ac_cv_prog_cc_stdc in #(
7200 no) :
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7202$as_echo "unsupported" >&6; } ;; #(
7203 '') :
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7205$as_echo "none needed" >&6; } ;; #(
7206 *) :
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007208$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7209esac
7210
cristy3ed852e2009-09-05 21:47:34 +00007211ac_ext=c
7212ac_cpp='$CPP $CPPFLAGS'
7213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007217$as_echo_n "checking how to run the C preprocessor... " >&6; }
7218# On Suns, sometimes $CPP names a directory.
7219if test -n "$CPP" && test -d "$CPP"; then
7220 CPP=
7221fi
7222if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007223 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007224 $as_echo_n "(cached) " >&6
7225else
7226 # Double quotes because CPP needs to be expanded
7227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7228 do
7229 ac_preproc_ok=false
7230for ac_c_preproc_warn_flag in '' yes
7231do
7232 # Use a header file that comes with gcc, so configuring glibc
7233 # with a fresh cross-compiler works.
7234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7235 # <limits.h> exists even on freestanding compilers.
7236 # On the NeXT, cc -E runs the code through the compiler's parser,
7237 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007239/* end confdefs.h. */
7240#ifdef __STDC__
7241# include <limits.h>
7242#else
7243# include <assert.h>
7244#endif
7245 Syntax error
7246_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007247if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007248
cristy8b350f62009-11-15 23:12:43 +00007249else
cristy3ed852e2009-09-05 21:47:34 +00007250 # Broken: fails on valid input.
7251continue
7252fi
cristyda16f162011-02-19 23:52:17 +00007253rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007254
7255 # OK, works on sane cases. Now check whether nonexistent headers
7256 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007258/* end confdefs.h. */
7259#include <ac_nonexistent.h>
7260_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007261if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007262 # Broken: success on invalid input.
7263continue
7264else
cristy3ed852e2009-09-05 21:47:34 +00007265 # Passes both tests.
7266ac_preproc_ok=:
7267break
7268fi
cristyda16f162011-02-19 23:52:17 +00007269rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007270
7271done
7272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007273rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007274if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007275 break
7276fi
7277
7278 done
7279 ac_cv_prog_CPP=$CPP
7280
7281fi
7282 CPP=$ac_cv_prog_CPP
7283else
7284 ac_cv_prog_CPP=$CPP
7285fi
cristy8b350f62009-11-15 23:12:43 +00007286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007287$as_echo "$CPP" >&6; }
7288ac_preproc_ok=false
7289for ac_c_preproc_warn_flag in '' yes
7290do
7291 # Use a header file that comes with gcc, so configuring glibc
7292 # with a fresh cross-compiler works.
7293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7294 # <limits.h> exists even on freestanding compilers.
7295 # On the NeXT, cc -E runs the code through the compiler's parser,
7296 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007298/* end confdefs.h. */
7299#ifdef __STDC__
7300# include <limits.h>
7301#else
7302# include <assert.h>
7303#endif
7304 Syntax error
7305_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007306if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007307
cristy8b350f62009-11-15 23:12:43 +00007308else
cristy3ed852e2009-09-05 21:47:34 +00007309 # Broken: fails on valid input.
7310continue
7311fi
cristyda16f162011-02-19 23:52:17 +00007312rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007313
7314 # OK, works on sane cases. Now check whether nonexistent headers
7315 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007317/* end confdefs.h. */
7318#include <ac_nonexistent.h>
7319_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007320if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007321 # Broken: success on invalid input.
7322continue
7323else
cristy3ed852e2009-09-05 21:47:34 +00007324 # Passes both tests.
7325ac_preproc_ok=:
7326break
7327fi
cristyda16f162011-02-19 23:52:17 +00007328rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007329
7330done
7331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007332rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007333if $ac_preproc_ok; then :
7334
cristy3ed852e2009-09-05 21:47:34 +00007335else
cristy8b350f62009-11-15 23:12:43 +00007336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007338as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7339See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007340fi
7341
7342ac_ext=c
7343ac_cpp='$CPP $CPPFLAGS'
7344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7346ac_compiler_gnu=$ac_cv_c_compiler_gnu
7347
cristy73bd4a52010-10-05 11:24:23 +00007348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7349$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007350if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007351 $as_echo_n "(cached) " >&6
7352else
7353 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7354 for ac_i in 1 2 3 4 5 6 7; do
7355 ac_script="$ac_script$as_nl$ac_script"
7356 done
7357 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7358 { ac_script=; unset ac_script;}
7359 if test -z "$SED"; then
7360 ac_path_SED_found=false
7361 # Loop through the user's path and test for each of PROGNAME-LIST
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_prog in sed gsed; do
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007370 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007371# Check for GNU ac_path_SED and select it if it is found.
7372 # Check for GNU $ac_path_SED
7373case `"$ac_path_SED" --version 2>&1` in
7374*GNU*)
7375 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7376*)
7377 ac_count=0
7378 $as_echo_n 0123456789 >"conftest.in"
7379 while :
7380 do
7381 cat "conftest.in" "conftest.in" >"conftest.tmp"
7382 mv "conftest.tmp" "conftest.in"
7383 cp "conftest.in" "conftest.nl"
7384 $as_echo '' >> "conftest.nl"
7385 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7387 as_fn_arith $ac_count + 1 && ac_count=$as_val
7388 if test $ac_count -gt ${ac_path_SED_max-0}; then
7389 # Best one so far, save it but keep looking for a better one
7390 ac_cv_path_SED="$ac_path_SED"
7391 ac_path_SED_max=$ac_count
7392 fi
7393 # 10*(2^10) chars as input seems more than enough
7394 test $ac_count -gt 10 && break
7395 done
7396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7397esac
7398
7399 $ac_path_SED_found && break 3
7400 done
7401 done
7402 done
7403IFS=$as_save_IFS
7404 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007405 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007406 fi
7407else
7408 ac_cv_path_SED=$SED
7409fi
7410
7411fi
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7413$as_echo "$ac_cv_path_SED" >&6; }
7414 SED="$ac_cv_path_SED"
7415 rm -f conftest.sed
7416
7417test -z "$SED" && SED=sed
7418Xsed="$SED -e 1s/^X//"
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7431$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007432if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007433 $as_echo_n "(cached) " >&6
7434else
7435 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7436 then ac_cv_path_FGREP="$GREP -F"
7437 else
7438 if test -z "$FGREP"; then
7439 ac_path_FGREP_found=false
7440 # Loop through the user's path and test for each of PROGNAME-LIST
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_prog in fgrep; do
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007449 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007450# Check for GNU ac_path_FGREP and select it if it is found.
7451 # Check for GNU $ac_path_FGREP
7452case `"$ac_path_FGREP" --version 2>&1` in
7453*GNU*)
7454 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7455*)
7456 ac_count=0
7457 $as_echo_n 0123456789 >"conftest.in"
7458 while :
7459 do
7460 cat "conftest.in" "conftest.in" >"conftest.tmp"
7461 mv "conftest.tmp" "conftest.in"
7462 cp "conftest.in" "conftest.nl"
7463 $as_echo 'FGREP' >> "conftest.nl"
7464 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7466 as_fn_arith $ac_count + 1 && ac_count=$as_val
7467 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7468 # Best one so far, save it but keep looking for a better one
7469 ac_cv_path_FGREP="$ac_path_FGREP"
7470 ac_path_FGREP_max=$ac_count
7471 fi
7472 # 10*(2^10) chars as input seems more than enough
7473 test $ac_count -gt 10 && break
7474 done
7475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7476esac
7477
7478 $ac_path_FGREP_found && break 3
7479 done
7480 done
7481 done
7482IFS=$as_save_IFS
7483 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007484 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007485 fi
7486else
7487 ac_cv_path_FGREP=$FGREP
7488fi
7489
7490 fi
7491fi
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7493$as_echo "$ac_cv_path_FGREP" >&6; }
7494 FGREP="$ac_cv_path_FGREP"
7495
7496
7497test -z "$GREP" && GREP=grep
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
cristy0c60a692010-11-04 01:09:47 +00007515ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7516ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7517ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7518
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7520$as_echo_n "checking how to print strings... " >&6; }
7521# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007522if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007523 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7524 ECHO='print -r --'
7525elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7526 ECHO='printf %s\n'
7527else
7528 # Use this function as a fallback that always works.
7529 func_fallback_echo ()
7530 {
7531 eval 'cat <<_LTECHO_EOF
7532$1
7533_LTECHO_EOF'
7534 }
7535 ECHO='func_fallback_echo'
7536fi
7537
7538# func_echo_all arg...
7539# Invoke $ECHO with all args, space-separated.
7540func_echo_all ()
7541{
7542 $ECHO ""
7543}
7544
7545case "$ECHO" in
7546 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7547$as_echo "printf" >&6; } ;;
7548 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7549$as_echo "print -r" >&6; } ;;
7550 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7551$as_echo "cat" >&6; } ;;
7552esac
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
cristy73bd4a52010-10-05 11:24:23 +00007567
7568
7569# Check whether --with-gnu-ld was given.
7570if test "${with_gnu_ld+set}" = set; then :
7571 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7572else
7573 with_gnu_ld=no
7574fi
7575
7576ac_prog=ld
7577if test "$GCC" = yes; then
7578 # Check if gcc -print-prog-name=ld gives a path.
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7580$as_echo_n "checking for ld used by $CC... " >&6; }
7581 case $host in
7582 *-*-mingw*)
7583 # gcc leaves a trailing carriage return which upsets mingw
7584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7585 *)
7586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7587 esac
7588 case $ac_prog in
7589 # Accept absolute paths.
7590 [\\/]* | ?:[\\/]*)
7591 re_direlt='/[^/][^/]*/\.\./'
7592 # Canonicalize the pathname of ld
7593 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7594 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7595 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7596 done
7597 test -z "$LD" && LD="$ac_prog"
7598 ;;
7599 "")
7600 # If it fails, then pretend we aren't using GCC.
7601 ac_prog=ld
7602 ;;
7603 *)
7604 # If it is relative, then search for the first ld in PATH.
7605 with_gnu_ld=unknown
7606 ;;
7607 esac
7608elif test "$with_gnu_ld" = yes; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7610$as_echo_n "checking for GNU ld... " >&6; }
7611else
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7613$as_echo_n "checking for non-GNU ld... " >&6; }
7614fi
cristyda16f162011-02-19 23:52:17 +00007615if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007616 $as_echo_n "(cached) " >&6
7617else
7618 if test -z "$LD"; then
7619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7620 for ac_dir in $PATH; do
7621 IFS="$lt_save_ifs"
7622 test -z "$ac_dir" && ac_dir=.
7623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7624 lt_cv_path_LD="$ac_dir/$ac_prog"
7625 # Check to see if the program is GNU ld. I'd rather use --version,
7626 # but apparently some variants of GNU ld only accept -v.
7627 # Break only if it was the GNU/non-GNU ld that we prefer.
7628 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7629 *GNU* | *'with BFD'*)
7630 test "$with_gnu_ld" != no && break
7631 ;;
7632 *)
7633 test "$with_gnu_ld" != yes && break
7634 ;;
7635 esac
7636 fi
7637 done
7638 IFS="$lt_save_ifs"
7639else
7640 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7641fi
7642fi
7643
7644LD="$lt_cv_path_LD"
7645if test -n "$LD"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7647$as_echo "$LD" >&6; }
7648else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
7651fi
cristy98dddb52010-11-04 00:30:15 +00007652test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7654$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007655if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007656 $as_echo_n "(cached) " >&6
7657else
7658 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7659case `$LD -v 2>&1 </dev/null` in
7660*GNU* | *'with BFD'*)
7661 lt_cv_prog_gnu_ld=yes
7662 ;;
7663*)
7664 lt_cv_prog_gnu_ld=no
7665 ;;
7666esac
7667fi
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7669$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7670with_gnu_ld=$lt_cv_prog_gnu_ld
7671
7672
7673
7674
7675
7676
7677
7678
7679
cristy3ed852e2009-09-05 21:47:34 +00007680
cristy837d6dc2010-02-27 01:16:57 +00007681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7682$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007683if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007684 $as_echo_n "(cached) " >&6
7685else
7686 ac_cv_prog_cc_c99=no
7687ac_save_CC=$CC
7688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689/* end confdefs.h. */
7690#include <stdarg.h>
7691#include <stdbool.h>
7692#include <stdlib.h>
7693#include <wchar.h>
7694#include <stdio.h>
7695
7696// Check varargs macros. These examples are taken from C99 6.10.3.5.
7697#define debug(...) fprintf (stderr, __VA_ARGS__)
7698#define showlist(...) puts (#__VA_ARGS__)
7699#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7700static void
7701test_varargs_macros (void)
7702{
7703 int x = 1234;
7704 int y = 5678;
7705 debug ("Flag");
7706 debug ("X = %d\n", x);
7707 showlist (The first, second, and third items.);
7708 report (x>y, "x is %d but y is %d", x, y);
7709}
7710
7711// Check long long types.
7712#define BIG64 18446744073709551615ull
7713#define BIG32 4294967295ul
7714#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7715#if !BIG_OK
7716 your preprocessor is broken;
7717#endif
7718#if BIG_OK
7719#else
7720 your preprocessor is broken;
7721#endif
7722static long long int bignum = -9223372036854775807LL;
7723static unsigned long long int ubignum = BIG64;
7724
7725struct incomplete_array
7726{
7727 int datasize;
7728 double data[];
7729};
7730
7731struct named_init {
7732 int number;
7733 const wchar_t *name;
7734 double average;
7735};
7736
7737typedef const char *ccp;
7738
7739static inline int
7740test_restrict (ccp restrict text)
7741{
7742 // See if C++-style comments work.
7743 // Iterate through items via the restricted pointer.
7744 // Also check for declarations in for loops.
7745 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7746 continue;
7747 return 0;
7748}
7749
7750// Check varargs and va_copy.
7751static void
7752test_varargs (const char *format, ...)
7753{
7754 va_list args;
7755 va_start (args, format);
7756 va_list args_copy;
7757 va_copy (args_copy, args);
7758
7759 const char *str;
7760 int number;
7761 float fnumber;
7762
7763 while (*format)
7764 {
7765 switch (*format++)
7766 {
7767 case 's': // string
7768 str = va_arg (args_copy, const char *);
7769 break;
7770 case 'd': // int
7771 number = va_arg (args_copy, int);
7772 break;
7773 case 'f': // float
7774 fnumber = va_arg (args_copy, double);
7775 break;
7776 default:
7777 break;
7778 }
7779 }
7780 va_end (args_copy);
7781 va_end (args);
7782}
7783
7784int
7785main ()
7786{
7787
7788 // Check bool.
7789 _Bool success = false;
7790
7791 // Check restrict.
7792 if (test_restrict ("String literal") == 0)
7793 success = true;
7794 char *restrict newvar = "Another string";
7795
7796 // Check varargs.
7797 test_varargs ("s, d' f .", "string", 65, 34.234);
7798 test_varargs_macros ();
7799
7800 // Check flexible array members.
7801 struct incomplete_array *ia =
7802 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7803 ia->datasize = 10;
7804 for (int i = 0; i < ia->datasize; ++i)
7805 ia->data[i] = i * 1.234;
7806
7807 // Check named initializers.
7808 struct named_init ni = {
7809 .number = 34,
7810 .name = L"Test wide string",
7811 .average = 543.34343,
7812 };
7813
7814 ni.number = 58;
7815
7816 int dynamic_array[ni.number];
7817 dynamic_array[ni.number - 1] = 543;
7818
7819 // work around unused variable warnings
7820 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7821 || dynamic_array[ni.number - 1] != 543);
7822
7823 ;
7824 return 0;
7825}
7826_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007827for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007828do
7829 CC="$ac_save_CC $ac_arg"
7830 if ac_fn_c_try_compile "$LINENO"; then :
7831 ac_cv_prog_cc_c99=$ac_arg
7832fi
7833rm -f core conftest.err conftest.$ac_objext
7834 test "x$ac_cv_prog_cc_c99" != "xno" && break
7835done
7836rm -f conftest.$ac_ext
7837CC=$ac_save_CC
7838
7839fi
7840# AC_CACHE_VAL
7841case "x$ac_cv_prog_cc_c99" in
7842 x)
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7844$as_echo "none needed" >&6; } ;;
7845 xno)
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7847$as_echo "unsupported" >&6; } ;;
7848 *)
7849 CC="$CC $ac_cv_prog_cc_c99"
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7851$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7852esac
7853if test "x$ac_cv_prog_cc_c99" != xno; then :
7854
7855fi
7856
7857
cristy73bd4a52010-10-05 11:24:23 +00007858if test "x$CC" != xcc; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7860$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7861else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7863$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7864fi
7865set dummy $CC; ac_cc=`$as_echo "$2" |
7866 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007867if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007868 $as_echo_n "(cached) " >&6
7869else
cristy73bd4a52010-10-05 11:24:23 +00007870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h. */
7872
7873int
7874main ()
7875{
7876
7877 ;
7878 return 0;
7879}
7880_ACEOF
7881# Make sure it works both with $CC and with simple cc.
7882# We do the test twice because some compilers refuse to overwrite an
7883# existing .o file with -o, though they will create one.
7884ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7885rm -f conftest2.*
7886if { { case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7889esac
7890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7891$as_echo "$ac_try_echo"; } >&5
7892 (eval "$ac_try") 2>&5
7893 ac_status=$?
7894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7895 test $ac_status = 0; } &&
7896 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7899esac
7900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7901$as_echo "$ac_try_echo"; } >&5
7902 (eval "$ac_try") 2>&5
7903 ac_status=$?
7904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7905 test $ac_status = 0; };
7906then
7907 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7908 if test "x$CC" != xcc; then
7909 # Test first that cc exists at all.
7910 if { ac_try='cc -c conftest.$ac_ext >&5'
7911 { { case "(($ac_try" in
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7914esac
7915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7916$as_echo "$ac_try_echo"; } >&5
7917 (eval "$ac_try") 2>&5
7918 ac_status=$?
7919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7920 test $ac_status = 0; }; }; then
7921 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7922 rm -f conftest2.*
7923 if { { case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926esac
7927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7928$as_echo "$ac_try_echo"; } >&5
7929 (eval "$ac_try") 2>&5
7930 ac_status=$?
7931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7932 test $ac_status = 0; } &&
7933 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936esac
7937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7938$as_echo "$ac_try_echo"; } >&5
7939 (eval "$ac_try") 2>&5
7940 ac_status=$?
7941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7942 test $ac_status = 0; };
7943 then
7944 # cc works too.
7945 :
7946 else
7947 # cc exists but doesn't like -o.
7948 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7949 fi
7950 fi
7951 fi
7952else
7953 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7954fi
7955rm -f core conftest*
7956
7957fi
7958if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7960$as_echo "yes" >&6; }
7961else
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963$as_echo "no" >&6; }
7964
7965$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7966
7967fi
7968
7969# FIXME: we rely on the cache variable name because
7970# there is no other way.
7971set dummy $CC
7972am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7973eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7974if test "$am_t" != yes; then
7975 # Losing compiler, so override with the script.
7976 # FIXME: It is wrong to rewrite CC.
7977 # But if we don't then we get into trouble of one sort or another.
7978 # A longer-term fix would be to have automake use am__CC in this case,
7979 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7980 CC="$am_aux_dir/compile $CC"
7981fi
7982
7983
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7985$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007986if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007987 $as_echo_n "(cached) " >&6
7988else
7989 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007990 ac_ext=c
7991ac_cpp='$CPP $CPPFLAGS'
7992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995
7996 ac_save_CFLAGS="$CFLAGS"
7997for 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" #
7998do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000/* end confdefs.h. */
8001
8002int
8003main ()
8004{
cristy24fc1fe2010-10-23 21:13:01 +00008005
cristy73bd4a52010-10-05 11:24:23 +00008006 ;
8007 return 0;
8008}
8009_ACEOF
8010if ac_fn_c_try_compile "$LINENO"; then :
8011 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8012fi
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014done
8015 CFLAGS="$ac_save_CFLAGS"
8016 ac_ext=c
8017ac_cpp='$CPP $CPPFLAGS'
8018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020ac_compiler_gnu=$ac_cv_c_compiler_gnu
8021
8022
8023fi
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8025$as_echo "$ac_cv_cflags_warn_all" >&6; }
8026case ".$ac_cv_cflags_warn_all" in
8027 .ok|.ok,*) ;;
8028 .|.no|.no,*)
8029 ;;
8030 *)
8031 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8032 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8033 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8034 ac_status=$?
8035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8036 test $ac_status = 0; }
8037 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8038 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8039 ac_status=$?
8040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8041 test $ac_status = 0; }
8042 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8043 fi
8044 ;;
nicolas6237c462010-10-05 06:11:49 +00008045esac
cristy3ed852e2009-09-05 21:47:34 +00008046
cristy016e8b82012-12-26 12:11:06 +00008047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8048$as_echo_n "checking for C compiler vendor... " >&6; }
8049if ${ax_cv_c_compiler_vendor+:} false; then :
8050 $as_echo_n "(cached) " >&6
8051else
8052 # note: don't check for gcc first since some other compilers define __GNUC__
8053 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8054 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8055 pathscale: __PATHCC__,__PATHSCALE__
8056 clang: __clang__
8057 gnu: __GNUC__
8058 sun: __SUNPRO_C,__SUNPRO_CC
8059 hp: __HP_cc,__HP_aCC
8060 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8061 borland: __BORLANDC__,__TURBOC__
8062 comeau: __COMO__
8063 cray: _CRAYC
8064 kai: __KCC
8065 lcc: __LCC__
8066 sgi: __sgi,sgi
8067 microsoft: _MSC_VER
8068 metrowerks: __MWERKS__
8069 watcom: __WATCOMC__
8070 portland: __PGI
8071 unknown: UNKNOWN"
8072 for ventest in $vendors; do
8073 case $ventest in
8074 *:) vendor=$ventest; continue ;;
8075 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8076 esac
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h. */
8079
8080int
8081main ()
8082{
8083
8084 #if !($vencpp)
8085 thisisanerror;
8086 #endif
8087
8088 ;
8089 return 0;
8090}
8091_ACEOF
8092if ac_fn_c_try_compile "$LINENO"; then :
8093 break
8094fi
8095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 done
8097 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8098
8099fi
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8101$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8102
cristya0b81c32010-01-22 02:54:33 +00008103
8104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8105$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8106set x ${MAKE-make}
8107ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008108if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008109 $as_echo_n "(cached) " >&6
8110else
8111 cat >conftest.make <<\_ACEOF
8112SHELL = /bin/sh
8113all:
8114 @echo '@@@%%%=$(MAKE)=@@@%%%'
8115_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008116# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008117case `${MAKE-make} -f conftest.make 2>/dev/null` in
8118 *@@@%%%=?*=@@@%%%*)
8119 eval ac_cv_prog_make_${ac_make}_set=yes;;
8120 *)
8121 eval ac_cv_prog_make_${ac_make}_set=no;;
8122esac
8123rm -f conftest.make
8124fi
8125if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8127$as_echo "yes" >&6; }
8128 SET_MAKE=
8129else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131$as_echo "no" >&6; }
8132 SET_MAKE="MAKE=${MAKE-make}"
8133fi
8134
cristy8b350f62009-11-15 23:12:43 +00008135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008136$as_echo_n "checking whether ln -s works... " >&6; }
8137LN_S=$as_ln_s
8138if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008140$as_echo "yes" >&6; }
8141else
cristy8b350f62009-11-15 23:12:43 +00008142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008143$as_echo "no, using $LN_S" >&6; }
8144fi
8145
cristy8d0ff762013-03-10 20:33:28 +00008146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8147$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8148if ${ac_cv_path_SED+:} false; then :
8149 $as_echo_n "(cached) " >&6
8150else
8151 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8152 for ac_i in 1 2 3 4 5 6 7; do
8153 ac_script="$ac_script$as_nl$ac_script"
8154 done
8155 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8156 { ac_script=; unset ac_script;}
8157 if test -z "$SED"; then
8158 ac_path_SED_found=false
8159 # Loop through the user's path and test for each of PROGNAME-LIST
8160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161for as_dir in $PATH
8162do
8163 IFS=$as_save_IFS
8164 test -z "$as_dir" && as_dir=.
8165 for ac_prog in sed gsed; do
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8168 as_fn_executable_p "$ac_path_SED" || continue
8169# Check for GNU ac_path_SED and select it if it is found.
8170 # Check for GNU $ac_path_SED
8171case `"$ac_path_SED" --version 2>&1` in
8172*GNU*)
8173 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8174*)
8175 ac_count=0
8176 $as_echo_n 0123456789 >"conftest.in"
8177 while :
8178 do
8179 cat "conftest.in" "conftest.in" >"conftest.tmp"
8180 mv "conftest.tmp" "conftest.in"
8181 cp "conftest.in" "conftest.nl"
8182 $as_echo '' >> "conftest.nl"
8183 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8185 as_fn_arith $ac_count + 1 && ac_count=$as_val
8186 if test $ac_count -gt ${ac_path_SED_max-0}; then
8187 # Best one so far, save it but keep looking for a better one
8188 ac_cv_path_SED="$ac_path_SED"
8189 ac_path_SED_max=$ac_count
8190 fi
8191 # 10*(2^10) chars as input seems more than enough
8192 test $ac_count -gt 10 && break
8193 done
8194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8195esac
8196
8197 $ac_path_SED_found && break 3
8198 done
8199 done
8200 done
8201IFS=$as_save_IFS
8202 if test -z "$ac_cv_path_SED"; then
8203 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8204 fi
8205else
8206 ac_cv_path_SED=$SED
8207fi
8208
8209fi
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8211$as_echo "$ac_cv_path_SED" >&6; }
8212 SED="$ac_cv_path_SED"
8213 rm -f conftest.sed
8214
cristybc556452012-08-17 19:44:03 +00008215for ac_prog in gawk mawk nawk awk
8216do
8217 # Extract the first word of "$ac_prog", so it can be a program name with args.
8218set dummy $ac_prog; ac_word=$2
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220$as_echo_n "checking for $ac_word... " >&6; }
8221if ${ac_cv_prog_AWK+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223else
8224 if test -n "$AWK"; then
8225 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8226else
8227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228for as_dir in $PATH
8229do
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8234 ac_cv_prog_AWK="$ac_prog"
8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 break 2
8237 fi
8238done
8239 done
8240IFS=$as_save_IFS
8241
8242fi
8243fi
8244AWK=$ac_cv_prog_AWK
8245if test -n "$AWK"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8247$as_echo "$AWK" >&6; }
8248else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250$as_echo "no" >&6; }
8251fi
8252
8253
8254 test -n "$AWK" && break
8255done
8256
cristy73bd4a52010-10-05 11:24:23 +00008257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8258$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8259
8260# Check whether --with-dmalloc was given.
8261if test "${with_dmalloc+set}" = set; then :
8262 withval=$with_dmalloc; if test "$withval" = yes; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8264$as_echo "yes" >&6; }
8265
8266$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8267
8268 LIBS="$LIBS -ldmalloc"
8269 LDFLAGS="$LDFLAGS -g"
8270else
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272$as_echo "no" >&6; }
8273fi
8274else
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276$as_echo "no" >&6; }
8277fi
8278
8279
8280
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8282$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008283if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008284 $as_echo_n "(cached) " >&6
8285else
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287/* end confdefs.h. */
8288#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008289 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008290 static void
8291 foo(void) {
8292 exit(1);
8293 }
8294
8295int
8296main ()
8297{
8298
8299 ;
8300 return 0;
8301}
8302_ACEOF
8303if ac_fn_c_try_compile "$LINENO"; then :
8304 ax_cv___attribute__=yes
8305else
8306 ax_cv___attribute__=no
8307
8308fi
8309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310
8311fi
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8313$as_echo "$ax_cv___attribute__" >&6; }
8314 if test "$ax_cv___attribute__" = "yes"; then
8315
8316$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8317
8318 fi
8319
8320
8321
cristy37110d62012-03-01 18:38:20 +00008322
8323
8324# Check whether --with-gcc-arch was given.
8325if test "${with_gcc_arch+set}" = set; then :
8326 withval=$with_gcc_arch; ax_gcc_arch=$withval
8327else
cristya32d1812012-03-02 19:24:21 +00008328 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008329fi
8330
8331
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8333$as_echo_n "checking for gcc architecture flag... " >&6; }
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8335$as_echo "" >&6; }
8336if ${ax_cv_gcc_archflag+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338else
8339
8340ax_cv_gcc_archflag="unknown"
8341
8342if test "$GCC" = yes; then
8343
8344if test "x$ax_gcc_arch" = xyes; then
8345ax_gcc_arch=""
8346if test "$cross_compiling" = no; then
8347case $host_cpu in
8348 i[3456]86*|x86_64*) # use cpuid codes
8349
8350ac_ext=c
8351ac_cpp='$CPP $CPPFLAGS'
8352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8354ac_compiler_gnu=$ac_cv_c_compiler_gnu
8355
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8357$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8358if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360else
8361 if test "$cross_compiling" = yes; then :
8362 ax_cv_gcc_x86_cpuid_0=unknown
8363else
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365/* end confdefs.h. */
8366#include <stdio.h>
8367int
8368main ()
8369{
8370
8371 int op = 0, eax, ebx, ecx, edx;
8372 FILE *f;
8373 __asm__("cpuid"
8374 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8375 : "a" (op));
8376 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8377 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8378 fclose(f);
8379 return 0;
8380
8381 ;
8382 return 0;
8383}
8384_ACEOF
8385if ac_fn_c_try_run "$LINENO"; then :
8386 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8387else
8388 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8389fi
8390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8391 conftest.$ac_objext conftest.beam conftest.$ac_ext
8392fi
8393
8394fi
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8396$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8397ac_ext=c
8398ac_cpp='$CPP $CPPFLAGS'
8399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8401ac_compiler_gnu=$ac_cv_c_compiler_gnu
8402
8403
8404
8405ac_ext=c
8406ac_cpp='$CPP $CPPFLAGS'
8407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8409ac_compiler_gnu=$ac_cv_c_compiler_gnu
8410
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8412$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8413if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415else
8416 if test "$cross_compiling" = yes; then :
8417 ax_cv_gcc_x86_cpuid_1=unknown
8418else
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420/* end confdefs.h. */
8421#include <stdio.h>
8422int
8423main ()
8424{
8425
8426 int op = 1, eax, ebx, ecx, edx;
8427 FILE *f;
8428 __asm__("cpuid"
8429 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8430 : "a" (op));
8431 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8432 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8433 fclose(f);
8434 return 0;
8435
8436 ;
8437 return 0;
8438}
8439_ACEOF
8440if ac_fn_c_try_run "$LINENO"; then :
8441 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8442else
8443 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8444fi
8445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8446 conftest.$ac_objext conftest.beam conftest.$ac_ext
8447fi
8448
8449fi
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8451$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8452ac_ext=c
8453ac_cpp='$CPP $CPPFLAGS'
8454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8456ac_compiler_gnu=$ac_cv_c_compiler_gnu
8457
8458
8459 case $ax_cv_gcc_x86_cpuid_0 in
8460 *:756e6547:*:*) # Intel
8461 case $ax_cv_gcc_x86_cpuid_1 in
8462 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8463 *5??:*:*:*) ax_gcc_arch=pentium ;;
8464 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8465 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8466 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8467 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8468 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8469 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8470 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8471 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8472 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8473 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8474 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8475 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8476 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8477 case $host_cpu in
8478 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8479 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8480 esac ;;
8481 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8482 esac ;;
8483 *:68747541:*:*) # AMD
8484 case $ax_cv_gcc_x86_cpuid_1 in
8485 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8486 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8487 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8488 *60?:*:*:*) ax_gcc_arch=k7 ;;
8489 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8490 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8491 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8492 *6[68a]?:*:*:*)
8493
8494ac_ext=c
8495ac_cpp='$CPP $CPPFLAGS'
8496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8498ac_compiler_gnu=$ac_cv_c_compiler_gnu
8499
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8501$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8502if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8503 $as_echo_n "(cached) " >&6
8504else
8505 if test "$cross_compiling" = yes; then :
8506 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8507else
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509/* end confdefs.h. */
8510#include <stdio.h>
8511int
8512main ()
8513{
8514
8515 int op = 0x80000006, eax, ebx, ecx, edx;
8516 FILE *f;
8517 __asm__("cpuid"
8518 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8519 : "a" (op));
8520 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8521 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8522 fclose(f);
8523 return 0;
8524
8525 ;
8526 return 0;
8527}
8528_ACEOF
8529if ac_fn_c_try_run "$LINENO"; then :
8530 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8531else
8532 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8533fi
8534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8535 conftest.$ac_objext conftest.beam conftest.$ac_ext
8536fi
8537
8538fi
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8540$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8541ac_ext=c
8542ac_cpp='$CPP $CPPFLAGS'
8543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545ac_compiler_gnu=$ac_cv_c_compiler_gnu
8546
8547 # L2 cache size
8548 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8549 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8550 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8551 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8552 esac ;;
8553 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8554 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8555 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8556 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8557 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8558 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8559 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8560 esac ;;
8561 *:746e6543:*:*) # IDT
8562 case $ax_cv_gcc_x86_cpuid_1 in
8563 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8564 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8565 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8566 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8567 esac ;;
8568 esac
8569 if test x"$ax_gcc_arch" = x; then # fallback
8570 case $host_cpu in
8571 i586*) ax_gcc_arch=pentium ;;
8572 i686*) ax_gcc_arch=pentiumpro ;;
8573 esac
8574 fi
8575 ;;
8576
8577 sparc*)
8578 # Extract the first word of "prtdiag", so it can be a program name with args.
8579set dummy prtdiag; ac_word=$2
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581$as_echo_n "checking for $ac_word... " >&6; }
8582if ${ac_cv_path_PRTDIAG+:} false; then :
8583 $as_echo_n "(cached) " >&6
8584else
8585 case $PRTDIAG in
8586 [\\/]* | ?:[\\/]*)
8587 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8588 ;;
8589 *)
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8592for as_dir in $as_dummy
8593do
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008598 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 break 2
8601 fi
8602done
8603 done
8604IFS=$as_save_IFS
8605
8606 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8607 ;;
8608esac
8609fi
8610PRTDIAG=$ac_cv_path_PRTDIAG
8611if test -n "$PRTDIAG"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8613$as_echo "$PRTDIAG" >&6; }
8614else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616$as_echo "no" >&6; }
8617fi
8618
8619
8620 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`
8621 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8622 case $cputype in
8623 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8624 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8625 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8626 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8627 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8628 *cypress*) ax_gcc_arch=cypress ;;
8629 esac ;;
8630
8631 alphaev5) ax_gcc_arch=ev5 ;;
8632 alphaev56) ax_gcc_arch=ev56 ;;
8633 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8634 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8635 alphaev6) ax_gcc_arch=ev6 ;;
8636 alphaev67) ax_gcc_arch=ev67 ;;
8637 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8638 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8639 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8640 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8641
8642 powerpc*)
8643 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`
8644 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8645 case $cputype in
8646 *750*) ax_gcc_arch="750 G3" ;;
8647 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8648 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8649 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8650 *970*) ax_gcc_arch="970 G5 power4";;
8651 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8652 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8653 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8654 *) ax_gcc_arch=$cputype ;;
8655 esac
8656 ax_gcc_arch="$ax_gcc_arch powerpc"
8657 ;;
8658esac
8659fi # not cross-compiling
8660fi # guess arch
8661
8662if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8663for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008664 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008665 flags="-mtune=$arch"
8666 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8667 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8668 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8669 else
8670 flags="-march=$arch -mcpu=$arch -m$arch"
8671 fi
8672 for flag in $flags; do
8673 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8675$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8676if eval \${$as_CACHEVAR+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678else
8679
8680 ax_check_save_flags=$CFLAGS
8681 CFLAGS="$CFLAGS $flag"
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683/* end confdefs.h. */
8684
8685int
8686main ()
8687{
8688
8689 ;
8690 return 0;
8691}
8692_ACEOF
8693if ac_fn_c_try_compile "$LINENO"; then :
8694 eval "$as_CACHEVAR=yes"
8695else
8696 eval "$as_CACHEVAR=no"
8697fi
8698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 CFLAGS=$ax_check_save_flags
8700fi
8701eval ac_res=\$$as_CACHEVAR
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8703$as_echo "$ac_res" >&6; }
8704if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8705 ax_cv_gcc_archflag=$flag; break
8706else
8707 :
8708fi
8709
8710 done
8711 test "x$ax_cv_gcc_archflag" = xunknown || break
8712done
8713fi
8714
8715fi # $GCC=yes
8716
8717fi
8718
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8720$as_echo_n "checking for gcc architecture flag... " >&6; }
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8722$as_echo "$ax_cv_gcc_archflag" >&6; }
8723if test "x$ax_cv_gcc_archflag" = xunknown; then
8724 :
8725else
8726 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8727fi
8728
8729
8730
cristy73bd4a52010-10-05 11:24:23 +00008731if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8732 if test -n "$ac_tool_prefix"; then
8733 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8734set dummy ${ac_tool_prefix}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_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008738 $as_echo_n "(cached) " >&6
8739else
8740 case $PKG_CONFIG in
8741 [\\/]* | ?:[\\/]*)
8742 ac_cv_path_PKG_CONFIG="$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_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
8763PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8764if test -n "$PKG_CONFIG"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8766$as_echo "$PKG_CONFIG" >&6; }
8767else
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769$as_echo "no" >&6; }
8770fi
8771
8772
8773fi
8774if test -z "$ac_cv_path_PKG_CONFIG"; then
8775 ac_pt_PKG_CONFIG=$PKG_CONFIG
8776 # Extract the first word of "pkg-config", so it can be a program name with args.
8777set dummy pkg-config; ac_word=$2
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008780if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008781 $as_echo_n "(cached) " >&6
8782else
8783 case $ac_pt_PKG_CONFIG in
8784 [\\/]* | ?:[\\/]*)
8785 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8786 ;;
8787 *)
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789for as_dir in $PATH
8790do
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008795 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8798 fi
8799done
8800 done
8801IFS=$as_save_IFS
8802
8803 ;;
8804esac
8805fi
8806ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8807if test -n "$ac_pt_PKG_CONFIG"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8809$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8810else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
8813fi
8814
8815 if test "x$ac_pt_PKG_CONFIG" = x; then
8816 PKG_CONFIG=""
8817 else
8818 case $cross_compiling:$ac_tool_warned in
8819yes:)
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8822ac_tool_warned=yes ;;
8823esac
8824 PKG_CONFIG=$ac_pt_PKG_CONFIG
8825 fi
8826else
8827 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8828fi
8829
8830fi
8831if test -n "$PKG_CONFIG"; then
8832 _pkg_min_version=0.9.0
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8834$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8835 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8837$as_echo "yes" >&6; }
8838 else
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
8841 PKG_CONFIG=""
8842 fi
8843
8844fi
cristy3ed852e2009-09-05 21:47:34 +00008845
cristy9b86f202012-11-28 21:55:35 +00008846# Check for linker script support
8847
8848 # Check whether --enable-ld-version-script was given.
8849if test "${enable_ld_version_script+set}" = set; then :
8850 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8851fi
8852
8853 if test -z "$have_ld_version_script"; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8855$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8856 save_LDFLAGS="$LDFLAGS"
8857 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8858 cat > conftest.map <<EOF
8859foo
8860EOF
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862/* end confdefs.h. */
8863
8864int
8865main ()
8866{
8867
8868 ;
8869 return 0;
8870}
8871_ACEOF
8872if ac_fn_c_try_link "$LINENO"; then :
8873 accepts_syntax_errors=yes
8874else
8875 accepts_syntax_errors=no
8876fi
8877rm -f core conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8879 if test "$accepts_syntax_errors" = no; then
8880 cat > conftest.map <<EOF
8881VERS_1 {
8882 global: sym;
8883};
8884
8885VERS_2 {
8886 global: sym;
8887} VERS_1;
8888EOF
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890/* end confdefs.h. */
8891
8892int
8893main ()
8894{
8895
8896 ;
8897 return 0;
8898}
8899_ACEOF
8900if ac_fn_c_try_link "$LINENO"; then :
8901 have_ld_version_script=yes
8902else
8903 have_ld_version_script=no
8904fi
8905rm -f core conftest.err conftest.$ac_objext \
8906 conftest$ac_exeext conftest.$ac_ext
8907 else
8908 have_ld_version_script=no
8909 fi
8910 rm -f conftest.map
8911 LDFLAGS="$save_LDFLAGS"
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8913$as_echo "$have_ld_version_script" >&6; }
8914 fi
8915 if test "$have_ld_version_script" = "yes"; then
8916 HAVE_LD_VERSION_SCRIPT_TRUE=
8917 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8918else
8919 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8920 HAVE_LD_VERSION_SCRIPT_FALSE=
8921fi
8922
8923
8924
cristy3ed852e2009-09-05 21:47:34 +00008925#
cristy3ed852e2009-09-05 21:47:34 +00008926# Enable run-time checking.
8927#
8928# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008929if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008930 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8931else
8932 enable_bounds_checking='no'
8933fi
8934
8935
8936if test "$enable_bounds_checking" = yes; then
8937
cristy8b350f62009-11-15 23:12:43 +00008938$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008939
8940fi
8941
8942#
8943# Tests for Windows
8944#
8945
8946
8947
8948GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008949native_win32_build='no'
8950cygwin_build='no'
8951case "${host_os}" in
8952 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008953 cygwin_build='yes'
8954 GDI32_LIBS='-lgdi32'
8955 ;;
8956 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008957 native_win32_build='yes'
8958 GDI32_LIBS='-lgdi32'
8959 ;;
8960esac
8961if test "${GDI32_LIBS}x" != 'x'; then
8962
cristy8b350f62009-11-15 23:12:43 +00008963$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008964
8965fi
8966
cristy73bd4a52010-10-05 11:24:23 +00008967 if test "${GDI32_LIBS}x" != 'x' ; then
8968 WINGDI32_DELEGATE_TRUE=
8969 WINGDI32_DELEGATE_FALSE='#'
8970else
8971 WINGDI32_DELEGATE_TRUE='#'
8972 WINGDI32_DELEGATE_FALSE=
8973fi
8974
8975 if test "${native_win32_build}" = 'yes' ; then
8976 WIN32_NATIVE_BUILD_TRUE=
8977 WIN32_NATIVE_BUILD_FALSE='#'
8978else
8979 WIN32_NATIVE_BUILD_TRUE='#'
8980 WIN32_NATIVE_BUILD_FALSE=
8981fi
8982
8983 if test "${cygwin_build}" = 'yes' ; then
8984 CYGWIN_BUILD_TRUE=
8985 CYGWIN_BUILD_FALSE='#'
8986else
8987 CYGWIN_BUILD_TRUE='#'
8988 CYGWIN_BUILD_FALSE=
8989fi
8990
8991 if test "x${CC}" = 'xcl.exe' ; then
8992 USING_CL_TRUE=
8993 USING_CL_FALSE='#'
8994else
8995 USING_CL_TRUE='#'
8996 USING_CL_FALSE=
8997fi
8998
cristy3ed852e2009-09-05 21:47:34 +00008999
9000WinPathScript="${srcdirfull}/winpath.sh"
9001
9002
9003#
9004# Compiler flags tweaks
9005#
9006if test "${GCC}" != "yes"; then
9007 case "${host}" in
9008 *-*-hpux* )
9009 # aCC: HP ANSI C++ B3910B A.03.34
9010 CFLAGS="${CFLAGS} -Wp,-H30000"
9011 if test -n "${CXXFLAGS}"; then
9012 CXXFLAGS='-AA'
9013 else
9014 CXXFLAGS="${CXXFLAGS} -AA"
9015 fi
9016 ;;
9017 *-dec-osf5.* )
9018 # Compaq alphaev68-dec-osf5.1 compiler
9019 if test -n "${CXXFLAGS}"; then
9020 CXXFLAGS='-std strict_ansi -noimplicit_include'
9021 else
9022 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9023 fi
9024 esac
9025fi
9026
9027# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009029$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009030if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009031 $as_echo_n "(cached) " >&6
9032else
9033
9034im_cv_ld_lazyload='none'
9035case "${host}" in
9036 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9037 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9038 im_cv_ld_lazyload='-Wl,-zlazyload'
9039 fi
9040 ;;
9041esac
9042
9043fi
cristy8b350f62009-11-15 23:12:43 +00009044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009045$as_echo "$im_cv_ld_lazyload" >&6; }
9046if test "${im_cv_ld_lazyload}" != 'none' ; then
9047 if test -z "${LDFLAGS}" ; then
9048 LDFLAGS="${im_cv_ld_lazyload}"
9049 else
9050 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9051 fi
9052fi
9053
9054case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009055 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009056 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009057 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009058if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009059 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9060else
9061 build_osxuniversal=no
9062fi
9063
9064
cristyc37574e2013-02-16 01:04:55 +00009065 if test "${build_osxuniversal}" != no ; then
9066 if test "$enable_dependency_tracking" != no ; then
9067 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009068Please re-run configure with these options:
9069 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009070 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009071 fi
9072 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9073 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9074 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009075 fi
9076 ;;
9077esac
9078
cristy0151ae12011-10-28 16:32:29 +00009079#
9080# ARCH specific include directory
9081#
9082
cristy670aa3c2011-11-03 00:54:00 +00009083# Check whether --with-includearch-dir was given.
9084if test "${with_includearch_dir+set}" = set; then :
9085 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009086else
cristy670aa3c2011-11-03 00:54:00 +00009087 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009088fi
9089
9090
cristyd286fd72013-02-24 19:25:33 +00009091eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009092
cristy0151ae12011-10-28 16:32:29 +00009093
9094#
9095# ARCH specific configuration directory
9096#
9097
cristy670aa3c2011-11-03 00:54:00 +00009098# Check whether --with-sharearch-dir was given.
9099if test "${with_sharearch_dir+set}" = set; then :
9100 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009101else
cristy408ebcd2011-11-14 01:36:57 +00009102 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009103fi
9104
9105
cristy670aa3c2011-11-03 00:54:00 +00009106eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009107
cristy0151ae12011-10-28 16:32:29 +00009108
cristy2ec87cc2013-02-18 17:46:50 +00009109# Path to the pkgconfig folder
9110
9111# Check whether --with-pkgconfigdir was given.
9112if test "${with_pkgconfigdir+set}" = set; then :
9113 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9114else
9115 pkgconfigdir='${libdir}/pkgconfig'
9116fi
9117
9118
9119
cristy0151ae12011-10-28 16:32:29 +00009120#
cristy3ed852e2009-09-05 21:47:34 +00009121# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009122#
9123# Find Posix threads library
9124#
cristy3ed852e2009-09-05 21:47:34 +00009125
9126# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009127if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009128 withval=$with_threads; with_threads=$withval
9129else
9130 with_threads='yes'
9131fi
9132
9133
cristy1ae5c992013-07-30 14:55:07 +00009134THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009135have_threads=no
9136if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009137
9138
cristy73bd4a52010-10-05 11:24:23 +00009139ac_ext=c
9140ac_cpp='$CPP $CPPFLAGS'
9141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9143ac_compiler_gnu=$ac_cv_c_compiler_gnu
9144
9145ax_pthread_ok=no
9146
9147# We used to check for pthread.h first, but this fails if pthread.h
9148# requires special compiler flags (e.g. on True64 or Sequent).
9149# It gets checked for in the link test anyway.
9150
9151# First of all, check if the user has set any of the PTHREAD_LIBS,
9152# etcetera environment variables, and if threads linking works using
9153# them:
9154if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9155 save_CFLAGS="$CFLAGS"
9156 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9157 save_LIBS="$LIBS"
9158 LIBS="$PTHREAD_LIBS $LIBS"
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9160$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162/* end confdefs.h. */
9163
9164/* Override any GCC internal prototype to avoid an error.
9165 Use char because int might match the return type of a GCC
9166 builtin and then its argument prototype would still apply. */
9167#ifdef __cplusplus
9168extern "C"
9169#endif
9170char pthread_join ();
9171int
9172main ()
9173{
9174return pthread_join ();
9175 ;
9176 return 0;
9177}
9178_ACEOF
9179if ac_fn_c_try_link "$LINENO"; then :
9180 ax_pthread_ok=yes
9181fi
9182rm -f core conftest.err conftest.$ac_objext \
9183 conftest$ac_exeext conftest.$ac_ext
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9185$as_echo "$ax_pthread_ok" >&6; }
9186 if test x"$ax_pthread_ok" = xno; then
9187 PTHREAD_LIBS=""
9188 PTHREAD_CFLAGS=""
9189 fi
9190 LIBS="$save_LIBS"
9191 CFLAGS="$save_CFLAGS"
9192fi
9193
9194# We must check for the threads library under a number of different
9195# names; the ordering is very important because some systems
9196# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9197# libraries is broken (non-POSIX).
9198
9199# Create a list of thread flags to try. Items starting with a "-" are
9200# C compiler flags, and other items are library names, except for "none"
9201# which indicates that we try without any flags at all, and "pthread-config"
9202# which is a program returning the flags for the Pth emulation library.
9203
cristy2ec87cc2013-02-18 17:46:50 +00009204ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009205
9206# The ordering *is* (sometimes) important. Some notes on the
9207# individual items follow:
9208
9209# pthreads: AIX (must check this before -lpthread)
9210# none: in case threads are in libc; should be tried before -Kthread and
9211# other compiler flags to prevent continual compiler warnings
9212# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9213# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9214# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9215# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9216# -pthreads: Solaris/gcc
9217# -mthreads: Mingw32/gcc, Lynx/gcc
9218# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9219# doesn't hurt to check since this sometimes defines pthreads too;
9220# also defines -D_REENTRANT)
9221# ... -mt is also the pthreads flag for HP/aCC
9222# pthread: Linux, etcetera
9223# --thread-safe: KAI C++
9224# pthread-config: use pthread-config program (for GNU Pth library)
9225
cristy2ec87cc2013-02-18 17:46:50 +00009226case ${host_os} in
9227 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009228
9229 # On Solaris (at least, for some versions), libc contains stubbed
9230 # (non-functional) versions of the pthreads routines, so link-based
9231 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9232 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9233 # a function called by this macro, so we could check for that, but
9234 # who knows whether they'll stub that too in a future libc.) So,
9235 # we'll just look for -pthreads and -lpthread first:
9236
9237 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9238 ;;
9239
cristy2ec87cc2013-02-18 17:46:50 +00009240 darwin*)
cristya316db12011-10-24 00:49:45 +00009241 ax_pthread_flags="-pthread $ax_pthread_flags"
9242 ;;
cristy73bd4a52010-10-05 11:24:23 +00009243esac
9244
9245if test x"$ax_pthread_ok" = xno; then
9246for flag in $ax_pthread_flags; do
9247
9248 case $flag in
9249 none)
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9251$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9252 ;;
9253
9254 -*)
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9256$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9257 PTHREAD_CFLAGS="$flag"
9258 ;;
9259
cristya316db12011-10-24 00:49:45 +00009260 pthread-config)
9261 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009262set dummy pthread-config; ac_word=$2
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9264$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009265if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009266 $as_echo_n "(cached) " >&6
9267else
9268 if test -n "$ax_pthread_config"; then
9269 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9270else
9271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272for as_dir in $PATH
9273do
9274 IFS=$as_save_IFS
9275 test -z "$as_dir" && as_dir=.
9276 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009278 ac_cv_prog_ax_pthread_config="yes"
9279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9280 break 2
9281 fi
9282done
9283 done
9284IFS=$as_save_IFS
9285
9286 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9287fi
9288fi
9289ax_pthread_config=$ac_cv_prog_ax_pthread_config
9290if test -n "$ax_pthread_config"; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9292$as_echo "$ax_pthread_config" >&6; }
9293else
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295$as_echo "no" >&6; }
9296fi
9297
9298
cristya316db12011-10-24 00:49:45 +00009299 if test x"$ax_pthread_config" = xno; then continue; fi
9300 PTHREAD_CFLAGS="`pthread-config --cflags`"
9301 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9302 ;;
cristy73bd4a52010-10-05 11:24:23 +00009303
9304 *)
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9306$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9307 PTHREAD_LIBS="-l$flag"
9308 ;;
9309 esac
9310
9311 save_LIBS="$LIBS"
9312 save_CFLAGS="$CFLAGS"
9313 LIBS="$PTHREAD_LIBS $LIBS"
9314 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9315
9316 # Check for various functions. We must include pthread.h,
9317 # since some functions may be macros. (On the Sequent, we
9318 # need a special flag -Kthread to make this header compile.)
9319 # We check for pthread_join because it is in -lpthread on IRIX
9320 # while pthread_create is in libc. We check for pthread_attr_init
9321 # due to DEC craziness with -lpthreads. We check for
9322 # pthread_cleanup_push because it is one of the few pthread
9323 # functions on Solaris that doesn't have a non-functional libc stub.
9324 # We try pthread_create on general principles.
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326/* end confdefs.h. */
9327#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009328 static void routine(void *a) { a = 0; }
9329 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009330int
9331main ()
9332{
9333pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009334 pthread_create(&th, 0, start_routine, 0);
9335 pthread_join(th, 0);
9336 pthread_attr_init(&attr);
9337 pthread_cleanup_push(routine, 0);
9338 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009339 ;
9340 return 0;
9341}
9342_ACEOF
9343if ac_fn_c_try_link "$LINENO"; then :
9344 ax_pthread_ok=yes
9345fi
9346rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348
9349 LIBS="$save_LIBS"
9350 CFLAGS="$save_CFLAGS"
9351
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9353$as_echo "$ax_pthread_ok" >&6; }
9354 if test "x$ax_pthread_ok" = xyes; then
9355 break;
9356 fi
9357
9358 PTHREAD_LIBS=""
9359 PTHREAD_CFLAGS=""
9360done
9361fi
9362
9363# Various other checks:
9364if test "x$ax_pthread_ok" = xyes; then
9365 save_LIBS="$LIBS"
9366 LIBS="$PTHREAD_LIBS $LIBS"
9367 save_CFLAGS="$CFLAGS"
9368 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9369
9370 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009372$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009373 attr_name=unknown
9374 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009376/* end confdefs.h. */
9377#include <pthread.h>
9378int
9379main ()
9380{
cristya316db12011-10-24 00:49:45 +00009381int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009382 ;
9383 return 0;
9384}
9385_ACEOF
9386if ac_fn_c_try_link "$LINENO"; then :
9387 attr_name=$attr; break
9388fi
9389rm -f core conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009391 done
cristy73bd4a52010-10-05 11:24:23 +00009392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9393$as_echo "$attr_name" >&6; }
9394 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9395
9396cat >>confdefs.h <<_ACEOF
9397#define PTHREAD_CREATE_JOINABLE $attr_name
9398_ACEOF
9399
9400 fi
9401
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9403$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9404 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009405 case ${host_os} in
9406 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9407 osf* | hpux*) flag="-D_REENTRANT";;
9408 solaris*)
9409 if test "$GCC" = "yes"; then
9410 flag="-D_REENTRANT"
9411 else
9412 flag="-mt -D_REENTRANT"
9413 fi
9414 ;;
cristy73bd4a52010-10-05 11:24:23 +00009415 esac
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9417$as_echo "${flag}" >&6; }
9418 if test "x$flag" != xno; then
9419 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9420 fi
9421
cristya316db12011-10-24 00:49:45 +00009422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9423$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9424if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9425 $as_echo_n "(cached) " >&6
9426else
9427
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429/* end confdefs.h. */
9430
9431 #include <pthread.h>
9432int
9433main ()
9434{
9435int i = PTHREAD_PRIO_INHERIT;
9436 ;
9437 return 0;
9438}
9439_ACEOF
9440if ac_fn_c_try_link "$LINENO"; then :
9441 ax_cv_PTHREAD_PRIO_INHERIT=yes
9442else
9443 ax_cv_PTHREAD_PRIO_INHERIT=no
9444fi
9445rm -f core conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447
9448fi
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9450$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9451 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9452
9453$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9454
9455fi
9456
cristy73bd4a52010-10-05 11:24:23 +00009457 LIBS="$save_LIBS"
9458 CFLAGS="$save_CFLAGS"
9459
cristy23493c42013-04-11 16:04:59 +00009460 # More AIX lossage: compile with *_r variant
9461 if test "x$GCC" != xyes; then
9462 case $host_os in
9463 aix*)
9464 case "x/$CC" in #(
9465 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9466 #handle absolute path differently from PATH based program lookup
9467 case "x$CC" in #(
9468 x/*) :
9469 if as_fn_executable_p ${CC}_r; then :
9470 PTHREAD_CC="${CC}_r"
9471fi ;; #(
9472 *) :
9473 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009474do
9475 # Extract the first word of "$ac_prog", so it can be a program name with args.
9476set dummy $ac_prog; ac_word=$2
9477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009479if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009480 $as_echo_n "(cached) " >&6
9481else
9482 if test -n "$PTHREAD_CC"; then
9483 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9484else
9485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486for as_dir in $PATH
9487do
9488 IFS=$as_save_IFS
9489 test -z "$as_dir" && as_dir=.
9490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009492 ac_cv_prog_PTHREAD_CC="$ac_prog"
9493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9494 break 2
9495 fi
9496done
9497 done
9498IFS=$as_save_IFS
9499
9500fi
9501fi
9502PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9503if test -n "$PTHREAD_CC"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9505$as_echo "$PTHREAD_CC" >&6; }
9506else
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508$as_echo "no" >&6; }
9509fi
9510
9511
9512 test -n "$PTHREAD_CC" && break
9513done
cristy23493c42013-04-11 16:04:59 +00009514test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9515 ;;
9516esac ;; #(
9517 *) :
9518 ;;
9519esac
9520 ;;
9521 esac
cristya316db12011-10-24 00:49:45 +00009522 fi
cristy73bd4a52010-10-05 11:24:23 +00009523fi
9524
cristy23493c42013-04-11 16:04:59 +00009525test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9526
cristy73bd4a52010-10-05 11:24:23 +00009527
9528
9529
9530
9531# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9532if test x"$ax_pthread_ok" = xyes; then
9533
9534$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9535
9536 :
9537else
9538 ax_pthread_ok=no
9539
9540fi
9541ac_ext=c
9542ac_cpp='$CPP $CPPFLAGS'
9543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9545ac_compiler_gnu=$ac_cv_c_compiler_gnu
9546
9547
cristy7acf8fb2010-09-23 19:58:53 +00009548 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009549 have_threads=yes
9550 DEF_THREAD="$PTHREAD_CFLAGS"
9551 CFLAGS="$CFLAGS $DEF_THREAD"
9552 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009553 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009554 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009555 { $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 +00009556$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9557 CC="$PTHREAD_CC"
9558 fi
cristy55bf91c2010-09-24 00:29:41 +00009559
9560$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9561
cristy3ed852e2009-09-05 21:47:34 +00009562 fi
9563fi
cristy1ae5c992013-07-30 14:55:07 +00009564LIBS="$LIBS $THREAD_LIBS"
9565
cristy3ed852e2009-09-05 21:47:34 +00009566
9567# Enable support for OpenMP
9568if test "$have_threads" != 'yes'; then
9569 ac_cv_prog_c_openmp=unsupported
9570fi
9571
9572 OPENMP_CFLAGS=
9573 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009574if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009575 enableval=$enable_openmp;
9576fi
9577
9578 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009580$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009581if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009582 $as_echo_n "(cached) " >&6
9583else
cristy8b350f62009-11-15 23:12:43 +00009584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009586
9587#ifndef _OPENMP
9588 choke me
9589#endif
9590#include <omp.h>
9591int main () { return omp_get_num_threads (); }
9592
9593_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009594if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009595 ac_cv_prog_c_openmp='none needed'
9596else
cristy8b350f62009-11-15 23:12:43 +00009597 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009598 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9599 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009600 ac_save_CFLAGS=$CFLAGS
9601 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009604
9605#ifndef _OPENMP
9606 choke me
9607#endif
9608#include <omp.h>
9609int main () { return omp_get_num_threads (); }
9610
9611_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009612if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009613 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009614fi
cristy8b350f62009-11-15 23:12:43 +00009615rm -f core conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009617 CFLAGS=$ac_save_CFLAGS
9618 if test "$ac_cv_prog_c_openmp" != unsupported; then
9619 break
9620 fi
9621 done
9622fi
cristy8b350f62009-11-15 23:12:43 +00009623rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009625fi
cristy8b350f62009-11-15 23:12:43 +00009626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009627$as_echo "$ac_cv_prog_c_openmp" >&6; }
9628 case $ac_cv_prog_c_openmp in #(
9629 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009630 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009631 *)
cristy8b350f62009-11-15 23:12:43 +00009632 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009633 esac
9634 fi
9635
9636
9637CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9638MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9639
cristy391f1ce2010-09-09 17:23:28 +00009640if test "$enable_openmp" != no; then
9641 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9642 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9643 fi
9644fi
cristy3ed852e2009-09-05 21:47:34 +00009645
cristy736173a2009-09-20 21:18:22 +00009646# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009647
9648
cristy73bd4a52010-10-05 11:24:23 +00009649ac_ext=c
9650ac_cpp='$CPP $CPPFLAGS'
9651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9653ac_compiler_gnu=$ac_cv_c_compiler_gnu
9654
9655ax_pthread_ok=no
9656
9657# We used to check for pthread.h first, but this fails if pthread.h
9658# requires special compiler flags (e.g. on True64 or Sequent).
9659# It gets checked for in the link test anyway.
9660
9661# First of all, check if the user has set any of the PTHREAD_LIBS,
9662# etcetera environment variables, and if threads linking works using
9663# them:
9664if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9665 save_CFLAGS="$CFLAGS"
9666 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9667 save_LIBS="$LIBS"
9668 LIBS="$PTHREAD_LIBS $LIBS"
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9670$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672/* end confdefs.h. */
9673
9674/* Override any GCC internal prototype to avoid an error.
9675 Use char because int might match the return type of a GCC
9676 builtin and then its argument prototype would still apply. */
9677#ifdef __cplusplus
9678extern "C"
9679#endif
9680char pthread_join ();
9681int
9682main ()
9683{
9684return pthread_join ();
9685 ;
9686 return 0;
9687}
9688_ACEOF
9689if ac_fn_c_try_link "$LINENO"; then :
9690 ax_pthread_ok=yes
9691fi
9692rm -f core conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9695$as_echo "$ax_pthread_ok" >&6; }
9696 if test x"$ax_pthread_ok" = xno; then
9697 PTHREAD_LIBS=""
9698 PTHREAD_CFLAGS=""
9699 fi
9700 LIBS="$save_LIBS"
9701 CFLAGS="$save_CFLAGS"
9702fi
9703
9704# We must check for the threads library under a number of different
9705# names; the ordering is very important because some systems
9706# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9707# libraries is broken (non-POSIX).
9708
9709# Create a list of thread flags to try. Items starting with a "-" are
9710# C compiler flags, and other items are library names, except for "none"
9711# which indicates that we try without any flags at all, and "pthread-config"
9712# which is a program returning the flags for the Pth emulation library.
9713
cristy2ec87cc2013-02-18 17:46:50 +00009714ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009715
9716# The ordering *is* (sometimes) important. Some notes on the
9717# individual items follow:
9718
9719# pthreads: AIX (must check this before -lpthread)
9720# none: in case threads are in libc; should be tried before -Kthread and
9721# other compiler flags to prevent continual compiler warnings
9722# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9723# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9724# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9725# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9726# -pthreads: Solaris/gcc
9727# -mthreads: Mingw32/gcc, Lynx/gcc
9728# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9729# doesn't hurt to check since this sometimes defines pthreads too;
9730# also defines -D_REENTRANT)
9731# ... -mt is also the pthreads flag for HP/aCC
9732# pthread: Linux, etcetera
9733# --thread-safe: KAI C++
9734# pthread-config: use pthread-config program (for GNU Pth library)
9735
cristy2ec87cc2013-02-18 17:46:50 +00009736case ${host_os} in
9737 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009738
9739 # On Solaris (at least, for some versions), libc contains stubbed
9740 # (non-functional) versions of the pthreads routines, so link-based
9741 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9742 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9743 # a function called by this macro, so we could check for that, but
9744 # who knows whether they'll stub that too in a future libc.) So,
9745 # we'll just look for -pthreads and -lpthread first:
9746
9747 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9748 ;;
9749
cristy2ec87cc2013-02-18 17:46:50 +00009750 darwin*)
cristya316db12011-10-24 00:49:45 +00009751 ax_pthread_flags="-pthread $ax_pthread_flags"
9752 ;;
cristy73bd4a52010-10-05 11:24:23 +00009753esac
9754
9755if test x"$ax_pthread_ok" = xno; then
9756for flag in $ax_pthread_flags; do
9757
9758 case $flag in
9759 none)
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9761$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9762 ;;
9763
9764 -*)
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9766$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9767 PTHREAD_CFLAGS="$flag"
9768 ;;
9769
cristya316db12011-10-24 00:49:45 +00009770 pthread-config)
9771 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009772set dummy pthread-config; ac_word=$2
9773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9774$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009775if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009776 $as_echo_n "(cached) " >&6
9777else
9778 if test -n "$ax_pthread_config"; then
9779 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9780else
9781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782for as_dir in $PATH
9783do
9784 IFS=$as_save_IFS
9785 test -z "$as_dir" && as_dir=.
9786 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009788 ac_cv_prog_ax_pthread_config="yes"
9789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9790 break 2
9791 fi
9792done
9793 done
9794IFS=$as_save_IFS
9795
9796 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9797fi
9798fi
9799ax_pthread_config=$ac_cv_prog_ax_pthread_config
9800if test -n "$ax_pthread_config"; then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9802$as_echo "$ax_pthread_config" >&6; }
9803else
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805$as_echo "no" >&6; }
9806fi
9807
9808
cristya316db12011-10-24 00:49:45 +00009809 if test x"$ax_pthread_config" = xno; then continue; fi
9810 PTHREAD_CFLAGS="`pthread-config --cflags`"
9811 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9812 ;;
cristy73bd4a52010-10-05 11:24:23 +00009813
9814 *)
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9816$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9817 PTHREAD_LIBS="-l$flag"
9818 ;;
9819 esac
9820
9821 save_LIBS="$LIBS"
9822 save_CFLAGS="$CFLAGS"
9823 LIBS="$PTHREAD_LIBS $LIBS"
9824 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9825
9826 # Check for various functions. We must include pthread.h,
9827 # since some functions may be macros. (On the Sequent, we
9828 # need a special flag -Kthread to make this header compile.)
9829 # We check for pthread_join because it is in -lpthread on IRIX
9830 # while pthread_create is in libc. We check for pthread_attr_init
9831 # due to DEC craziness with -lpthreads. We check for
9832 # pthread_cleanup_push because it is one of the few pthread
9833 # functions on Solaris that doesn't have a non-functional libc stub.
9834 # We try pthread_create on general principles.
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836/* end confdefs.h. */
9837#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009838 static void routine(void *a) { a = 0; }
9839 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009840int
9841main ()
9842{
9843pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009844 pthread_create(&th, 0, start_routine, 0);
9845 pthread_join(th, 0);
9846 pthread_attr_init(&attr);
9847 pthread_cleanup_push(routine, 0);
9848 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009849 ;
9850 return 0;
9851}
9852_ACEOF
9853if ac_fn_c_try_link "$LINENO"; then :
9854 ax_pthread_ok=yes
9855fi
9856rm -f core conftest.err conftest.$ac_objext \
9857 conftest$ac_exeext conftest.$ac_ext
9858
9859 LIBS="$save_LIBS"
9860 CFLAGS="$save_CFLAGS"
9861
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9863$as_echo "$ax_pthread_ok" >&6; }
9864 if test "x$ax_pthread_ok" = xyes; then
9865 break;
9866 fi
9867
9868 PTHREAD_LIBS=""
9869 PTHREAD_CFLAGS=""
9870done
9871fi
9872
9873# Various other checks:
9874if test "x$ax_pthread_ok" = xyes; then
9875 save_LIBS="$LIBS"
9876 LIBS="$PTHREAD_LIBS $LIBS"
9877 save_CFLAGS="$CFLAGS"
9878 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9879
9880 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009882$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009883 attr_name=unknown
9884 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009886/* end confdefs.h. */
9887#include <pthread.h>
9888int
9889main ()
9890{
cristya316db12011-10-24 00:49:45 +00009891int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009892 ;
9893 return 0;
9894}
9895_ACEOF
9896if ac_fn_c_try_link "$LINENO"; then :
9897 attr_name=$attr; break
9898fi
9899rm -f core conftest.err conftest.$ac_objext \
9900 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009901 done
cristy73bd4a52010-10-05 11:24:23 +00009902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9903$as_echo "$attr_name" >&6; }
9904 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9905
9906cat >>confdefs.h <<_ACEOF
9907#define PTHREAD_CREATE_JOINABLE $attr_name
9908_ACEOF
9909
9910 fi
9911
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9913$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9914 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009915 case ${host_os} in
9916 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9917 osf* | hpux*) flag="-D_REENTRANT";;
9918 solaris*)
9919 if test "$GCC" = "yes"; then
9920 flag="-D_REENTRANT"
9921 else
9922 flag="-mt -D_REENTRANT"
9923 fi
9924 ;;
cristy73bd4a52010-10-05 11:24:23 +00009925 esac
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9927$as_echo "${flag}" >&6; }
9928 if test "x$flag" != xno; then
9929 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9930 fi
9931
cristya316db12011-10-24 00:49:45 +00009932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9933$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9934if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9935 $as_echo_n "(cached) " >&6
9936else
9937
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939/* end confdefs.h. */
9940
9941 #include <pthread.h>
9942int
9943main ()
9944{
9945int i = PTHREAD_PRIO_INHERIT;
9946 ;
9947 return 0;
9948}
9949_ACEOF
9950if ac_fn_c_try_link "$LINENO"; then :
9951 ax_cv_PTHREAD_PRIO_INHERIT=yes
9952else
9953 ax_cv_PTHREAD_PRIO_INHERIT=no
9954fi
9955rm -f core conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9957
9958fi
9959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9960$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9961 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9962
9963$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9964
9965fi
9966
cristy73bd4a52010-10-05 11:24:23 +00009967 LIBS="$save_LIBS"
9968 CFLAGS="$save_CFLAGS"
9969
cristy23493c42013-04-11 16:04:59 +00009970 # More AIX lossage: compile with *_r variant
9971 if test "x$GCC" != xyes; then
9972 case $host_os in
9973 aix*)
9974 case "x/$CC" in #(
9975 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9976 #handle absolute path differently from PATH based program lookup
9977 case "x$CC" in #(
9978 x/*) :
9979 if as_fn_executable_p ${CC}_r; then :
9980 PTHREAD_CC="${CC}_r"
9981fi ;; #(
9982 *) :
9983 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009984do
9985 # Extract the first word of "$ac_prog", so it can be a program name with args.
9986set dummy $ac_prog; ac_word=$2
9987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009989if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009990 $as_echo_n "(cached) " >&6
9991else
9992 if test -n "$PTHREAD_CC"; then
9993 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9994else
9995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996for as_dir in $PATH
9997do
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010002 ac_cv_prog_PTHREAD_CC="$ac_prog"
10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 break 2
10005 fi
10006done
10007 done
10008IFS=$as_save_IFS
10009
10010fi
10011fi
10012PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10013if test -n "$PTHREAD_CC"; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10015$as_echo "$PTHREAD_CC" >&6; }
10016else
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018$as_echo "no" >&6; }
10019fi
10020
10021
10022 test -n "$PTHREAD_CC" && break
10023done
cristy23493c42013-04-11 16:04:59 +000010024test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10025 ;;
10026esac ;; #(
10027 *) :
10028 ;;
10029esac
10030 ;;
10031 esac
cristya316db12011-10-24 00:49:45 +000010032 fi
cristy73bd4a52010-10-05 11:24:23 +000010033fi
10034
cristy23493c42013-04-11 16:04:59 +000010035test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10036
cristy73bd4a52010-10-05 11:24:23 +000010037
10038
10039
10040
10041# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10042if test x"$ax_pthread_ok" = xyes; then
10043
10044$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10045
10046 :
10047else
10048 ax_pthread_ok=no
10049
10050fi
10051ac_ext=c
10052ac_cpp='$CPP $CPPFLAGS'
10053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10055ac_compiler_gnu=$ac_cv_c_compiler_gnu
10056
10057
10058
10059# Check whether --enable-opencl was given.
10060if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010061 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010062else
cristy48794642012-09-02 15:19:08 +000010063 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010064fi
10065
10066
cristy48794642012-09-02 15:19:08 +000010067if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010068 ac_ext=c
10069ac_cpp='$CPP $CPPFLAGS'
10070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10072ac_compiler_gnu=$ac_cv_c_compiler_gnu
10073
cristy75314cc2012-09-15 23:08:29 +000010074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10075$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10076if ${ax_cv_c_compiler_ms+:} false; then :
10077 $as_echo_n "(cached) " >&6
10078else
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080/* end confdefs.h. */
10081
10082int
10083main ()
10084{
10085#ifndef _MSC_VER
10086 choke me
10087#endif
10088
10089 ;
10090 return 0;
10091}
10092_ACEOF
10093if ac_fn_c_try_compile "$LINENO"; then :
10094 ax_compiler_ms=yes
10095else
10096 ax_compiler_ms=no
10097fi
10098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10099ax_cv_c_compiler_ms=$ax_compiler_ms
10100
10101fi
10102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10103$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010104 if test X$ax_compiler_ms = Xno; then :
10105 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10106fi
10107
10108 ax_save_CPPFLAGS=$CPPFLAGS
10109 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10110 for ac_header in CL/cl.h OpenCL/cl.h
10111do :
10112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10113ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010114if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010115 cat >>confdefs.h <<_ACEOF
10116#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10117_ACEOF
10118
10119fi
10120
10121done
10122
10123 CPPFLAGS=$ax_save_CPPFLAGS
10124
10125 for ac_header in windows.h
10126do :
10127 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010128if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010129 cat >>confdefs.h <<_ACEOF
10130#define HAVE_WINDOWS_H 1
10131_ACEOF
10132
10133fi
10134
10135done
10136
10137
10138
10139
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10141$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010142if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010143 $as_echo_n "(cached) " >&6
10144else
10145 ax_cv_check_cl_libcl=no
10146 case $host_cpu in
10147 x86_64) ax_check_cl_libdir=lib64 ;;
10148 *) ax_check_cl_libdir=lib ;;
10149 esac
10150 ax_save_CPPFLAGS=$CPPFLAGS
10151 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10152 ax_save_LIBS=$LIBS
10153 LIBS=""
10154 ax_check_libs="-lOpenCL -lCL -lclparser"
10155 for ax_lib in $ax_check_libs; do
10156 if test X$ax_compiler_ms = Xyes; then :
10157 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10158else
10159 ax_try_lib=$ax_lib
10160fi
10161 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10162 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; break
10185else
10186 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"
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188/* end confdefs.h. */
10189
10190 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10191 # include <windows.h>
10192 # endif
10193 # ifdef HAVE_CL_CL_H
10194 # include <CL/cl.h>
10195 # elif defined(HAVE_OPENCL_CL_H)
10196 # include <OpenCL/cl.h>
10197 # else
10198 # error no CL.h
10199 # endif
10200int
10201main ()
10202{
10203clCreateContextFromType(0,0,0,0,0)
10204 ;
10205 return 0;
10206}
10207_ACEOF
10208if ac_fn_c_try_link "$LINENO"; then :
10209 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10210else
cristy78c5a0c2010-12-04 20:00:59 +000010211 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 +000010212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213/* end confdefs.h. */
10214
10215 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10216 # include <windows.h>
10217 # endif
10218 # ifdef HAVE_CL_CL_H
10219 # include <CL/cl.h>
10220 # elif defined(HAVE_OPENCL_CL_H)
10221 # include <OpenCL/cl.h>
10222 # else
10223 # error no CL.h
10224 # endif
10225int
10226main ()
10227{
10228clCreateContextFromType(0,0,0,0,0)
10229 ;
10230 return 0;
10231}
10232_ACEOF
10233if ac_fn_c_try_link "$LINENO"; then :
10234 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10235fi
10236rm -f core conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10238fi
10239rm -f core conftest.err conftest.$ac_objext \
10240 conftest$ac_exeext conftest.$ac_ext
10241fi
10242rm -f core conftest.err conftest.$ac_objext \
10243 conftest$ac_exeext conftest.$ac_ext
10244 done
10245
cristyc3f8b8e2011-12-22 14:55:16 +000010246 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010247 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249/* end confdefs.h. */
10250
10251 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10252 # include <windows.h>
10253 # endif
10254 # ifdef HAVE_CL_CL_H
10255 # include <CL/cl.h>
10256 # elif defined(HAVE_OPENCL_CL_H)
10257 # include <OpenCL/cl.h>
10258 # else
10259 # error no CL.h
10260 # endif
10261int
10262main ()
10263{
10264clCreateContextFromType(0,0,0,0,0)
10265 ;
10266 return 0;
10267}
10268_ACEOF
10269if ac_fn_c_try_link "$LINENO"; then :
10270 ax_cv_check_cl_libcl=$LIBS
10271fi
10272rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274fi
10275
10276 LIBS=$ax_save_LIBS
10277 CPPFLAGS=$ax_save_CPPFLAGS
10278fi
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10280$as_echo "$ax_cv_check_cl_libcl" >&6; }
10281
10282 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10283 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10284else
10285 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10286$as_echo "#define _OPENCL 1" >>confdefs.h
10287
10288fi
10289 ac_ext=c
10290ac_cpp='$CPP $CPPFLAGS'
10291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10293ac_compiler_gnu=$ac_cv_c_compiler_gnu
10294
10295fi
10296
10297
10298
10299
cristyc7083c12009-10-14 03:16:55 +000010300CFLAGS="$CL_CFLAGS $CFLAGS"
10301LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010302
cristy391f1ce2010-09-09 17:23:28 +000010303if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010304 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010305 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10306 fi
cristyfd9dcd42010-08-08 18:07:02 +000010307fi
cristy2e8b51d2009-10-17 18:26:15 +000010308
cristy3ed852e2009-09-05 21:47:34 +000010309########
10310#
10311# Check for large file support
10312#
10313########
10314# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010315if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010316 enableval=$enable_largefile;
10317fi
10318
10319if test "$enable_largefile" != no; then
10320
cristy8b350f62009-11-15 23:12:43 +000010321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010322$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010323if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010324 $as_echo_n "(cached) " >&6
10325else
10326 ac_cv_sys_largefile_CC=no
10327 if test "$GCC" != yes; then
10328 ac_save_CC=$CC
10329 while :; do
10330 # IRIX 6.2 and later do not support large files by default,
10331 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010333/* end confdefs.h. */
10334#include <sys/types.h>
10335 /* Check that off_t can represent 2**63 - 1 correctly.
10336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10337 since some C++ compilers masquerading as C compilers
10338 incorrectly reject 9223372036854775807. */
10339#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10341 && LARGE_OFF_T % 2147483647 == 1)
10342 ? 1 : -1];
10343int
10344main ()
10345{
10346
10347 ;
10348 return 0;
10349}
10350_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010351 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010352 break
cristy3ed852e2009-09-05 21:47:34 +000010353fi
cristy3ed852e2009-09-05 21:47:34 +000010354rm -f core conftest.err conftest.$ac_objext
10355 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010356 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010357 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010358fi
cristy3ed852e2009-09-05 21:47:34 +000010359rm -f core conftest.err conftest.$ac_objext
10360 break
10361 done
10362 CC=$ac_save_CC
10363 rm -f conftest.$ac_ext
10364 fi
10365fi
cristy8b350f62009-11-15 23:12:43 +000010366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010367$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10368 if test "$ac_cv_sys_largefile_CC" != no; then
10369 CC=$CC$ac_cv_sys_largefile_CC
10370 fi
10371
cristy8b350f62009-11-15 23:12:43 +000010372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010373$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010374if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010375 $as_echo_n "(cached) " >&6
10376else
10377 while :; do
cristy8b350f62009-11-15 23:12:43 +000010378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010379/* end confdefs.h. */
10380#include <sys/types.h>
10381 /* Check that off_t can represent 2**63 - 1 correctly.
10382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10383 since some C++ compilers masquerading as C compilers
10384 incorrectly reject 9223372036854775807. */
10385#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10387 && LARGE_OFF_T % 2147483647 == 1)
10388 ? 1 : -1];
10389int
10390main ()
10391{
10392
10393 ;
10394 return 0;
10395}
10396_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010397if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010398 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010399fi
cristy3ed852e2009-09-05 21:47:34 +000010400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010402/* end confdefs.h. */
10403#define _FILE_OFFSET_BITS 64
10404#include <sys/types.h>
10405 /* Check that off_t can represent 2**63 - 1 correctly.
10406 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10407 since some C++ compilers masquerading as C compilers
10408 incorrectly reject 9223372036854775807. */
10409#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10410 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10411 && LARGE_OFF_T % 2147483647 == 1)
10412 ? 1 : -1];
10413int
10414main ()
10415{
10416
10417 ;
10418 return 0;
10419}
10420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010421if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010422 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010423fi
cristy3ed852e2009-09-05 21:47:34 +000010424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10425 ac_cv_sys_file_offset_bits=unknown
10426 break
10427done
10428fi
cristy8b350f62009-11-15 23:12:43 +000010429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010430$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10431case $ac_cv_sys_file_offset_bits in #(
10432 no | unknown) ;;
10433 *)
10434cat >>confdefs.h <<_ACEOF
10435#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10436_ACEOF
10437;;
10438esac
10439rm -rf conftest*
10440 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010442$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010443if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010444 $as_echo_n "(cached) " >&6
10445else
10446 while :; do
cristy8b350f62009-11-15 23:12:43 +000010447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010448/* end confdefs.h. */
10449#include <sys/types.h>
10450 /* Check that off_t can represent 2**63 - 1 correctly.
10451 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10452 since some C++ compilers masquerading as C compilers
10453 incorrectly reject 9223372036854775807. */
10454#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10455 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10456 && LARGE_OFF_T % 2147483647 == 1)
10457 ? 1 : -1];
10458int
10459main ()
10460{
10461
10462 ;
10463 return 0;
10464}
10465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010466if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010467 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010468fi
cristy3ed852e2009-09-05 21:47:34 +000010469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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#define _LARGE_FILES 1
10473#include <sys/types.h>
10474 /* Check that off_t can represent 2**63 - 1 correctly.
10475 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10476 since some C++ compilers masquerading as C compilers
10477 incorrectly reject 9223372036854775807. */
10478#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10479 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10480 && LARGE_OFF_T % 2147483647 == 1)
10481 ? 1 : -1];
10482int
10483main ()
10484{
10485
10486 ;
10487 return 0;
10488}
10489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010490if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010491 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010492fi
cristy3ed852e2009-09-05 21:47:34 +000010493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10494 ac_cv_sys_large_files=unknown
10495 break
10496done
10497fi
cristy8b350f62009-11-15 23:12:43 +000010498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010499$as_echo "$ac_cv_sys_large_files" >&6; }
10500case $ac_cv_sys_large_files in #(
10501 no | unknown) ;;
10502 *)
10503cat >>confdefs.h <<_ACEOF
10504#define _LARGE_FILES $ac_cv_sys_large_files
10505_ACEOF
10506;;
10507esac
10508rm -rf conftest*
10509 fi
cristy14fefe52012-05-21 00:59:18 +000010510
10511
cristy3ed852e2009-09-05 21:47:34 +000010512fi
10513
cristy8b350f62009-11-15 23:12:43 +000010514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010515$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010516if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010517 $as_echo_n "(cached) " >&6
10518else
10519 while :; do
cristy8b350f62009-11-15 23:12:43 +000010520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010521/* end confdefs.h. */
10522#include <sys/types.h> /* for off_t */
10523 #include <stdio.h>
10524int
10525main ()
10526{
10527int (*fp) (FILE *, off_t, int) = fseeko;
10528 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10529 ;
10530 return 0;
10531}
10532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010533if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010534 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010535fi
cristy8b350f62009-11-15 23:12:43 +000010536rm -f core conftest.err conftest.$ac_objext \
10537 conftest$ac_exeext conftest.$ac_ext
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010539/* end confdefs.h. */
10540#define _LARGEFILE_SOURCE 1
10541#include <sys/types.h> /* for off_t */
10542 #include <stdio.h>
10543int
10544main ()
10545{
10546int (*fp) (FILE *, off_t, int) = fseeko;
10547 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10548 ;
10549 return 0;
10550}
10551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010552if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010553 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010554fi
cristy8b350f62009-11-15 23:12:43 +000010555rm -f core conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010557 ac_cv_sys_largefile_source=unknown
10558 break
10559done
10560fi
cristy8b350f62009-11-15 23:12:43 +000010561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010562$as_echo "$ac_cv_sys_largefile_source" >&6; }
10563case $ac_cv_sys_largefile_source in #(
10564 no | unknown) ;;
10565 *)
10566cat >>confdefs.h <<_ACEOF
10567#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10568_ACEOF
10569;;
10570esac
10571rm -rf conftest*
10572
10573# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10574# in glibc 2.1.3, but that breaks too many other things.
10575# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10576if test $ac_cv_sys_largefile_source != unknown; then
10577
cristy8b350f62009-11-15 23:12:43 +000010578$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010579
10580fi
10581
10582LFS_CPPFLAGS=''
10583if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010584 case $ac_cv_sys_file_offset_bits in
10585 no)
10586 # nothing to do here as the host supports LFS fine
10587 ;;
10588 unknown)
cristy8b350f62009-11-15 23:12:43 +000010589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010590$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010591 if test "$cross_compiling" = yes; then :
10592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010594as_fn_error $? "cannot run test program while cross compiling
10595See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010596else
cristy8b350f62009-11-15 23:12:43 +000010597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010599#include <unistd.h>
10600 main () {
10601 exit(!(sizeof(off_t) == 8));
10602 }
cristyda16f162011-02-19 23:52:17 +000010603int
10604main ()
10605{
10606
10607 ;
10608 return 0;
10609}
cristy3ed852e2009-09-05 21:47:34 +000010610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010611if ac_fn_c_try_run "$LINENO"; then :
10612 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010613
cristyad38abe2012-12-23 23:03:21 +000010614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10615$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010616else
cristyad38abe2012-12-23 23:03:21 +000010617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010619fi
cristy8b350f62009-11-15 23:12:43 +000010620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10621 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010622fi
10623
cristyc1e0cc12011-09-21 16:41:16 +000010624 ;;
10625 *)
10626 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10627 ;;
10628 esac
cristy3ed852e2009-09-05 21:47:34 +000010629 if test "$ac_cv_sys_large_files" != 'no'; then
10630 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10631 fi
10632 if test "$ac_cv_sys_largefile_source" != 'no'; then
10633 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10634 fi
10635fi
10636
10637
cristy3ed852e2009-09-05 21:47:34 +000010638# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010639enable_dlopen=yes
10640
10641
10642
10643case `pwd` in
10644 *\ * | *\ *)
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10646$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10647esac
10648
10649
10650
cristy99bd5232011-12-07 14:38:20 +000010651macro_version='2.4.2'
10652macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666ltmain="$ac_aux_dir/ltmain.sh"
10667
cristy0c60a692010-11-04 01:09:47 +000010668# Backslashify metacharacters that are still active within
10669# double-quoted strings.
10670sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10671
10672# Same as above, but do not quote variable references.
10673double_quote_subst='s/\(["`\\]\)/\\\1/g'
10674
10675# Sed substitution to delay expansion of an escaped shell variable in a
10676# double_quote_subst'ed string.
10677delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10678
10679# Sed substitution to delay expansion of an escaped single quote.
10680delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10681
10682# Sed substitution to avoid accidental globbing in evaled expressions
10683no_glob_subst='s/\*/\\\*/g'
10684
cristy73bd4a52010-10-05 11:24:23 +000010685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10686$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010687if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010688 $as_echo_n "(cached) " >&6
10689else
10690 if test -n "$NM"; then
10691 # Let the user override the test.
10692 lt_cv_path_NM="$NM"
10693else
10694 lt_nm_to_check="${ac_tool_prefix}nm"
10695 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10696 lt_nm_to_check="$lt_nm_to_check nm"
10697 fi
10698 for lt_tmp_nm in $lt_nm_to_check; do
10699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10700 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10701 IFS="$lt_save_ifs"
10702 test -z "$ac_dir" && ac_dir=.
10703 tmp_nm="$ac_dir/$lt_tmp_nm"
10704 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10705 # Check to see if the nm accepts a BSD-compat flag.
10706 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10707 # nm: unknown option "B" ignored
10708 # Tru64's nm complains that /dev/null is an invalid object file
10709 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10710 */dev/null* | *'Invalid file or object type'*)
10711 lt_cv_path_NM="$tmp_nm -B"
10712 break
10713 ;;
10714 *)
10715 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10716 */dev/null*)
10717 lt_cv_path_NM="$tmp_nm -p"
10718 break
10719 ;;
10720 *)
10721 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10722 continue # so that we can try to find one that supports BSD flags
10723 ;;
10724 esac
10725 ;;
10726 esac
10727 fi
10728 done
10729 IFS="$lt_save_ifs"
10730 done
10731 : ${lt_cv_path_NM=no}
10732fi
10733fi
10734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10735$as_echo "$lt_cv_path_NM" >&6; }
10736if test "$lt_cv_path_NM" != "no"; then
10737 NM="$lt_cv_path_NM"
10738else
10739 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010740 if test -n "$DUMPBIN"; then :
10741 # Let the user override the test.
10742 else
10743 if test -n "$ac_tool_prefix"; then
10744 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010745 do
10746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10747set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010750if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010751 $as_echo_n "(cached) " >&6
10752else
10753 if test -n "$DUMPBIN"; then
10754 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10755else
10756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757for as_dir in $PATH
10758do
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010763 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10765 break 2
10766 fi
10767done
10768 done
10769IFS=$as_save_IFS
10770
10771fi
10772fi
10773DUMPBIN=$ac_cv_prog_DUMPBIN
10774if test -n "$DUMPBIN"; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10776$as_echo "$DUMPBIN" >&6; }
10777else
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779$as_echo "no" >&6; }
10780fi
10781
10782
10783 test -n "$DUMPBIN" && break
10784 done
10785fi
10786if test -z "$DUMPBIN"; then
10787 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010788 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010789do
10790 # Extract the first word of "$ac_prog", so it can be a program name with args.
10791set dummy $ac_prog; ac_word=$2
10792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010794if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010795 $as_echo_n "(cached) " >&6
10796else
10797 if test -n "$ac_ct_DUMPBIN"; then
10798 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10799else
10800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801for as_dir in $PATH
10802do
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010807 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10809 break 2
10810 fi
10811done
10812 done
10813IFS=$as_save_IFS
10814
10815fi
10816fi
10817ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10818if test -n "$ac_ct_DUMPBIN"; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10820$as_echo "$ac_ct_DUMPBIN" >&6; }
10821else
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823$as_echo "no" >&6; }
10824fi
10825
10826
10827 test -n "$ac_ct_DUMPBIN" && break
10828done
10829
10830 if test "x$ac_ct_DUMPBIN" = x; then
10831 DUMPBIN=":"
10832 else
10833 case $cross_compiling:$ac_tool_warned in
10834yes:)
10835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10837ac_tool_warned=yes ;;
10838esac
10839 DUMPBIN=$ac_ct_DUMPBIN
10840 fi
10841fi
10842
cristy0c60a692010-11-04 01:09:47 +000010843 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10844 *COFF*)
10845 DUMPBIN="$DUMPBIN -symbols"
10846 ;;
10847 *)
10848 DUMPBIN=:
10849 ;;
10850 esac
10851 fi
cristy73bd4a52010-10-05 11:24:23 +000010852
10853 if test "$DUMPBIN" != ":"; then
10854 NM="$DUMPBIN"
10855 fi
10856fi
10857test -z "$NM" && NM=nm
10858
10859
10860
10861
10862
10863
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10865$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010866if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010867 $as_echo_n "(cached) " >&6
10868else
10869 lt_cv_nm_interface="BSD nm"
10870 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010871 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010872 (eval "$ac_compile" 2>conftest.err)
10873 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010874 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010875 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10876 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010877 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010878 cat conftest.out >&5
10879 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10880 lt_cv_nm_interface="MS dumpbin"
10881 fi
10882 rm -f conftest*
10883fi
10884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10885$as_echo "$lt_cv_nm_interface" >&6; }
10886
10887# find the maximum length of command line arguments
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10889$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010890if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010891 $as_echo_n "(cached) " >&6
10892else
10893 i=0
10894 teststring="ABCD"
10895
10896 case $build_os in
10897 msdosdjgpp*)
10898 # On DJGPP, this test can blow up pretty badly due to problems in libc
10899 # (any single argument exceeding 2000 bytes causes a buffer overrun
10900 # during glob expansion). Even if it were fixed, the result of this
10901 # check would be larger than it should be.
10902 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10903 ;;
10904
10905 gnu*)
10906 # Under GNU Hurd, this test is not required because there is
10907 # no limit to the length of command line arguments.
10908 # Libtool will interpret -1 as no limit whatsoever
10909 lt_cv_sys_max_cmd_len=-1;
10910 ;;
10911
10912 cygwin* | mingw* | cegcc*)
10913 # On Win9x/ME, this test blows up -- it succeeds, but takes
10914 # about 5 minutes as the teststring grows exponentially.
10915 # Worse, since 9x/ME are not pre-emptively multitasking,
10916 # you end up with a "frozen" computer, even though with patience
10917 # the test eventually succeeds (with a max line length of 256k).
10918 # Instead, let's just punt: use the minimum linelength reported by
10919 # all of the supported platforms: 8192 (on NT/2K/XP).
10920 lt_cv_sys_max_cmd_len=8192;
10921 ;;
10922
cristy0c60a692010-11-04 01:09:47 +000010923 mint*)
10924 # On MiNT this can take a long time and run out of memory.
10925 lt_cv_sys_max_cmd_len=8192;
10926 ;;
10927
cristy73bd4a52010-10-05 11:24:23 +000010928 amigaos*)
10929 # On AmigaOS with pdksh, this test takes hours, literally.
10930 # So we just punt and use a minimum line length of 8192.
10931 lt_cv_sys_max_cmd_len=8192;
10932 ;;
10933
10934 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10935 # This has been around since 386BSD, at least. Likely further.
10936 if test -x /sbin/sysctl; then
10937 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10938 elif test -x /usr/sbin/sysctl; then
10939 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10940 else
10941 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10942 fi
10943 # And add a safety zone
10944 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10946 ;;
10947
10948 interix*)
10949 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10950 lt_cv_sys_max_cmd_len=196608
10951 ;;
10952
cristy99bd5232011-12-07 14:38:20 +000010953 os2*)
10954 # The test takes a long time on OS/2.
10955 lt_cv_sys_max_cmd_len=8192
10956 ;;
10957
cristy73bd4a52010-10-05 11:24:23 +000010958 osf*)
10959 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10960 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10961 # nice to cause kernel panics so lets avoid the loop below.
10962 # First set a reasonable default.
10963 lt_cv_sys_max_cmd_len=16384
10964 #
10965 if test -x /sbin/sysconfig; then
10966 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10967 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10968 esac
10969 fi
10970 ;;
10971 sco3.2v5*)
10972 lt_cv_sys_max_cmd_len=102400
10973 ;;
10974 sysv5* | sco5v6* | sysv4.2uw2*)
10975 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10976 if test -n "$kargmax"; then
10977 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10978 else
10979 lt_cv_sys_max_cmd_len=32768
10980 fi
10981 ;;
10982 *)
10983 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10984 if test -n "$lt_cv_sys_max_cmd_len"; then
10985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10987 else
10988 # Make teststring a little bigger before we do anything with it.
10989 # a 1K string should be a reasonable start.
10990 for i in 1 2 3 4 5 6 7 8 ; do
10991 teststring=$teststring$teststring
10992 done
10993 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10994 # If test is not a shell built-in, we'll probably end up computing a
10995 # maximum length that is only half of the actual maximum length, but
10996 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010997 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010998 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010999 test $i != 17 # 1/2 MB should be enough
11000 do
11001 i=`expr $i + 1`
11002 teststring=$teststring$teststring
11003 done
11004 # Only check the string length outside the loop.
11005 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11006 teststring=
11007 # Add a significant safety factor because C++ compilers can tack on
11008 # massive amounts of additional arguments before passing them to the
11009 # linker. It appears as though 1/2 is a usable value.
11010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11011 fi
11012 ;;
11013 esac
11014
11015fi
11016
11017if test -n $lt_cv_sys_max_cmd_len ; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11019$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11020else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11022$as_echo "none" >&6; }
11023fi
11024max_cmd_len=$lt_cv_sys_max_cmd_len
11025
11026
11027
11028
11029
11030
11031: ${CP="cp -f"}
11032: ${MV="mv -f"}
11033: ${RM="rm -f"}
11034
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11036$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11037# Try some XSI features
11038xsi_shell=no
11039( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011040 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11041 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011042 && eval 'test $(( 1 + 1 )) -eq 2 \
11043 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11044 && xsi_shell=yes
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11046$as_echo "$xsi_shell" >&6; }
11047
11048
11049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11050$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11051lt_shell_append=no
11052( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11053 >/dev/null 2>&1 \
11054 && lt_shell_append=yes
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11056$as_echo "$lt_shell_append" >&6; }
11057
11058
11059if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11060 lt_unset=unset
11061else
11062 lt_unset=false
11063fi
11064
11065
11066
11067
11068
11069# test EBCDIC or ASCII
11070case `echo X|tr X '\101'` in
11071 A) # ASCII based system
11072 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11073 lt_SP2NL='tr \040 \012'
11074 lt_NL2SP='tr \015\012 \040\040'
11075 ;;
11076 *) # EBCDIC based system
11077 lt_SP2NL='tr \100 \n'
11078 lt_NL2SP='tr \r\n \100\100'
11079 ;;
11080esac
11081
11082
11083
11084
11085
11086
11087
11088
11089
cristyda16f162011-02-19 23:52:17 +000011090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11091$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11092if ${lt_cv_to_host_file_cmd+:} false; then :
11093 $as_echo_n "(cached) " >&6
11094else
11095 case $host in
11096 *-*-mingw* )
11097 case $build in
11098 *-*-mingw* ) # actually msys
11099 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11100 ;;
11101 *-*-cygwin* )
11102 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11103 ;;
11104 * ) # otherwise, assume *nix
11105 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11106 ;;
11107 esac
11108 ;;
11109 *-*-cygwin* )
11110 case $build in
11111 *-*-mingw* ) # actually msys
11112 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11113 ;;
11114 *-*-cygwin* )
11115 lt_cv_to_host_file_cmd=func_convert_file_noop
11116 ;;
11117 * ) # otherwise, assume *nix
11118 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11119 ;;
11120 esac
11121 ;;
11122 * ) # unhandled hosts (and "normal" native builds)
11123 lt_cv_to_host_file_cmd=func_convert_file_noop
11124 ;;
11125esac
11126
11127fi
11128
11129to_host_file_cmd=$lt_cv_to_host_file_cmd
11130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11131$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11132
11133
11134
11135
11136
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11138$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11139if ${lt_cv_to_tool_file_cmd+:} false; then :
11140 $as_echo_n "(cached) " >&6
11141else
11142 #assume ordinary cross tools, or native build.
11143lt_cv_to_tool_file_cmd=func_convert_file_noop
11144case $host in
11145 *-*-mingw* )
11146 case $build in
11147 *-*-mingw* ) # actually msys
11148 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11149 ;;
11150 esac
11151 ;;
11152esac
11153
11154fi
11155
11156to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11158$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11159
11160
11161
11162
11163
cristy73bd4a52010-10-05 11:24:23 +000011164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11165$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011166if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011167 $as_echo_n "(cached) " >&6
11168else
11169 lt_cv_ld_reload_flag='-r'
11170fi
11171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11172$as_echo "$lt_cv_ld_reload_flag" >&6; }
11173reload_flag=$lt_cv_ld_reload_flag
11174case $reload_flag in
11175"" | " "*) ;;
11176*) reload_flag=" $reload_flag" ;;
11177esac
11178reload_cmds='$LD$reload_flag -o $output$reload_objs'
11179case $host_os in
cristyda16f162011-02-19 23:52:17 +000011180 cygwin* | mingw* | pw32* | cegcc*)
11181 if test "$GCC" != yes; then
11182 reload_cmds=false
11183 fi
11184 ;;
cristy73bd4a52010-10-05 11:24:23 +000011185 darwin*)
11186 if test "$GCC" = yes; then
11187 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11188 else
11189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11190 fi
11191 ;;
11192esac
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202if test -n "$ac_tool_prefix"; then
11203 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11204set dummy ${ac_tool_prefix}objdump; ac_word=$2
11205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11206$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011207if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011208 $as_echo_n "(cached) " >&6
11209else
11210 if test -n "$OBJDUMP"; then
11211 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11212else
11213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214for as_dir in $PATH
11215do
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011220 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 break 2
11223 fi
11224done
11225 done
11226IFS=$as_save_IFS
11227
11228fi
11229fi
11230OBJDUMP=$ac_cv_prog_OBJDUMP
11231if test -n "$OBJDUMP"; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11233$as_echo "$OBJDUMP" >&6; }
11234else
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236$as_echo "no" >&6; }
11237fi
11238
11239
11240fi
11241if test -z "$ac_cv_prog_OBJDUMP"; then
11242 ac_ct_OBJDUMP=$OBJDUMP
11243 # Extract the first word of "objdump", so it can be a program name with args.
11244set dummy objdump; ac_word=$2
11245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11246$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011247if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011248 $as_echo_n "(cached) " >&6
11249else
11250 if test -n "$ac_ct_OBJDUMP"; then
11251 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11252else
11253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11254for as_dir in $PATH
11255do
11256 IFS=$as_save_IFS
11257 test -z "$as_dir" && as_dir=.
11258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011260 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11262 break 2
11263 fi
11264done
11265 done
11266IFS=$as_save_IFS
11267
11268fi
11269fi
11270ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11271if test -n "$ac_ct_OBJDUMP"; then
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11273$as_echo "$ac_ct_OBJDUMP" >&6; }
11274else
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276$as_echo "no" >&6; }
11277fi
11278
11279 if test "x$ac_ct_OBJDUMP" = x; then
11280 OBJDUMP="false"
11281 else
11282 case $cross_compiling:$ac_tool_warned in
11283yes:)
11284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11286ac_tool_warned=yes ;;
11287esac
11288 OBJDUMP=$ac_ct_OBJDUMP
11289 fi
11290else
11291 OBJDUMP="$ac_cv_prog_OBJDUMP"
11292fi
11293
11294test -z "$OBJDUMP" && OBJDUMP=objdump
11295
11296
11297
11298
11299
11300
11301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11302$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011303if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011304 $as_echo_n "(cached) " >&6
11305else
11306 lt_cv_file_magic_cmd='$MAGIC_CMD'
11307lt_cv_file_magic_test_file=
11308lt_cv_deplibs_check_method='unknown'
11309# Need to set the preceding variable on all platforms that support
11310# interlibrary dependencies.
11311# 'none' -- dependencies not supported.
11312# `unknown' -- same as none, but documents that we really don't know.
11313# 'pass_all' -- all dependencies passed with no checks.
11314# 'test_compile' -- check by making test program.
11315# 'file_magic [[regex]]' -- check by looking for files in library path
11316# which responds to the $file_magic_cmd with a given extended regex.
11317# If you have `file' or equivalent on your system and you're not sure
11318# whether `pass_all' will *always* work, you probably want this one.
11319
11320case $host_os in
11321aix[4-9]*)
11322 lt_cv_deplibs_check_method=pass_all
11323 ;;
11324
11325beos*)
11326 lt_cv_deplibs_check_method=pass_all
11327 ;;
11328
11329bsdi[45]*)
11330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11331 lt_cv_file_magic_cmd='/usr/bin/file -L'
11332 lt_cv_file_magic_test_file=/shlib/libc.so
11333 ;;
11334
11335cygwin*)
11336 # func_win32_libid is a shell function defined in ltmain.sh
11337 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11338 lt_cv_file_magic_cmd='func_win32_libid'
11339 ;;
11340
11341mingw* | pw32*)
11342 # Base MSYS/MinGW do not provide the 'file' command needed by
11343 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11344 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011345 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11346 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011347 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11348 lt_cv_file_magic_cmd='func_win32_libid'
11349 else
cristy0c60a692010-11-04 01:09:47 +000011350 # Keep this pattern in sync with the one in func_win32_libid.
11351 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 +000011352 lt_cv_file_magic_cmd='$OBJDUMP -f'
11353 fi
11354 ;;
11355
cristy0c60a692010-11-04 01:09:47 +000011356cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011357 # use the weaker test based on 'objdump'. See mingw*.
11358 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11359 lt_cv_file_magic_cmd='$OBJDUMP -f'
11360 ;;
11361
11362darwin* | rhapsody*)
11363 lt_cv_deplibs_check_method=pass_all
11364 ;;
11365
11366freebsd* | dragonfly*)
11367 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11368 case $host_cpu in
11369 i*86 )
11370 # Not sure whether the presence of OpenBSD here was a mistake.
11371 # Let's accept both of them until this is cleared up.
11372 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11373 lt_cv_file_magic_cmd=/usr/bin/file
11374 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11375 ;;
11376 esac
11377 else
11378 lt_cv_deplibs_check_method=pass_all
11379 fi
11380 ;;
11381
11382gnu*)
11383 lt_cv_deplibs_check_method=pass_all
11384 ;;
11385
cristy0c60a692010-11-04 01:09:47 +000011386haiku*)
11387 lt_cv_deplibs_check_method=pass_all
11388 ;;
11389
cristy73bd4a52010-10-05 11:24:23 +000011390hpux10.20* | hpux11*)
11391 lt_cv_file_magic_cmd=/usr/bin/file
11392 case $host_cpu in
11393 ia64*)
11394 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11395 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11396 ;;
11397 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011398 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 +000011399 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11400 ;;
11401 *)
cristy0c60a692010-11-04 01:09:47 +000011402 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 +000011403 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11404 ;;
11405 esac
11406 ;;
11407
11408interix[3-9]*)
11409 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11411 ;;
11412
11413irix5* | irix6* | nonstopux*)
11414 case $LD in
11415 *-32|*"-32 ") libmagic=32-bit;;
11416 *-n32|*"-n32 ") libmagic=N32;;
11417 *-64|*"-64 ") libmagic=64-bit;;
11418 *) libmagic=never-match;;
11419 esac
11420 lt_cv_deplibs_check_method=pass_all
11421 ;;
11422
cristy99bd5232011-12-07 14:38:20 +000011423# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011424linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011425 lt_cv_deplibs_check_method=pass_all
11426 ;;
11427
11428netbsd*)
11429 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11430 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11431 else
11432 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11433 fi
11434 ;;
11435
11436newos6*)
11437 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11438 lt_cv_file_magic_cmd=/usr/bin/file
11439 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11440 ;;
11441
11442*nto* | *qnx*)
11443 lt_cv_deplibs_check_method=pass_all
11444 ;;
11445
11446openbsd*)
11447 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11449 else
11450 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11451 fi
11452 ;;
11453
11454osf3* | osf4* | osf5*)
11455 lt_cv_deplibs_check_method=pass_all
11456 ;;
11457
11458rdos*)
11459 lt_cv_deplibs_check_method=pass_all
11460 ;;
11461
11462solaris*)
11463 lt_cv_deplibs_check_method=pass_all
11464 ;;
11465
11466sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11467 lt_cv_deplibs_check_method=pass_all
11468 ;;
11469
11470sysv4 | sysv4.3*)
11471 case $host_vendor in
11472 motorola)
11473 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]'
11474 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11475 ;;
11476 ncr)
11477 lt_cv_deplibs_check_method=pass_all
11478 ;;
11479 sequent)
11480 lt_cv_file_magic_cmd='/bin/file'
11481 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11482 ;;
11483 sni)
11484 lt_cv_file_magic_cmd='/bin/file'
11485 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11486 lt_cv_file_magic_test_file=/lib/libc.so
11487 ;;
11488 siemens)
11489 lt_cv_deplibs_check_method=pass_all
11490 ;;
11491 pc)
11492 lt_cv_deplibs_check_method=pass_all
11493 ;;
11494 esac
11495 ;;
11496
11497tpf*)
11498 lt_cv_deplibs_check_method=pass_all
11499 ;;
11500esac
11501
11502fi
11503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11504$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011505
11506file_magic_glob=
11507want_nocaseglob=no
11508if test "$build" = "$host"; then
11509 case $host_os in
11510 mingw* | pw32*)
11511 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11512 want_nocaseglob=yes
11513 else
11514 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11515 fi
11516 ;;
11517 esac
11518fi
11519
cristy73bd4a52010-10-05 11:24:23 +000011520file_magic_cmd=$lt_cv_file_magic_cmd
11521deplibs_check_method=$lt_cv_deplibs_check_method
11522test -z "$deplibs_check_method" && deplibs_check_method=unknown
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
cristyda16f162011-02-19 23:52:17 +000011535
11536
11537
11538
11539
11540
11541
11542
11543
11544
cristy73bd4a52010-10-05 11:24:23 +000011545if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011546 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11547set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011550if ${ac_cv_prog_DLLTOOL+:} false; then :
11551 $as_echo_n "(cached) " >&6
11552else
11553 if test -n "$DLLTOOL"; then
11554 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11555else
11556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557for as_dir in $PATH
11558do
11559 IFS=$as_save_IFS
11560 test -z "$as_dir" && as_dir=.
11561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011563 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11565 break 2
11566 fi
11567done
11568 done
11569IFS=$as_save_IFS
11570
11571fi
11572fi
11573DLLTOOL=$ac_cv_prog_DLLTOOL
11574if test -n "$DLLTOOL"; then
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11576$as_echo "$DLLTOOL" >&6; }
11577else
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579$as_echo "no" >&6; }
11580fi
11581
11582
11583fi
11584if test -z "$ac_cv_prog_DLLTOOL"; then
11585 ac_ct_DLLTOOL=$DLLTOOL
11586 # Extract the first word of "dlltool", so it can be a program name with args.
11587set dummy dlltool; ac_word=$2
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11589$as_echo_n "checking for $ac_word... " >&6; }
11590if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11591 $as_echo_n "(cached) " >&6
11592else
11593 if test -n "$ac_ct_DLLTOOL"; then
11594 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11595else
11596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597for as_dir in $PATH
11598do
11599 IFS=$as_save_IFS
11600 test -z "$as_dir" && as_dir=.
11601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011603 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11605 break 2
11606 fi
11607done
11608 done
11609IFS=$as_save_IFS
11610
11611fi
11612fi
11613ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11614if test -n "$ac_ct_DLLTOOL"; then
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11616$as_echo "$ac_ct_DLLTOOL" >&6; }
11617else
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619$as_echo "no" >&6; }
11620fi
11621
11622 if test "x$ac_ct_DLLTOOL" = x; then
11623 DLLTOOL="false"
11624 else
11625 case $cross_compiling:$ac_tool_warned in
11626yes:)
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11629ac_tool_warned=yes ;;
11630esac
11631 DLLTOOL=$ac_ct_DLLTOOL
11632 fi
11633else
11634 DLLTOOL="$ac_cv_prog_DLLTOOL"
11635fi
11636
11637test -z "$DLLTOOL" && DLLTOOL=dlltool
11638
11639
11640
11641
11642
11643
11644
11645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11646$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11647if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11648 $as_echo_n "(cached) " >&6
11649else
11650 lt_cv_sharedlib_from_linklib_cmd='unknown'
11651
11652case $host_os in
11653cygwin* | mingw* | pw32* | cegcc*)
11654 # two different shell functions defined in ltmain.sh
11655 # decide which to use based on capabilities of $DLLTOOL
11656 case `$DLLTOOL --help 2>&1` in
11657 *--identify-strict*)
11658 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11659 ;;
11660 *)
11661 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11662 ;;
11663 esac
11664 ;;
11665*)
11666 # fallback: assume linklib IS sharedlib
11667 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11668 ;;
11669esac
11670
11671fi
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11673$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11674sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11675test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11676
11677
11678
11679
11680
11681
11682
11683if test -n "$ac_tool_prefix"; then
11684 for ac_prog in ar
11685 do
11686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11687set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11689$as_echo_n "checking for $ac_word... " >&6; }
11690if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011691 $as_echo_n "(cached) " >&6
11692else
11693 if test -n "$AR"; then
11694 ac_cv_prog_AR="$AR" # Let the user override the test.
11695else
11696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697for as_dir in $PATH
11698do
11699 IFS=$as_save_IFS
11700 test -z "$as_dir" && as_dir=.
11701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011703 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11705 break 2
11706 fi
11707done
11708 done
11709IFS=$as_save_IFS
11710
11711fi
11712fi
11713AR=$ac_cv_prog_AR
11714if test -n "$AR"; then
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11716$as_echo "$AR" >&6; }
11717else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719$as_echo "no" >&6; }
11720fi
11721
11722
cristyda16f162011-02-19 23:52:17 +000011723 test -n "$AR" && break
11724 done
cristy73bd4a52010-10-05 11:24:23 +000011725fi
cristyda16f162011-02-19 23:52:17 +000011726if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011727 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011728 for ac_prog in ar
11729do
11730 # Extract the first word of "$ac_prog", so it can be a program name with args.
11731set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11733$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011734if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011735 $as_echo_n "(cached) " >&6
11736else
11737 if test -n "$ac_ct_AR"; then
11738 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11739else
11740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741for as_dir in $PATH
11742do
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011747 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 break 2
11750 fi
11751done
11752 done
11753IFS=$as_save_IFS
11754
11755fi
11756fi
11757ac_ct_AR=$ac_cv_prog_ac_ct_AR
11758if test -n "$ac_ct_AR"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11760$as_echo "$ac_ct_AR" >&6; }
11761else
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763$as_echo "no" >&6; }
11764fi
11765
cristyda16f162011-02-19 23:52:17 +000011766
11767 test -n "$ac_ct_AR" && break
11768done
11769
cristy73bd4a52010-10-05 11:24:23 +000011770 if test "x$ac_ct_AR" = x; then
11771 AR="false"
11772 else
11773 case $cross_compiling:$ac_tool_warned in
11774yes:)
11775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11777ac_tool_warned=yes ;;
11778esac
11779 AR=$ac_ct_AR
11780 fi
cristy73bd4a52010-10-05 11:24:23 +000011781fi
11782
cristyda16f162011-02-19 23:52:17 +000011783: ${AR=ar}
11784: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
cristyda16f162011-02-19 23:52:17 +000011796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11797$as_echo_n "checking for archiver @FILE support... " >&6; }
11798if ${lt_cv_ar_at_file+:} false; then :
11799 $as_echo_n "(cached) " >&6
11800else
11801 lt_cv_ar_at_file=no
11802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803/* end confdefs.h. */
11804
11805int
11806main ()
11807{
11808
11809 ;
11810 return 0;
11811}
11812_ACEOF
11813if ac_fn_c_try_compile "$LINENO"; then :
11814 echo conftest.$ac_objext > conftest.lst
11815 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11817 (eval $lt_ar_try) 2>&5
11818 ac_status=$?
11819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11820 test $ac_status = 0; }
11821 if test "$ac_status" -eq 0; then
11822 # Ensure the archiver fails upon bogus file names.
11823 rm -f conftest.$ac_objext libconftest.a
11824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11825 (eval $lt_ar_try) 2>&5
11826 ac_status=$?
11827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11828 test $ac_status = 0; }
11829 if test "$ac_status" -ne 0; then
11830 lt_cv_ar_at_file=@
11831 fi
11832 fi
11833 rm -f conftest.* libconftest.a
11834
11835fi
11836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837
11838fi
11839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11840$as_echo "$lt_cv_ar_at_file" >&6; }
11841
11842if test "x$lt_cv_ar_at_file" = xno; then
11843 archiver_list_spec=
11844else
11845 archiver_list_spec=$lt_cv_ar_at_file
11846fi
11847
11848
11849
11850
11851
11852
11853
cristy73bd4a52010-10-05 11:24:23 +000011854if test -n "$ac_tool_prefix"; then
11855 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11856set dummy ${ac_tool_prefix}strip; ac_word=$2
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011859if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011860 $as_echo_n "(cached) " >&6
11861else
11862 if test -n "$STRIP"; then
11863 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11864else
11865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866for as_dir in $PATH
11867do
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011872 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874 break 2
11875 fi
11876done
11877 done
11878IFS=$as_save_IFS
11879
11880fi
11881fi
11882STRIP=$ac_cv_prog_STRIP
11883if test -n "$STRIP"; then
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11885$as_echo "$STRIP" >&6; }
11886else
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888$as_echo "no" >&6; }
11889fi
11890
11891
11892fi
11893if test -z "$ac_cv_prog_STRIP"; then
11894 ac_ct_STRIP=$STRIP
11895 # Extract the first word of "strip", so it can be a program name with args.
11896set dummy strip; ac_word=$2
11897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11898$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011899if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011900 $as_echo_n "(cached) " >&6
11901else
11902 if test -n "$ac_ct_STRIP"; then
11903 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11904else
11905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906for as_dir in $PATH
11907do
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011912 ac_cv_prog_ac_ct_STRIP="strip"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11915 fi
11916done
11917 done
11918IFS=$as_save_IFS
11919
11920fi
11921fi
11922ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11923if test -n "$ac_ct_STRIP"; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11925$as_echo "$ac_ct_STRIP" >&6; }
11926else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928$as_echo "no" >&6; }
11929fi
11930
11931 if test "x$ac_ct_STRIP" = x; then
11932 STRIP=":"
11933 else
11934 case $cross_compiling:$ac_tool_warned in
11935yes:)
11936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11938ac_tool_warned=yes ;;
11939esac
11940 STRIP=$ac_ct_STRIP
11941 fi
11942else
11943 STRIP="$ac_cv_prog_STRIP"
11944fi
11945
11946test -z "$STRIP" && STRIP=:
11947
11948
11949
11950
11951
11952
11953if test -n "$ac_tool_prefix"; then
11954 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11955set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11957$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011958if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011959 $as_echo_n "(cached) " >&6
11960else
11961 if test -n "$RANLIB"; then
11962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11963else
11964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11965for as_dir in $PATH
11966do
11967 IFS=$as_save_IFS
11968 test -z "$as_dir" && as_dir=.
11969 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011971 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11973 break 2
11974 fi
11975done
11976 done
11977IFS=$as_save_IFS
11978
11979fi
11980fi
11981RANLIB=$ac_cv_prog_RANLIB
11982if test -n "$RANLIB"; then
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11984$as_echo "$RANLIB" >&6; }
11985else
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987$as_echo "no" >&6; }
11988fi
11989
11990
11991fi
11992if test -z "$ac_cv_prog_RANLIB"; then
11993 ac_ct_RANLIB=$RANLIB
11994 # Extract the first word of "ranlib", so it can be a program name with args.
11995set dummy ranlib; ac_word=$2
11996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11997$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011998if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011999 $as_echo_n "(cached) " >&6
12000else
12001 if test -n "$ac_ct_RANLIB"; then
12002 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12003else
12004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005for as_dir in $PATH
12006do
12007 IFS=$as_save_IFS
12008 test -z "$as_dir" && as_dir=.
12009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012011 ac_cv_prog_ac_ct_RANLIB="ranlib"
12012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12013 break 2
12014 fi
12015done
12016 done
12017IFS=$as_save_IFS
12018
12019fi
12020fi
12021ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12022if test -n "$ac_ct_RANLIB"; then
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12024$as_echo "$ac_ct_RANLIB" >&6; }
12025else
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027$as_echo "no" >&6; }
12028fi
12029
12030 if test "x$ac_ct_RANLIB" = x; then
12031 RANLIB=":"
12032 else
12033 case $cross_compiling:$ac_tool_warned in
12034yes:)
12035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12037ac_tool_warned=yes ;;
12038esac
12039 RANLIB=$ac_ct_RANLIB
12040 fi
12041else
12042 RANLIB="$ac_cv_prog_RANLIB"
12043fi
12044
12045test -z "$RANLIB" && RANLIB=:
12046
12047
12048
12049
12050
12051
12052# Determine commands to create old-style static archives.
12053old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12054old_postinstall_cmds='chmod 644 $oldlib'
12055old_postuninstall_cmds=
12056
12057if test -n "$RANLIB"; then
12058 case $host_os in
12059 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012060 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012061 ;;
12062 *)
cristy99bd5232011-12-07 14:38:20 +000012063 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012064 ;;
12065 esac
cristy99bd5232011-12-07 14:38:20 +000012066 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012067fi
12068
cristy0c60a692010-11-04 01:09:47 +000012069case $host_os in
12070 darwin*)
12071 lock_old_archive_extraction=yes ;;
12072 *)
12073 lock_old_archive_extraction=no ;;
12074esac
12075
12076
12077
12078
12079
12080
cristy73bd4a52010-10-05 11:24:23 +000012081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114# If no C compiler was specified, use CC.
12115LTCC=${LTCC-"$CC"}
12116
12117# If no C compiler flags were specified, use CFLAGS.
12118LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12119
12120# Allow CC to be a program name with arguments.
12121compiler=$CC
12122
12123
12124# Check for command to grab the raw symbol name followed by C symbol from nm.
12125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12126$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012127if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012128 $as_echo_n "(cached) " >&6
12129else
12130
12131# These are sane defaults that work on at least a few old systems.
12132# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12133
12134# Character class describing NM global symbol codes.
12135symcode='[BCDEGRST]'
12136
12137# Regexp to match symbols that can be accessed directly from C.
12138sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12139
12140# Define system-specific variables.
12141case $host_os in
12142aix*)
12143 symcode='[BCDT]'
12144 ;;
12145cygwin* | mingw* | pw32* | cegcc*)
12146 symcode='[ABCDGISTW]'
12147 ;;
12148hpux*)
12149 if test "$host_cpu" = ia64; then
12150 symcode='[ABCDEGRST]'
12151 fi
12152 ;;
12153irix* | nonstopux*)
12154 symcode='[BCDEGRST]'
12155 ;;
12156osf*)
12157 symcode='[BCDEGQRST]'
12158 ;;
12159solaris*)
12160 symcode='[BDRT]'
12161 ;;
12162sco3.2v5*)
12163 symcode='[DT]'
12164 ;;
12165sysv4.2uw2*)
12166 symcode='[DT]'
12167 ;;
12168sysv5* | sco5v6* | unixware* | OpenUNIX*)
12169 symcode='[ABDT]'
12170 ;;
12171sysv4)
12172 symcode='[DFNSTU]'
12173 ;;
12174esac
12175
12176# If we're using GNU nm, then use its standard symbol codes.
12177case `$NM -V 2>&1` in
12178*GNU* | *'with BFD'*)
12179 symcode='[ABCDGIRSTW]' ;;
12180esac
12181
12182# Transform an extracted symbol line into a proper C declaration.
12183# Some systems (esp. on ia64) link data and code symbols differently,
12184# so use this general approach.
12185lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12186
12187# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012188lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12189lt_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 +000012190
12191# Handle CRLF in mingw tool chain
12192opt_cr=
12193case $build_os in
12194mingw*)
12195 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12196 ;;
12197esac
12198
12199# Try without a prefix underscore, then with it.
12200for ac_symprfx in "" "_"; do
12201
12202 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12203 symxfrm="\\1 $ac_symprfx\\2 \\2"
12204
12205 # Write the raw and C identifiers.
12206 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12207 # Fake it for dumpbin and say T for any non-static function
12208 # and D for any global variable.
12209 # Also find C++ and __fastcall symbols from MSVC++,
12210 # which start with @ or ?.
12211 lt_cv_sys_global_symbol_pipe="$AWK '"\
12212" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012213" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012214" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12215" \$ 0!~/External *\|/{next};"\
12216" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12217" {if(hide[section]) next};"\
12218" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12219" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12220" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12221" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12222" ' prfx=^$ac_symprfx"
12223 else
12224 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12225 fi
cristyda16f162011-02-19 23:52:17 +000012226 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012227
12228 # Check to see that the pipe works correctly.
12229 pipe_works=no
12230
12231 rm -f conftest*
12232 cat > conftest.$ac_ext <<_LT_EOF
12233#ifdef __cplusplus
12234extern "C" {
12235#endif
12236char nm_test_var;
12237void nm_test_func(void);
12238void nm_test_func(void){}
12239#ifdef __cplusplus
12240}
12241#endif
12242int main(){nm_test_var='a';nm_test_func();return(0);}
12243_LT_EOF
12244
12245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12246 (eval $ac_compile) 2>&5
12247 ac_status=$?
12248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12249 test $ac_status = 0; }; then
12250 # Now try to grab the symbols.
12251 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12253 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012254 ac_status=$?
12255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12256 test $ac_status = 0; } && test -s "$nlist"; then
12257 # Try sorting and uniquifying the output.
12258 if sort "$nlist" | uniq > "$nlist"T; then
12259 mv -f "$nlist"T "$nlist"
12260 else
12261 rm -f "$nlist"T
12262 fi
12263
12264 # Make sure that we snagged all the symbols we need.
12265 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12266 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12267 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012268/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12269#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12270/* DATA imports from DLLs on WIN32 con't be const, because runtime
12271 relocations are performed -- see ld's documentation on pseudo-relocs. */
12272# define LT_DLSYM_CONST
12273#elif defined(__osf__)
12274/* This system does not cope well with relocations in const data. */
12275# define LT_DLSYM_CONST
12276#else
12277# define LT_DLSYM_CONST const
12278#endif
12279
cristy73bd4a52010-10-05 11:24:23 +000012280#ifdef __cplusplus
12281extern "C" {
12282#endif
12283
12284_LT_EOF
12285 # Now generate the symbol file.
12286 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12287
12288 cat <<_LT_EOF >> conftest.$ac_ext
12289
12290/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012291LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012292 const char *name;
12293 void *address;
12294}
12295lt__PROGRAM__LTX_preloaded_symbols[] =
12296{
12297 { "@PROGRAM@", (void *) 0 },
12298_LT_EOF
12299 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12300 cat <<\_LT_EOF >> conftest.$ac_ext
12301 {0, (void *) 0}
12302};
12303
12304/* This works around a problem in FreeBSD linker */
12305#ifdef FREEBSD_WORKAROUND
12306static const void *lt_preloaded_setup() {
12307 return lt__PROGRAM__LTX_preloaded_symbols;
12308}
12309#endif
12310
12311#ifdef __cplusplus
12312}
12313#endif
12314_LT_EOF
12315 # Now try linking the two files.
12316 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012317 lt_globsym_save_LIBS=$LIBS
12318 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012319 LIBS="conftstm.$ac_objext"
12320 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12322 (eval $ac_link) 2>&5
12323 ac_status=$?
12324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12325 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12326 pipe_works=yes
12327 fi
cristyda16f162011-02-19 23:52:17 +000012328 LIBS=$lt_globsym_save_LIBS
12329 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012330 else
12331 echo "cannot find nm_test_func in $nlist" >&5
12332 fi
12333 else
12334 echo "cannot find nm_test_var in $nlist" >&5
12335 fi
12336 else
12337 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12338 fi
12339 else
12340 echo "$progname: failed program was:" >&5
12341 cat conftest.$ac_ext >&5
12342 fi
12343 rm -rf conftest* conftst*
12344
12345 # Do not use the global_symbol_pipe unless it works.
12346 if test "$pipe_works" = yes; then
12347 break
12348 else
12349 lt_cv_sys_global_symbol_pipe=
12350 fi
12351done
12352
12353fi
12354
12355if test -z "$lt_cv_sys_global_symbol_pipe"; then
12356 lt_cv_sys_global_symbol_to_cdecl=
12357fi
12358if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12360$as_echo "failed" >&6; }
12361else
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12363$as_echo "ok" >&6; }
12364fi
12365
cristyda16f162011-02-19 23:52:17 +000012366# Response file support.
12367if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12368 nm_file_list_spec='@'
12369elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12370 nm_file_list_spec='@'
12371fi
cristy73bd4a52010-10-05 11:24:23 +000012372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
cristyda16f162011-02-19 23:52:17 +000012393
12394
12395
12396
12397
12398
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12400$as_echo_n "checking for sysroot... " >&6; }
12401
12402# Check whether --with-sysroot was given.
12403if test "${with_sysroot+set}" = set; then :
12404 withval=$with_sysroot;
12405else
12406 with_sysroot=no
12407fi
12408
12409
12410lt_sysroot=
12411case ${with_sysroot} in #(
12412 yes)
12413 if test "$GCC" = yes; then
12414 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12415 fi
12416 ;; #(
12417 /*)
12418 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12419 ;; #(
12420 no|'')
12421 ;; #(
12422 *)
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12424$as_echo "${with_sysroot}" >&6; }
12425 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12426 ;;
12427esac
12428
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12430$as_echo "${lt_sysroot:-no}" >&6; }
12431
12432
12433
12434
12435
cristy73bd4a52010-10-05 11:24:23 +000012436# Check whether --enable-libtool-lock was given.
12437if test "${enable_libtool_lock+set}" = set; then :
12438 enableval=$enable_libtool_lock;
12439fi
12440
12441test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12442
12443# Some flags need to be propagated to the compiler or linker for good
12444# libtool support.
12445case $host in
12446ia64-*-hpux*)
12447 # Find out which ABI we are using.
12448 echo 'int i;' > conftest.$ac_ext
12449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12450 (eval $ac_compile) 2>&5
12451 ac_status=$?
12452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12453 test $ac_status = 0; }; then
12454 case `/usr/bin/file conftest.$ac_objext` in
12455 *ELF-32*)
12456 HPUX_IA64_MODE="32"
12457 ;;
12458 *ELF-64*)
12459 HPUX_IA64_MODE="64"
12460 ;;
12461 esac
12462 fi
12463 rm -rf conftest*
12464 ;;
12465*-*-irix6*)
12466 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012467 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12469 (eval $ac_compile) 2>&5
12470 ac_status=$?
12471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12472 test $ac_status = 0; }; then
12473 if test "$lt_cv_prog_gnu_ld" = yes; then
12474 case `/usr/bin/file conftest.$ac_objext` in
12475 *32-bit*)
12476 LD="${LD-ld} -melf32bsmip"
12477 ;;
12478 *N32*)
12479 LD="${LD-ld} -melf32bmipn32"
12480 ;;
12481 *64-bit*)
12482 LD="${LD-ld} -melf64bmip"
12483 ;;
12484 esac
12485 else
12486 case `/usr/bin/file conftest.$ac_objext` in
12487 *32-bit*)
12488 LD="${LD-ld} -32"
12489 ;;
12490 *N32*)
12491 LD="${LD-ld} -n32"
12492 ;;
12493 *64-bit*)
12494 LD="${LD-ld} -64"
12495 ;;
12496 esac
12497 fi
12498 fi
12499 rm -rf conftest*
12500 ;;
12501
12502x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12503s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12504 # Find out which ABI we are using.
12505 echo 'int i;' > conftest.$ac_ext
12506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12507 (eval $ac_compile) 2>&5
12508 ac_status=$?
12509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12510 test $ac_status = 0; }; then
12511 case `/usr/bin/file conftest.o` in
12512 *32-bit*)
12513 case $host in
12514 x86_64-*kfreebsd*-gnu)
12515 LD="${LD-ld} -m elf_i386_fbsd"
12516 ;;
12517 x86_64-*linux*)
12518 LD="${LD-ld} -m elf_i386"
12519 ;;
12520 ppc64-*linux*|powerpc64-*linux*)
12521 LD="${LD-ld} -m elf32ppclinux"
12522 ;;
12523 s390x-*linux*)
12524 LD="${LD-ld} -m elf_s390"
12525 ;;
12526 sparc64-*linux*)
12527 LD="${LD-ld} -m elf32_sparc"
12528 ;;
12529 esac
12530 ;;
12531 *64-bit*)
12532 case $host in
12533 x86_64-*kfreebsd*-gnu)
12534 LD="${LD-ld} -m elf_x86_64_fbsd"
12535 ;;
12536 x86_64-*linux*)
12537 LD="${LD-ld} -m elf_x86_64"
12538 ;;
12539 ppc*-*linux*|powerpc*-*linux*)
12540 LD="${LD-ld} -m elf64ppc"
12541 ;;
12542 s390*-*linux*|s390*-*tpf*)
12543 LD="${LD-ld} -m elf64_s390"
12544 ;;
12545 sparc*-*linux*)
12546 LD="${LD-ld} -m elf64_sparc"
12547 ;;
12548 esac
12549 ;;
12550 esac
12551 fi
12552 rm -rf conftest*
12553 ;;
12554
12555*-*-sco3.2v5*)
12556 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12557 SAVE_CFLAGS="$CFLAGS"
12558 CFLAGS="$CFLAGS -belf"
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12560$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012561if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012562 $as_echo_n "(cached) " >&6
12563else
12564 ac_ext=c
12565ac_cpp='$CPP $CPPFLAGS'
12566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12568ac_compiler_gnu=$ac_cv_c_compiler_gnu
12569
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571/* end confdefs.h. */
12572
12573int
12574main ()
12575{
12576
12577 ;
12578 return 0;
12579}
12580_ACEOF
12581if ac_fn_c_try_link "$LINENO"; then :
12582 lt_cv_cc_needs_belf=yes
12583else
12584 lt_cv_cc_needs_belf=no
12585fi
12586rm -f core conftest.err conftest.$ac_objext \
12587 conftest$ac_exeext conftest.$ac_ext
12588 ac_ext=c
12589ac_cpp='$CPP $CPPFLAGS'
12590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12592ac_compiler_gnu=$ac_cv_c_compiler_gnu
12593
12594fi
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12596$as_echo "$lt_cv_cc_needs_belf" >&6; }
12597 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12598 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12599 CFLAGS="$SAVE_CFLAGS"
12600 fi
12601 ;;
cristy99bd5232011-12-07 14:38:20 +000012602*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012603 # Find out which ABI we are using.
12604 echo 'int i;' > conftest.$ac_ext
12605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12606 (eval $ac_compile) 2>&5
12607 ac_status=$?
12608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12609 test $ac_status = 0; }; then
12610 case `/usr/bin/file conftest.o` in
12611 *64-bit*)
12612 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012613 yes*)
12614 case $host in
12615 i?86-*-solaris*)
12616 LD="${LD-ld} -m elf_x86_64"
12617 ;;
12618 sparc*-*-solaris*)
12619 LD="${LD-ld} -m elf64_sparc"
12620 ;;
12621 esac
12622 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12623 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12624 LD="${LD-ld}_sol2"
12625 fi
12626 ;;
cristy73bd4a52010-10-05 11:24:23 +000012627 *)
12628 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12629 LD="${LD-ld} -64"
12630 fi
12631 ;;
12632 esac
12633 ;;
12634 esac
12635 fi
12636 rm -rf conftest*
12637 ;;
12638esac
12639
12640need_locks="$enable_libtool_lock"
12641
cristyda16f162011-02-19 23:52:17 +000012642if test -n "$ac_tool_prefix"; then
12643 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12644set dummy ${ac_tool_prefix}mt; ac_word=$2
12645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646$as_echo_n "checking for $ac_word... " >&6; }
12647if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649else
12650 if test -n "$MANIFEST_TOOL"; then
12651 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12652else
12653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654for as_dir in $PATH
12655do
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012660 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12663 fi
12664done
12665 done
12666IFS=$as_save_IFS
12667
12668fi
12669fi
12670MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12671if test -n "$MANIFEST_TOOL"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12673$as_echo "$MANIFEST_TOOL" >&6; }
12674else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676$as_echo "no" >&6; }
12677fi
12678
12679
12680fi
12681if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12682 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12683 # Extract the first word of "mt", so it can be a program name with args.
12684set dummy mt; ac_word=$2
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12686$as_echo_n "checking for $ac_word... " >&6; }
12687if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12688 $as_echo_n "(cached) " >&6
12689else
12690 if test -n "$ac_ct_MANIFEST_TOOL"; then
12691 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12692else
12693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12694for as_dir in $PATH
12695do
12696 IFS=$as_save_IFS
12697 test -z "$as_dir" && as_dir=.
12698 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012700 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12702 break 2
12703 fi
12704done
12705 done
12706IFS=$as_save_IFS
12707
12708fi
12709fi
12710ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12711if test -n "$ac_ct_MANIFEST_TOOL"; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12713$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12714else
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716$as_echo "no" >&6; }
12717fi
12718
12719 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12720 MANIFEST_TOOL=":"
12721 else
12722 case $cross_compiling:$ac_tool_warned in
12723yes:)
12724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12726ac_tool_warned=yes ;;
12727esac
12728 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12729 fi
12730else
12731 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12732fi
12733
12734test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12736$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12737if ${lt_cv_path_mainfest_tool+:} false; then :
12738 $as_echo_n "(cached) " >&6
12739else
12740 lt_cv_path_mainfest_tool=no
12741 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12742 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12743 cat conftest.err >&5
12744 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12745 lt_cv_path_mainfest_tool=yes
12746 fi
12747 rm -f conftest*
12748fi
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12750$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12751if test "x$lt_cv_path_mainfest_tool" != xyes; then
12752 MANIFEST_TOOL=:
12753fi
12754
12755
12756
12757
12758
cristy73bd4a52010-10-05 11:24:23 +000012759
12760 case $host_os in
12761 rhapsody* | darwin*)
12762 if test -n "$ac_tool_prefix"; then
12763 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12764set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012767if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012768 $as_echo_n "(cached) " >&6
12769else
12770 if test -n "$DSYMUTIL"; then
12771 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12772else
12773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774for as_dir in $PATH
12775do
12776 IFS=$as_save_IFS
12777 test -z "$as_dir" && as_dir=.
12778 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012780 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12782 break 2
12783 fi
12784done
12785 done
12786IFS=$as_save_IFS
12787
12788fi
12789fi
12790DSYMUTIL=$ac_cv_prog_DSYMUTIL
12791if test -n "$DSYMUTIL"; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12793$as_echo "$DSYMUTIL" >&6; }
12794else
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796$as_echo "no" >&6; }
12797fi
12798
12799
12800fi
12801if test -z "$ac_cv_prog_DSYMUTIL"; then
12802 ac_ct_DSYMUTIL=$DSYMUTIL
12803 # Extract the first word of "dsymutil", so it can be a program name with args.
12804set dummy dsymutil; ac_word=$2
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012807if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012808 $as_echo_n "(cached) " >&6
12809else
12810 if test -n "$ac_ct_DSYMUTIL"; then
12811 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12812else
12813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814for as_dir in $PATH
12815do
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012820 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12823 fi
12824done
12825 done
12826IFS=$as_save_IFS
12827
12828fi
12829fi
12830ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12831if test -n "$ac_ct_DSYMUTIL"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12833$as_echo "$ac_ct_DSYMUTIL" >&6; }
12834else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836$as_echo "no" >&6; }
12837fi
12838
12839 if test "x$ac_ct_DSYMUTIL" = x; then
12840 DSYMUTIL=":"
12841 else
12842 case $cross_compiling:$ac_tool_warned in
12843yes:)
12844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12846ac_tool_warned=yes ;;
12847esac
12848 DSYMUTIL=$ac_ct_DSYMUTIL
12849 fi
12850else
12851 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12852fi
12853
12854 if test -n "$ac_tool_prefix"; then
12855 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12856set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12858$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012859if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012860 $as_echo_n "(cached) " >&6
12861else
12862 if test -n "$NMEDIT"; then
12863 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12864else
12865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866for as_dir in $PATH
12867do
12868 IFS=$as_save_IFS
12869 test -z "$as_dir" && as_dir=.
12870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012872 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12874 break 2
12875 fi
12876done
12877 done
12878IFS=$as_save_IFS
12879
12880fi
12881fi
12882NMEDIT=$ac_cv_prog_NMEDIT
12883if test -n "$NMEDIT"; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12885$as_echo "$NMEDIT" >&6; }
12886else
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888$as_echo "no" >&6; }
12889fi
12890
12891
12892fi
12893if test -z "$ac_cv_prog_NMEDIT"; then
12894 ac_ct_NMEDIT=$NMEDIT
12895 # Extract the first word of "nmedit", so it can be a program name with args.
12896set dummy nmedit; ac_word=$2
12897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012899if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012900 $as_echo_n "(cached) " >&6
12901else
12902 if test -n "$ac_ct_NMEDIT"; then
12903 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12904else
12905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906for as_dir in $PATH
12907do
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012912 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12915 fi
12916done
12917 done
12918IFS=$as_save_IFS
12919
12920fi
12921fi
12922ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12923if test -n "$ac_ct_NMEDIT"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12925$as_echo "$ac_ct_NMEDIT" >&6; }
12926else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928$as_echo "no" >&6; }
12929fi
12930
12931 if test "x$ac_ct_NMEDIT" = x; then
12932 NMEDIT=":"
12933 else
12934 case $cross_compiling:$ac_tool_warned in
12935yes:)
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12938ac_tool_warned=yes ;;
12939esac
12940 NMEDIT=$ac_ct_NMEDIT
12941 fi
12942else
12943 NMEDIT="$ac_cv_prog_NMEDIT"
12944fi
12945
12946 if test -n "$ac_tool_prefix"; then
12947 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12948set dummy ${ac_tool_prefix}lipo; ac_word=$2
12949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12950$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012951if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012952 $as_echo_n "(cached) " >&6
12953else
12954 if test -n "$LIPO"; then
12955 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12956else
12957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12958for as_dir in $PATH
12959do
12960 IFS=$as_save_IFS
12961 test -z "$as_dir" && as_dir=.
12962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012964 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12966 break 2
12967 fi
12968done
12969 done
12970IFS=$as_save_IFS
12971
12972fi
12973fi
12974LIPO=$ac_cv_prog_LIPO
12975if test -n "$LIPO"; then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12977$as_echo "$LIPO" >&6; }
12978else
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980$as_echo "no" >&6; }
12981fi
12982
12983
12984fi
12985if test -z "$ac_cv_prog_LIPO"; then
12986 ac_ct_LIPO=$LIPO
12987 # Extract the first word of "lipo", so it can be a program name with args.
12988set dummy lipo; ac_word=$2
12989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012991if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012992 $as_echo_n "(cached) " >&6
12993else
12994 if test -n "$ac_ct_LIPO"; then
12995 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12996else
12997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998for as_dir in $PATH
12999do
13000 IFS=$as_save_IFS
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013004 ac_cv_prog_ac_ct_LIPO="lipo"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 break 2
13007 fi
13008done
13009 done
13010IFS=$as_save_IFS
13011
13012fi
13013fi
13014ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13015if test -n "$ac_ct_LIPO"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13017$as_echo "$ac_ct_LIPO" >&6; }
13018else
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020$as_echo "no" >&6; }
13021fi
13022
13023 if test "x$ac_ct_LIPO" = x; then
13024 LIPO=":"
13025 else
13026 case $cross_compiling:$ac_tool_warned in
13027yes:)
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13030ac_tool_warned=yes ;;
13031esac
13032 LIPO=$ac_ct_LIPO
13033 fi
13034else
13035 LIPO="$ac_cv_prog_LIPO"
13036fi
13037
13038 if test -n "$ac_tool_prefix"; then
13039 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13040set dummy ${ac_tool_prefix}otool; ac_word=$2
13041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13042$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013043if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013044 $as_echo_n "(cached) " >&6
13045else
13046 if test -n "$OTOOL"; then
13047 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13048else
13049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050for as_dir in $PATH
13051do
13052 IFS=$as_save_IFS
13053 test -z "$as_dir" && as_dir=.
13054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013056 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13058 break 2
13059 fi
13060done
13061 done
13062IFS=$as_save_IFS
13063
13064fi
13065fi
13066OTOOL=$ac_cv_prog_OTOOL
13067if test -n "$OTOOL"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13069$as_echo "$OTOOL" >&6; }
13070else
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072$as_echo "no" >&6; }
13073fi
13074
13075
13076fi
13077if test -z "$ac_cv_prog_OTOOL"; then
13078 ac_ct_OTOOL=$OTOOL
13079 # Extract the first word of "otool", so it can be a program name with args.
13080set dummy otool; ac_word=$2
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13082$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013083if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013084 $as_echo_n "(cached) " >&6
13085else
13086 if test -n "$ac_ct_OTOOL"; then
13087 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13088else
13089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090for as_dir in $PATH
13091do
13092 IFS=$as_save_IFS
13093 test -z "$as_dir" && as_dir=.
13094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013096 ac_cv_prog_ac_ct_OTOOL="otool"
13097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098 break 2
13099 fi
13100done
13101 done
13102IFS=$as_save_IFS
13103
13104fi
13105fi
13106ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13107if test -n "$ac_ct_OTOOL"; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13109$as_echo "$ac_ct_OTOOL" >&6; }
13110else
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112$as_echo "no" >&6; }
13113fi
13114
13115 if test "x$ac_ct_OTOOL" = x; then
13116 OTOOL=":"
13117 else
13118 case $cross_compiling:$ac_tool_warned in
13119yes:)
13120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13122ac_tool_warned=yes ;;
13123esac
13124 OTOOL=$ac_ct_OTOOL
13125 fi
13126else
13127 OTOOL="$ac_cv_prog_OTOOL"
13128fi
13129
13130 if test -n "$ac_tool_prefix"; then
13131 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13132set dummy ${ac_tool_prefix}otool64; ac_word=$2
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13134$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013135if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013136 $as_echo_n "(cached) " >&6
13137else
13138 if test -n "$OTOOL64"; then
13139 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13140else
13141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142for as_dir in $PATH
13143do
13144 IFS=$as_save_IFS
13145 test -z "$as_dir" && as_dir=.
13146 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013148 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13150 break 2
13151 fi
13152done
13153 done
13154IFS=$as_save_IFS
13155
13156fi
13157fi
13158OTOOL64=$ac_cv_prog_OTOOL64
13159if test -n "$OTOOL64"; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13161$as_echo "$OTOOL64" >&6; }
13162else
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164$as_echo "no" >&6; }
13165fi
13166
13167
13168fi
13169if test -z "$ac_cv_prog_OTOOL64"; then
13170 ac_ct_OTOOL64=$OTOOL64
13171 # Extract the first word of "otool64", so it can be a program name with args.
13172set dummy otool64; ac_word=$2
13173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013175if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013176 $as_echo_n "(cached) " >&6
13177else
13178 if test -n "$ac_ct_OTOOL64"; then
13179 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13180else
13181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182for as_dir in $PATH
13183do
13184 IFS=$as_save_IFS
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013188 ac_cv_prog_ac_ct_OTOOL64="otool64"
13189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13190 break 2
13191 fi
13192done
13193 done
13194IFS=$as_save_IFS
13195
13196fi
13197fi
13198ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13199if test -n "$ac_ct_OTOOL64"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13201$as_echo "$ac_ct_OTOOL64" >&6; }
13202else
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204$as_echo "no" >&6; }
13205fi
13206
13207 if test "x$ac_ct_OTOOL64" = x; then
13208 OTOOL64=":"
13209 else
13210 case $cross_compiling:$ac_tool_warned in
13211yes:)
13212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13214ac_tool_warned=yes ;;
13215esac
13216 OTOOL64=$ac_ct_OTOOL64
13217 fi
13218else
13219 OTOOL64="$ac_cv_prog_OTOOL64"
13220fi
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13249$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013250if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013251 $as_echo_n "(cached) " >&6
13252else
13253 lt_cv_apple_cc_single_mod=no
13254 if test -z "${LT_MULTI_MODULE}"; then
13255 # By default we will add the -single_module flag. You can override
13256 # by either setting the environment variable LT_MULTI_MODULE
13257 # non-empty at configure time, or by adding -multi_module to the
13258 # link flags.
13259 rm -rf libconftest.dylib*
13260 echo "int foo(void){return 1;}" > conftest.c
13261 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13262-dynamiclib -Wl,-single_module conftest.c" >&5
13263 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13264 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13265 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013266 # If there is a non-empty error log, and "single_module"
13267 # appears in it, assume the flag caused a linker warning
13268 if test -s conftest.err && $GREP single_module conftest.err; then
13269 cat conftest.err >&5
13270 # Otherwise, if the output was created with a 0 exit code from
13271 # the compiler, it worked.
13272 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013273 lt_cv_apple_cc_single_mod=yes
13274 else
13275 cat conftest.err >&5
13276 fi
13277 rm -rf libconftest.dylib*
13278 rm -f conftest.*
13279 fi
13280fi
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13282$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013283
cristy73bd4a52010-10-05 11:24:23 +000013284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13285$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013286if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013287 $as_echo_n "(cached) " >&6
13288else
13289 lt_cv_ld_exported_symbols_list=no
13290 save_LDFLAGS=$LDFLAGS
13291 echo "_main" > conftest.sym
13292 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294/* end confdefs.h. */
13295
13296int
13297main ()
13298{
13299
13300 ;
13301 return 0;
13302}
13303_ACEOF
13304if ac_fn_c_try_link "$LINENO"; then :
13305 lt_cv_ld_exported_symbols_list=yes
13306else
13307 lt_cv_ld_exported_symbols_list=no
13308fi
13309rm -f core conftest.err conftest.$ac_objext \
13310 conftest$ac_exeext conftest.$ac_ext
13311 LDFLAGS="$save_LDFLAGS"
13312
13313fi
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13315$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013316
cristy0c60a692010-11-04 01:09:47 +000013317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13318$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013319if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013320 $as_echo_n "(cached) " >&6
13321else
13322 lt_cv_ld_force_load=no
13323 cat > conftest.c << _LT_EOF
13324int forced_loaded() { return 2;}
13325_LT_EOF
13326 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13327 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13328 echo "$AR cru libconftest.a conftest.o" >&5
13329 $AR cru libconftest.a conftest.o 2>&5
13330 echo "$RANLIB libconftest.a" >&5
13331 $RANLIB libconftest.a 2>&5
13332 cat > conftest.c << _LT_EOF
13333int main() { return 0;}
13334_LT_EOF
13335 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13336 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13337 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013338 if test -s conftest.err && $GREP force_load conftest.err; then
13339 cat conftest.err >&5
13340 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013341 lt_cv_ld_force_load=yes
13342 else
13343 cat conftest.err >&5
13344 fi
13345 rm -f conftest.err libconftest.a conftest conftest.c
13346 rm -rf conftest.dSYM
13347
13348fi
13349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13350$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013351 case $host_os in
13352 rhapsody* | darwin1.[012])
13353 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13354 darwin1.*)
13355 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13356 darwin*) # darwin 5.x on
13357 # if running on 10.5 or later, the deployment target defaults
13358 # to the OS version, if on x86, and 10.4, the deployment
13359 # target defaults to 10.4. Don't you love it?
13360 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13361 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13362 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13363 10.[012]*)
13364 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13365 10.*)
13366 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13367 esac
13368 ;;
13369 esac
13370 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13371 _lt_dar_single_mod='$single_module'
13372 fi
13373 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13374 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13375 else
13376 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13377 fi
cristy0c60a692010-11-04 01:09:47 +000013378 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013379 _lt_dsymutil='~$DSYMUTIL $lib || :'
13380 else
13381 _lt_dsymutil=
13382 fi
13383 ;;
13384 esac
13385
13386for ac_header in dlfcn.h
13387do :
13388 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13389"
cristyda16f162011-02-19 23:52:17 +000013390if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013391 cat >>confdefs.h <<_ACEOF
13392#define HAVE_DLFCN_H 1
13393_ACEOF
13394
13395fi
13396
13397done
13398
13399
13400
cristy73bd4a52010-10-05 11:24:23 +000013401
cristyda16f162011-02-19 23:52:17 +000013402func_stripname_cnf ()
13403{
13404 case ${2} in
13405 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13406 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13407 esac
13408} # func_stripname_cnf
13409
13410
13411
cristy73bd4a52010-10-05 11:24:23 +000013412
13413
13414# Set options
13415enable_win32_dll=yes
13416
13417case $host in
cristy0c60a692010-11-04 01:09:47 +000013418*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013419 if test -n "$ac_tool_prefix"; then
13420 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13421set dummy ${ac_tool_prefix}as; ac_word=$2
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13423$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013424if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013425 $as_echo_n "(cached) " >&6
13426else
13427 if test -n "$AS"; then
13428 ac_cv_prog_AS="$AS" # Let the user override the test.
13429else
13430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431for as_dir in $PATH
13432do
13433 IFS=$as_save_IFS
13434 test -z "$as_dir" && as_dir=.
13435 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013437 ac_cv_prog_AS="${ac_tool_prefix}as"
13438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13439 break 2
13440 fi
13441done
13442 done
13443IFS=$as_save_IFS
13444
13445fi
13446fi
13447AS=$ac_cv_prog_AS
13448if test -n "$AS"; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13450$as_echo "$AS" >&6; }
13451else
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453$as_echo "no" >&6; }
13454fi
13455
13456
13457fi
13458if test -z "$ac_cv_prog_AS"; then
13459 ac_ct_AS=$AS
13460 # Extract the first word of "as", so it can be a program name with args.
13461set dummy as; ac_word=$2
13462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13463$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013464if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013465 $as_echo_n "(cached) " >&6
13466else
13467 if test -n "$ac_ct_AS"; then
13468 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13469else
13470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471for as_dir in $PATH
13472do
13473 IFS=$as_save_IFS
13474 test -z "$as_dir" && as_dir=.
13475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013477 ac_cv_prog_ac_ct_AS="as"
13478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13479 break 2
13480 fi
13481done
13482 done
13483IFS=$as_save_IFS
13484
13485fi
13486fi
13487ac_ct_AS=$ac_cv_prog_ac_ct_AS
13488if test -n "$ac_ct_AS"; then
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13490$as_echo "$ac_ct_AS" >&6; }
13491else
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493$as_echo "no" >&6; }
13494fi
13495
13496 if test "x$ac_ct_AS" = x; then
13497 AS="false"
13498 else
13499 case $cross_compiling:$ac_tool_warned in
13500yes:)
13501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13503ac_tool_warned=yes ;;
13504esac
13505 AS=$ac_ct_AS
13506 fi
13507else
13508 AS="$ac_cv_prog_AS"
13509fi
13510
13511 if test -n "$ac_tool_prefix"; then
13512 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13513set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13515$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013516if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013517 $as_echo_n "(cached) " >&6
13518else
13519 if test -n "$DLLTOOL"; then
13520 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13521else
13522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13523for as_dir in $PATH
13524do
13525 IFS=$as_save_IFS
13526 test -z "$as_dir" && as_dir=.
13527 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013529 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13531 break 2
13532 fi
13533done
13534 done
13535IFS=$as_save_IFS
13536
13537fi
13538fi
13539DLLTOOL=$ac_cv_prog_DLLTOOL
13540if test -n "$DLLTOOL"; then
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13542$as_echo "$DLLTOOL" >&6; }
13543else
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545$as_echo "no" >&6; }
13546fi
13547
13548
13549fi
13550if test -z "$ac_cv_prog_DLLTOOL"; then
13551 ac_ct_DLLTOOL=$DLLTOOL
13552 # Extract the first word of "dlltool", so it can be a program name with args.
13553set dummy dlltool; ac_word=$2
13554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13555$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013556if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013557 $as_echo_n "(cached) " >&6
13558else
13559 if test -n "$ac_ct_DLLTOOL"; then
13560 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13561else
13562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13563for as_dir in $PATH
13564do
13565 IFS=$as_save_IFS
13566 test -z "$as_dir" && as_dir=.
13567 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013569 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13571 break 2
13572 fi
13573done
13574 done
13575IFS=$as_save_IFS
13576
13577fi
13578fi
13579ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13580if test -n "$ac_ct_DLLTOOL"; then
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13582$as_echo "$ac_ct_DLLTOOL" >&6; }
13583else
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585$as_echo "no" >&6; }
13586fi
13587
13588 if test "x$ac_ct_DLLTOOL" = x; then
13589 DLLTOOL="false"
13590 else
13591 case $cross_compiling:$ac_tool_warned in
13592yes:)
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13595ac_tool_warned=yes ;;
13596esac
13597 DLLTOOL=$ac_ct_DLLTOOL
13598 fi
13599else
13600 DLLTOOL="$ac_cv_prog_DLLTOOL"
13601fi
13602
13603 if test -n "$ac_tool_prefix"; then
13604 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13605set dummy ${ac_tool_prefix}objdump; ac_word=$2
13606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13607$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013608if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013609 $as_echo_n "(cached) " >&6
13610else
13611 if test -n "$OBJDUMP"; then
13612 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13613else
13614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13615for as_dir in $PATH
13616do
13617 IFS=$as_save_IFS
13618 test -z "$as_dir" && as_dir=.
13619 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013621 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13623 break 2
13624 fi
13625done
13626 done
13627IFS=$as_save_IFS
13628
13629fi
13630fi
13631OBJDUMP=$ac_cv_prog_OBJDUMP
13632if test -n "$OBJDUMP"; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13634$as_echo "$OBJDUMP" >&6; }
13635else
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637$as_echo "no" >&6; }
13638fi
13639
13640
13641fi
13642if test -z "$ac_cv_prog_OBJDUMP"; then
13643 ac_ct_OBJDUMP=$OBJDUMP
13644 # Extract the first word of "objdump", so it can be a program name with args.
13645set dummy objdump; ac_word=$2
13646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13647$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013648if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013649 $as_echo_n "(cached) " >&6
13650else
13651 if test -n "$ac_ct_OBJDUMP"; then
13652 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13653else
13654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13655for as_dir in $PATH
13656do
13657 IFS=$as_save_IFS
13658 test -z "$as_dir" && as_dir=.
13659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013661 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13663 break 2
13664 fi
13665done
13666 done
13667IFS=$as_save_IFS
13668
13669fi
13670fi
13671ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13672if test -n "$ac_ct_OBJDUMP"; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13674$as_echo "$ac_ct_OBJDUMP" >&6; }
13675else
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13677$as_echo "no" >&6; }
13678fi
13679
13680 if test "x$ac_ct_OBJDUMP" = x; then
13681 OBJDUMP="false"
13682 else
13683 case $cross_compiling:$ac_tool_warned in
13684yes:)
13685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13687ac_tool_warned=yes ;;
13688esac
13689 OBJDUMP=$ac_ct_OBJDUMP
13690 fi
13691else
13692 OBJDUMP="$ac_cv_prog_OBJDUMP"
13693fi
13694
13695 ;;
13696esac
13697
13698test -z "$AS" && AS=as
13699
13700
13701
13702
13703
13704test -z "$DLLTOOL" && DLLTOOL=dlltool
13705
13706
13707
13708
13709
13710test -z "$OBJDUMP" && OBJDUMP=objdump
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720 # Check whether --enable-shared was given.
13721if test "${enable_shared+set}" = set; then :
13722 enableval=$enable_shared; p=${PACKAGE-default}
13723 case $enableval in
13724 yes) enable_shared=yes ;;
13725 no) enable_shared=no ;;
13726 *)
13727 enable_shared=no
13728 # Look at the argument we got. We use all the common list separators.
13729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13730 for pkg in $enableval; do
13731 IFS="$lt_save_ifs"
13732 if test "X$pkg" = "X$p"; then
13733 enable_shared=yes
13734 fi
13735 done
13736 IFS="$lt_save_ifs"
13737 ;;
13738 esac
13739else
13740 enable_shared=yes
13741fi
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751 # Check whether --enable-static was given.
13752if test "${enable_static+set}" = set; then :
13753 enableval=$enable_static; p=${PACKAGE-default}
13754 case $enableval in
13755 yes) enable_static=yes ;;
13756 no) enable_static=no ;;
13757 *)
13758 enable_static=no
13759 # Look at the argument we got. We use all the common list separators.
13760 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13761 for pkg in $enableval; do
13762 IFS="$lt_save_ifs"
13763 if test "X$pkg" = "X$p"; then
13764 enable_static=yes
13765 fi
13766 done
13767 IFS="$lt_save_ifs"
13768 ;;
13769 esac
13770else
13771 enable_static=yes
13772fi
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783# Check whether --with-pic was given.
13784if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013785 withval=$with_pic; lt_p=${PACKAGE-default}
13786 case $withval in
13787 yes|no) pic_mode=$withval ;;
13788 *)
13789 pic_mode=default
13790 # Look at the argument we got. We use all the common list separators.
13791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13792 for lt_pkg in $withval; do
13793 IFS="$lt_save_ifs"
13794 if test "X$lt_pkg" = "X$lt_p"; then
13795 pic_mode=yes
13796 fi
13797 done
13798 IFS="$lt_save_ifs"
13799 ;;
13800 esac
cristy73bd4a52010-10-05 11:24:23 +000013801else
13802 pic_mode=default
13803fi
13804
13805
13806test -z "$pic_mode" && pic_mode=default
13807
13808
13809
13810
13811
13812
13813
13814 # Check whether --enable-fast-install was given.
13815if test "${enable_fast_install+set}" = set; then :
13816 enableval=$enable_fast_install; p=${PACKAGE-default}
13817 case $enableval in
13818 yes) enable_fast_install=yes ;;
13819 no) enable_fast_install=no ;;
13820 *)
13821 enable_fast_install=no
13822 # Look at the argument we got. We use all the common list separators.
13823 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13824 for pkg in $enableval; do
13825 IFS="$lt_save_ifs"
13826 if test "X$pkg" = "X$p"; then
13827 enable_fast_install=yes
13828 fi
13829 done
13830 IFS="$lt_save_ifs"
13831 ;;
13832 esac
13833else
13834 enable_fast_install=yes
13835fi
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847# This can be used to rebuild libtool when needed
13848LIBTOOL_DEPS="$ltmain"
13849
13850# Always use our own libtool.
13851LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
cristy0c60a692010-11-04 01:09:47 +000013877
cristy99bd5232011-12-07 14:38:20 +000013878
13879
13880
13881
cristy73bd4a52010-10-05 11:24:23 +000013882test -z "$LN_S" && LN_S="ln -s"
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897if test -n "${ZSH_VERSION+set}" ; then
13898 setopt NO_GLOB_SUBST
13899fi
13900
13901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13902$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013903if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013904 $as_echo_n "(cached) " >&6
13905else
13906 rm -f .libs 2>/dev/null
13907mkdir .libs 2>/dev/null
13908if test -d .libs; then
13909 lt_cv_objdir=.libs
13910else
13911 # MS-DOS does not allow filenames that begin with a dot.
13912 lt_cv_objdir=_libs
13913fi
13914rmdir .libs 2>/dev/null
13915fi
13916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13917$as_echo "$lt_cv_objdir" >&6; }
13918objdir=$lt_cv_objdir
13919
13920
13921
13922
13923
13924cat >>confdefs.h <<_ACEOF
13925#define LT_OBJDIR "$lt_cv_objdir/"
13926_ACEOF
13927
13928
13929
13930
cristy73bd4a52010-10-05 11:24:23 +000013931case $host_os in
13932aix3*)
13933 # AIX sometimes has problems with the GCC collect2 program. For some
13934 # reason, if we set the COLLECT_NAMES environment variable, the problems
13935 # vanish in a puff of smoke.
13936 if test "X${COLLECT_NAMES+set}" != Xset; then
13937 COLLECT_NAMES=
13938 export COLLECT_NAMES
13939 fi
13940 ;;
13941esac
13942
cristy73bd4a52010-10-05 11:24:23 +000013943# Global variables:
13944ofile=libtool
13945can_build_shared=yes
13946
13947# All known linkers require a `.a' archive for static linking (except MSVC,
13948# which needs '.lib').
13949libext=a
13950
13951with_gnu_ld="$lt_cv_prog_gnu_ld"
13952
13953old_CC="$CC"
13954old_CFLAGS="$CFLAGS"
13955
13956# Set sane defaults for various variables
13957test -z "$CC" && CC=cc
13958test -z "$LTCC" && LTCC=$CC
13959test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13960test -z "$LD" && LD=ld
13961test -z "$ac_objext" && ac_objext=o
13962
13963for cc_temp in $compiler""; do
13964 case $cc_temp in
13965 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13966 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13967 \-*) ;;
13968 *) break;;
13969 esac
13970done
cristy0c60a692010-11-04 01:09:47 +000013971cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013972
13973
13974# Only perform the check for file, if the check method requires it
13975test -z "$MAGIC_CMD" && MAGIC_CMD=file
13976case $deplibs_check_method in
13977file_magic*)
13978 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13980$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013981if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013982 $as_echo_n "(cached) " >&6
13983else
13984 case $MAGIC_CMD in
13985[\\/*] | ?:[\\/]*)
13986 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13987 ;;
13988*)
13989 lt_save_MAGIC_CMD="$MAGIC_CMD"
13990 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13991 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13992 for ac_dir in $ac_dummy; do
13993 IFS="$lt_save_ifs"
13994 test -z "$ac_dir" && ac_dir=.
13995 if test -f $ac_dir/${ac_tool_prefix}file; then
13996 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13997 if test -n "$file_magic_test_file"; then
13998 case $deplibs_check_method in
13999 "file_magic "*)
14000 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14001 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14002 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14003 $EGREP "$file_magic_regex" > /dev/null; then
14004 :
14005 else
14006 cat <<_LT_EOF 1>&2
14007
14008*** Warning: the command libtool uses to detect shared libraries,
14009*** $file_magic_cmd, produces output that libtool cannot recognize.
14010*** The result is that libtool may fail to recognize shared libraries
14011*** as such. This will affect the creation of libtool libraries that
14012*** depend on shared libraries, but programs linked with such libtool
14013*** libraries will work regardless of this problem. Nevertheless, you
14014*** may want to report the problem to your system manager and/or to
14015*** bug-libtool@gnu.org
14016
14017_LT_EOF
14018 fi ;;
14019 esac
14020 fi
14021 break
14022 fi
14023 done
14024 IFS="$lt_save_ifs"
14025 MAGIC_CMD="$lt_save_MAGIC_CMD"
14026 ;;
14027esac
14028fi
14029
14030MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14031if test -n "$MAGIC_CMD"; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14033$as_echo "$MAGIC_CMD" >&6; }
14034else
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14036$as_echo "no" >&6; }
14037fi
14038
14039
14040
14041
14042
14043if test -z "$lt_cv_path_MAGIC_CMD"; then
14044 if test -n "$ac_tool_prefix"; then
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14046$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014047if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014048 $as_echo_n "(cached) " >&6
14049else
14050 case $MAGIC_CMD in
14051[\\/*] | ?:[\\/]*)
14052 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14053 ;;
14054*)
14055 lt_save_MAGIC_CMD="$MAGIC_CMD"
14056 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14057 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14058 for ac_dir in $ac_dummy; do
14059 IFS="$lt_save_ifs"
14060 test -z "$ac_dir" && ac_dir=.
14061 if test -f $ac_dir/file; then
14062 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14063 if test -n "$file_magic_test_file"; then
14064 case $deplibs_check_method in
14065 "file_magic "*)
14066 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14067 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14068 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14069 $EGREP "$file_magic_regex" > /dev/null; then
14070 :
14071 else
14072 cat <<_LT_EOF 1>&2
14073
14074*** Warning: the command libtool uses to detect shared libraries,
14075*** $file_magic_cmd, produces output that libtool cannot recognize.
14076*** The result is that libtool may fail to recognize shared libraries
14077*** as such. This will affect the creation of libtool libraries that
14078*** depend on shared libraries, but programs linked with such libtool
14079*** libraries will work regardless of this problem. Nevertheless, you
14080*** may want to report the problem to your system manager and/or to
14081*** bug-libtool@gnu.org
14082
14083_LT_EOF
14084 fi ;;
14085 esac
14086 fi
14087 break
14088 fi
14089 done
14090 IFS="$lt_save_ifs"
14091 MAGIC_CMD="$lt_save_MAGIC_CMD"
14092 ;;
14093esac
14094fi
14095
14096MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14097if test -n "$MAGIC_CMD"; then
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14099$as_echo "$MAGIC_CMD" >&6; }
14100else
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14102$as_echo "no" >&6; }
14103fi
14104
14105
14106 else
14107 MAGIC_CMD=:
14108 fi
14109fi
14110
14111 fi
14112 ;;
14113esac
14114
14115# Use C for the default configuration in the libtool script
14116
14117lt_save_CC="$CC"
14118ac_ext=c
14119ac_cpp='$CPP $CPPFLAGS'
14120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14122ac_compiler_gnu=$ac_cv_c_compiler_gnu
14123
14124
14125# Source file extension for C test sources.
14126ac_ext=c
14127
14128# Object file extension for compiled C test sources.
14129objext=o
14130objext=$objext
14131
14132# Code to be used in simple compile tests
14133lt_simple_compile_test_code="int some_variable = 0;"
14134
14135# Code to be used in simple link tests
14136lt_simple_link_test_code='int main(){return(0);}'
14137
14138
14139
14140
14141
14142
14143
14144# If no C compiler was specified, use CC.
14145LTCC=${LTCC-"$CC"}
14146
14147# If no C compiler flags were specified, use CFLAGS.
14148LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14149
14150# Allow CC to be a program name with arguments.
14151compiler=$CC
14152
14153# Save the default compiler, since it gets overwritten when the other
14154# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14155compiler_DEFAULT=$CC
14156
14157# save warnings/boilerplate of simple test code
14158ac_outfile=conftest.$ac_objext
14159echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14160eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14161_lt_compiler_boilerplate=`cat conftest.err`
14162$RM conftest*
14163
14164ac_outfile=conftest.$ac_objext
14165echo "$lt_simple_link_test_code" >conftest.$ac_ext
14166eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14167_lt_linker_boilerplate=`cat conftest.err`
14168$RM -r conftest*
14169
14170
14171## CAVEAT EMPTOR:
14172## There is no encapsulation within the following macros, do not change
14173## the running order or otherwise move them around unless you know exactly
14174## what you are doing...
14175if test -n "$compiler"; then
14176
14177lt_prog_compiler_no_builtin_flag=
14178
14179if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014180 case $cc_basename in
14181 nvcc*)
14182 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14183 *)
14184 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14185 esac
cristy73bd4a52010-10-05 11:24:23 +000014186
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14188$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014189if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014190 $as_echo_n "(cached) " >&6
14191else
14192 lt_cv_prog_compiler_rtti_exceptions=no
14193 ac_outfile=conftest.$ac_objext
14194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14195 lt_compiler_flag="-fno-rtti -fno-exceptions"
14196 # Insert the option either (1) after the last *FLAGS variable, or
14197 # (2) before a word containing "conftest.", or (3) at the end.
14198 # Note that $ac_compile itself does not contain backslashes and begins
14199 # with a dollar sign (not a hyphen), so the echo should work correctly.
14200 # The option is referenced via a variable to avoid confusing sed.
14201 lt_compile=`echo "$ac_compile" | $SED \
14202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14204 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014205 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014206 (eval "$lt_compile" 2>conftest.err)
14207 ac_status=$?
14208 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014210 if (exit $ac_status) && test -s "$ac_outfile"; then
14211 # The compiler can only warn and ignore the option if not recognized
14212 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014213 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14216 lt_cv_prog_compiler_rtti_exceptions=yes
14217 fi
14218 fi
14219 $RM conftest*
14220
14221fi
14222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14223$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14224
14225if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14226 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14227else
14228 :
14229fi
14230
14231fi
14232
14233
14234
14235
14236
14237
14238 lt_prog_compiler_wl=
14239lt_prog_compiler_pic=
14240lt_prog_compiler_static=
14241
cristy73bd4a52010-10-05 11:24:23 +000014242
14243 if test "$GCC" = yes; then
14244 lt_prog_compiler_wl='-Wl,'
14245 lt_prog_compiler_static='-static'
14246
14247 case $host_os in
14248 aix*)
14249 # All AIX code is PIC.
14250 if test "$host_cpu" = ia64; then
14251 # AIX 5 now supports IA64 processor
14252 lt_prog_compiler_static='-Bstatic'
14253 fi
14254 ;;
14255
14256 amigaos*)
14257 case $host_cpu in
14258 powerpc)
14259 # see comment about AmigaOS4 .so support
14260 lt_prog_compiler_pic='-fPIC'
14261 ;;
14262 m68k)
14263 # FIXME: we need at least 68020 code to build shared libraries, but
14264 # adding the `-m68020' flag to GCC prevents building anything better,
14265 # like `-m68040'.
14266 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14267 ;;
14268 esac
14269 ;;
14270
14271 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14272 # PIC is the default for these OSes.
14273 ;;
14274
14275 mingw* | cygwin* | pw32* | os2* | cegcc*)
14276 # This hack is so that the source file can tell whether it is being
14277 # built for inclusion in a dll (and should export symbols for example).
14278 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14279 # (--disable-auto-import) libraries
14280 lt_prog_compiler_pic='-DDLL_EXPORT'
14281 ;;
14282
14283 darwin* | rhapsody*)
14284 # PIC is the default on this platform
14285 # Common symbols not allowed in MH_DYLIB files
14286 lt_prog_compiler_pic='-fno-common'
14287 ;;
14288
cristy0c60a692010-11-04 01:09:47 +000014289 haiku*)
14290 # PIC is the default for Haiku.
14291 # The "-static" flag exists, but is broken.
14292 lt_prog_compiler_static=
14293 ;;
14294
cristy73bd4a52010-10-05 11:24:23 +000014295 hpux*)
14296 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14297 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14298 # sets the default TLS model and affects inlining.
14299 case $host_cpu in
14300 hppa*64*)
14301 # +Z the default
14302 ;;
14303 *)
14304 lt_prog_compiler_pic='-fPIC'
14305 ;;
14306 esac
14307 ;;
14308
14309 interix[3-9]*)
14310 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14311 # Instead, we relocate shared libraries at runtime.
14312 ;;
14313
14314 msdosdjgpp*)
14315 # Just because we use GCC doesn't mean we suddenly get shared libraries
14316 # on systems that don't support them.
14317 lt_prog_compiler_can_build_shared=no
14318 enable_shared=no
14319 ;;
14320
14321 *nto* | *qnx*)
14322 # QNX uses GNU C++, but need to define -shared option too, otherwise
14323 # it will coredump.
14324 lt_prog_compiler_pic='-fPIC -shared'
14325 ;;
14326
14327 sysv4*MP*)
14328 if test -d /usr/nec; then
14329 lt_prog_compiler_pic=-Kconform_pic
14330 fi
14331 ;;
14332
14333 *)
14334 lt_prog_compiler_pic='-fPIC'
14335 ;;
14336 esac
cristy0c60a692010-11-04 01:09:47 +000014337
14338 case $cc_basename in
14339 nvcc*) # Cuda Compiler Driver 2.2
14340 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014341 if test -n "$lt_prog_compiler_pic"; then
14342 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14343 fi
cristy0c60a692010-11-04 01:09:47 +000014344 ;;
14345 esac
cristy73bd4a52010-10-05 11:24:23 +000014346 else
14347 # PORTME Check for flag to pass linker flags through the system compiler.
14348 case $host_os in
14349 aix*)
14350 lt_prog_compiler_wl='-Wl,'
14351 if test "$host_cpu" = ia64; then
14352 # AIX 5 now supports IA64 processor
14353 lt_prog_compiler_static='-Bstatic'
14354 else
14355 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14356 fi
14357 ;;
14358
14359 mingw* | cygwin* | pw32* | os2* | cegcc*)
14360 # This hack is so that the source file can tell whether it is being
14361 # built for inclusion in a dll (and should export symbols for example).
14362 lt_prog_compiler_pic='-DDLL_EXPORT'
14363 ;;
14364
14365 hpux9* | hpux10* | hpux11*)
14366 lt_prog_compiler_wl='-Wl,'
14367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14368 # not for PA HP-UX.
14369 case $host_cpu in
14370 hppa*64*|ia64*)
14371 # +Z the default
14372 ;;
14373 *)
14374 lt_prog_compiler_pic='+Z'
14375 ;;
14376 esac
14377 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14378 lt_prog_compiler_static='${wl}-a ${wl}archive'
14379 ;;
14380
14381 irix5* | irix6* | nonstopux*)
14382 lt_prog_compiler_wl='-Wl,'
14383 # PIC (with -KPIC) is the default.
14384 lt_prog_compiler_static='-non_shared'
14385 ;;
14386
cristy0c60a692010-11-04 01:09:47 +000014387 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014388 case $cc_basename in
14389 # old Intel for x86_64 which still supported -KPIC.
14390 ecc*)
14391 lt_prog_compiler_wl='-Wl,'
14392 lt_prog_compiler_pic='-KPIC'
14393 lt_prog_compiler_static='-static'
14394 ;;
14395 # icc used to be incompatible with GCC.
14396 # ICC 10 doesn't accept -KPIC any more.
14397 icc* | ifort*)
14398 lt_prog_compiler_wl='-Wl,'
14399 lt_prog_compiler_pic='-fPIC'
14400 lt_prog_compiler_static='-static'
14401 ;;
14402 # Lahey Fortran 8.1.
14403 lf95*)
14404 lt_prog_compiler_wl='-Wl,'
14405 lt_prog_compiler_pic='--shared'
14406 lt_prog_compiler_static='--static'
14407 ;;
cristyda16f162011-02-19 23:52:17 +000014408 nagfor*)
14409 # NAG Fortran compiler
14410 lt_prog_compiler_wl='-Wl,-Wl,,'
14411 lt_prog_compiler_pic='-PIC'
14412 lt_prog_compiler_static='-Bstatic'
14413 ;;
cristy0c60a692010-11-04 01:09:47 +000014414 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014415 # Portland Group compilers (*not* the Pentium gcc compiler,
14416 # which looks to be a dead project)
14417 lt_prog_compiler_wl='-Wl,'
14418 lt_prog_compiler_pic='-fpic'
14419 lt_prog_compiler_static='-Bstatic'
14420 ;;
14421 ccc*)
14422 lt_prog_compiler_wl='-Wl,'
14423 # All Alpha code is PIC.
14424 lt_prog_compiler_static='-non_shared'
14425 ;;
cristy0c60a692010-11-04 01:09:47 +000014426 xl* | bgxl* | bgf* | mpixl*)
14427 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014428 lt_prog_compiler_wl='-Wl,'
14429 lt_prog_compiler_pic='-qpic'
14430 lt_prog_compiler_static='-qstaticlink'
14431 ;;
14432 *)
14433 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014434 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014435 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14436 lt_prog_compiler_pic='-KPIC'
14437 lt_prog_compiler_static='-Bstatic'
14438 lt_prog_compiler_wl=''
14439 ;;
cristy99bd5232011-12-07 14:38:20 +000014440 *Sun\ F* | *Sun*Fortran*)
14441 lt_prog_compiler_pic='-KPIC'
14442 lt_prog_compiler_static='-Bstatic'
14443 lt_prog_compiler_wl='-Qoption ld '
14444 ;;
cristy73bd4a52010-10-05 11:24:23 +000014445 *Sun\ C*)
14446 # Sun C 5.9
14447 lt_prog_compiler_pic='-KPIC'
14448 lt_prog_compiler_static='-Bstatic'
14449 lt_prog_compiler_wl='-Wl,'
14450 ;;
cristy99bd5232011-12-07 14:38:20 +000014451 *Intel*\ [CF]*Compiler*)
14452 lt_prog_compiler_wl='-Wl,'
14453 lt_prog_compiler_pic='-fPIC'
14454 lt_prog_compiler_static='-static'
14455 ;;
14456 *Portland\ Group*)
14457 lt_prog_compiler_wl='-Wl,'
14458 lt_prog_compiler_pic='-fpic'
14459 lt_prog_compiler_static='-Bstatic'
14460 ;;
cristy73bd4a52010-10-05 11:24:23 +000014461 esac
14462 ;;
14463 esac
14464 ;;
14465
14466 newsos6)
14467 lt_prog_compiler_pic='-KPIC'
14468 lt_prog_compiler_static='-Bstatic'
14469 ;;
14470
14471 *nto* | *qnx*)
14472 # QNX uses GNU C++, but need to define -shared option too, otherwise
14473 # it will coredump.
14474 lt_prog_compiler_pic='-fPIC -shared'
14475 ;;
14476
14477 osf3* | osf4* | osf5*)
14478 lt_prog_compiler_wl='-Wl,'
14479 # All OSF/1 code is PIC.
14480 lt_prog_compiler_static='-non_shared'
14481 ;;
14482
14483 rdos*)
14484 lt_prog_compiler_static='-non_shared'
14485 ;;
14486
14487 solaris*)
14488 lt_prog_compiler_pic='-KPIC'
14489 lt_prog_compiler_static='-Bstatic'
14490 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014491 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014492 lt_prog_compiler_wl='-Qoption ld ';;
14493 *)
14494 lt_prog_compiler_wl='-Wl,';;
14495 esac
14496 ;;
14497
14498 sunos4*)
14499 lt_prog_compiler_wl='-Qoption ld '
14500 lt_prog_compiler_pic='-PIC'
14501 lt_prog_compiler_static='-Bstatic'
14502 ;;
14503
14504 sysv4 | sysv4.2uw2* | sysv4.3*)
14505 lt_prog_compiler_wl='-Wl,'
14506 lt_prog_compiler_pic='-KPIC'
14507 lt_prog_compiler_static='-Bstatic'
14508 ;;
14509
14510 sysv4*MP*)
14511 if test -d /usr/nec ;then
14512 lt_prog_compiler_pic='-Kconform_pic'
14513 lt_prog_compiler_static='-Bstatic'
14514 fi
14515 ;;
14516
14517 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14518 lt_prog_compiler_wl='-Wl,'
14519 lt_prog_compiler_pic='-KPIC'
14520 lt_prog_compiler_static='-Bstatic'
14521 ;;
14522
14523 unicos*)
14524 lt_prog_compiler_wl='-Wl,'
14525 lt_prog_compiler_can_build_shared=no
14526 ;;
14527
14528 uts4*)
14529 lt_prog_compiler_pic='-pic'
14530 lt_prog_compiler_static='-Bstatic'
14531 ;;
14532
14533 *)
14534 lt_prog_compiler_can_build_shared=no
14535 ;;
14536 esac
14537 fi
14538
14539case $host_os in
14540 # For platforms which do not support PIC, -DPIC is meaningless:
14541 *djgpp*)
14542 lt_prog_compiler_pic=
14543 ;;
14544 *)
14545 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14546 ;;
14547esac
cristy73bd4a52010-10-05 11:24:23 +000014548
cristyda16f162011-02-19 23:52:17 +000014549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14550$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14551if ${lt_cv_prog_compiler_pic+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553else
14554 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14555fi
14556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14557$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14558lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014559
14560#
14561# Check to make sure the PIC flag actually works.
14562#
14563if test -n "$lt_prog_compiler_pic"; then
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14565$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014566if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014567 $as_echo_n "(cached) " >&6
14568else
14569 lt_cv_prog_compiler_pic_works=no
14570 ac_outfile=conftest.$ac_objext
14571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14572 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14573 # Insert the option either (1) after the last *FLAGS variable, or
14574 # (2) before a word containing "conftest.", or (3) at the end.
14575 # Note that $ac_compile itself does not contain backslashes and begins
14576 # with a dollar sign (not a hyphen), so the echo should work correctly.
14577 # The option is referenced via a variable to avoid confusing sed.
14578 lt_compile=`echo "$ac_compile" | $SED \
14579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14581 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014583 (eval "$lt_compile" 2>conftest.err)
14584 ac_status=$?
14585 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014587 if (exit $ac_status) && test -s "$ac_outfile"; then
14588 # The compiler can only warn and ignore the option if not recognized
14589 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14592 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14593 lt_cv_prog_compiler_pic_works=yes
14594 fi
14595 fi
14596 $RM conftest*
14597
14598fi
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14600$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14601
14602if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14603 case $lt_prog_compiler_pic in
14604 "" | " "*) ;;
14605 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14606 esac
14607else
14608 lt_prog_compiler_pic=
14609 lt_prog_compiler_can_build_shared=no
14610fi
14611
14612fi
14613
14614
14615
14616
14617
14618
cristyda16f162011-02-19 23:52:17 +000014619
14620
14621
14622
14623
cristy73bd4a52010-10-05 11:24:23 +000014624#
14625# Check to make sure the static flag actually works.
14626#
14627wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14629$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014630if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014631 $as_echo_n "(cached) " >&6
14632else
14633 lt_cv_prog_compiler_static_works=no
14634 save_LDFLAGS="$LDFLAGS"
14635 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14636 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14638 # The linker can only warn and ignore the option if not recognized
14639 # So say no if there are warnings
14640 if test -s conftest.err; then
14641 # Append any errors to the config.log.
14642 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014643 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14645 if diff conftest.exp conftest.er2 >/dev/null; then
14646 lt_cv_prog_compiler_static_works=yes
14647 fi
14648 else
14649 lt_cv_prog_compiler_static_works=yes
14650 fi
14651 fi
14652 $RM -r conftest*
14653 LDFLAGS="$save_LDFLAGS"
14654
14655fi
14656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14657$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14658
14659if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14660 :
14661else
14662 lt_prog_compiler_static=
14663fi
14664
14665
14666
14667
14668
14669
14670
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14672$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014673if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014674 $as_echo_n "(cached) " >&6
14675else
14676 lt_cv_prog_compiler_c_o=no
14677 $RM -r conftest 2>/dev/null
14678 mkdir conftest
14679 cd conftest
14680 mkdir out
14681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14682
14683 lt_compiler_flag="-o out/conftest2.$ac_objext"
14684 # Insert the option either (1) after the last *FLAGS variable, or
14685 # (2) before a word containing "conftest.", or (3) at the end.
14686 # Note that $ac_compile itself does not contain backslashes and begins
14687 # with a dollar sign (not a hyphen), so the echo should work correctly.
14688 lt_compile=`echo "$ac_compile" | $SED \
14689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14691 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014693 (eval "$lt_compile" 2>out/conftest.err)
14694 ac_status=$?
14695 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014697 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14698 then
14699 # The compiler can only warn and ignore the option if not recognized
14700 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014701 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014702 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14703 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14704 lt_cv_prog_compiler_c_o=yes
14705 fi
14706 fi
14707 chmod u+w . 2>&5
14708 $RM conftest*
14709 # SGI C++ compiler will create directory out/ii_files/ for
14710 # template instantiation
14711 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14712 $RM out/* && rmdir out
14713 cd ..
14714 $RM -r conftest
14715 $RM conftest*
14716
14717fi
14718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14719$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14720
14721
14722
14723
14724
14725
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14727$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014728if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014729 $as_echo_n "(cached) " >&6
14730else
14731 lt_cv_prog_compiler_c_o=no
14732 $RM -r conftest 2>/dev/null
14733 mkdir conftest
14734 cd conftest
14735 mkdir out
14736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14737
14738 lt_compiler_flag="-o out/conftest2.$ac_objext"
14739 # Insert the option either (1) after the last *FLAGS variable, or
14740 # (2) before a word containing "conftest.", or (3) at the end.
14741 # Note that $ac_compile itself does not contain backslashes and begins
14742 # with a dollar sign (not a hyphen), so the echo should work correctly.
14743 lt_compile=`echo "$ac_compile" | $SED \
14744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14746 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014747 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014748 (eval "$lt_compile" 2>out/conftest.err)
14749 ac_status=$?
14750 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014752 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14753 then
14754 # The compiler can only warn and ignore the option if not recognized
14755 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014756 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014757 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14758 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14759 lt_cv_prog_compiler_c_o=yes
14760 fi
14761 fi
14762 chmod u+w . 2>&5
14763 $RM conftest*
14764 # SGI C++ compiler will create directory out/ii_files/ for
14765 # template instantiation
14766 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14767 $RM out/* && rmdir out
14768 cd ..
14769 $RM -r conftest
14770 $RM conftest*
14771
14772fi
14773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14774$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14775
14776
14777
14778
14779hard_links="nottested"
14780if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14781 # do not overwrite the value of need_locks provided by the user
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14783$as_echo_n "checking if we can lock with hard links... " >&6; }
14784 hard_links=yes
14785 $RM conftest*
14786 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14787 touch conftest.a
14788 ln conftest.a conftest.b 2>&5 || hard_links=no
14789 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14791$as_echo "$hard_links" >&6; }
14792 if test "$hard_links" = no; then
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14794$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14795 need_locks=warn
14796 fi
14797else
14798 need_locks=no
14799fi
14800
14801
14802
14803
14804
14805
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14807$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14808
14809 runpath_var=
14810 allow_undefined_flag=
14811 always_export_symbols=no
14812 archive_cmds=
14813 archive_expsym_cmds=
14814 compiler_needs_object=no
14815 enable_shared_with_static_runtimes=no
14816 export_dynamic_flag_spec=
14817 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14818 hardcode_automatic=no
14819 hardcode_direct=no
14820 hardcode_direct_absolute=no
14821 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014822 hardcode_libdir_separator=
14823 hardcode_minus_L=no
14824 hardcode_shlibpath_var=unsupported
14825 inherit_rpath=no
14826 link_all_deplibs=unknown
14827 module_cmds=
14828 module_expsym_cmds=
14829 old_archive_from_new_cmds=
14830 old_archive_from_expsyms_cmds=
14831 thread_safe_flag_spec=
14832 whole_archive_flag_spec=
14833 # include_expsyms should be a list of space-separated symbols to be *always*
14834 # included in the symbol list
14835 include_expsyms=
14836 # exclude_expsyms can be an extended regexp of symbols to exclude
14837 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14838 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14839 # as well as any symbol that contains `d'.
14840 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14841 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14842 # platforms (ab)use it in PIC code, but their linkers get confused if
14843 # the symbol is explicitly referenced. Since portable code cannot
14844 # rely on this symbol name, it's probably fine to never include it in
14845 # preloaded symbol tables.
14846 # Exclude shared library initialization/finalization symbols.
14847 extract_expsyms_cmds=
14848
14849 case $host_os in
14850 cygwin* | mingw* | pw32* | cegcc*)
14851 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14852 # When not using gcc, we currently assume that we are using
14853 # Microsoft Visual C++.
14854 if test "$GCC" != yes; then
14855 with_gnu_ld=no
14856 fi
14857 ;;
14858 interix*)
14859 # we just hope/assume this is gcc and not c89 (= MSVC++)
14860 with_gnu_ld=yes
14861 ;;
14862 openbsd*)
14863 with_gnu_ld=no
14864 ;;
14865 esac
14866
14867 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014868
14869 # On some targets, GNU ld is compatible enough with the native linker
14870 # that we're better off using the native interface for both.
14871 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014872 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014873 case $host_os in
14874 aix*)
14875 # The AIX port of GNU ld has always aspired to compatibility
14876 # with the native linker. However, as the warning in the GNU ld
14877 # block says, versions before 2.19.5* couldn't really create working
14878 # shared libraries, regardless of the interface used.
14879 case `$LD -v 2>&1` in
14880 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14881 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14882 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14883 *)
14884 lt_use_gnu_ld_interface=yes
14885 ;;
14886 esac
14887 ;;
14888 *)
14889 lt_use_gnu_ld_interface=yes
14890 ;;
14891 esac
14892 fi
14893
14894 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014895 # If archive_cmds runs LD, not CC, wlarc should be empty
14896 wlarc='${wl}'
14897
14898 # Set some defaults for GNU ld with shared library support. These
14899 # are reset later if shared libraries are not supported. Putting them
14900 # here allows them to be overridden if necessary.
14901 runpath_var=LD_RUN_PATH
14902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14903 export_dynamic_flag_spec='${wl}--export-dynamic'
14904 # ancient GNU ld didn't support --whole-archive et. al.
14905 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14906 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14907 else
14908 whole_archive_flag_spec=
14909 fi
14910 supports_anon_versioning=no
14911 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014912 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014913 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14914 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14915 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14916 *\ 2.11.*) ;; # other 2.11 versions
14917 *) supports_anon_versioning=yes ;;
14918 esac
14919
14920 # See if GNU ld supports shared libraries.
14921 case $host_os in
14922 aix[3-9]*)
14923 # On AIX/PPC, the GNU linker is very broken
14924 if test "$host_cpu" != ia64; then
14925 ld_shlibs=no
14926 cat <<_LT_EOF 1>&2
14927
cristy0c60a692010-11-04 01:09:47 +000014928*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014929*** to be unable to reliably create shared libraries on AIX.
14930*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014931*** really care for shared libraries, you may want to install binutils
14932*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14933*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014934
14935_LT_EOF
14936 fi
14937 ;;
14938
14939 amigaos*)
14940 case $host_cpu in
14941 powerpc)
14942 # see comment about AmigaOS4 .so support
14943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14944 archive_expsym_cmds=''
14945 ;;
14946 m68k)
14947 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)'
14948 hardcode_libdir_flag_spec='-L$libdir'
14949 hardcode_minus_L=yes
14950 ;;
14951 esac
14952 ;;
14953
14954 beos*)
14955 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14956 allow_undefined_flag=unsupported
14957 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14958 # support --undefined. This deserves some investigation. FIXME
14959 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14960 else
14961 ld_shlibs=no
14962 fi
14963 ;;
14964
14965 cygwin* | mingw* | pw32* | cegcc*)
14966 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14967 # as there is no search path for DLLs.
14968 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014969 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014970 allow_undefined_flag=unsupported
14971 always_export_symbols=no
14972 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014973 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'
14974 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 +000014975
14976 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14978 # If the export-symbols file already is a .def file (1st line
14979 # is EXPORTS), use it as is; otherwise, prepend...
14980 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14981 cp $export_symbols $output_objdir/$soname.def;
14982 else
14983 echo EXPORTS > $output_objdir/$soname.def;
14984 cat $export_symbols >> $output_objdir/$soname.def;
14985 fi~
14986 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14987 else
14988 ld_shlibs=no
14989 fi
14990 ;;
14991
cristy0c60a692010-11-04 01:09:47 +000014992 haiku*)
14993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14994 link_all_deplibs=yes
14995 ;;
14996
cristy73bd4a52010-10-05 11:24:23 +000014997 interix[3-9]*)
14998 hardcode_direct=no
14999 hardcode_shlibpath_var=no
15000 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15001 export_dynamic_flag_spec='${wl}-E'
15002 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15003 # Instead, shared libraries are loaded at an image base (0x10000000 by
15004 # default) and relocated if they conflict, which is a slow very memory
15005 # consuming and fragmenting process. To avoid this, we pick a random,
15006 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15007 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15008 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15009 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'
15010 ;;
15011
cristy0c60a692010-11-04 01:09:47 +000015012 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015013 tmp_diet=no
15014 if test "$host_os" = linux-dietlibc; then
15015 case $cc_basename in
15016 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15017 esac
15018 fi
15019 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15020 && test "$tmp_diet" = no
15021 then
cristyda16f162011-02-19 23:52:17 +000015022 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015023 tmp_sharedflag='-shared'
15024 case $cc_basename,$host_cpu in
15025 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015026 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 +000015027 tmp_addflag=' $pic_flag'
15028 ;;
cristy0c60a692010-11-04 01:09:47 +000015029 pgf77* | pgf90* | pgf95* | pgfortran*)
15030 # Portland Group f77 and f90 compilers
15031 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 +000015032 tmp_addflag=' $pic_flag -Mnomain' ;;
15033 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15034 tmp_addflag=' -i_dynamic' ;;
15035 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15036 tmp_addflag=' -i_dynamic -nofor_main' ;;
15037 ifc* | ifort*) # Intel Fortran compiler
15038 tmp_addflag=' -nofor_main' ;;
15039 lf95*) # Lahey Fortran 8.1
15040 whole_archive_flag_spec=
15041 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015042 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015043 tmp_sharedflag='-qmkshrobj'
15044 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015045 nvcc*) # Cuda Compiler Driver 2.2
15046 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'
15047 compiler_needs_object=yes
15048 ;;
cristy73bd4a52010-10-05 11:24:23 +000015049 esac
15050 case `$CC -V 2>&1 | sed 5q` in
15051 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015052 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 +000015053 compiler_needs_object=yes
15054 tmp_sharedflag='-G' ;;
15055 *Sun\ F*) # Sun Fortran 8.3
15056 tmp_sharedflag='-G' ;;
15057 esac
15058 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15059
15060 if test "x$supports_anon_versioning" = xyes; then
15061 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15063 echo "local: *; };" >> $output_objdir/$libname.ver~
15064 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15065 fi
15066
15067 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015068 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015069 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15070 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015071 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015072 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015073 if test "x$supports_anon_versioning" = xyes; then
15074 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15075 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15076 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015077 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015078 fi
15079 ;;
15080 esac
15081 else
15082 ld_shlibs=no
15083 fi
15084 ;;
15085
15086 netbsd*)
15087 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15088 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15089 wlarc=
15090 else
cristyda16f162011-02-19 23:52:17 +000015091 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092 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 +000015093 fi
15094 ;;
15095
15096 solaris*)
15097 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15098 ld_shlibs=no
15099 cat <<_LT_EOF 1>&2
15100
15101*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15102*** create shared libraries on Solaris systems. Therefore, libtool
15103*** is disabling shared libraries support. We urge you to upgrade GNU
15104*** binutils to release 2.9.1 or newer. Another option is to modify
15105*** your PATH or compiler configuration so that the native linker is
15106*** used, and then restart.
15107
15108_LT_EOF
15109 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015110 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111 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 +000015112 else
15113 ld_shlibs=no
15114 fi
15115 ;;
15116
15117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15118 case `$LD -v 2>&1` in
15119 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15120 ld_shlibs=no
15121 cat <<_LT_EOF 1>&2
15122
15123*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15124*** reliably create shared libraries on SCO systems. Therefore, libtool
15125*** is disabling shared libraries support. We urge you to upgrade GNU
15126*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15127*** your PATH or compiler configuration so that the native linker is
15128*** used, and then restart.
15129
15130_LT_EOF
15131 ;;
15132 *)
15133 # For security reasons, it is highly recommended that you always
15134 # use absolute paths for naming shared libraries, and exclude the
15135 # DT_RUNPATH tag from executables and libraries. But doing so
15136 # requires that you compile everything twice, which is a pain.
15137 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15140 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15141 else
15142 ld_shlibs=no
15143 fi
15144 ;;
15145 esac
15146 ;;
15147
15148 sunos4*)
15149 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15150 wlarc=
15151 hardcode_direct=yes
15152 hardcode_shlibpath_var=no
15153 ;;
15154
15155 *)
15156 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015157 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15158 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 +000015159 else
15160 ld_shlibs=no
15161 fi
15162 ;;
15163 esac
15164
15165 if test "$ld_shlibs" = no; then
15166 runpath_var=
15167 hardcode_libdir_flag_spec=
15168 export_dynamic_flag_spec=
15169 whole_archive_flag_spec=
15170 fi
15171 else
15172 # PORTME fill in a description of your system's linker (not GNU ld)
15173 case $host_os in
15174 aix3*)
15175 allow_undefined_flag=unsupported
15176 always_export_symbols=yes
15177 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'
15178 # Note: this linker hardcodes the directories in LIBPATH if there
15179 # are no directories specified by -L.
15180 hardcode_minus_L=yes
15181 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15182 # Neither direct hardcoding nor static linking is supported with a
15183 # broken collect2.
15184 hardcode_direct=unsupported
15185 fi
15186 ;;
15187
15188 aix[4-9]*)
15189 if test "$host_cpu" = ia64; then
15190 # On IA64, the linker does run time linking by default, so we don't
15191 # have to do anything special.
15192 aix_use_runtimelinking=no
15193 exp_sym_flag='-Bexport'
15194 no_entry_flag=""
15195 else
15196 # If we're using GNU nm, then we don't want the "-C" option.
15197 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015198 # Also, AIX nm treats weak defined symbols like other global
15199 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015200 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015201 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 +000015202 else
15203 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'
15204 fi
15205 aix_use_runtimelinking=no
15206
15207 # Test if we are trying to use run time linking or normal
15208 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15209 # need to do runtime linking.
15210 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15211 for ld_flag in $LDFLAGS; do
15212 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15213 aix_use_runtimelinking=yes
15214 break
15215 fi
15216 done
15217 ;;
15218 esac
15219
15220 exp_sym_flag='-bexport'
15221 no_entry_flag='-bnoentry'
15222 fi
15223
15224 # When large executables or shared objects are built, AIX ld can
15225 # have problems creating the table of contents. If linking a library
15226 # or program results in "error TOC overflow" add -mminimal-toc to
15227 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15228 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15229
15230 archive_cmds=''
15231 hardcode_direct=yes
15232 hardcode_direct_absolute=yes
15233 hardcode_libdir_separator=':'
15234 link_all_deplibs=yes
15235 file_list_spec='${wl}-f,'
15236
15237 if test "$GCC" = yes; then
15238 case $host_os in aix4.[012]|aix4.[012].*)
15239 # We only want to do this on AIX 4.2 and lower, the check
15240 # below for broken collect2 doesn't work under 4.3+
15241 collect2name=`${CC} -print-prog-name=collect2`
15242 if test -f "$collect2name" &&
15243 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15244 then
15245 # We have reworked collect2
15246 :
15247 else
15248 # We have old collect2
15249 hardcode_direct=unsupported
15250 # It fails to find uninstalled libraries when the uninstalled
15251 # path is not listed in the libpath. Setting hardcode_minus_L
15252 # to unsupported forces relinking
15253 hardcode_minus_L=yes
15254 hardcode_libdir_flag_spec='-L$libdir'
15255 hardcode_libdir_separator=
15256 fi
15257 ;;
15258 esac
15259 shared_flag='-shared'
15260 if test "$aix_use_runtimelinking" = yes; then
15261 shared_flag="$shared_flag "'${wl}-G'
15262 fi
15263 else
15264 # not using gcc
15265 if test "$host_cpu" = ia64; then
15266 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15267 # chokes on -Wl,-G. The following line is correct:
15268 shared_flag='-G'
15269 else
15270 if test "$aix_use_runtimelinking" = yes; then
15271 shared_flag='${wl}-G'
15272 else
15273 shared_flag='${wl}-bM:SRE'
15274 fi
15275 fi
15276 fi
15277
15278 export_dynamic_flag_spec='${wl}-bexpall'
15279 # It seems that -bexpall does not export symbols beginning with
15280 # underscore (_), so it is better to generate a list of symbols to export.
15281 always_export_symbols=yes
15282 if test "$aix_use_runtimelinking" = yes; then
15283 # Warning - without using the other runtime loading flags (-brtl),
15284 # -berok will link without error, but may produce a broken library.
15285 allow_undefined_flag='-berok'
15286 # Determine the default libpath from the value encoded in an
15287 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015288 if test "${lt_cv_aix_libpath+set}" = set; then
15289 aix_libpath=$lt_cv_aix_libpath
15290else
15291 if ${lt_cv_aix_libpath_+:} false; then :
15292 $as_echo_n "(cached) " >&6
15293else
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015295/* end confdefs.h. */
15296
15297int
15298main ()
15299{
15300
15301 ;
15302 return 0;
15303}
15304_ACEOF
15305if ac_fn_c_try_link "$LINENO"; then :
15306
cristyda16f162011-02-19 23:52:17 +000015307 lt_aix_libpath_sed='
15308 /Import File Strings/,/^$/ {
15309 /^0/ {
15310 s/^0 *\([^ ]*\) *$/\1/
15311 p
15312 }
15313 }'
15314 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15315 # Check for a 64-bit object if we didn't find anything.
15316 if test -z "$lt_cv_aix_libpath_"; then
15317 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15318 fi
cristy73bd4a52010-10-05 11:24:23 +000015319fi
15320rm -f core conftest.err conftest.$ac_objext \
15321 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015322 if test -z "$lt_cv_aix_libpath_"; then
15323 lt_cv_aix_libpath_="/usr/lib:/lib"
15324 fi
15325
15326fi
15327
15328 aix_libpath=$lt_cv_aix_libpath_
15329fi
cristy73bd4a52010-10-05 11:24:23 +000015330
15331 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015332 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 +000015333 else
15334 if test "$host_cpu" = ia64; then
15335 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15336 allow_undefined_flag="-z nodefs"
15337 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"
15338 else
15339 # Determine the default libpath from the value encoded in an
15340 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015341 if test "${lt_cv_aix_libpath+set}" = set; then
15342 aix_libpath=$lt_cv_aix_libpath
15343else
15344 if ${lt_cv_aix_libpath_+:} false; then :
15345 $as_echo_n "(cached) " >&6
15346else
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015348/* end confdefs.h. */
15349
15350int
15351main ()
15352{
15353
15354 ;
15355 return 0;
15356}
15357_ACEOF
15358if ac_fn_c_try_link "$LINENO"; then :
15359
cristyda16f162011-02-19 23:52:17 +000015360 lt_aix_libpath_sed='
15361 /Import File Strings/,/^$/ {
15362 /^0/ {
15363 s/^0 *\([^ ]*\) *$/\1/
15364 p
15365 }
15366 }'
15367 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15368 # Check for a 64-bit object if we didn't find anything.
15369 if test -z "$lt_cv_aix_libpath_"; then
15370 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15371 fi
cristy73bd4a52010-10-05 11:24:23 +000015372fi
15373rm -f core conftest.err conftest.$ac_objext \
15374 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015375 if test -z "$lt_cv_aix_libpath_"; then
15376 lt_cv_aix_libpath_="/usr/lib:/lib"
15377 fi
15378
15379fi
15380
15381 aix_libpath=$lt_cv_aix_libpath_
15382fi
cristy73bd4a52010-10-05 11:24:23 +000015383
15384 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15385 # Warning - without using the other run time loading flags,
15386 # -berok will link without error, but may produce a broken library.
15387 no_undefined_flag=' ${wl}-bernotok'
15388 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015389 if test "$with_gnu_ld" = yes; then
15390 # We only use this code for GNU lds that support --whole-archive.
15391 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15392 else
15393 # Exported symbols can be pulled into shared objects from archives
15394 whole_archive_flag_spec='$convenience'
15395 fi
cristy73bd4a52010-10-05 11:24:23 +000015396 archive_cmds_need_lc=yes
15397 # This is similar to how AIX traditionally builds its shared libraries.
15398 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'
15399 fi
15400 fi
15401 ;;
15402
15403 amigaos*)
15404 case $host_cpu in
15405 powerpc)
15406 # see comment about AmigaOS4 .so support
15407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15408 archive_expsym_cmds=''
15409 ;;
15410 m68k)
15411 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)'
15412 hardcode_libdir_flag_spec='-L$libdir'
15413 hardcode_minus_L=yes
15414 ;;
15415 esac
15416 ;;
15417
15418 bsdi[45]*)
15419 export_dynamic_flag_spec=-rdynamic
15420 ;;
15421
15422 cygwin* | mingw* | pw32* | cegcc*)
15423 # When not using gcc, we currently assume that we are using
15424 # Microsoft Visual C++.
15425 # hardcode_libdir_flag_spec is actually meaningless, as there is
15426 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015427 case $cc_basename in
15428 cl*)
15429 # Native MSVC
15430 hardcode_libdir_flag_spec=' '
15431 allow_undefined_flag=unsupported
15432 always_export_symbols=yes
15433 file_list_spec='@'
15434 # Tell ltmain to make .lib files, not .a files.
15435 libext=lib
15436 # Tell ltmain to make .dll files, not .so files.
15437 shrext_cmds=".dll"
15438 # FIXME: Setting linknames here is a bad hack.
15439 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15440 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15441 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15442 else
15443 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15444 fi~
15445 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15446 linknames='
15447 # The linker will not automatically build a static lib if we build a DLL.
15448 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15449 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015450 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015451 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15452 # Don't use ranlib
15453 old_postinstall_cmds='chmod 644 $oldlib'
15454 postlink_cmds='lt_outputfile="@OUTPUT@"~
15455 lt_tool_outputfile="@TOOL_OUTPUT@"~
15456 case $lt_outputfile in
15457 *.exe|*.EXE) ;;
15458 *)
15459 lt_outputfile="$lt_outputfile.exe"
15460 lt_tool_outputfile="$lt_tool_outputfile.exe"
15461 ;;
15462 esac~
15463 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15464 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15465 $RM "$lt_outputfile.manifest";
15466 fi'
15467 ;;
15468 *)
15469 # Assume MSVC wrapper
15470 hardcode_libdir_flag_spec=' '
15471 allow_undefined_flag=unsupported
15472 # Tell ltmain to make .lib files, not .a files.
15473 libext=lib
15474 # Tell ltmain to make .dll files, not .so files.
15475 shrext_cmds=".dll"
15476 # FIXME: Setting linknames here is a bad hack.
15477 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15478 # The linker will automatically build a .lib file if we build a DLL.
15479 old_archive_from_new_cmds='true'
15480 # FIXME: Should let the user specify the lib program.
15481 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15482 enable_shared_with_static_runtimes=yes
15483 ;;
15484 esac
cristy73bd4a52010-10-05 11:24:23 +000015485 ;;
15486
15487 darwin* | rhapsody*)
15488
15489
15490 archive_cmds_need_lc=no
15491 hardcode_direct=no
15492 hardcode_automatic=yes
15493 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015494 if test "$lt_cv_ld_force_load" = "yes"; then
15495 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 +000015496
cristy0c60a692010-11-04 01:09:47 +000015497 else
15498 whole_archive_flag_spec=''
15499 fi
cristy73bd4a52010-10-05 11:24:23 +000015500 link_all_deplibs=yes
15501 allow_undefined_flag="$_lt_dar_allow_undefined"
15502 case $cc_basename in
15503 ifort*) _lt_dar_can_shared=yes ;;
15504 *) _lt_dar_can_shared=$GCC ;;
15505 esac
15506 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015507 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015508 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15509 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15510 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}"
15511 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}"
15512
15513 else
15514 ld_shlibs=no
15515 fi
15516
15517 ;;
15518
15519 dgux*)
15520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521 hardcode_libdir_flag_spec='-L$libdir'
15522 hardcode_shlibpath_var=no
15523 ;;
15524
cristy73bd4a52010-10-05 11:24:23 +000015525 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15526 # support. Future versions do this automatically, but an explicit c++rt0.o
15527 # does not break anything, and helps significantly (at the cost of a little
15528 # extra space).
15529 freebsd2.2*)
15530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15531 hardcode_libdir_flag_spec='-R$libdir'
15532 hardcode_direct=yes
15533 hardcode_shlibpath_var=no
15534 ;;
15535
15536 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015537 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15539 hardcode_direct=yes
15540 hardcode_minus_L=yes
15541 hardcode_shlibpath_var=no
15542 ;;
15543
15544 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15545 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015546 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015547 hardcode_libdir_flag_spec='-R$libdir'
15548 hardcode_direct=yes
15549 hardcode_shlibpath_var=no
15550 ;;
15551
15552 hpux9*)
15553 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015554 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 +000015555 else
15556 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'
15557 fi
15558 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15559 hardcode_libdir_separator=:
15560 hardcode_direct=yes
15561
15562 # hardcode_minus_L: Not really in the search PATH,
15563 # but as the default location of the library.
15564 hardcode_minus_L=yes
15565 export_dynamic_flag_spec='${wl}-E'
15566 ;;
15567
15568 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015569 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015570 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 +000015571 else
15572 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15573 fi
15574 if test "$with_gnu_ld" = no; then
15575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015576 hardcode_libdir_separator=:
15577 hardcode_direct=yes
15578 hardcode_direct_absolute=yes
15579 export_dynamic_flag_spec='${wl}-E'
15580 # hardcode_minus_L: Not really in the search PATH,
15581 # but as the default location of the library.
15582 hardcode_minus_L=yes
15583 fi
15584 ;;
15585
15586 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015587 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015588 case $host_cpu in
15589 hppa*64*)
15590 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15591 ;;
15592 ia64*)
cristyda16f162011-02-19 23:52:17 +000015593 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015594 ;;
15595 *)
cristyda16f162011-02-19 23:52:17 +000015596 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 +000015597 ;;
15598 esac
15599 else
15600 case $host_cpu in
15601 hppa*64*)
15602 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 ;;
15604 ia64*)
15605 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15606 ;;
15607 *)
cristy0c60a692010-11-04 01:09:47 +000015608
15609 # Older versions of the 11.00 compiler do not understand -b yet
15610 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15612$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015613if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015614 $as_echo_n "(cached) " >&6
15615else
15616 lt_cv_prog_compiler__b=no
15617 save_LDFLAGS="$LDFLAGS"
15618 LDFLAGS="$LDFLAGS -b"
15619 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15620 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15621 # The linker can only warn and ignore the option if not recognized
15622 # So say no if there are warnings
15623 if test -s conftest.err; then
15624 # Append any errors to the config.log.
15625 cat conftest.err 1>&5
15626 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15627 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15628 if diff conftest.exp conftest.er2 >/dev/null; then
15629 lt_cv_prog_compiler__b=yes
15630 fi
15631 else
15632 lt_cv_prog_compiler__b=yes
15633 fi
15634 fi
15635 $RM -r conftest*
15636 LDFLAGS="$save_LDFLAGS"
15637
15638fi
15639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15640$as_echo "$lt_cv_prog_compiler__b" >&6; }
15641
15642if test x"$lt_cv_prog_compiler__b" = xyes; then
15643 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15644else
15645 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15646fi
15647
cristy73bd4a52010-10-05 11:24:23 +000015648 ;;
15649 esac
15650 fi
15651 if test "$with_gnu_ld" = no; then
15652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15653 hardcode_libdir_separator=:
15654
15655 case $host_cpu in
15656 hppa*64*|ia64*)
15657 hardcode_direct=no
15658 hardcode_shlibpath_var=no
15659 ;;
15660 *)
15661 hardcode_direct=yes
15662 hardcode_direct_absolute=yes
15663 export_dynamic_flag_spec='${wl}-E'
15664
15665 # hardcode_minus_L: Not really in the search PATH,
15666 # but as the default location of the library.
15667 hardcode_minus_L=yes
15668 ;;
15669 esac
15670 fi
15671 ;;
15672
15673 irix5* | irix6* | nonstopux*)
15674 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015675 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 +000015676 # Try to use the -exported_symbol ld option, if it does not
15677 # work, assume that -exports_file does not work either and
15678 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015679 # This should be the same for all languages, so no per-tag cache variable.
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15681$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15682if ${lt_cv_irix_exported_symbol+:} false; then :
15683 $as_echo_n "(cached) " >&6
15684else
15685 save_LDFLAGS="$LDFLAGS"
15686 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015688/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015689int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015690_ACEOF
15691if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015692 lt_cv_irix_exported_symbol=yes
15693else
15694 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015695fi
15696rm -f core conftest.err conftest.$ac_objext \
15697 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015698 LDFLAGS="$save_LDFLAGS"
15699fi
15700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15701$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15702 if test "$lt_cv_irix_exported_symbol" = yes; then
15703 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'
15704 fi
cristy73bd4a52010-10-05 11:24:23 +000015705 else
cristy0c60a692010-11-04 01:09:47 +000015706 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'
15707 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 +000015708 fi
15709 archive_cmds_need_lc='no'
15710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15711 hardcode_libdir_separator=:
15712 inherit_rpath=yes
15713 link_all_deplibs=yes
15714 ;;
15715
15716 netbsd*)
15717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15719 else
15720 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15721 fi
15722 hardcode_libdir_flag_spec='-R$libdir'
15723 hardcode_direct=yes
15724 hardcode_shlibpath_var=no
15725 ;;
15726
15727 newsos6)
15728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15729 hardcode_direct=yes
15730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15731 hardcode_libdir_separator=:
15732 hardcode_shlibpath_var=no
15733 ;;
15734
15735 *nto* | *qnx*)
15736 ;;
15737
15738 openbsd*)
15739 if test -f /usr/libexec/ld.so; then
15740 hardcode_direct=yes
15741 hardcode_shlibpath_var=no
15742 hardcode_direct_absolute=yes
15743 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15744 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15745 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15746 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15747 export_dynamic_flag_spec='${wl}-E'
15748 else
15749 case $host_os in
15750 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15752 hardcode_libdir_flag_spec='-R$libdir'
15753 ;;
15754 *)
15755 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15756 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15757 ;;
15758 esac
15759 fi
15760 else
15761 ld_shlibs=no
15762 fi
15763 ;;
15764
15765 os2*)
15766 hardcode_libdir_flag_spec='-L$libdir'
15767 hardcode_minus_L=yes
15768 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015769 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 +000015770 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15771 ;;
15772
15773 osf3*)
15774 if test "$GCC" = yes; then
15775 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015776 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 +000015777 else
15778 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015779 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 +000015780 fi
15781 archive_cmds_need_lc='no'
15782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15783 hardcode_libdir_separator=:
15784 ;;
15785
15786 osf4* | osf5*) # as osf3* with the addition of -msym flag
15787 if test "$GCC" = yes; then
15788 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015789 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 +000015790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15791 else
15792 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015793 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 +000015794 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 +000015795 $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 +000015796
15797 # Both c and cxx compiler support -rpath directly
15798 hardcode_libdir_flag_spec='-rpath $libdir'
15799 fi
15800 archive_cmds_need_lc='no'
15801 hardcode_libdir_separator=:
15802 ;;
15803
15804 solaris*)
15805 no_undefined_flag=' -z defs'
15806 if test "$GCC" = yes; then
15807 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015808 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 +000015809 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 +000015810 $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 +000015811 else
15812 case `$CC -V 2>&1` in
15813 *"Compilers 5.0"*)
15814 wlarc=''
15815 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15817 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15818 ;;
15819 *)
15820 wlarc='${wl}'
15821 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15822 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15823 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15824 ;;
15825 esac
15826 fi
15827 hardcode_libdir_flag_spec='-R$libdir'
15828 hardcode_shlibpath_var=no
15829 case $host_os in
15830 solaris2.[0-5] | solaris2.[0-5].*) ;;
15831 *)
15832 # The compiler driver will combine and reorder linker options,
15833 # but understands `-z linker_flag'. GCC discards it without `$wl',
15834 # but is careful enough not to reorder.
15835 # Supported since Solaris 2.6 (maybe 2.5.1?)
15836 if test "$GCC" = yes; then
15837 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15838 else
15839 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15840 fi
15841 ;;
15842 esac
15843 link_all_deplibs=yes
15844 ;;
15845
15846 sunos4*)
15847 if test "x$host_vendor" = xsequent; then
15848 # Use $CC to link under sequent, because it throws in some extra .o
15849 # files that make .init and .fini sections work.
15850 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15851 else
15852 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15853 fi
15854 hardcode_libdir_flag_spec='-L$libdir'
15855 hardcode_direct=yes
15856 hardcode_minus_L=yes
15857 hardcode_shlibpath_var=no
15858 ;;
15859
15860 sysv4)
15861 case $host_vendor in
15862 sni)
15863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15864 hardcode_direct=yes # is this really true???
15865 ;;
15866 siemens)
15867 ## LD is ld it makes a PLAMLIB
15868 ## CC just makes a GrossModule.
15869 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15870 reload_cmds='$CC -r -o $output$reload_objs'
15871 hardcode_direct=no
15872 ;;
15873 motorola)
15874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15875 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15876 ;;
15877 esac
15878 runpath_var='LD_RUN_PATH'
15879 hardcode_shlibpath_var=no
15880 ;;
15881
15882 sysv4.3*)
15883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15884 hardcode_shlibpath_var=no
15885 export_dynamic_flag_spec='-Bexport'
15886 ;;
15887
15888 sysv4*MP*)
15889 if test -d /usr/nec; then
15890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15891 hardcode_shlibpath_var=no
15892 runpath_var=LD_RUN_PATH
15893 hardcode_runpath_var=yes
15894 ld_shlibs=yes
15895 fi
15896 ;;
15897
15898 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15899 no_undefined_flag='${wl}-z,text'
15900 archive_cmds_need_lc=no
15901 hardcode_shlibpath_var=no
15902 runpath_var='LD_RUN_PATH'
15903
15904 if test "$GCC" = yes; then
15905 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15906 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15907 else
15908 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15909 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15910 fi
15911 ;;
15912
15913 sysv5* | sco3.2v5* | sco5v6*)
15914 # Note: We can NOT use -z defs as we might desire, because we do not
15915 # link with -lc, and that would cause any symbols used from libc to
15916 # always be unresolved, which means just about no library would
15917 # ever link correctly. If we're not using GNU ld we use -z text
15918 # though, which does catch some bad symbols but isn't as heavy-handed
15919 # as -z defs.
15920 no_undefined_flag='${wl}-z,text'
15921 allow_undefined_flag='${wl}-z,nodefs'
15922 archive_cmds_need_lc=no
15923 hardcode_shlibpath_var=no
15924 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15925 hardcode_libdir_separator=':'
15926 link_all_deplibs=yes
15927 export_dynamic_flag_spec='${wl}-Bexport'
15928 runpath_var='LD_RUN_PATH'
15929
15930 if test "$GCC" = yes; then
15931 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15932 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15933 else
15934 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15935 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15936 fi
15937 ;;
15938
15939 uts4*)
15940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15941 hardcode_libdir_flag_spec='-L$libdir'
15942 hardcode_shlibpath_var=no
15943 ;;
15944
15945 *)
15946 ld_shlibs=no
15947 ;;
15948 esac
15949
15950 if test x$host_vendor = xsni; then
15951 case $host in
15952 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15953 export_dynamic_flag_spec='${wl}-Blargedynsym'
15954 ;;
15955 esac
15956 fi
15957 fi
15958
15959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15960$as_echo "$ld_shlibs" >&6; }
15961test "$ld_shlibs" = no && can_build_shared=no
15962
15963with_gnu_ld=$with_gnu_ld
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979#
15980# Do we need to explicitly link libc?
15981#
15982case "x$archive_cmds_need_lc" in
15983x|xyes)
15984 # Assume -lc should be added
15985 archive_cmds_need_lc=yes
15986
15987 if test "$enable_shared" = yes && test "$GCC" = yes; then
15988 case $archive_cmds in
15989 *'~'*)
15990 # FIXME: we may have to deal with multi-command sequences.
15991 ;;
15992 '$CC '*)
15993 # Test whether the compiler implicitly links with -lc since on some
15994 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15995 # to ld, don't add -lc before -lgcc.
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15997$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015998if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015999 $as_echo_n "(cached) " >&6
16000else
16001 $RM conftest*
16002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016003
cristy0c60a692010-11-04 01:09:47 +000016004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016005 (eval $ac_compile) 2>&5
16006 ac_status=$?
16007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16008 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016009 soname=conftest
16010 lib=conftest
16011 libobjs=conftest.$ac_objext
16012 deplibs=
16013 wl=$lt_prog_compiler_wl
16014 pic_flag=$lt_prog_compiler_pic
16015 compiler_flags=-v
16016 linker_flags=-v
16017 verstring=
16018 output_objdir=.
16019 libname=conftest
16020 lt_save_allow_undefined_flag=$allow_undefined_flag
16021 allow_undefined_flag=
16022 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 +000016023 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16024 ac_status=$?
16025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16026 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016027 then
16028 lt_cv_archive_cmds_need_lc=no
16029 else
16030 lt_cv_archive_cmds_need_lc=yes
16031 fi
16032 allow_undefined_flag=$lt_save_allow_undefined_flag
16033 else
16034 cat conftest.err 1>&5
16035 fi
16036 $RM conftest*
16037
16038fi
16039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16040$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16041 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016042 ;;
16043 esac
16044 fi
16045 ;;
16046esac
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
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
cristy73bd4a52010-10-05 11:24:23 +000016199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16200$as_echo_n "checking dynamic linker characteristics... " >&6; }
16201
16202if test "$GCC" = yes; then
16203 case $host_os in
16204 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16205 *) lt_awk_arg="/^libraries:/" ;;
16206 esac
cristy0c60a692010-11-04 01:09:47 +000016207 case $host_os in
16208 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16209 *) lt_sed_strip_eq="s,=/,/,g" ;;
16210 esac
16211 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16212 case $lt_search_path_spec in
16213 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016214 # if the path contains ";" then we assume it to be the separator
16215 # otherwise default to the standard path separator (i.e. ":") - it is
16216 # assumed that no part of a normal pathname contains ";" but that should
16217 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016218 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16219 ;;
16220 *)
16221 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16222 ;;
16223 esac
cristy73bd4a52010-10-05 11:24:23 +000016224 # Ok, now we have the path, separated by spaces, we can step through it
16225 # and add multilib dir if necessary.
16226 lt_tmp_lt_search_path_spec=
16227 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16228 for lt_sys_path in $lt_search_path_spec; do
16229 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16230 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16231 else
16232 test -d "$lt_sys_path" && \
16233 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16234 fi
16235 done
cristy0c60a692010-11-04 01:09:47 +000016236 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016237BEGIN {RS=" "; FS="/|\n";} {
16238 lt_foo="";
16239 lt_count=0;
16240 for (lt_i = NF; lt_i > 0; lt_i--) {
16241 if ($lt_i != "" && $lt_i != ".") {
16242 if ($lt_i == "..") {
16243 lt_count++;
16244 } else {
16245 if (lt_count == 0) {
16246 lt_foo="/" $lt_i lt_foo;
16247 } else {
16248 lt_count--;
16249 }
16250 }
16251 }
16252 }
16253 if (lt_foo != "") { lt_freq[lt_foo]++; }
16254 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16255}'`
cristy0c60a692010-11-04 01:09:47 +000016256 # AWK program above erroneously prepends '/' to C:/dos/paths
16257 # for these hosts.
16258 case $host_os in
16259 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16260 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16261 esac
16262 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016263else
16264 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16265fi
16266library_names_spec=
16267libname_spec='lib$name'
16268soname_spec=
16269shrext_cmds=".so"
16270postinstall_cmds=
16271postuninstall_cmds=
16272finish_cmds=
16273finish_eval=
16274shlibpath_var=
16275shlibpath_overrides_runpath=unknown
16276version_type=none
16277dynamic_linker="$host_os ld.so"
16278sys_lib_dlsearch_path_spec="/lib /usr/lib"
16279need_lib_prefix=unknown
16280hardcode_into_libs=no
16281
16282# when you set need_version to no, make sure it does not cause -set_version
16283# flags to be left without arguments
16284need_version=unknown
16285
16286case $host_os in
16287aix3*)
cristy99bd5232011-12-07 14:38:20 +000016288 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16290 shlibpath_var=LIBPATH
16291
16292 # AIX 3 has no versioning support, so we append a major version to the name.
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 ;;
16295
16296aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016297 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016298 need_lib_prefix=no
16299 need_version=no
16300 hardcode_into_libs=yes
16301 if test "$host_cpu" = ia64; then
16302 # AIX 5 supports IA64
16303 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16304 shlibpath_var=LD_LIBRARY_PATH
16305 else
16306 # With GCC up to 2.95.x, collect2 would create an import file
16307 # for dependence libraries. The import file would start with
16308 # the line `#! .'. This would cause the generated library to
16309 # depend on `.', always an invalid library. This was fixed in
16310 # development snapshots of GCC prior to 3.0.
16311 case $host_os in
16312 aix4 | aix4.[01] | aix4.[01].*)
16313 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16314 echo ' yes '
16315 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16316 :
16317 else
16318 can_build_shared=no
16319 fi
16320 ;;
16321 esac
16322 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16323 # soname into executable. Probably we can add versioning support to
16324 # collect2, so additional links can be useful in future.
16325 if test "$aix_use_runtimelinking" = yes; then
16326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16327 # instead of lib<name>.a to let people know that these are not
16328 # typical AIX shared libraries.
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330 else
16331 # We preserve .a as extension for shared libraries through AIX4.2
16332 # and later when we are not doing run time linking.
16333 library_names_spec='${libname}${release}.a $libname.a'
16334 soname_spec='${libname}${release}${shared_ext}$major'
16335 fi
16336 shlibpath_var=LIBPATH
16337 fi
16338 ;;
16339
16340amigaos*)
16341 case $host_cpu in
16342 powerpc)
16343 # Since July 2007 AmigaOS4 officially supports .so libraries.
16344 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16346 ;;
16347 m68k)
16348 library_names_spec='$libname.ixlibrary $libname.a'
16349 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016350 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 +000016351 ;;
16352 esac
16353 ;;
16354
16355beos*)
16356 library_names_spec='${libname}${shared_ext}'
16357 dynamic_linker="$host_os ld.so"
16358 shlibpath_var=LIBRARY_PATH
16359 ;;
16360
16361bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016362 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016363 need_version=no
16364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16365 soname_spec='${libname}${release}${shared_ext}$major'
16366 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16367 shlibpath_var=LD_LIBRARY_PATH
16368 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16369 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16370 # the default ld.so.conf also contains /usr/contrib/lib and
16371 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16372 # libtool to hard-code these into programs
16373 ;;
16374
16375cygwin* | mingw* | pw32* | cegcc*)
16376 version_type=windows
16377 shrext_cmds=".dll"
16378 need_version=no
16379 need_lib_prefix=no
16380
cristyda16f162011-02-19 23:52:17 +000016381 case $GCC,$cc_basename in
16382 yes,*)
16383 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016384 library_names_spec='$libname.dll.a'
16385 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16386 postinstall_cmds='base_file=`basename \${file}`~
16387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16388 dldir=$destdir/`dirname \$dlpath`~
16389 test -d \$dldir || mkdir -p \$dldir~
16390 $install_prog $dir/$dlname \$dldir/$dlname~
16391 chmod a+x \$dldir/$dlname~
16392 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16393 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16394 fi'
16395 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16396 dlpath=$dir/\$dldll~
16397 $RM \$dlpath'
16398 shlibpath_overrides_runpath=yes
16399
16400 case $host_os in
16401 cygwin*)
16402 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16403 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016404
16405 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016406 ;;
16407 mingw* | cegcc*)
16408 # MinGW DLLs use traditional 'lib' prefix
16409 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016410 ;;
16411 pw32*)
16412 # pw32 DLLs use 'pw' prefix rather than 'lib'
16413 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16414 ;;
16415 esac
cristyda16f162011-02-19 23:52:17 +000016416 dynamic_linker='Win32 ld.exe'
16417 ;;
16418
16419 *,cl*)
16420 # Native MSVC
16421 libname_spec='$name'
16422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16423 library_names_spec='${libname}.dll.lib'
16424
16425 case $build_os in
16426 mingw*)
16427 sys_lib_search_path_spec=
16428 lt_save_ifs=$IFS
16429 IFS=';'
16430 for lt_path in $LIB
16431 do
16432 IFS=$lt_save_ifs
16433 # Let DOS variable expansion print the short 8.3 style file name.
16434 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16435 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16436 done
16437 IFS=$lt_save_ifs
16438 # Convert to MSYS style.
16439 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16440 ;;
16441 cygwin*)
16442 # Convert to unix form, then to dos form, then back to unix form
16443 # but this time dos style (no spaces!) so that the unix form looks
16444 # like /cygdrive/c/PROGRA~1:/cygdr...
16445 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16446 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16447 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16448 ;;
16449 *)
16450 sys_lib_search_path_spec="$LIB"
16451 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16452 # It is most probably a Windows format PATH.
16453 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16454 else
16455 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16456 fi
16457 # FIXME: find the short name or the path components, as spaces are
16458 # common. (e.g. "Program Files" -> "PROGRA~1")
16459 ;;
16460 esac
16461
16462 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16463 postinstall_cmds='base_file=`basename \${file}`~
16464 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16465 dldir=$destdir/`dirname \$dlpath`~
16466 test -d \$dldir || mkdir -p \$dldir~
16467 $install_prog $dir/$dlname \$dldir/$dlname'
16468 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16469 dlpath=$dir/\$dldll~
16470 $RM \$dlpath'
16471 shlibpath_overrides_runpath=yes
16472 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016473 ;;
16474
16475 *)
cristyda16f162011-02-19 23:52:17 +000016476 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016477 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016478 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016479 ;;
16480 esac
cristy73bd4a52010-10-05 11:24:23 +000016481 # FIXME: first we should search . and the directory the executable is in
16482 shlibpath_var=PATH
16483 ;;
16484
16485darwin* | rhapsody*)
16486 dynamic_linker="$host_os dyld"
16487 version_type=darwin
16488 need_lib_prefix=no
16489 need_version=no
16490 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16491 soname_spec='${libname}${release}${major}$shared_ext'
16492 shlibpath_overrides_runpath=yes
16493 shlibpath_var=DYLD_LIBRARY_PATH
16494 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16495
16496 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16497 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16498 ;;
16499
16500dgux*)
cristy99bd5232011-12-07 14:38:20 +000016501 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016502 need_lib_prefix=no
16503 need_version=no
16504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16505 soname_spec='${libname}${release}${shared_ext}$major'
16506 shlibpath_var=LD_LIBRARY_PATH
16507 ;;
16508
cristy73bd4a52010-10-05 11:24:23 +000016509freebsd* | dragonfly*)
16510 # DragonFly does not have aout. When/if they implement a new
16511 # versioning mechanism, adjust this.
16512 if test -x /usr/bin/objformat; then
16513 objformat=`/usr/bin/objformat`
16514 else
16515 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016516 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016517 *) objformat=elf ;;
16518 esac
16519 fi
16520 version_type=freebsd-$objformat
16521 case $version_type in
16522 freebsd-elf*)
16523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16524 need_version=no
16525 need_lib_prefix=no
16526 ;;
16527 freebsd-*)
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16529 need_version=yes
16530 ;;
16531 esac
16532 shlibpath_var=LD_LIBRARY_PATH
16533 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016534 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016535 shlibpath_overrides_runpath=yes
16536 ;;
16537 freebsd3.[01]* | freebsdelf3.[01]*)
16538 shlibpath_overrides_runpath=yes
16539 hardcode_into_libs=yes
16540 ;;
16541 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16542 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16543 shlibpath_overrides_runpath=no
16544 hardcode_into_libs=yes
16545 ;;
16546 *) # from 4.6 on, and DragonFly
16547 shlibpath_overrides_runpath=yes
16548 hardcode_into_libs=yes
16549 ;;
16550 esac
16551 ;;
16552
16553gnu*)
cristy99bd5232011-12-07 14:38:20 +000016554 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016555 need_lib_prefix=no
16556 need_version=no
16557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16558 soname_spec='${libname}${release}${shared_ext}$major'
16559 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016560 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016561 hardcode_into_libs=yes
16562 ;;
16563
cristy0c60a692010-11-04 01:09:47 +000016564haiku*)
cristy99bd5232011-12-07 14:38:20 +000016565 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016566 need_lib_prefix=no
16567 need_version=no
16568 dynamic_linker="$host_os runtime_loader"
16569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16570 soname_spec='${libname}${release}${shared_ext}$major'
16571 shlibpath_var=LIBRARY_PATH
16572 shlibpath_overrides_runpath=yes
16573 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16574 hardcode_into_libs=yes
16575 ;;
16576
cristy73bd4a52010-10-05 11:24:23 +000016577hpux9* | hpux10* | hpux11*)
16578 # Give a soname corresponding to the major version so that dld.sl refuses to
16579 # link against other versions.
16580 version_type=sunos
16581 need_lib_prefix=no
16582 need_version=no
16583 case $host_cpu in
16584 ia64*)
16585 shrext_cmds='.so'
16586 hardcode_into_libs=yes
16587 dynamic_linker="$host_os dld.so"
16588 shlibpath_var=LD_LIBRARY_PATH
16589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16591 soname_spec='${libname}${release}${shared_ext}$major'
16592 if test "X$HPUX_IA64_MODE" = X32; then
16593 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16594 else
16595 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16596 fi
16597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16598 ;;
16599 hppa*64*)
16600 shrext_cmds='.sl'
16601 hardcode_into_libs=yes
16602 dynamic_linker="$host_os dld.sl"
16603 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16606 soname_spec='${libname}${release}${shared_ext}$major'
16607 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16609 ;;
16610 *)
16611 shrext_cmds='.sl'
16612 dynamic_linker="$host_os dld.sl"
16613 shlibpath_var=SHLIB_PATH
16614 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16616 soname_spec='${libname}${release}${shared_ext}$major'
16617 ;;
16618 esac
cristy0c60a692010-11-04 01:09:47 +000016619 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016620 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016621 # or fails outright, so override atomically:
16622 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016623 ;;
16624
16625interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016626 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016627 need_lib_prefix=no
16628 need_version=no
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16630 soname_spec='${libname}${release}${shared_ext}$major'
16631 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16632 shlibpath_var=LD_LIBRARY_PATH
16633 shlibpath_overrides_runpath=no
16634 hardcode_into_libs=yes
16635 ;;
16636
16637irix5* | irix6* | nonstopux*)
16638 case $host_os in
16639 nonstopux*) version_type=nonstopux ;;
16640 *)
16641 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016642 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016643 else
16644 version_type=irix
16645 fi ;;
16646 esac
16647 need_lib_prefix=no
16648 need_version=no
16649 soname_spec='${libname}${release}${shared_ext}$major'
16650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16651 case $host_os in
16652 irix5* | nonstopux*)
16653 libsuff= shlibsuff=
16654 ;;
16655 *)
16656 case $LD in # libtool.m4 will add one of these switches to LD
16657 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16658 libsuff= shlibsuff= libmagic=32-bit;;
16659 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16660 libsuff=32 shlibsuff=N32 libmagic=N32;;
16661 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16662 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16663 *) libsuff= shlibsuff= libmagic=never-match;;
16664 esac
16665 ;;
16666 esac
16667 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16668 shlibpath_overrides_runpath=no
16669 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16670 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16671 hardcode_into_libs=yes
16672 ;;
16673
16674# No shared lib support for Linux oldld, aout, or coff.
16675linux*oldld* | linux*aout* | linux*coff*)
16676 dynamic_linker=no
16677 ;;
16678
cristy99bd5232011-12-07 14:38:20 +000016679# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016680linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016681 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016682 need_lib_prefix=no
16683 need_version=no
16684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685 soname_spec='${libname}${release}${shared_ext}$major'
16686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16687 shlibpath_var=LD_LIBRARY_PATH
16688 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016689
cristy73bd4a52010-10-05 11:24:23 +000016690 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016691 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016692 $as_echo_n "(cached) " >&6
16693else
16694 lt_cv_shlibpath_overrides_runpath=no
16695 save_LDFLAGS=$LDFLAGS
16696 save_libdir=$libdir
16697 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16698 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016700/* end confdefs.h. */
16701
16702int
16703main ()
16704{
16705
16706 ;
16707 return 0;
16708}
16709_ACEOF
16710if ac_fn_c_try_link "$LINENO"; then :
16711 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016712 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016713fi
16714fi
16715rm -f core conftest.err conftest.$ac_objext \
16716 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016717 LDFLAGS=$save_LDFLAGS
16718 libdir=$save_libdir
16719
16720fi
16721
16722 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016723
16724 # This implies no fast_install, which is unacceptable.
16725 # Some rework will be needed to allow for fast_install
16726 # before this can be enabled.
16727 hardcode_into_libs=yes
16728
16729 # Add ABI-specific directories to the system library path.
16730 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16731
16732 # Append ld.so.conf contents to the search path
16733 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016734 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 +000016735 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016736
cristy73bd4a52010-10-05 11:24:23 +000016737 fi
16738
16739 # We used to test for /lib/ld.so.1 and disable shared libraries on
16740 # powerpc, because MkLinux only supported shared libraries with the
16741 # GNU dynamic linker. Since this was broken with cross compilers,
16742 # most powerpc-linux boxes support dynamic linking these days and
16743 # people can always --disable-shared, the test was removed, and we
16744 # assume the GNU/Linux dynamic linker is in use.
16745 dynamic_linker='GNU/Linux ld.so'
16746 ;;
16747
16748netbsd*)
16749 version_type=sunos
16750 need_lib_prefix=no
16751 need_version=no
16752 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16755 dynamic_linker='NetBSD (a.out) ld.so'
16756 else
16757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16758 soname_spec='${libname}${release}${shared_ext}$major'
16759 dynamic_linker='NetBSD ld.elf_so'
16760 fi
16761 shlibpath_var=LD_LIBRARY_PATH
16762 shlibpath_overrides_runpath=yes
16763 hardcode_into_libs=yes
16764 ;;
16765
16766newsos6)
cristy99bd5232011-12-07 14:38:20 +000016767 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16769 shlibpath_var=LD_LIBRARY_PATH
16770 shlibpath_overrides_runpath=yes
16771 ;;
16772
16773*nto* | *qnx*)
16774 version_type=qnx
16775 need_lib_prefix=no
16776 need_version=no
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16778 soname_spec='${libname}${release}${shared_ext}$major'
16779 shlibpath_var=LD_LIBRARY_PATH
16780 shlibpath_overrides_runpath=no
16781 hardcode_into_libs=yes
16782 dynamic_linker='ldqnx.so'
16783 ;;
16784
16785openbsd*)
16786 version_type=sunos
16787 sys_lib_dlsearch_path_spec="/usr/lib"
16788 need_lib_prefix=no
16789 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16790 case $host_os in
16791 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16792 *) need_version=no ;;
16793 esac
16794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16796 shlibpath_var=LD_LIBRARY_PATH
16797 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16798 case $host_os in
16799 openbsd2.[89] | openbsd2.[89].*)
16800 shlibpath_overrides_runpath=no
16801 ;;
16802 *)
16803 shlibpath_overrides_runpath=yes
16804 ;;
16805 esac
16806 else
16807 shlibpath_overrides_runpath=yes
16808 fi
16809 ;;
16810
16811os2*)
16812 libname_spec='$name'
16813 shrext_cmds=".dll"
16814 need_lib_prefix=no
16815 library_names_spec='$libname${shared_ext} $libname.a'
16816 dynamic_linker='OS/2 ld.exe'
16817 shlibpath_var=LIBPATH
16818 ;;
16819
16820osf3* | osf4* | osf5*)
16821 version_type=osf
16822 need_lib_prefix=no
16823 need_version=no
16824 soname_spec='${libname}${release}${shared_ext}$major'
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16826 shlibpath_var=LD_LIBRARY_PATH
16827 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16828 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16829 ;;
16830
16831rdos*)
16832 dynamic_linker=no
16833 ;;
16834
16835solaris*)
cristy99bd5232011-12-07 14:38:20 +000016836 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016837 need_lib_prefix=no
16838 need_version=no
16839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16840 soname_spec='${libname}${release}${shared_ext}$major'
16841 shlibpath_var=LD_LIBRARY_PATH
16842 shlibpath_overrides_runpath=yes
16843 hardcode_into_libs=yes
16844 # ldd complains unless libraries are executable
16845 postinstall_cmds='chmod +x $lib'
16846 ;;
16847
16848sunos4*)
16849 version_type=sunos
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16851 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16852 shlibpath_var=LD_LIBRARY_PATH
16853 shlibpath_overrides_runpath=yes
16854 if test "$with_gnu_ld" = yes; then
16855 need_lib_prefix=no
16856 fi
16857 need_version=yes
16858 ;;
16859
16860sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016861 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16863 soname_spec='${libname}${release}${shared_ext}$major'
16864 shlibpath_var=LD_LIBRARY_PATH
16865 case $host_vendor in
16866 sni)
16867 shlibpath_overrides_runpath=no
16868 need_lib_prefix=no
16869 runpath_var=LD_RUN_PATH
16870 ;;
16871 siemens)
16872 need_lib_prefix=no
16873 ;;
16874 motorola)
16875 need_lib_prefix=no
16876 need_version=no
16877 shlibpath_overrides_runpath=no
16878 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16879 ;;
16880 esac
16881 ;;
16882
16883sysv4*MP*)
16884 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016885 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016886 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16887 soname_spec='$libname${shared_ext}.$major'
16888 shlibpath_var=LD_LIBRARY_PATH
16889 fi
16890 ;;
16891
16892sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16893 version_type=freebsd-elf
16894 need_lib_prefix=no
16895 need_version=no
16896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16897 soname_spec='${libname}${release}${shared_ext}$major'
16898 shlibpath_var=LD_LIBRARY_PATH
16899 shlibpath_overrides_runpath=yes
16900 hardcode_into_libs=yes
16901 if test "$with_gnu_ld" = yes; then
16902 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16903 else
16904 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16905 case $host_os in
16906 sco3.2v5*)
16907 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16908 ;;
16909 esac
16910 fi
16911 sys_lib_dlsearch_path_spec='/usr/lib'
16912 ;;
16913
16914tpf*)
16915 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016916 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016917 need_lib_prefix=no
16918 need_version=no
16919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16920 shlibpath_var=LD_LIBRARY_PATH
16921 shlibpath_overrides_runpath=no
16922 hardcode_into_libs=yes
16923 ;;
16924
16925uts4*)
cristy99bd5232011-12-07 14:38:20 +000016926 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16928 soname_spec='${libname}${release}${shared_ext}$major'
16929 shlibpath_var=LD_LIBRARY_PATH
16930 ;;
16931
16932*)
16933 dynamic_linker=no
16934 ;;
16935esac
16936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16937$as_echo "$dynamic_linker" >&6; }
16938test "$dynamic_linker" = no && can_build_shared=no
16939
16940variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16941if test "$GCC" = yes; then
16942 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16943fi
16944
16945if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16946 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16947fi
16948if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16949 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16950fi
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
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
cristy0c60a692010-11-04 01:09:47 +000017038
17039
17040
17041
17042
cristy73bd4a52010-10-05 11:24:23 +000017043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17044$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17045hardcode_action=
17046if test -n "$hardcode_libdir_flag_spec" ||
17047 test -n "$runpath_var" ||
17048 test "X$hardcode_automatic" = "Xyes" ; then
17049
17050 # We can hardcode non-existent directories.
17051 if test "$hardcode_direct" != no &&
17052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17053 # have to relink, otherwise we might link with an installed library
17054 # when we should be linking with a yet-to-be-installed one
17055 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17056 test "$hardcode_minus_L" != no; then
17057 # Linking always hardcodes the temporary library directory.
17058 hardcode_action=relink
17059 else
17060 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17061 hardcode_action=immediate
17062 fi
17063else
17064 # We cannot hardcode anything, or else we can only hardcode existing
17065 # directories.
17066 hardcode_action=unsupported
17067fi
17068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17069$as_echo "$hardcode_action" >&6; }
17070
17071if test "$hardcode_action" = relink ||
17072 test "$inherit_rpath" = yes; then
17073 # Fast installation is not supported
17074 enable_fast_install=no
17075elif test "$shlibpath_overrides_runpath" = yes ||
17076 test "$enable_shared" = no; then
17077 # Fast installation is not necessary
17078 enable_fast_install=needless
17079fi
17080
17081
17082
17083
17084
17085
17086 if test "x$enable_dlopen" != xyes; then
17087 enable_dlopen=unknown
17088 enable_dlopen_self=unknown
17089 enable_dlopen_self_static=unknown
17090else
17091 lt_cv_dlopen=no
17092 lt_cv_dlopen_libs=
17093
17094 case $host_os in
17095 beos*)
17096 lt_cv_dlopen="load_add_on"
17097 lt_cv_dlopen_libs=
17098 lt_cv_dlopen_self=yes
17099 ;;
17100
17101 mingw* | pw32* | cegcc*)
17102 lt_cv_dlopen="LoadLibrary"
17103 lt_cv_dlopen_libs=
17104 ;;
17105
17106 cygwin*)
17107 lt_cv_dlopen="dlopen"
17108 lt_cv_dlopen_libs=
17109 ;;
17110
17111 darwin*)
17112 # if libdl is installed we need to link against it
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17114$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017115if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017116 $as_echo_n "(cached) " >&6
17117else
17118 ac_check_lib_save_LIBS=$LIBS
17119LIBS="-ldl $LIBS"
17120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17121/* end confdefs.h. */
17122
17123/* Override any GCC internal prototype to avoid an error.
17124 Use char because int might match the return type of a GCC
17125 builtin and then its argument prototype would still apply. */
17126#ifdef __cplusplus
17127extern "C"
17128#endif
17129char dlopen ();
17130int
17131main ()
17132{
17133return dlopen ();
17134 ;
17135 return 0;
17136}
17137_ACEOF
17138if ac_fn_c_try_link "$LINENO"; then :
17139 ac_cv_lib_dl_dlopen=yes
17140else
17141 ac_cv_lib_dl_dlopen=no
17142fi
17143rm -f core conftest.err conftest.$ac_objext \
17144 conftest$ac_exeext conftest.$ac_ext
17145LIBS=$ac_check_lib_save_LIBS
17146fi
17147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17148$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017149if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17151else
17152
17153 lt_cv_dlopen="dyld"
17154 lt_cv_dlopen_libs=
17155 lt_cv_dlopen_self=yes
17156
17157fi
17158
17159 ;;
17160
17161 *)
17162 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017163if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017164 lt_cv_dlopen="shl_load"
17165else
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17167$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017168if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017169 $as_echo_n "(cached) " >&6
17170else
17171 ac_check_lib_save_LIBS=$LIBS
17172LIBS="-ldld $LIBS"
17173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174/* end confdefs.h. */
17175
17176/* Override any GCC internal prototype to avoid an error.
17177 Use char because int might match the return type of a GCC
17178 builtin and then its argument prototype would still apply. */
17179#ifdef __cplusplus
17180extern "C"
17181#endif
17182char shl_load ();
17183int
17184main ()
17185{
17186return shl_load ();
17187 ;
17188 return 0;
17189}
17190_ACEOF
17191if ac_fn_c_try_link "$LINENO"; then :
17192 ac_cv_lib_dld_shl_load=yes
17193else
17194 ac_cv_lib_dld_shl_load=no
17195fi
17196rm -f core conftest.err conftest.$ac_objext \
17197 conftest$ac_exeext conftest.$ac_ext
17198LIBS=$ac_check_lib_save_LIBS
17199fi
17200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17201$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017202if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017203 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17204else
17205 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017206if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017207 lt_cv_dlopen="dlopen"
17208else
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17210$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017211if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017212 $as_echo_n "(cached) " >&6
17213else
17214 ac_check_lib_save_LIBS=$LIBS
17215LIBS="-ldl $LIBS"
17216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217/* end confdefs.h. */
17218
17219/* Override any GCC internal prototype to avoid an error.
17220 Use char because int might match the return type of a GCC
17221 builtin and then its argument prototype would still apply. */
17222#ifdef __cplusplus
17223extern "C"
17224#endif
17225char dlopen ();
17226int
17227main ()
17228{
17229return dlopen ();
17230 ;
17231 return 0;
17232}
17233_ACEOF
17234if ac_fn_c_try_link "$LINENO"; then :
17235 ac_cv_lib_dl_dlopen=yes
17236else
17237 ac_cv_lib_dl_dlopen=no
17238fi
17239rm -f core conftest.err conftest.$ac_objext \
17240 conftest$ac_exeext conftest.$ac_ext
17241LIBS=$ac_check_lib_save_LIBS
17242fi
17243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17244$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017245if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017246 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17247else
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17249$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017250if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017251 $as_echo_n "(cached) " >&6
17252else
17253 ac_check_lib_save_LIBS=$LIBS
17254LIBS="-lsvld $LIBS"
17255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256/* end confdefs.h. */
17257
17258/* Override any GCC internal prototype to avoid an error.
17259 Use char because int might match the return type of a GCC
17260 builtin and then its argument prototype would still apply. */
17261#ifdef __cplusplus
17262extern "C"
17263#endif
17264char dlopen ();
17265int
17266main ()
17267{
17268return dlopen ();
17269 ;
17270 return 0;
17271}
17272_ACEOF
17273if ac_fn_c_try_link "$LINENO"; then :
17274 ac_cv_lib_svld_dlopen=yes
17275else
17276 ac_cv_lib_svld_dlopen=no
17277fi
17278rm -f core conftest.err conftest.$ac_objext \
17279 conftest$ac_exeext conftest.$ac_ext
17280LIBS=$ac_check_lib_save_LIBS
17281fi
17282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17283$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017284if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17286else
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17288$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017289if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017290 $as_echo_n "(cached) " >&6
17291else
17292 ac_check_lib_save_LIBS=$LIBS
17293LIBS="-ldld $LIBS"
17294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17295/* end confdefs.h. */
17296
17297/* Override any GCC internal prototype to avoid an error.
17298 Use char because int might match the return type of a GCC
17299 builtin and then its argument prototype would still apply. */
17300#ifdef __cplusplus
17301extern "C"
17302#endif
17303char dld_link ();
17304int
17305main ()
17306{
17307return dld_link ();
17308 ;
17309 return 0;
17310}
17311_ACEOF
17312if ac_fn_c_try_link "$LINENO"; then :
17313 ac_cv_lib_dld_dld_link=yes
17314else
17315 ac_cv_lib_dld_dld_link=no
17316fi
17317rm -f core conftest.err conftest.$ac_objext \
17318 conftest$ac_exeext conftest.$ac_ext
17319LIBS=$ac_check_lib_save_LIBS
17320fi
17321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17322$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017323if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017324 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17325fi
17326
17327
17328fi
17329
17330
17331fi
17332
17333
17334fi
17335
17336
17337fi
17338
17339
17340fi
17341
17342 ;;
17343 esac
17344
17345 if test "x$lt_cv_dlopen" != xno; then
17346 enable_dlopen=yes
17347 else
17348 enable_dlopen=no
17349 fi
17350
17351 case $lt_cv_dlopen in
17352 dlopen)
17353 save_CPPFLAGS="$CPPFLAGS"
17354 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17355
17356 save_LDFLAGS="$LDFLAGS"
17357 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17358
17359 save_LIBS="$LIBS"
17360 LIBS="$lt_cv_dlopen_libs $LIBS"
17361
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17363$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017364if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017365 $as_echo_n "(cached) " >&6
17366else
17367 if test "$cross_compiling" = yes; then :
17368 lt_cv_dlopen_self=cross
17369else
17370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17371 lt_status=$lt_dlunknown
17372 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017373#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017374#include "confdefs.h"
17375
17376#if HAVE_DLFCN_H
17377#include <dlfcn.h>
17378#endif
17379
17380#include <stdio.h>
17381
17382#ifdef RTLD_GLOBAL
17383# define LT_DLGLOBAL RTLD_GLOBAL
17384#else
17385# ifdef DL_GLOBAL
17386# define LT_DLGLOBAL DL_GLOBAL
17387# else
17388# define LT_DLGLOBAL 0
17389# endif
17390#endif
17391
17392/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17393 find out it does not work in some platform. */
17394#ifndef LT_DLLAZY_OR_NOW
17395# ifdef RTLD_LAZY
17396# define LT_DLLAZY_OR_NOW RTLD_LAZY
17397# else
17398# ifdef DL_LAZY
17399# define LT_DLLAZY_OR_NOW DL_LAZY
17400# else
17401# ifdef RTLD_NOW
17402# define LT_DLLAZY_OR_NOW RTLD_NOW
17403# else
17404# ifdef DL_NOW
17405# define LT_DLLAZY_OR_NOW DL_NOW
17406# else
17407# define LT_DLLAZY_OR_NOW 0
17408# endif
17409# endif
17410# endif
17411# endif
17412#endif
17413
cristy0c60a692010-11-04 01:09:47 +000017414/* When -fvisbility=hidden is used, assume the code has been annotated
17415 correspondingly for the symbols needed. */
17416#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017417int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017418#endif
17419
cristyda16f162011-02-19 23:52:17 +000017420int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017421int main ()
17422{
17423 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17424 int status = $lt_dlunknown;
17425
17426 if (self)
17427 {
17428 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017429 else
17430 {
17431 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17432 else puts (dlerror ());
17433 }
cristy73bd4a52010-10-05 11:24:23 +000017434 /* dlclose (self); */
17435 }
17436 else
17437 puts (dlerror ());
17438
17439 return status;
17440}
17441_LT_EOF
17442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17443 (eval $ac_link) 2>&5
17444 ac_status=$?
17445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17446 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17447 (./conftest; exit; ) >&5 2>/dev/null
17448 lt_status=$?
17449 case x$lt_status in
17450 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17451 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17452 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17453 esac
17454 else :
17455 # compilation failed
17456 lt_cv_dlopen_self=no
17457 fi
17458fi
17459rm -fr conftest*
17460
17461
17462fi
17463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17464$as_echo "$lt_cv_dlopen_self" >&6; }
17465
17466 if test "x$lt_cv_dlopen_self" = xyes; then
17467 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17469$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017470if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017471 $as_echo_n "(cached) " >&6
17472else
17473 if test "$cross_compiling" = yes; then :
17474 lt_cv_dlopen_self_static=cross
17475else
17476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17477 lt_status=$lt_dlunknown
17478 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017479#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017480#include "confdefs.h"
17481
17482#if HAVE_DLFCN_H
17483#include <dlfcn.h>
17484#endif
17485
17486#include <stdio.h>
17487
17488#ifdef RTLD_GLOBAL
17489# define LT_DLGLOBAL RTLD_GLOBAL
17490#else
17491# ifdef DL_GLOBAL
17492# define LT_DLGLOBAL DL_GLOBAL
17493# else
17494# define LT_DLGLOBAL 0
17495# endif
17496#endif
17497
17498/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17499 find out it does not work in some platform. */
17500#ifndef LT_DLLAZY_OR_NOW
17501# ifdef RTLD_LAZY
17502# define LT_DLLAZY_OR_NOW RTLD_LAZY
17503# else
17504# ifdef DL_LAZY
17505# define LT_DLLAZY_OR_NOW DL_LAZY
17506# else
17507# ifdef RTLD_NOW
17508# define LT_DLLAZY_OR_NOW RTLD_NOW
17509# else
17510# ifdef DL_NOW
17511# define LT_DLLAZY_OR_NOW DL_NOW
17512# else
17513# define LT_DLLAZY_OR_NOW 0
17514# endif
17515# endif
17516# endif
17517# endif
17518#endif
17519
cristy0c60a692010-11-04 01:09:47 +000017520/* When -fvisbility=hidden is used, assume the code has been annotated
17521 correspondingly for the symbols needed. */
17522#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017523int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017524#endif
17525
cristyda16f162011-02-19 23:52:17 +000017526int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017527int main ()
17528{
17529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17530 int status = $lt_dlunknown;
17531
17532 if (self)
17533 {
17534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017535 else
17536 {
17537 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17538 else puts (dlerror ());
17539 }
cristy73bd4a52010-10-05 11:24:23 +000017540 /* dlclose (self); */
17541 }
17542 else
17543 puts (dlerror ());
17544
17545 return status;
17546}
17547_LT_EOF
17548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17549 (eval $ac_link) 2>&5
17550 ac_status=$?
17551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17552 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17553 (./conftest; exit; ) >&5 2>/dev/null
17554 lt_status=$?
17555 case x$lt_status in
17556 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17557 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17558 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17559 esac
17560 else :
17561 # compilation failed
17562 lt_cv_dlopen_self_static=no
17563 fi
17564fi
17565rm -fr conftest*
17566
17567
17568fi
17569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17570$as_echo "$lt_cv_dlopen_self_static" >&6; }
17571 fi
17572
17573 CPPFLAGS="$save_CPPFLAGS"
17574 LDFLAGS="$save_LDFLAGS"
17575 LIBS="$save_LIBS"
17576 ;;
17577 esac
17578
17579 case $lt_cv_dlopen_self in
17580 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17581 *) enable_dlopen_self=unknown ;;
17582 esac
17583
17584 case $lt_cv_dlopen_self_static in
17585 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17586 *) enable_dlopen_self_static=unknown ;;
17587 esac
17588fi
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606striplib=
17607old_striplib=
17608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17609$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17610if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17611 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17612 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17614$as_echo "yes" >&6; }
17615else
17616# FIXME - insert some real tests, host_os isn't really good enough
17617 case $host_os in
17618 darwin*)
17619 if test -n "$STRIP" ; then
17620 striplib="$STRIP -x"
17621 old_striplib="$STRIP -S"
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17623$as_echo "yes" >&6; }
17624 else
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17626$as_echo "no" >&6; }
17627 fi
17628 ;;
17629 *)
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17631$as_echo "no" >&6; }
17632 ;;
17633 esac
17634fi
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647 # Report which library types will actually be built
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17649$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17651$as_echo "$can_build_shared" >&6; }
17652
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17654$as_echo_n "checking whether to build shared libraries... " >&6; }
17655 test "$can_build_shared" = "no" && enable_shared=no
17656
17657 # On AIX, shared libraries and static libraries use the same namespace, and
17658 # are all built from PIC.
17659 case $host_os in
17660 aix3*)
17661 test "$enable_shared" = yes && enable_static=no
17662 if test -n "$RANLIB"; then
17663 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17664 postinstall_cmds='$RANLIB $lib'
17665 fi
17666 ;;
17667
17668 aix[4-9]*)
17669 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17670 test "$enable_shared" = yes && enable_static=no
17671 fi
17672 ;;
17673 esac
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17675$as_echo "$enable_shared" >&6; }
17676
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17678$as_echo_n "checking whether to build static libraries... " >&6; }
17679 # Make sure either enable_shared or enable_static is yes.
17680 test "$enable_shared" = yes || enable_static=yes
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17682$as_echo "$enable_static" >&6; }
17683
17684
17685
17686
17687fi
17688ac_ext=c
17689ac_cpp='$CPP $CPPFLAGS'
17690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17692ac_compiler_gnu=$ac_cv_c_compiler_gnu
17693
17694CC="$lt_save_CC"
17695
cristy0c60a692010-11-04 01:09:47 +000017696 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17697 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17698 (test "X$CXX" != "Xg++"))) ; then
17699 ac_ext=cpp
17700ac_cpp='$CXXCPP $CPPFLAGS'
17701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17705$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17706if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017707 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017708 $as_echo_n "(cached) " >&6
17709else
17710 # Double quotes because CXXCPP needs to be expanded
17711 for CXXCPP in "$CXX -E" "/lib/cpp"
17712 do
17713 ac_preproc_ok=false
17714for ac_cxx_preproc_warn_flag in '' yes
17715do
17716 # Use a header file that comes with gcc, so configuring glibc
17717 # with a fresh cross-compiler works.
17718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17719 # <limits.h> exists even on freestanding compilers.
17720 # On the NeXT, cc -E runs the code through the compiler's parser,
17721 # not just through cpp. "Syntax error" is here to catch this case.
17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723/* end confdefs.h. */
17724#ifdef __STDC__
17725# include <limits.h>
17726#else
17727# include <assert.h>
17728#endif
17729 Syntax error
17730_ACEOF
17731if ac_fn_cxx_try_cpp "$LINENO"; then :
17732
17733else
17734 # Broken: fails on valid input.
17735continue
17736fi
cristyda16f162011-02-19 23:52:17 +000017737rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017738
17739 # OK, works on sane cases. Now check whether nonexistent headers
17740 # can be detected and how.
17741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742/* end confdefs.h. */
17743#include <ac_nonexistent.h>
17744_ACEOF
17745if ac_fn_cxx_try_cpp "$LINENO"; then :
17746 # Broken: success on invalid input.
17747continue
17748else
17749 # Passes both tests.
17750ac_preproc_ok=:
17751break
17752fi
cristyda16f162011-02-19 23:52:17 +000017753rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017754
17755done
17756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017757rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017758if $ac_preproc_ok; then :
17759 break
17760fi
17761
17762 done
17763 ac_cv_prog_CXXCPP=$CXXCPP
17764
17765fi
17766 CXXCPP=$ac_cv_prog_CXXCPP
17767else
17768 ac_cv_prog_CXXCPP=$CXXCPP
17769fi
17770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17771$as_echo "$CXXCPP" >&6; }
17772ac_preproc_ok=false
17773for ac_cxx_preproc_warn_flag in '' yes
17774do
17775 # Use a header file that comes with gcc, so configuring glibc
17776 # with a fresh cross-compiler works.
17777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17778 # <limits.h> exists even on freestanding compilers.
17779 # On the NeXT, cc -E runs the code through the compiler's parser,
17780 # not just through cpp. "Syntax error" is here to catch this case.
17781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17782/* end confdefs.h. */
17783#ifdef __STDC__
17784# include <limits.h>
17785#else
17786# include <assert.h>
17787#endif
17788 Syntax error
17789_ACEOF
17790if ac_fn_cxx_try_cpp "$LINENO"; then :
17791
17792else
17793 # Broken: fails on valid input.
17794continue
17795fi
cristyda16f162011-02-19 23:52:17 +000017796rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017797
17798 # OK, works on sane cases. Now check whether nonexistent headers
17799 # can be detected and how.
17800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801/* end confdefs.h. */
17802#include <ac_nonexistent.h>
17803_ACEOF
17804if ac_fn_cxx_try_cpp "$LINENO"; then :
17805 # Broken: success on invalid input.
17806continue
17807else
17808 # Passes both tests.
17809ac_preproc_ok=:
17810break
17811fi
cristyda16f162011-02-19 23:52:17 +000017812rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017813
17814done
17815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017816rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017817if $ac_preproc_ok; then :
17818
17819else
17820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17822as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17823See \`config.log' for more details" "$LINENO" 5; }
17824fi
17825
17826ac_ext=c
17827ac_cpp='$CPP $CPPFLAGS'
17828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17830ac_compiler_gnu=$ac_cv_c_compiler_gnu
17831
17832else
17833 _lt_caught_CXX_error=yes
17834fi
cristy73bd4a52010-10-05 11:24:23 +000017835
17836ac_ext=cpp
17837ac_cpp='$CXXCPP $CPPFLAGS'
17838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17841
17842archive_cmds_need_lc_CXX=no
17843allow_undefined_flag_CXX=
17844always_export_symbols_CXX=no
17845archive_expsym_cmds_CXX=
17846compiler_needs_object_CXX=no
17847export_dynamic_flag_spec_CXX=
17848hardcode_direct_CXX=no
17849hardcode_direct_absolute_CXX=no
17850hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017851hardcode_libdir_separator_CXX=
17852hardcode_minus_L_CXX=no
17853hardcode_shlibpath_var_CXX=unsupported
17854hardcode_automatic_CXX=no
17855inherit_rpath_CXX=no
17856module_cmds_CXX=
17857module_expsym_cmds_CXX=
17858link_all_deplibs_CXX=unknown
17859old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017860reload_flag_CXX=$reload_flag
17861reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017862no_undefined_flag_CXX=
17863whole_archive_flag_spec_CXX=
17864enable_shared_with_static_runtimes_CXX=no
17865
17866# Source file extension for C++ test sources.
17867ac_ext=cpp
17868
17869# Object file extension for compiled C++ test sources.
17870objext=o
17871objext_CXX=$objext
17872
17873# No sense in running all these tests if we already determined that
17874# the CXX compiler isn't working. Some variables (like enable_shared)
17875# are currently assumed to apply to all compilers on this platform,
17876# and will be corrupted by setting them based on a non-working compiler.
17877if test "$_lt_caught_CXX_error" != yes; then
17878 # Code to be used in simple compile tests
17879 lt_simple_compile_test_code="int some_variable = 0;"
17880
17881 # Code to be used in simple link tests
17882 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17883
17884 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17885
17886
17887
17888
17889
17890
17891# If no C compiler was specified, use CC.
17892LTCC=${LTCC-"$CC"}
17893
17894# If no C compiler flags were specified, use CFLAGS.
17895LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17896
17897# Allow CC to be a program name with arguments.
17898compiler=$CC
17899
17900
17901 # save warnings/boilerplate of simple test code
17902 ac_outfile=conftest.$ac_objext
17903echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17904eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17905_lt_compiler_boilerplate=`cat conftest.err`
17906$RM conftest*
17907
17908 ac_outfile=conftest.$ac_objext
17909echo "$lt_simple_link_test_code" >conftest.$ac_ext
17910eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17911_lt_linker_boilerplate=`cat conftest.err`
17912$RM -r conftest*
17913
17914
17915 # Allow CC to be a program name with arguments.
17916 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017917 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017918 lt_save_LD=$LD
17919 lt_save_GCC=$GCC
17920 GCC=$GXX
17921 lt_save_with_gnu_ld=$with_gnu_ld
17922 lt_save_path_LD=$lt_cv_path_LD
17923 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17924 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17925 else
17926 $as_unset lt_cv_prog_gnu_ld
17927 fi
17928 if test -n "${lt_cv_path_LDCXX+set}"; then
17929 lt_cv_path_LD=$lt_cv_path_LDCXX
17930 else
17931 $as_unset lt_cv_path_LD
17932 fi
17933 test -z "${LDCXX+set}" || LD=$LDCXX
17934 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017935 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017936 compiler=$CC
17937 compiler_CXX=$CC
17938 for cc_temp in $compiler""; do
17939 case $cc_temp in
17940 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17941 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17942 \-*) ;;
17943 *) break;;
17944 esac
17945done
cristy0c60a692010-11-04 01:09:47 +000017946cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017947
17948
17949 if test -n "$compiler"; then
17950 # We don't want -fno-exception when compiling C++ code, so set the
17951 # no_builtin_flag separately
17952 if test "$GXX" = yes; then
17953 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17954 else
17955 lt_prog_compiler_no_builtin_flag_CXX=
17956 fi
17957
17958 if test "$GXX" = yes; then
17959 # Set up default GNU C++ configuration
17960
17961
17962
17963# Check whether --with-gnu-ld was given.
17964if test "${with_gnu_ld+set}" = set; then :
17965 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17966else
17967 with_gnu_ld=no
17968fi
17969
17970ac_prog=ld
17971if test "$GCC" = yes; then
17972 # Check if gcc -print-prog-name=ld gives a path.
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17974$as_echo_n "checking for ld used by $CC... " >&6; }
17975 case $host in
17976 *-*-mingw*)
17977 # gcc leaves a trailing carriage return which upsets mingw
17978 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17979 *)
17980 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17981 esac
17982 case $ac_prog in
17983 # Accept absolute paths.
17984 [\\/]* | ?:[\\/]*)
17985 re_direlt='/[^/][^/]*/\.\./'
17986 # Canonicalize the pathname of ld
17987 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17988 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17989 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17990 done
17991 test -z "$LD" && LD="$ac_prog"
17992 ;;
17993 "")
17994 # If it fails, then pretend we aren't using GCC.
17995 ac_prog=ld
17996 ;;
17997 *)
17998 # If it is relative, then search for the first ld in PATH.
17999 with_gnu_ld=unknown
18000 ;;
18001 esac
18002elif test "$with_gnu_ld" = yes; then
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18004$as_echo_n "checking for GNU ld... " >&6; }
18005else
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18007$as_echo_n "checking for non-GNU ld... " >&6; }
18008fi
cristyda16f162011-02-19 23:52:17 +000018009if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018010 $as_echo_n "(cached) " >&6
18011else
18012 if test -z "$LD"; then
18013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18014 for ac_dir in $PATH; do
18015 IFS="$lt_save_ifs"
18016 test -z "$ac_dir" && ac_dir=.
18017 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18018 lt_cv_path_LD="$ac_dir/$ac_prog"
18019 # Check to see if the program is GNU ld. I'd rather use --version,
18020 # but apparently some variants of GNU ld only accept -v.
18021 # Break only if it was the GNU/non-GNU ld that we prefer.
18022 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18023 *GNU* | *'with BFD'*)
18024 test "$with_gnu_ld" != no && break
18025 ;;
18026 *)
18027 test "$with_gnu_ld" != yes && break
18028 ;;
18029 esac
18030 fi
18031 done
18032 IFS="$lt_save_ifs"
18033else
18034 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18035fi
18036fi
18037
18038LD="$lt_cv_path_LD"
18039if test -n "$LD"; then
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18041$as_echo "$LD" >&6; }
18042else
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18044$as_echo "no" >&6; }
18045fi
cristy98dddb52010-11-04 00:30:15 +000018046test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18048$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018049if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018050 $as_echo_n "(cached) " >&6
18051else
18052 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18053case `$LD -v 2>&1 </dev/null` in
18054*GNU* | *'with BFD'*)
18055 lt_cv_prog_gnu_ld=yes
18056 ;;
18057*)
18058 lt_cv_prog_gnu_ld=no
18059 ;;
18060esac
18061fi
18062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18063$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18064with_gnu_ld=$lt_cv_prog_gnu_ld
18065
18066
18067
18068
18069
18070
18071
18072 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18073 # archiving commands below assume that GNU ld is being used.
18074 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018075 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18076 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 +000018077
18078 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18079 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18080
18081 # If archive_cmds runs LD, not CC, wlarc should be empty
18082 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18083 # investigate it a little bit more. (MM)
18084 wlarc='${wl}'
18085
18086 # ancient GNU ld didn't support --whole-archive et. al.
18087 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18088 $GREP 'no-whole-archive' > /dev/null; then
18089 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18090 else
18091 whole_archive_flag_spec_CXX=
18092 fi
18093 else
18094 with_gnu_ld=no
18095 wlarc=
18096
18097 # A generic and very simple default shared library creation
18098 # command for GNU C++ for the case where it uses the native
18099 # linker, instead of GNU ld. If possible, this setting should
18100 # overridden to take advantage of the native linker features on
18101 # the platform it is being used on.
18102 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18103 fi
18104
18105 # Commands to make compiler produce verbose output that lists
18106 # what "hidden" libraries, object files and flags are used when
18107 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018108 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018109
18110 else
18111 GXX=no
18112 with_gnu_ld=no
18113 wlarc=
18114 fi
18115
18116 # PORTME: fill in a description of your system's C++ link characteristics
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18118$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18119 ld_shlibs_CXX=yes
18120 case $host_os in
18121 aix3*)
18122 # FIXME: insert proper C++ library support
18123 ld_shlibs_CXX=no
18124 ;;
18125 aix[4-9]*)
18126 if test "$host_cpu" = ia64; then
18127 # On IA64, the linker does run time linking by default, so we don't
18128 # have to do anything special.
18129 aix_use_runtimelinking=no
18130 exp_sym_flag='-Bexport'
18131 no_entry_flag=""
18132 else
18133 aix_use_runtimelinking=no
18134
18135 # Test if we are trying to use run time linking or normal
18136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18137 # need to do runtime linking.
18138 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18139 for ld_flag in $LDFLAGS; do
18140 case $ld_flag in
18141 *-brtl*)
18142 aix_use_runtimelinking=yes
18143 break
18144 ;;
18145 esac
18146 done
18147 ;;
18148 esac
18149
18150 exp_sym_flag='-bexport'
18151 no_entry_flag='-bnoentry'
18152 fi
18153
18154 # When large executables or shared objects are built, AIX ld can
18155 # have problems creating the table of contents. If linking a library
18156 # or program results in "error TOC overflow" add -mminimal-toc to
18157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18159
18160 archive_cmds_CXX=''
18161 hardcode_direct_CXX=yes
18162 hardcode_direct_absolute_CXX=yes
18163 hardcode_libdir_separator_CXX=':'
18164 link_all_deplibs_CXX=yes
18165 file_list_spec_CXX='${wl}-f,'
18166
18167 if test "$GXX" = yes; then
18168 case $host_os in aix4.[012]|aix4.[012].*)
18169 # We only want to do this on AIX 4.2 and lower, the check
18170 # below for broken collect2 doesn't work under 4.3+
18171 collect2name=`${CC} -print-prog-name=collect2`
18172 if test -f "$collect2name" &&
18173 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18174 then
18175 # We have reworked collect2
18176 :
18177 else
18178 # We have old collect2
18179 hardcode_direct_CXX=unsupported
18180 # It fails to find uninstalled libraries when the uninstalled
18181 # path is not listed in the libpath. Setting hardcode_minus_L
18182 # to unsupported forces relinking
18183 hardcode_minus_L_CXX=yes
18184 hardcode_libdir_flag_spec_CXX='-L$libdir'
18185 hardcode_libdir_separator_CXX=
18186 fi
18187 esac
18188 shared_flag='-shared'
18189 if test "$aix_use_runtimelinking" = yes; then
18190 shared_flag="$shared_flag "'${wl}-G'
18191 fi
18192 else
18193 # not using gcc
18194 if test "$host_cpu" = ia64; then
18195 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18196 # chokes on -Wl,-G. The following line is correct:
18197 shared_flag='-G'
18198 else
18199 if test "$aix_use_runtimelinking" = yes; then
18200 shared_flag='${wl}-G'
18201 else
18202 shared_flag='${wl}-bM:SRE'
18203 fi
18204 fi
18205 fi
18206
18207 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18208 # It seems that -bexpall does not export symbols beginning with
18209 # underscore (_), so it is better to generate a list of symbols to
18210 # export.
18211 always_export_symbols_CXX=yes
18212 if test "$aix_use_runtimelinking" = yes; then
18213 # Warning - without using the other runtime loading flags (-brtl),
18214 # -berok will link without error, but may produce a broken library.
18215 allow_undefined_flag_CXX='-berok'
18216 # Determine the default libpath from the value encoded in an empty
18217 # executable.
cristyda16f162011-02-19 23:52:17 +000018218 if test "${lt_cv_aix_libpath+set}" = set; then
18219 aix_libpath=$lt_cv_aix_libpath
18220else
18221 if ${lt_cv_aix_libpath__CXX+:} false; then :
18222 $as_echo_n "(cached) " >&6
18223else
18224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018225/* end confdefs.h. */
18226
18227int
18228main ()
18229{
18230
18231 ;
18232 return 0;
18233}
18234_ACEOF
18235if ac_fn_cxx_try_link "$LINENO"; then :
18236
cristyda16f162011-02-19 23:52:17 +000018237 lt_aix_libpath_sed='
18238 /Import File Strings/,/^$/ {
18239 /^0/ {
18240 s/^0 *\([^ ]*\) *$/\1/
18241 p
18242 }
18243 }'
18244 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18245 # Check for a 64-bit object if we didn't find anything.
18246 if test -z "$lt_cv_aix_libpath__CXX"; then
18247 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18248 fi
cristy73bd4a52010-10-05 11:24:23 +000018249fi
18250rm -f core conftest.err conftest.$ac_objext \
18251 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018252 if test -z "$lt_cv_aix_libpath__CXX"; then
18253 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18254 fi
18255
18256fi
18257
18258 aix_libpath=$lt_cv_aix_libpath__CXX
18259fi
cristy73bd4a52010-10-05 11:24:23 +000018260
18261 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18262
cristy0c60a692010-11-04 01:09:47 +000018263 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 +000018264 else
18265 if test "$host_cpu" = ia64; then
18266 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18267 allow_undefined_flag_CXX="-z nodefs"
18268 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"
18269 else
18270 # Determine the default libpath from the value encoded in an
18271 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018272 if test "${lt_cv_aix_libpath+set}" = set; then
18273 aix_libpath=$lt_cv_aix_libpath
18274else
18275 if ${lt_cv_aix_libpath__CXX+:} false; then :
18276 $as_echo_n "(cached) " >&6
18277else
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018279/* end confdefs.h. */
18280
18281int
18282main ()
18283{
18284
18285 ;
18286 return 0;
18287}
18288_ACEOF
18289if ac_fn_cxx_try_link "$LINENO"; then :
18290
cristyda16f162011-02-19 23:52:17 +000018291 lt_aix_libpath_sed='
18292 /Import File Strings/,/^$/ {
18293 /^0/ {
18294 s/^0 *\([^ ]*\) *$/\1/
18295 p
18296 }
18297 }'
18298 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18299 # Check for a 64-bit object if we didn't find anything.
18300 if test -z "$lt_cv_aix_libpath__CXX"; then
18301 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18302 fi
cristy73bd4a52010-10-05 11:24:23 +000018303fi
18304rm -f core conftest.err conftest.$ac_objext \
18305 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018306 if test -z "$lt_cv_aix_libpath__CXX"; then
18307 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18308 fi
18309
18310fi
18311
18312 aix_libpath=$lt_cv_aix_libpath__CXX
18313fi
cristy73bd4a52010-10-05 11:24:23 +000018314
18315 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18316 # Warning - without using the other run time loading flags,
18317 # -berok will link without error, but may produce a broken library.
18318 no_undefined_flag_CXX=' ${wl}-bernotok'
18319 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018320 if test "$with_gnu_ld" = yes; then
18321 # We only use this code for GNU lds that support --whole-archive.
18322 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18323 else
18324 # Exported symbols can be pulled into shared objects from archives
18325 whole_archive_flag_spec_CXX='$convenience'
18326 fi
cristy73bd4a52010-10-05 11:24:23 +000018327 archive_cmds_need_lc_CXX=yes
18328 # This is similar to how AIX traditionally builds its shared
18329 # libraries.
18330 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'
18331 fi
18332 fi
18333 ;;
18334
18335 beos*)
18336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18337 allow_undefined_flag_CXX=unsupported
18338 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18339 # support --undefined. This deserves some investigation. FIXME
18340 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18341 else
18342 ld_shlibs_CXX=no
18343 fi
18344 ;;
18345
18346 chorus*)
18347 case $cc_basename in
18348 *)
18349 # FIXME: insert proper C++ library support
18350 ld_shlibs_CXX=no
18351 ;;
18352 esac
18353 ;;
18354
18355 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018356 case $GXX,$cc_basename in
18357 ,cl* | no,cl*)
18358 # Native MSVC
18359 # hardcode_libdir_flag_spec is actually meaningless, as there is
18360 # no search path for DLLs.
18361 hardcode_libdir_flag_spec_CXX=' '
18362 allow_undefined_flag_CXX=unsupported
18363 always_export_symbols_CXX=yes
18364 file_list_spec_CXX='@'
18365 # Tell ltmain to make .lib files, not .a files.
18366 libext=lib
18367 # Tell ltmain to make .dll files, not .so files.
18368 shrext_cmds=".dll"
18369 # FIXME: Setting linknames here is a bad hack.
18370 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18371 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18372 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18373 else
18374 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18375 fi~
18376 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18377 linknames='
18378 # The linker will not automatically build a static lib if we build a DLL.
18379 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18380 enable_shared_with_static_runtimes_CXX=yes
18381 # Don't use ranlib
18382 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18383 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18384 lt_tool_outputfile="@TOOL_OUTPUT@"~
18385 case $lt_outputfile in
18386 *.exe|*.EXE) ;;
18387 *)
18388 lt_outputfile="$lt_outputfile.exe"
18389 lt_tool_outputfile="$lt_tool_outputfile.exe"
18390 ;;
18391 esac~
18392 func_to_tool_file "$lt_outputfile"~
18393 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18394 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18395 $RM "$lt_outputfile.manifest";
18396 fi'
18397 ;;
18398 *)
18399 # g++
18400 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18401 # as there is no search path for DLLs.
18402 hardcode_libdir_flag_spec_CXX='-L$libdir'
18403 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18404 allow_undefined_flag_CXX=unsupported
18405 always_export_symbols_CXX=no
18406 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018407
cristyda16f162011-02-19 23:52:17 +000018408 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18409 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'
18410 # If the export-symbols file already is a .def file (1st line
18411 # is EXPORTS), use it as is; otherwise, prepend...
18412 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18413 cp $export_symbols $output_objdir/$soname.def;
18414 else
18415 echo EXPORTS > $output_objdir/$soname.def;
18416 cat $export_symbols >> $output_objdir/$soname.def;
18417 fi~
18418 $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'
18419 else
18420 ld_shlibs_CXX=no
18421 fi
18422 ;;
18423 esac
18424 ;;
cristy73bd4a52010-10-05 11:24:23 +000018425 darwin* | rhapsody*)
18426
18427
18428 archive_cmds_need_lc_CXX=no
18429 hardcode_direct_CXX=no
18430 hardcode_automatic_CXX=yes
18431 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018432 if test "$lt_cv_ld_force_load" = "yes"; then
18433 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 +000018434
cristy0c60a692010-11-04 01:09:47 +000018435 else
18436 whole_archive_flag_spec_CXX=''
18437 fi
cristy73bd4a52010-10-05 11:24:23 +000018438 link_all_deplibs_CXX=yes
18439 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18440 case $cc_basename in
18441 ifort*) _lt_dar_can_shared=yes ;;
18442 *) _lt_dar_can_shared=$GCC ;;
18443 esac
18444 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018445 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018446 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}"
18447 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18448 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}"
18449 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}"
18450 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18451 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}"
18452 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}"
18453 fi
18454
18455 else
18456 ld_shlibs_CXX=no
18457 fi
18458
18459 ;;
18460
18461 dgux*)
18462 case $cc_basename in
18463 ec++*)
18464 # FIXME: insert proper C++ library support
18465 ld_shlibs_CXX=no
18466 ;;
18467 ghcx*)
18468 # Green Hills C++ Compiler
18469 # FIXME: insert proper C++ library support
18470 ld_shlibs_CXX=no
18471 ;;
18472 *)
18473 # FIXME: insert proper C++ library support
18474 ld_shlibs_CXX=no
18475 ;;
18476 esac
18477 ;;
18478
cristy99bd5232011-12-07 14:38:20 +000018479 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018480 # C++ shared libraries reported to be fairly broken before
18481 # switch to ELF
18482 ld_shlibs_CXX=no
18483 ;;
18484
18485 freebsd-elf*)
18486 archive_cmds_need_lc_CXX=no
18487 ;;
18488
18489 freebsd* | dragonfly*)
18490 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18491 # conventions
18492 ld_shlibs_CXX=yes
18493 ;;
18494
18495 gnu*)
18496 ;;
18497
cristy0c60a692010-11-04 01:09:47 +000018498 haiku*)
18499 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18500 link_all_deplibs_CXX=yes
18501 ;;
18502
cristy73bd4a52010-10-05 11:24:23 +000018503 hpux9*)
18504 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18505 hardcode_libdir_separator_CXX=:
18506 export_dynamic_flag_spec_CXX='${wl}-E'
18507 hardcode_direct_CXX=yes
18508 hardcode_minus_L_CXX=yes # Not in the search PATH,
18509 # but as the default
18510 # location of the library.
18511
18512 case $cc_basename in
18513 CC*)
18514 # FIXME: insert proper C++ library support
18515 ld_shlibs_CXX=no
18516 ;;
18517 aCC*)
18518 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'
18519 # Commands to make compiler produce verbose output that lists
18520 # what "hidden" libraries, object files and flags are used when
18521 # linking a shared library.
18522 #
18523 # There doesn't appear to be a way to prevent this compiler from
18524 # explicitly linking system object files so we need to strip them
18525 # from the output so that they don't get included in the library
18526 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018527 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 +000018528 ;;
18529 *)
18530 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018531 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 +000018532 else
18533 # FIXME: insert proper C++ library support
18534 ld_shlibs_CXX=no
18535 fi
18536 ;;
18537 esac
18538 ;;
18539
18540 hpux10*|hpux11*)
18541 if test $with_gnu_ld = no; then
18542 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18543 hardcode_libdir_separator_CXX=:
18544
18545 case $host_cpu in
18546 hppa*64*|ia64*)
18547 ;;
18548 *)
18549 export_dynamic_flag_spec_CXX='${wl}-E'
18550 ;;
18551 esac
18552 fi
18553 case $host_cpu in
18554 hppa*64*|ia64*)
18555 hardcode_direct_CXX=no
18556 hardcode_shlibpath_var_CXX=no
18557 ;;
18558 *)
18559 hardcode_direct_CXX=yes
18560 hardcode_direct_absolute_CXX=yes
18561 hardcode_minus_L_CXX=yes # Not in the search PATH,
18562 # but as the default
18563 # location of the library.
18564 ;;
18565 esac
18566
18567 case $cc_basename in
18568 CC*)
18569 # FIXME: insert proper C++ library support
18570 ld_shlibs_CXX=no
18571 ;;
18572 aCC*)
18573 case $host_cpu in
18574 hppa*64*)
18575 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18576 ;;
18577 ia64*)
18578 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18579 ;;
18580 *)
18581 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18582 ;;
18583 esac
18584 # Commands to make compiler produce verbose output that lists
18585 # what "hidden" libraries, object files and flags are used when
18586 # linking a shared library.
18587 #
18588 # There doesn't appear to be a way to prevent this compiler from
18589 # explicitly linking system object files so we need to strip them
18590 # from the output so that they don't get included in the library
18591 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018592 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 +000018593 ;;
18594 *)
18595 if test "$GXX" = yes; then
18596 if test $with_gnu_ld = no; then
18597 case $host_cpu in
18598 hppa*64*)
18599 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18600 ;;
18601 ia64*)
cristyda16f162011-02-19 23:52:17 +000018602 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 +000018603 ;;
18604 *)
cristyda16f162011-02-19 23:52:17 +000018605 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 +000018606 ;;
18607 esac
18608 fi
18609 else
18610 # FIXME: insert proper C++ library support
18611 ld_shlibs_CXX=no
18612 fi
18613 ;;
18614 esac
18615 ;;
18616
18617 interix[3-9]*)
18618 hardcode_direct_CXX=no
18619 hardcode_shlibpath_var_CXX=no
18620 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18621 export_dynamic_flag_spec_CXX='${wl}-E'
18622 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18623 # Instead, shared libraries are loaded at an image base (0x10000000 by
18624 # default) and relocated if they conflict, which is a slow very memory
18625 # consuming and fragmenting process. To avoid this, we pick a random,
18626 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18627 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18628 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'
18629 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'
18630 ;;
18631 irix5* | irix6*)
18632 case $cc_basename in
18633 CC*)
18634 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018635 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 +000018636
18637 # Archives containing C++ object files must be created using
18638 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18639 # necessary to make sure instantiated templates are included
18640 # in the archive.
18641 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18642 ;;
18643 *)
18644 if test "$GXX" = yes; then
18645 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018646 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 +000018647 else
cristyda16f162011-02-19 23:52:17 +000018648 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 +000018649 fi
18650 fi
18651 link_all_deplibs_CXX=yes
18652 ;;
18653 esac
18654 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18655 hardcode_libdir_separator_CXX=:
18656 inherit_rpath_CXX=yes
18657 ;;
18658
cristy0c60a692010-11-04 01:09:47 +000018659 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018660 case $cc_basename in
18661 KCC*)
18662 # Kuck and Associates, Inc. (KAI) C++ Compiler
18663
18664 # KCC will only create a shared library if the output file
18665 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18666 # to its proper name (with version) after linking.
18667 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'
18668 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'
18669 # Commands to make compiler produce verbose output that lists
18670 # what "hidden" libraries, object files and flags are used when
18671 # linking a shared library.
18672 #
18673 # There doesn't appear to be a way to prevent this compiler from
18674 # explicitly linking system object files so we need to strip them
18675 # from the output so that they don't get included in the library
18676 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018677 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 +000018678
18679 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18680 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18681
18682 # Archives containing C++ object files must be created using
18683 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18684 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18685 ;;
18686 icpc* | ecpc* )
18687 # Intel C++
18688 with_gnu_ld=yes
18689 # version 8.0 and above of icpc choke on multiply defined symbols
18690 # if we add $predep_objects and $postdep_objects, however 7.1 and
18691 # earlier do not add the objects themselves.
18692 case `$CC -V 2>&1` in
18693 *"Version 7."*)
18694 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18695 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'
18696 ;;
18697 *) # Version 8.0 or newer
18698 tmp_idyn=
18699 case $host_cpu in
18700 ia64*) tmp_idyn=' -i_dynamic';;
18701 esac
18702 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18703 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'
18704 ;;
18705 esac
18706 archive_cmds_need_lc_CXX=no
18707 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18708 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18709 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18710 ;;
18711 pgCC* | pgcpp*)
18712 # Portland Group C++ compiler
18713 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018714 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018715 prelink_cmds_CXX='tpldir=Template.dir~
18716 rm -rf $tpldir~
18717 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018718 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018719 old_archive_cmds_CXX='tpldir=Template.dir~
18720 rm -rf $tpldir~
18721 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018722 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018723 $RANLIB $oldlib'
18724 archive_cmds_CXX='tpldir=Template.dir~
18725 rm -rf $tpldir~
18726 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018727 $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 +000018728 archive_expsym_cmds_CXX='tpldir=Template.dir~
18729 rm -rf $tpldir~
18730 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018731 $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 +000018732 ;;
cristy0c60a692010-11-04 01:09:47 +000018733 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018734 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18735 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'
18736 ;;
18737 esac
18738
18739 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18740 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018741 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 +000018742 ;;
18743 cxx*)
18744 # Compaq C++
18745 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18746 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'
18747
18748 runpath_var=LD_RUN_PATH
18749 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18750 hardcode_libdir_separator_CXX=:
18751
18752 # Commands to make compiler produce verbose output that lists
18753 # what "hidden" libraries, object files and flags are used when
18754 # linking a shared library.
18755 #
18756 # There doesn't appear to be a way to prevent this compiler from
18757 # explicitly linking system object files so we need to strip them
18758 # from the output so that they don't get included in the library
18759 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018760 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 +000018761 ;;
cristy0c60a692010-11-04 01:09:47 +000018762 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018763 # IBM XL 8.0 on PPC, with GNU ld
18764 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18766 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18767 if test "x$supports_anon_versioning" = xyes; then
18768 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18770 echo "local: *; };" >> $output_objdir/$libname.ver~
18771 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18772 fi
18773 ;;
18774 *)
18775 case `$CC -V 2>&1 | sed 5q` in
18776 *Sun\ C*)
18777 # Sun C++ 5.9
18778 no_undefined_flag_CXX=' -zdefs'
18779 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18780 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'
18781 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018782 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 +000018783 compiler_needs_object_CXX=yes
18784
18785 # Not sure whether something based on
18786 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18787 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018788 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018789
18790 # Archives containing C++ object files must be created using
18791 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18792 # necessary to make sure instantiated templates are included
18793 # in the archive.
18794 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18795 ;;
18796 esac
18797 ;;
18798 esac
18799 ;;
18800
18801 lynxos*)
18802 # FIXME: insert proper C++ library support
18803 ld_shlibs_CXX=no
18804 ;;
18805
18806 m88k*)
18807 # FIXME: insert proper C++ library support
18808 ld_shlibs_CXX=no
18809 ;;
18810
18811 mvs*)
18812 case $cc_basename in
18813 cxx*)
18814 # FIXME: insert proper C++ library support
18815 ld_shlibs_CXX=no
18816 ;;
18817 *)
18818 # FIXME: insert proper C++ library support
18819 ld_shlibs_CXX=no
18820 ;;
18821 esac
18822 ;;
18823
18824 netbsd*)
18825 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18826 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18827 wlarc=
18828 hardcode_libdir_flag_spec_CXX='-R$libdir'
18829 hardcode_direct_CXX=yes
18830 hardcode_shlibpath_var_CXX=no
18831 fi
18832 # Workaround some broken pre-1.5 toolchains
18833 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18834 ;;
18835
18836 *nto* | *qnx*)
18837 ld_shlibs_CXX=yes
18838 ;;
18839
18840 openbsd2*)
18841 # C++ shared libraries are fairly broken
18842 ld_shlibs_CXX=no
18843 ;;
18844
18845 openbsd*)
18846 if test -f /usr/libexec/ld.so; then
18847 hardcode_direct_CXX=yes
18848 hardcode_shlibpath_var_CXX=no
18849 hardcode_direct_absolute_CXX=yes
18850 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18851 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18852 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18853 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18854 export_dynamic_flag_spec_CXX='${wl}-E'
18855 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18856 fi
cristy0c60a692010-11-04 01:09:47 +000018857 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018858 else
18859 ld_shlibs_CXX=no
18860 fi
18861 ;;
18862
18863 osf3* | osf4* | osf5*)
18864 case $cc_basename in
18865 KCC*)
18866 # Kuck and Associates, Inc. (KAI) C++ Compiler
18867
18868 # KCC will only create a shared library if the output file
18869 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18870 # to its proper name (with version) after linking.
18871 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'
18872
18873 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18874 hardcode_libdir_separator_CXX=:
18875
18876 # Archives containing C++ object files must be created using
18877 # the KAI C++ compiler.
18878 case $host in
18879 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18880 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18881 esac
18882 ;;
18883 RCC*)
18884 # Rational C++ 2.4.1
18885 # FIXME: insert proper C++ library support
18886 ld_shlibs_CXX=no
18887 ;;
18888 cxx*)
18889 case $host in
18890 osf3*)
18891 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018892 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 +000018893 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18894 ;;
18895 *)
18896 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018897 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 +000018898 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18899 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018900 $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 +000018901 $RM $lib.exp'
18902 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18903 ;;
18904 esac
18905
18906 hardcode_libdir_separator_CXX=:
18907
18908 # Commands to make compiler produce verbose output that lists
18909 # what "hidden" libraries, object files and flags are used when
18910 # linking a shared library.
18911 #
18912 # There doesn't appear to be a way to prevent this compiler from
18913 # explicitly linking system object files so we need to strip them
18914 # from the output so that they don't get included in the library
18915 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018916 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 +000018917 ;;
18918 *)
18919 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18920 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18921 case $host in
18922 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018923 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 +000018924 ;;
18925 *)
cristyda16f162011-02-19 23:52:17 +000018926 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 +000018927 ;;
18928 esac
18929
18930 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18931 hardcode_libdir_separator_CXX=:
18932
18933 # Commands to make compiler produce verbose output that lists
18934 # what "hidden" libraries, object files and flags are used when
18935 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018936 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018937
18938 else
18939 # FIXME: insert proper C++ library support
18940 ld_shlibs_CXX=no
18941 fi
18942 ;;
18943 esac
18944 ;;
18945
18946 psos*)
18947 # FIXME: insert proper C++ library support
18948 ld_shlibs_CXX=no
18949 ;;
18950
18951 sunos4*)
18952 case $cc_basename in
18953 CC*)
18954 # Sun C++ 4.x
18955 # FIXME: insert proper C++ library support
18956 ld_shlibs_CXX=no
18957 ;;
18958 lcc*)
18959 # Lucid
18960 # FIXME: insert proper C++ library support
18961 ld_shlibs_CXX=no
18962 ;;
18963 *)
18964 # FIXME: insert proper C++ library support
18965 ld_shlibs_CXX=no
18966 ;;
18967 esac
18968 ;;
18969
18970 solaris*)
18971 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018972 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018973 # Sun C++ 4.2, 5.x and Centerline C++
18974 archive_cmds_need_lc_CXX=yes
18975 no_undefined_flag_CXX=' -zdefs'
18976 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18977 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18978 $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'
18979
18980 hardcode_libdir_flag_spec_CXX='-R$libdir'
18981 hardcode_shlibpath_var_CXX=no
18982 case $host_os in
18983 solaris2.[0-5] | solaris2.[0-5].*) ;;
18984 *)
18985 # The compiler driver will combine and reorder linker options,
18986 # but understands `-z linker_flag'.
18987 # Supported since Solaris 2.6 (maybe 2.5.1?)
18988 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18989 ;;
18990 esac
18991 link_all_deplibs_CXX=yes
18992
cristy0c60a692010-11-04 01:09:47 +000018993 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018994
18995 # Archives containing C++ object files must be created using
18996 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18997 # necessary to make sure instantiated templates are included
18998 # in the archive.
18999 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19000 ;;
19001 gcx*)
19002 # Green Hills C++ Compiler
19003 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19004
19005 # The C++ compiler must be used to create the archive.
19006 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19007 ;;
19008 *)
19009 # GNU C++ compiler with Solaris linker
19010 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19011 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19012 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019013 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 +000019014 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 +000019015 $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 +000019016
19017 # Commands to make compiler produce verbose output that lists
19018 # what "hidden" libraries, object files and flags are used when
19019 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019020 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019021 else
19022 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19023 # platform.
19024 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19025 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19026 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19027
19028 # Commands to make compiler produce verbose output that lists
19029 # what "hidden" libraries, object files and flags are used when
19030 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019031 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019032 fi
19033
19034 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19035 case $host_os in
19036 solaris2.[0-5] | solaris2.[0-5].*) ;;
19037 *)
19038 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19039 ;;
19040 esac
19041 fi
19042 ;;
19043 esac
19044 ;;
19045
19046 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19047 no_undefined_flag_CXX='${wl}-z,text'
19048 archive_cmds_need_lc_CXX=no
19049 hardcode_shlibpath_var_CXX=no
19050 runpath_var='LD_RUN_PATH'
19051
19052 case $cc_basename in
19053 CC*)
19054 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19055 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19056 ;;
19057 *)
19058 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19059 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19060 ;;
19061 esac
19062 ;;
19063
19064 sysv5* | sco3.2v5* | sco5v6*)
19065 # Note: We can NOT use -z defs as we might desire, because we do not
19066 # link with -lc, and that would cause any symbols used from libc to
19067 # always be unresolved, which means just about no library would
19068 # ever link correctly. If we're not using GNU ld we use -z text
19069 # though, which does catch some bad symbols but isn't as heavy-handed
19070 # as -z defs.
19071 no_undefined_flag_CXX='${wl}-z,text'
19072 allow_undefined_flag_CXX='${wl}-z,nodefs'
19073 archive_cmds_need_lc_CXX=no
19074 hardcode_shlibpath_var_CXX=no
19075 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19076 hardcode_libdir_separator_CXX=':'
19077 link_all_deplibs_CXX=yes
19078 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19079 runpath_var='LD_RUN_PATH'
19080
19081 case $cc_basename in
19082 CC*)
19083 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19084 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 +000019085 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19086 '"$old_archive_cmds_CXX"
19087 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19088 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019089 ;;
19090 *)
19091 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19092 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19093 ;;
19094 esac
19095 ;;
19096
19097 tandem*)
19098 case $cc_basename in
19099 NCC*)
19100 # NonStop-UX NCC 3.20
19101 # FIXME: insert proper C++ library support
19102 ld_shlibs_CXX=no
19103 ;;
19104 *)
19105 # FIXME: insert proper C++ library support
19106 ld_shlibs_CXX=no
19107 ;;
19108 esac
19109 ;;
19110
19111 vxworks*)
19112 # FIXME: insert proper C++ library support
19113 ld_shlibs_CXX=no
19114 ;;
19115
19116 *)
19117 # FIXME: insert proper C++ library support
19118 ld_shlibs_CXX=no
19119 ;;
19120 esac
19121
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19123$as_echo "$ld_shlibs_CXX" >&6; }
19124 test "$ld_shlibs_CXX" = no && can_build_shared=no
19125
19126 GCC_CXX="$GXX"
19127 LD_CXX="$LD"
19128
19129 ## CAVEAT EMPTOR:
19130 ## There is no encapsulation within the following macros, do not change
19131 ## the running order or otherwise move them around unless you know exactly
19132 ## what you are doing...
19133 # Dependencies to place before and after the object being linked:
19134predep_objects_CXX=
19135postdep_objects_CXX=
19136predeps_CXX=
19137postdeps_CXX=
19138compiler_lib_search_path_CXX=
19139
19140cat > conftest.$ac_ext <<_LT_EOF
19141class Foo
19142{
19143public:
19144 Foo (void) { a = 0; }
19145private:
19146 int a;
19147};
19148_LT_EOF
19149
cristyda16f162011-02-19 23:52:17 +000019150
19151_lt_libdeps_save_CFLAGS=$CFLAGS
19152case "$CC $CFLAGS " in #(
19153*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19154*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019155*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019156esac
19157
cristy73bd4a52010-10-05 11:24:23 +000019158if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19159 (eval $ac_compile) 2>&5
19160 ac_status=$?
19161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19162 test $ac_status = 0; }; then
19163 # Parse the compiler output and extract the necessary
19164 # objects, libraries and library flags.
19165
19166 # Sentinel used to keep track of whether or not we are before
19167 # the conftest object file.
19168 pre_test_object_deps_done=no
19169
19170 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019171 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019172
19173 -L* | -R* | -l*)
19174 # Some compilers place space between "-{L,R}" and the path.
19175 # Remove the space.
19176 if test $p = "-L" ||
19177 test $p = "-R"; then
19178 prev=$p
19179 continue
cristy73bd4a52010-10-05 11:24:23 +000019180 fi
19181
cristyda16f162011-02-19 23:52:17 +000019182 # Expand the sysroot to ease extracting the directories later.
19183 if test -z "$prev"; then
19184 case $p in
19185 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19186 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19187 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19188 esac
19189 fi
19190 case $p in
19191 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19192 esac
cristy73bd4a52010-10-05 11:24:23 +000019193 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019194 case ${prev} in
19195 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019196 # Internal compiler library paths should come after those
19197 # provided the user. The postdeps already come after the
19198 # user supplied libs so there is no need to process them.
19199 if test -z "$compiler_lib_search_path_CXX"; then
19200 compiler_lib_search_path_CXX="${prev}${p}"
19201 else
19202 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19203 fi
19204 ;;
19205 # The "-l" case would never come before the object being
19206 # linked, so don't bother handling this case.
19207 esac
19208 else
19209 if test -z "$postdeps_CXX"; then
19210 postdeps_CXX="${prev}${p}"
19211 else
19212 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19213 fi
19214 fi
cristyda16f162011-02-19 23:52:17 +000019215 prev=
cristy73bd4a52010-10-05 11:24:23 +000019216 ;;
19217
cristyda16f162011-02-19 23:52:17 +000019218 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019219 *.$objext)
19220 # This assumes that the test object file only shows up
19221 # once in the compiler output.
19222 if test "$p" = "conftest.$objext"; then
19223 pre_test_object_deps_done=yes
19224 continue
19225 fi
19226
19227 if test "$pre_test_object_deps_done" = no; then
19228 if test -z "$predep_objects_CXX"; then
19229 predep_objects_CXX="$p"
19230 else
19231 predep_objects_CXX="$predep_objects_CXX $p"
19232 fi
19233 else
19234 if test -z "$postdep_objects_CXX"; then
19235 postdep_objects_CXX="$p"
19236 else
19237 postdep_objects_CXX="$postdep_objects_CXX $p"
19238 fi
19239 fi
19240 ;;
19241
19242 *) ;; # Ignore the rest.
19243
19244 esac
19245 done
19246
19247 # Clean up.
19248 rm -f a.out a.exe
19249else
19250 echo "libtool.m4: error: problem compiling CXX test program"
19251fi
19252
19253$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019254CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019255
19256# PORTME: override above test on systems where it is broken
19257case $host_os in
19258interix[3-9]*)
19259 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19260 # hack all around it, let's just trust "g++" to DTRT.
19261 predep_objects_CXX=
19262 postdep_objects_CXX=
19263 postdeps_CXX=
19264 ;;
19265
19266linux*)
19267 case `$CC -V 2>&1 | sed 5q` in
19268 *Sun\ C*)
19269 # Sun C++ 5.9
19270
19271 # The more standards-conforming stlport4 library is
19272 # incompatible with the Cstd library. Avoid specifying
19273 # it if it's in CXXFLAGS. Ignore libCrun as
19274 # -library=stlport4 depends on it.
19275 case " $CXX $CXXFLAGS " in
19276 *" -library=stlport4 "*)
19277 solaris_use_stlport4=yes
19278 ;;
19279 esac
19280
19281 if test "$solaris_use_stlport4" != yes; then
19282 postdeps_CXX='-library=Cstd -library=Crun'
19283 fi
19284 ;;
19285 esac
19286 ;;
19287
19288solaris*)
19289 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019290 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019291 # The more standards-conforming stlport4 library is
19292 # incompatible with the Cstd library. Avoid specifying
19293 # it if it's in CXXFLAGS. Ignore libCrun as
19294 # -library=stlport4 depends on it.
19295 case " $CXX $CXXFLAGS " in
19296 *" -library=stlport4 "*)
19297 solaris_use_stlport4=yes
19298 ;;
19299 esac
19300
19301 # Adding this requires a known-good setup of shared libraries for
19302 # Sun compiler versions before 5.6, else PIC objects from an old
19303 # archive will be linked into the output, leading to subtle bugs.
19304 if test "$solaris_use_stlport4" != yes; then
19305 postdeps_CXX='-library=Cstd -library=Crun'
19306 fi
19307 ;;
19308 esac
19309 ;;
19310esac
19311
19312
19313case " $postdeps_CXX " in
19314*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19315esac
19316 compiler_lib_search_dirs_CXX=
19317if test -n "${compiler_lib_search_path_CXX}"; then
19318 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19319fi
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351 lt_prog_compiler_wl_CXX=
19352lt_prog_compiler_pic_CXX=
19353lt_prog_compiler_static_CXX=
19354
cristy73bd4a52010-10-05 11:24:23 +000019355
19356 # C++ specific cases for pic, static, wl, etc.
19357 if test "$GXX" = yes; then
19358 lt_prog_compiler_wl_CXX='-Wl,'
19359 lt_prog_compiler_static_CXX='-static'
19360
19361 case $host_os in
19362 aix*)
19363 # All AIX code is PIC.
19364 if test "$host_cpu" = ia64; then
19365 # AIX 5 now supports IA64 processor
19366 lt_prog_compiler_static_CXX='-Bstatic'
19367 fi
19368 ;;
19369
19370 amigaos*)
19371 case $host_cpu in
19372 powerpc)
19373 # see comment about AmigaOS4 .so support
19374 lt_prog_compiler_pic_CXX='-fPIC'
19375 ;;
19376 m68k)
19377 # FIXME: we need at least 68020 code to build shared libraries, but
19378 # adding the `-m68020' flag to GCC prevents building anything better,
19379 # like `-m68040'.
19380 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19381 ;;
19382 esac
19383 ;;
19384
19385 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19386 # PIC is the default for these OSes.
19387 ;;
19388 mingw* | cygwin* | os2* | pw32* | cegcc*)
19389 # This hack is so that the source file can tell whether it is being
19390 # built for inclusion in a dll (and should export symbols for example).
19391 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19392 # (--disable-auto-import) libraries
19393 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19394 ;;
19395 darwin* | rhapsody*)
19396 # PIC is the default on this platform
19397 # Common symbols not allowed in MH_DYLIB files
19398 lt_prog_compiler_pic_CXX='-fno-common'
19399 ;;
19400 *djgpp*)
19401 # DJGPP does not support shared libraries at all
19402 lt_prog_compiler_pic_CXX=
19403 ;;
cristy0c60a692010-11-04 01:09:47 +000019404 haiku*)
19405 # PIC is the default for Haiku.
19406 # The "-static" flag exists, but is broken.
19407 lt_prog_compiler_static_CXX=
19408 ;;
cristy73bd4a52010-10-05 11:24:23 +000019409 interix[3-9]*)
19410 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19411 # Instead, we relocate shared libraries at runtime.
19412 ;;
19413 sysv4*MP*)
19414 if test -d /usr/nec; then
19415 lt_prog_compiler_pic_CXX=-Kconform_pic
19416 fi
19417 ;;
19418 hpux*)
19419 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19420 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19421 # sets the default TLS model and affects inlining.
19422 case $host_cpu in
19423 hppa*64*)
19424 ;;
19425 *)
19426 lt_prog_compiler_pic_CXX='-fPIC'
19427 ;;
19428 esac
19429 ;;
19430 *qnx* | *nto*)
19431 # QNX uses GNU C++, but need to define -shared option too, otherwise
19432 # it will coredump.
19433 lt_prog_compiler_pic_CXX='-fPIC -shared'
19434 ;;
19435 *)
19436 lt_prog_compiler_pic_CXX='-fPIC'
19437 ;;
19438 esac
19439 else
19440 case $host_os in
19441 aix[4-9]*)
19442 # All AIX code is PIC.
19443 if test "$host_cpu" = ia64; then
19444 # AIX 5 now supports IA64 processor
19445 lt_prog_compiler_static_CXX='-Bstatic'
19446 else
19447 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19448 fi
19449 ;;
19450 chorus*)
19451 case $cc_basename in
19452 cxch68*)
19453 # Green Hills C++ Compiler
19454 # _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"
19455 ;;
19456 esac
19457 ;;
cristyda16f162011-02-19 23:52:17 +000019458 mingw* | cygwin* | os2* | pw32* | cegcc*)
19459 # This hack is so that the source file can tell whether it is being
19460 # built for inclusion in a dll (and should export symbols for example).
19461 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19462 ;;
cristy73bd4a52010-10-05 11:24:23 +000019463 dgux*)
19464 case $cc_basename in
19465 ec++*)
19466 lt_prog_compiler_pic_CXX='-KPIC'
19467 ;;
19468 ghcx*)
19469 # Green Hills C++ Compiler
19470 lt_prog_compiler_pic_CXX='-pic'
19471 ;;
19472 *)
19473 ;;
19474 esac
19475 ;;
19476 freebsd* | dragonfly*)
19477 # FreeBSD uses GNU C++
19478 ;;
19479 hpux9* | hpux10* | hpux11*)
19480 case $cc_basename in
19481 CC*)
19482 lt_prog_compiler_wl_CXX='-Wl,'
19483 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19484 if test "$host_cpu" != ia64; then
19485 lt_prog_compiler_pic_CXX='+Z'
19486 fi
19487 ;;
19488 aCC*)
19489 lt_prog_compiler_wl_CXX='-Wl,'
19490 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19491 case $host_cpu in
19492 hppa*64*|ia64*)
19493 # +Z the default
19494 ;;
19495 *)
19496 lt_prog_compiler_pic_CXX='+Z'
19497 ;;
19498 esac
19499 ;;
19500 *)
19501 ;;
19502 esac
19503 ;;
19504 interix*)
19505 # This is c89, which is MS Visual C++ (no shared libs)
19506 # Anyone wants to do a port?
19507 ;;
19508 irix5* | irix6* | nonstopux*)
19509 case $cc_basename in
19510 CC*)
19511 lt_prog_compiler_wl_CXX='-Wl,'
19512 lt_prog_compiler_static_CXX='-non_shared'
19513 # CC pic flag -KPIC is the default.
19514 ;;
19515 *)
19516 ;;
19517 esac
19518 ;;
cristy0c60a692010-11-04 01:09:47 +000019519 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019520 case $cc_basename in
19521 KCC*)
19522 # KAI C++ Compiler
19523 lt_prog_compiler_wl_CXX='--backend -Wl,'
19524 lt_prog_compiler_pic_CXX='-fPIC'
19525 ;;
19526 ecpc* )
19527 # old Intel C++ for x86_64 which still supported -KPIC.
19528 lt_prog_compiler_wl_CXX='-Wl,'
19529 lt_prog_compiler_pic_CXX='-KPIC'
19530 lt_prog_compiler_static_CXX='-static'
19531 ;;
19532 icpc* )
19533 # Intel C++, used to be incompatible with GCC.
19534 # ICC 10 doesn't accept -KPIC any more.
19535 lt_prog_compiler_wl_CXX='-Wl,'
19536 lt_prog_compiler_pic_CXX='-fPIC'
19537 lt_prog_compiler_static_CXX='-static'
19538 ;;
19539 pgCC* | pgcpp*)
19540 # Portland Group C++ compiler
19541 lt_prog_compiler_wl_CXX='-Wl,'
19542 lt_prog_compiler_pic_CXX='-fpic'
19543 lt_prog_compiler_static_CXX='-Bstatic'
19544 ;;
19545 cxx*)
19546 # Compaq C++
19547 # Make sure the PIC flag is empty. It appears that all Alpha
19548 # Linux and Compaq Tru64 Unix objects are PIC.
19549 lt_prog_compiler_pic_CXX=
19550 lt_prog_compiler_static_CXX='-non_shared'
19551 ;;
cristy0c60a692010-11-04 01:09:47 +000019552 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19553 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019554 lt_prog_compiler_wl_CXX='-Wl,'
19555 lt_prog_compiler_pic_CXX='-qpic'
19556 lt_prog_compiler_static_CXX='-qstaticlink'
19557 ;;
19558 *)
19559 case `$CC -V 2>&1 | sed 5q` in
19560 *Sun\ C*)
19561 # Sun C++ 5.9
19562 lt_prog_compiler_pic_CXX='-KPIC'
19563 lt_prog_compiler_static_CXX='-Bstatic'
19564 lt_prog_compiler_wl_CXX='-Qoption ld '
19565 ;;
19566 esac
19567 ;;
19568 esac
19569 ;;
19570 lynxos*)
19571 ;;
19572 m88k*)
19573 ;;
19574 mvs*)
19575 case $cc_basename in
19576 cxx*)
19577 lt_prog_compiler_pic_CXX='-W c,exportall'
19578 ;;
19579 *)
19580 ;;
19581 esac
19582 ;;
19583 netbsd*)
19584 ;;
19585 *qnx* | *nto*)
19586 # QNX uses GNU C++, but need to define -shared option too, otherwise
19587 # it will coredump.
19588 lt_prog_compiler_pic_CXX='-fPIC -shared'
19589 ;;
19590 osf3* | osf4* | osf5*)
19591 case $cc_basename in
19592 KCC*)
19593 lt_prog_compiler_wl_CXX='--backend -Wl,'
19594 ;;
19595 RCC*)
19596 # Rational C++ 2.4.1
19597 lt_prog_compiler_pic_CXX='-pic'
19598 ;;
19599 cxx*)
19600 # Digital/Compaq C++
19601 lt_prog_compiler_wl_CXX='-Wl,'
19602 # Make sure the PIC flag is empty. It appears that all Alpha
19603 # Linux and Compaq Tru64 Unix objects are PIC.
19604 lt_prog_compiler_pic_CXX=
19605 lt_prog_compiler_static_CXX='-non_shared'
19606 ;;
19607 *)
19608 ;;
19609 esac
19610 ;;
19611 psos*)
19612 ;;
19613 solaris*)
19614 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019615 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019616 # Sun C++ 4.2, 5.x and Centerline C++
19617 lt_prog_compiler_pic_CXX='-KPIC'
19618 lt_prog_compiler_static_CXX='-Bstatic'
19619 lt_prog_compiler_wl_CXX='-Qoption ld '
19620 ;;
19621 gcx*)
19622 # Green Hills C++ Compiler
19623 lt_prog_compiler_pic_CXX='-PIC'
19624 ;;
19625 *)
19626 ;;
19627 esac
19628 ;;
19629 sunos4*)
19630 case $cc_basename in
19631 CC*)
19632 # Sun C++ 4.x
19633 lt_prog_compiler_pic_CXX='-pic'
19634 lt_prog_compiler_static_CXX='-Bstatic'
19635 ;;
19636 lcc*)
19637 # Lucid
19638 lt_prog_compiler_pic_CXX='-pic'
19639 ;;
19640 *)
19641 ;;
19642 esac
19643 ;;
19644 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19645 case $cc_basename in
19646 CC*)
19647 lt_prog_compiler_wl_CXX='-Wl,'
19648 lt_prog_compiler_pic_CXX='-KPIC'
19649 lt_prog_compiler_static_CXX='-Bstatic'
19650 ;;
19651 esac
19652 ;;
19653 tandem*)
19654 case $cc_basename in
19655 NCC*)
19656 # NonStop-UX NCC 3.20
19657 lt_prog_compiler_pic_CXX='-KPIC'
19658 ;;
19659 *)
19660 ;;
19661 esac
19662 ;;
19663 vxworks*)
19664 ;;
19665 *)
19666 lt_prog_compiler_can_build_shared_CXX=no
19667 ;;
19668 esac
19669 fi
19670
19671case $host_os in
19672 # For platforms which do not support PIC, -DPIC is meaningless:
19673 *djgpp*)
19674 lt_prog_compiler_pic_CXX=
19675 ;;
19676 *)
19677 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19678 ;;
19679esac
cristy73bd4a52010-10-05 11:24:23 +000019680
cristyda16f162011-02-19 23:52:17 +000019681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19682$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19683if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19684 $as_echo_n "(cached) " >&6
19685else
19686 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19687fi
19688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19689$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19690lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019691
19692#
19693# Check to make sure the PIC flag actually works.
19694#
19695if test -n "$lt_prog_compiler_pic_CXX"; then
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19697$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019698if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019699 $as_echo_n "(cached) " >&6
19700else
19701 lt_cv_prog_compiler_pic_works_CXX=no
19702 ac_outfile=conftest.$ac_objext
19703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19704 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19705 # Insert the option either (1) after the last *FLAGS variable, or
19706 # (2) before a word containing "conftest.", or (3) at the end.
19707 # Note that $ac_compile itself does not contain backslashes and begins
19708 # with a dollar sign (not a hyphen), so the echo should work correctly.
19709 # The option is referenced via a variable to avoid confusing sed.
19710 lt_compile=`echo "$ac_compile" | $SED \
19711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19713 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019715 (eval "$lt_compile" 2>conftest.err)
19716 ac_status=$?
19717 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019719 if (exit $ac_status) && test -s "$ac_outfile"; then
19720 # The compiler can only warn and ignore the option if not recognized
19721 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19725 lt_cv_prog_compiler_pic_works_CXX=yes
19726 fi
19727 fi
19728 $RM conftest*
19729
19730fi
19731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19732$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19733
19734if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19735 case $lt_prog_compiler_pic_CXX in
19736 "" | " "*) ;;
19737 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19738 esac
19739else
19740 lt_prog_compiler_pic_CXX=
19741 lt_prog_compiler_can_build_shared_CXX=no
19742fi
19743
19744fi
19745
19746
19747
cristyda16f162011-02-19 23:52:17 +000019748
19749
cristy73bd4a52010-10-05 11:24:23 +000019750#
19751# Check to make sure the static flag actually works.
19752#
19753wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19755$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019756if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019757 $as_echo_n "(cached) " >&6
19758else
19759 lt_cv_prog_compiler_static_works_CXX=no
19760 save_LDFLAGS="$LDFLAGS"
19761 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19762 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19763 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19764 # The linker can only warn and ignore the option if not recognized
19765 # So say no if there are warnings
19766 if test -s conftest.err; then
19767 # Append any errors to the config.log.
19768 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019769 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19771 if diff conftest.exp conftest.er2 >/dev/null; then
19772 lt_cv_prog_compiler_static_works_CXX=yes
19773 fi
19774 else
19775 lt_cv_prog_compiler_static_works_CXX=yes
19776 fi
19777 fi
19778 $RM -r conftest*
19779 LDFLAGS="$save_LDFLAGS"
19780
19781fi
19782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19783$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19784
19785if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19786 :
19787else
19788 lt_prog_compiler_static_CXX=
19789fi
19790
19791
19792
19793
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19795$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019796if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019797 $as_echo_n "(cached) " >&6
19798else
19799 lt_cv_prog_compiler_c_o_CXX=no
19800 $RM -r conftest 2>/dev/null
19801 mkdir conftest
19802 cd conftest
19803 mkdir out
19804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19805
19806 lt_compiler_flag="-o out/conftest2.$ac_objext"
19807 # Insert the option either (1) after the last *FLAGS variable, or
19808 # (2) before a word containing "conftest.", or (3) at the end.
19809 # Note that $ac_compile itself does not contain backslashes and begins
19810 # with a dollar sign (not a hyphen), so the echo should work correctly.
19811 lt_compile=`echo "$ac_compile" | $SED \
19812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19814 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019816 (eval "$lt_compile" 2>out/conftest.err)
19817 ac_status=$?
19818 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19821 then
19822 # The compiler can only warn and ignore the option if not recognized
19823 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19827 lt_cv_prog_compiler_c_o_CXX=yes
19828 fi
19829 fi
19830 chmod u+w . 2>&5
19831 $RM conftest*
19832 # SGI C++ compiler will create directory out/ii_files/ for
19833 # template instantiation
19834 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19835 $RM out/* && rmdir out
19836 cd ..
19837 $RM -r conftest
19838 $RM conftest*
19839
19840fi
19841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19842$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19843
19844
19845
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19847$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019848if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019849 $as_echo_n "(cached) " >&6
19850else
19851 lt_cv_prog_compiler_c_o_CXX=no
19852 $RM -r conftest 2>/dev/null
19853 mkdir conftest
19854 cd conftest
19855 mkdir out
19856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19857
19858 lt_compiler_flag="-o out/conftest2.$ac_objext"
19859 # Insert the option either (1) after the last *FLAGS variable, or
19860 # (2) before a word containing "conftest.", or (3) at the end.
19861 # Note that $ac_compile itself does not contain backslashes and begins
19862 # with a dollar sign (not a hyphen), so the echo should work correctly.
19863 lt_compile=`echo "$ac_compile" | $SED \
19864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19866 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019868 (eval "$lt_compile" 2>out/conftest.err)
19869 ac_status=$?
19870 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19873 then
19874 # The compiler can only warn and ignore the option if not recognized
19875 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19879 lt_cv_prog_compiler_c_o_CXX=yes
19880 fi
19881 fi
19882 chmod u+w . 2>&5
19883 $RM conftest*
19884 # SGI C++ compiler will create directory out/ii_files/ for
19885 # template instantiation
19886 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19887 $RM out/* && rmdir out
19888 cd ..
19889 $RM -r conftest
19890 $RM conftest*
19891
19892fi
19893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19894$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19895
19896
19897
19898
19899hard_links="nottested"
19900if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19901 # do not overwrite the value of need_locks provided by the user
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19903$as_echo_n "checking if we can lock with hard links... " >&6; }
19904 hard_links=yes
19905 $RM conftest*
19906 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19907 touch conftest.a
19908 ln conftest.a conftest.b 2>&5 || hard_links=no
19909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19911$as_echo "$hard_links" >&6; }
19912 if test "$hard_links" = no; then
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19914$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19915 need_locks=warn
19916 fi
19917else
19918 need_locks=no
19919fi
19920
19921
19922
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19924$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19925
19926 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019927 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019928 case $host_os in
19929 aix[4-9]*)
19930 # If we're using GNU nm, then we don't want the "-C" option.
19931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019932 # Also, AIX nm treats weak defined symbols like other global defined
19933 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019934 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019935 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 +000019936 else
19937 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'
19938 fi
19939 ;;
19940 pw32*)
19941 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019942 ;;
cristy73bd4a52010-10-05 11:24:23 +000019943 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019944 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019945 cl*)
19946 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19947 ;;
cristyda16f162011-02-19 23:52:17 +000019948 *)
19949 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'
19950 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19951 ;;
19952 esac
19953 ;;
cristy73bd4a52010-10-05 11:24:23 +000019954 *)
19955 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019956 ;;
cristy73bd4a52010-10-05 11:24:23 +000019957 esac
cristy73bd4a52010-10-05 11:24:23 +000019958
19959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19960$as_echo "$ld_shlibs_CXX" >&6; }
19961test "$ld_shlibs_CXX" = no && can_build_shared=no
19962
19963with_gnu_ld_CXX=$with_gnu_ld
19964
19965
19966
19967
19968
19969
19970#
19971# Do we need to explicitly link libc?
19972#
19973case "x$archive_cmds_need_lc_CXX" in
19974x|xyes)
19975 # Assume -lc should be added
19976 archive_cmds_need_lc_CXX=yes
19977
19978 if test "$enable_shared" = yes && test "$GCC" = yes; then
19979 case $archive_cmds_CXX in
19980 *'~'*)
19981 # FIXME: we may have to deal with multi-command sequences.
19982 ;;
19983 '$CC '*)
19984 # Test whether the compiler implicitly links with -lc since on some
19985 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19986 # to ld, don't add -lc before -lgcc.
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19988$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019989if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019990 $as_echo_n "(cached) " >&6
19991else
19992 $RM conftest*
19993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019994
cristy0c60a692010-11-04 01:09:47 +000019995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019996 (eval $ac_compile) 2>&5
19997 ac_status=$?
19998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19999 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020000 soname=conftest
20001 lib=conftest
20002 libobjs=conftest.$ac_objext
20003 deplibs=
20004 wl=$lt_prog_compiler_wl_CXX
20005 pic_flag=$lt_prog_compiler_pic_CXX
20006 compiler_flags=-v
20007 linker_flags=-v
20008 verstring=
20009 output_objdir=.
20010 libname=conftest
20011 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20012 allow_undefined_flag_CXX=
20013 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 +000020014 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20015 ac_status=$?
20016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20017 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020018 then
20019 lt_cv_archive_cmds_need_lc_CXX=no
20020 else
20021 lt_cv_archive_cmds_need_lc_CXX=yes
20022 fi
20023 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20024 else
20025 cat conftest.err 1>&5
20026 fi
20027 $RM conftest*
20028
20029fi
20030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20031$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20032 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020033 ;;
20034 esac
20035 fi
20036 ;;
20037esac
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
cristy73bd4a52010-10-05 11:24:23 +000020100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20101$as_echo_n "checking dynamic linker characteristics... " >&6; }
20102
20103library_names_spec=
20104libname_spec='lib$name'
20105soname_spec=
20106shrext_cmds=".so"
20107postinstall_cmds=
20108postuninstall_cmds=
20109finish_cmds=
20110finish_eval=
20111shlibpath_var=
20112shlibpath_overrides_runpath=unknown
20113version_type=none
20114dynamic_linker="$host_os ld.so"
20115sys_lib_dlsearch_path_spec="/lib /usr/lib"
20116need_lib_prefix=unknown
20117hardcode_into_libs=no
20118
20119# when you set need_version to no, make sure it does not cause -set_version
20120# flags to be left without arguments
20121need_version=unknown
20122
20123case $host_os in
20124aix3*)
cristy99bd5232011-12-07 14:38:20 +000020125 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20127 shlibpath_var=LIBPATH
20128
20129 # AIX 3 has no versioning support, so we append a major version to the name.
20130 soname_spec='${libname}${release}${shared_ext}$major'
20131 ;;
20132
20133aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020134 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020135 need_lib_prefix=no
20136 need_version=no
20137 hardcode_into_libs=yes
20138 if test "$host_cpu" = ia64; then
20139 # AIX 5 supports IA64
20140 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20141 shlibpath_var=LD_LIBRARY_PATH
20142 else
20143 # With GCC up to 2.95.x, collect2 would create an import file
20144 # for dependence libraries. The import file would start with
20145 # the line `#! .'. This would cause the generated library to
20146 # depend on `.', always an invalid library. This was fixed in
20147 # development snapshots of GCC prior to 3.0.
20148 case $host_os in
20149 aix4 | aix4.[01] | aix4.[01].*)
20150 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20151 echo ' yes '
20152 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20153 :
20154 else
20155 can_build_shared=no
20156 fi
20157 ;;
20158 esac
20159 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20160 # soname into executable. Probably we can add versioning support to
20161 # collect2, so additional links can be useful in future.
20162 if test "$aix_use_runtimelinking" = yes; then
20163 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20164 # instead of lib<name>.a to let people know that these are not
20165 # typical AIX shared libraries.
20166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20167 else
20168 # We preserve .a as extension for shared libraries through AIX4.2
20169 # and later when we are not doing run time linking.
20170 library_names_spec='${libname}${release}.a $libname.a'
20171 soname_spec='${libname}${release}${shared_ext}$major'
20172 fi
20173 shlibpath_var=LIBPATH
20174 fi
20175 ;;
20176
20177amigaos*)
20178 case $host_cpu in
20179 powerpc)
20180 # Since July 2007 AmigaOS4 officially supports .so libraries.
20181 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20183 ;;
20184 m68k)
20185 library_names_spec='$libname.ixlibrary $libname.a'
20186 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020187 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 +000020188 ;;
20189 esac
20190 ;;
20191
20192beos*)
20193 library_names_spec='${libname}${shared_ext}'
20194 dynamic_linker="$host_os ld.so"
20195 shlibpath_var=LIBRARY_PATH
20196 ;;
20197
20198bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020199 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020200 need_version=no
20201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20202 soname_spec='${libname}${release}${shared_ext}$major'
20203 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20204 shlibpath_var=LD_LIBRARY_PATH
20205 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20206 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20207 # the default ld.so.conf also contains /usr/contrib/lib and
20208 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20209 # libtool to hard-code these into programs
20210 ;;
20211
20212cygwin* | mingw* | pw32* | cegcc*)
20213 version_type=windows
20214 shrext_cmds=".dll"
20215 need_version=no
20216 need_lib_prefix=no
20217
cristyda16f162011-02-19 23:52:17 +000020218 case $GCC,$cc_basename in
20219 yes,*)
20220 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020221 library_names_spec='$libname.dll.a'
20222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20223 postinstall_cmds='base_file=`basename \${file}`~
20224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20225 dldir=$destdir/`dirname \$dlpath`~
20226 test -d \$dldir || mkdir -p \$dldir~
20227 $install_prog $dir/$dlname \$dldir/$dlname~
20228 chmod a+x \$dldir/$dlname~
20229 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20230 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20231 fi'
20232 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20233 dlpath=$dir/\$dldll~
20234 $RM \$dlpath'
20235 shlibpath_overrides_runpath=yes
20236
20237 case $host_os in
20238 cygwin*)
20239 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20240 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020241
cristy73bd4a52010-10-05 11:24:23 +000020242 ;;
20243 mingw* | cegcc*)
20244 # MinGW DLLs use traditional 'lib' prefix
20245 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020246 ;;
20247 pw32*)
20248 # pw32 DLLs use 'pw' prefix rather than 'lib'
20249 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20250 ;;
20251 esac
cristyda16f162011-02-19 23:52:17 +000020252 dynamic_linker='Win32 ld.exe'
20253 ;;
20254
20255 *,cl*)
20256 # Native MSVC
20257 libname_spec='$name'
20258 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20259 library_names_spec='${libname}.dll.lib'
20260
20261 case $build_os in
20262 mingw*)
20263 sys_lib_search_path_spec=
20264 lt_save_ifs=$IFS
20265 IFS=';'
20266 for lt_path in $LIB
20267 do
20268 IFS=$lt_save_ifs
20269 # Let DOS variable expansion print the short 8.3 style file name.
20270 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20271 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20272 done
20273 IFS=$lt_save_ifs
20274 # Convert to MSYS style.
20275 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20276 ;;
20277 cygwin*)
20278 # Convert to unix form, then to dos form, then back to unix form
20279 # but this time dos style (no spaces!) so that the unix form looks
20280 # like /cygdrive/c/PROGRA~1:/cygdr...
20281 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20282 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20283 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20284 ;;
20285 *)
20286 sys_lib_search_path_spec="$LIB"
20287 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20288 # It is most probably a Windows format PATH.
20289 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20290 else
20291 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20292 fi
20293 # FIXME: find the short name or the path components, as spaces are
20294 # common. (e.g. "Program Files" -> "PROGRA~1")
20295 ;;
20296 esac
20297
20298 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20299 postinstall_cmds='base_file=`basename \${file}`~
20300 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20301 dldir=$destdir/`dirname \$dlpath`~
20302 test -d \$dldir || mkdir -p \$dldir~
20303 $install_prog $dir/$dlname \$dldir/$dlname'
20304 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20305 dlpath=$dir/\$dldll~
20306 $RM \$dlpath'
20307 shlibpath_overrides_runpath=yes
20308 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020309 ;;
20310
20311 *)
cristyda16f162011-02-19 23:52:17 +000020312 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020313 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020314 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020315 ;;
20316 esac
cristy73bd4a52010-10-05 11:24:23 +000020317 # FIXME: first we should search . and the directory the executable is in
20318 shlibpath_var=PATH
20319 ;;
20320
20321darwin* | rhapsody*)
20322 dynamic_linker="$host_os dyld"
20323 version_type=darwin
20324 need_lib_prefix=no
20325 need_version=no
20326 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20327 soname_spec='${libname}${release}${major}$shared_ext'
20328 shlibpath_overrides_runpath=yes
20329 shlibpath_var=DYLD_LIBRARY_PATH
20330 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20331
20332 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20333 ;;
20334
20335dgux*)
cristy99bd5232011-12-07 14:38:20 +000020336 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020337 need_lib_prefix=no
20338 need_version=no
20339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20340 soname_spec='${libname}${release}${shared_ext}$major'
20341 shlibpath_var=LD_LIBRARY_PATH
20342 ;;
20343
cristy73bd4a52010-10-05 11:24:23 +000020344freebsd* | dragonfly*)
20345 # DragonFly does not have aout. When/if they implement a new
20346 # versioning mechanism, adjust this.
20347 if test -x /usr/bin/objformat; then
20348 objformat=`/usr/bin/objformat`
20349 else
20350 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020351 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020352 *) objformat=elf ;;
20353 esac
20354 fi
20355 version_type=freebsd-$objformat
20356 case $version_type in
20357 freebsd-elf*)
20358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20359 need_version=no
20360 need_lib_prefix=no
20361 ;;
20362 freebsd-*)
20363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20364 need_version=yes
20365 ;;
20366 esac
20367 shlibpath_var=LD_LIBRARY_PATH
20368 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020369 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020370 shlibpath_overrides_runpath=yes
20371 ;;
20372 freebsd3.[01]* | freebsdelf3.[01]*)
20373 shlibpath_overrides_runpath=yes
20374 hardcode_into_libs=yes
20375 ;;
20376 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20377 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20378 shlibpath_overrides_runpath=no
20379 hardcode_into_libs=yes
20380 ;;
20381 *) # from 4.6 on, and DragonFly
20382 shlibpath_overrides_runpath=yes
20383 hardcode_into_libs=yes
20384 ;;
20385 esac
20386 ;;
20387
20388gnu*)
cristy99bd5232011-12-07 14:38:20 +000020389 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020390 need_lib_prefix=no
20391 need_version=no
20392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20393 soname_spec='${libname}${release}${shared_ext}$major'
20394 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020395 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020396 hardcode_into_libs=yes
20397 ;;
20398
cristy0c60a692010-11-04 01:09:47 +000020399haiku*)
cristy99bd5232011-12-07 14:38:20 +000020400 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020401 need_lib_prefix=no
20402 need_version=no
20403 dynamic_linker="$host_os runtime_loader"
20404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20405 soname_spec='${libname}${release}${shared_ext}$major'
20406 shlibpath_var=LIBRARY_PATH
20407 shlibpath_overrides_runpath=yes
20408 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20409 hardcode_into_libs=yes
20410 ;;
20411
cristy73bd4a52010-10-05 11:24:23 +000020412hpux9* | hpux10* | hpux11*)
20413 # Give a soname corresponding to the major version so that dld.sl refuses to
20414 # link against other versions.
20415 version_type=sunos
20416 need_lib_prefix=no
20417 need_version=no
20418 case $host_cpu in
20419 ia64*)
20420 shrext_cmds='.so'
20421 hardcode_into_libs=yes
20422 dynamic_linker="$host_os dld.so"
20423 shlibpath_var=LD_LIBRARY_PATH
20424 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20426 soname_spec='${libname}${release}${shared_ext}$major'
20427 if test "X$HPUX_IA64_MODE" = X32; then
20428 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20429 else
20430 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20431 fi
20432 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20433 ;;
20434 hppa*64*)
20435 shrext_cmds='.sl'
20436 hardcode_into_libs=yes
20437 dynamic_linker="$host_os dld.sl"
20438 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20439 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20441 soname_spec='${libname}${release}${shared_ext}$major'
20442 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20444 ;;
20445 *)
20446 shrext_cmds='.sl'
20447 dynamic_linker="$host_os dld.sl"
20448 shlibpath_var=SHLIB_PATH
20449 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20451 soname_spec='${libname}${release}${shared_ext}$major'
20452 ;;
20453 esac
cristy0c60a692010-11-04 01:09:47 +000020454 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020455 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020456 # or fails outright, so override atomically:
20457 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020458 ;;
20459
20460interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020461 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020462 need_lib_prefix=no
20463 need_version=no
20464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20465 soname_spec='${libname}${release}${shared_ext}$major'
20466 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20467 shlibpath_var=LD_LIBRARY_PATH
20468 shlibpath_overrides_runpath=no
20469 hardcode_into_libs=yes
20470 ;;
20471
20472irix5* | irix6* | nonstopux*)
20473 case $host_os in
20474 nonstopux*) version_type=nonstopux ;;
20475 *)
20476 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020477 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020478 else
20479 version_type=irix
20480 fi ;;
20481 esac
20482 need_lib_prefix=no
20483 need_version=no
20484 soname_spec='${libname}${release}${shared_ext}$major'
20485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20486 case $host_os in
20487 irix5* | nonstopux*)
20488 libsuff= shlibsuff=
20489 ;;
20490 *)
20491 case $LD in # libtool.m4 will add one of these switches to LD
20492 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20493 libsuff= shlibsuff= libmagic=32-bit;;
20494 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20495 libsuff=32 shlibsuff=N32 libmagic=N32;;
20496 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20497 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20498 *) libsuff= shlibsuff= libmagic=never-match;;
20499 esac
20500 ;;
20501 esac
20502 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20503 shlibpath_overrides_runpath=no
20504 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20505 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20506 hardcode_into_libs=yes
20507 ;;
20508
20509# No shared lib support for Linux oldld, aout, or coff.
20510linux*oldld* | linux*aout* | linux*coff*)
20511 dynamic_linker=no
20512 ;;
20513
cristy99bd5232011-12-07 14:38:20 +000020514# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020515linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020516 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020517 need_lib_prefix=no
20518 need_version=no
20519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20520 soname_spec='${libname}${release}${shared_ext}$major'
20521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20522 shlibpath_var=LD_LIBRARY_PATH
20523 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020524
cristy73bd4a52010-10-05 11:24:23 +000020525 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020526 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020527 $as_echo_n "(cached) " >&6
20528else
20529 lt_cv_shlibpath_overrides_runpath=no
20530 save_LDFLAGS=$LDFLAGS
20531 save_libdir=$libdir
20532 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20533 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020535/* end confdefs.h. */
20536
20537int
20538main ()
20539{
20540
20541 ;
20542 return 0;
20543}
20544_ACEOF
20545if ac_fn_cxx_try_link "$LINENO"; then :
20546 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020547 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020548fi
20549fi
20550rm -f core conftest.err conftest.$ac_objext \
20551 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020552 LDFLAGS=$save_LDFLAGS
20553 libdir=$save_libdir
20554
20555fi
20556
20557 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020558
20559 # This implies no fast_install, which is unacceptable.
20560 # Some rework will be needed to allow for fast_install
20561 # before this can be enabled.
20562 hardcode_into_libs=yes
20563
20564 # Add ABI-specific directories to the system library path.
20565 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20566
20567 # Append ld.so.conf contents to the search path
20568 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020569 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 +000020570 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020571
cristy73bd4a52010-10-05 11:24:23 +000020572 fi
20573
20574 # We used to test for /lib/ld.so.1 and disable shared libraries on
20575 # powerpc, because MkLinux only supported shared libraries with the
20576 # GNU dynamic linker. Since this was broken with cross compilers,
20577 # most powerpc-linux boxes support dynamic linking these days and
20578 # people can always --disable-shared, the test was removed, and we
20579 # assume the GNU/Linux dynamic linker is in use.
20580 dynamic_linker='GNU/Linux ld.so'
20581 ;;
20582
20583netbsd*)
20584 version_type=sunos
20585 need_lib_prefix=no
20586 need_version=no
20587 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20590 dynamic_linker='NetBSD (a.out) ld.so'
20591 else
20592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20593 soname_spec='${libname}${release}${shared_ext}$major'
20594 dynamic_linker='NetBSD ld.elf_so'
20595 fi
20596 shlibpath_var=LD_LIBRARY_PATH
20597 shlibpath_overrides_runpath=yes
20598 hardcode_into_libs=yes
20599 ;;
20600
20601newsos6)
cristy99bd5232011-12-07 14:38:20 +000020602 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20604 shlibpath_var=LD_LIBRARY_PATH
20605 shlibpath_overrides_runpath=yes
20606 ;;
20607
20608*nto* | *qnx*)
20609 version_type=qnx
20610 need_lib_prefix=no
20611 need_version=no
20612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20613 soname_spec='${libname}${release}${shared_ext}$major'
20614 shlibpath_var=LD_LIBRARY_PATH
20615 shlibpath_overrides_runpath=no
20616 hardcode_into_libs=yes
20617 dynamic_linker='ldqnx.so'
20618 ;;
20619
20620openbsd*)
20621 version_type=sunos
20622 sys_lib_dlsearch_path_spec="/usr/lib"
20623 need_lib_prefix=no
20624 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20625 case $host_os in
20626 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20627 *) need_version=no ;;
20628 esac
20629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20631 shlibpath_var=LD_LIBRARY_PATH
20632 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20633 case $host_os in
20634 openbsd2.[89] | openbsd2.[89].*)
20635 shlibpath_overrides_runpath=no
20636 ;;
20637 *)
20638 shlibpath_overrides_runpath=yes
20639 ;;
20640 esac
20641 else
20642 shlibpath_overrides_runpath=yes
20643 fi
20644 ;;
20645
20646os2*)
20647 libname_spec='$name'
20648 shrext_cmds=".dll"
20649 need_lib_prefix=no
20650 library_names_spec='$libname${shared_ext} $libname.a'
20651 dynamic_linker='OS/2 ld.exe'
20652 shlibpath_var=LIBPATH
20653 ;;
20654
20655osf3* | osf4* | osf5*)
20656 version_type=osf
20657 need_lib_prefix=no
20658 need_version=no
20659 soname_spec='${libname}${release}${shared_ext}$major'
20660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20661 shlibpath_var=LD_LIBRARY_PATH
20662 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20663 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20664 ;;
20665
20666rdos*)
20667 dynamic_linker=no
20668 ;;
20669
20670solaris*)
cristy99bd5232011-12-07 14:38:20 +000020671 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020672 need_lib_prefix=no
20673 need_version=no
20674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20675 soname_spec='${libname}${release}${shared_ext}$major'
20676 shlibpath_var=LD_LIBRARY_PATH
20677 shlibpath_overrides_runpath=yes
20678 hardcode_into_libs=yes
20679 # ldd complains unless libraries are executable
20680 postinstall_cmds='chmod +x $lib'
20681 ;;
20682
20683sunos4*)
20684 version_type=sunos
20685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20686 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20687 shlibpath_var=LD_LIBRARY_PATH
20688 shlibpath_overrides_runpath=yes
20689 if test "$with_gnu_ld" = yes; then
20690 need_lib_prefix=no
20691 fi
20692 need_version=yes
20693 ;;
20694
20695sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020696 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20698 soname_spec='${libname}${release}${shared_ext}$major'
20699 shlibpath_var=LD_LIBRARY_PATH
20700 case $host_vendor in
20701 sni)
20702 shlibpath_overrides_runpath=no
20703 need_lib_prefix=no
20704 runpath_var=LD_RUN_PATH
20705 ;;
20706 siemens)
20707 need_lib_prefix=no
20708 ;;
20709 motorola)
20710 need_lib_prefix=no
20711 need_version=no
20712 shlibpath_overrides_runpath=no
20713 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20714 ;;
20715 esac
20716 ;;
20717
20718sysv4*MP*)
20719 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020720 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020721 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20722 soname_spec='$libname${shared_ext}.$major'
20723 shlibpath_var=LD_LIBRARY_PATH
20724 fi
20725 ;;
20726
20727sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20728 version_type=freebsd-elf
20729 need_lib_prefix=no
20730 need_version=no
20731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20732 soname_spec='${libname}${release}${shared_ext}$major'
20733 shlibpath_var=LD_LIBRARY_PATH
20734 shlibpath_overrides_runpath=yes
20735 hardcode_into_libs=yes
20736 if test "$with_gnu_ld" = yes; then
20737 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20738 else
20739 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20740 case $host_os in
20741 sco3.2v5*)
20742 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20743 ;;
20744 esac
20745 fi
20746 sys_lib_dlsearch_path_spec='/usr/lib'
20747 ;;
20748
20749tpf*)
20750 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020751 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020752 need_lib_prefix=no
20753 need_version=no
20754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20755 shlibpath_var=LD_LIBRARY_PATH
20756 shlibpath_overrides_runpath=no
20757 hardcode_into_libs=yes
20758 ;;
20759
20760uts4*)
cristy99bd5232011-12-07 14:38:20 +000020761 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20763 soname_spec='${libname}${release}${shared_ext}$major'
20764 shlibpath_var=LD_LIBRARY_PATH
20765 ;;
20766
20767*)
20768 dynamic_linker=no
20769 ;;
20770esac
20771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20772$as_echo "$dynamic_linker" >&6; }
20773test "$dynamic_linker" = no && can_build_shared=no
20774
20775variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20776if test "$GCC" = yes; then
20777 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20778fi
20779
20780if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20781 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20782fi
20783if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20784 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20785fi
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
cristy0c60a692010-11-04 01:09:47 +000020822
20823
cristy73bd4a52010-10-05 11:24:23 +000020824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20825$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20826hardcode_action_CXX=
20827if test -n "$hardcode_libdir_flag_spec_CXX" ||
20828 test -n "$runpath_var_CXX" ||
20829 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20830
20831 # We can hardcode non-existent directories.
20832 if test "$hardcode_direct_CXX" != no &&
20833 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20834 # have to relink, otherwise we might link with an installed library
20835 # when we should be linking with a yet-to-be-installed one
20836 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20837 test "$hardcode_minus_L_CXX" != no; then
20838 # Linking always hardcodes the temporary library directory.
20839 hardcode_action_CXX=relink
20840 else
20841 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20842 hardcode_action_CXX=immediate
20843 fi
20844else
20845 # We cannot hardcode anything, or else we can only hardcode existing
20846 # directories.
20847 hardcode_action_CXX=unsupported
20848fi
20849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20850$as_echo "$hardcode_action_CXX" >&6; }
20851
20852if test "$hardcode_action_CXX" = relink ||
20853 test "$inherit_rpath_CXX" = yes; then
20854 # Fast installation is not supported
20855 enable_fast_install=no
20856elif test "$shlibpath_overrides_runpath" = yes ||
20857 test "$enable_shared" = no; then
20858 # Fast installation is not necessary
20859 enable_fast_install=needless
20860fi
20861
20862
20863
20864
20865
20866
20867
20868 fi # test -n "$compiler"
20869
20870 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020871 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020872 LDCXX=$LD
20873 LD=$lt_save_LD
20874 GCC=$lt_save_GCC
20875 with_gnu_ld=$lt_save_with_gnu_ld
20876 lt_cv_path_LDCXX=$lt_cv_path_LD
20877 lt_cv_path_LD=$lt_save_path_LD
20878 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20879 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20880fi # test "$_lt_caught_CXX_error" != yes
20881
20882ac_ext=c
20883ac_cpp='$CPP $CPPFLAGS'
20884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20886ac_compiler_gnu=$ac_cv_c_compiler_gnu
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
cristy99bd5232011-12-07 14:38:20 +000020900
20901
cristy73bd4a52010-10-05 11:24:23 +000020902 ac_config_commands="$ac_config_commands libtool"
20903
20904
20905
20906
20907# Only expand once:
20908
20909
20910
cristy3ed852e2009-09-05 21:47:34 +000020911
20912
cristy3ed852e2009-09-05 21:47:34 +000020913# Check to see if building shared libraries
20914libtool_build_shared_libs='no'
20915if test "$enable_shared" = 'yes'; then
20916 libtool_build_shared_libs='yes'
20917fi
20918
20919# Check to see if building static libraries
20920libtool_build_static_libs='no'
20921if test "$enable_static" = 'yes'; then
20922 libtool_build_static_libs='yes'
20923fi
20924
cristy73bd4a52010-10-05 11:24:23 +000020925 if test "${libtool_build_shared_libs}" = 'yes'; then
20926 WITH_SHARED_LIBS_TRUE=
20927 WITH_SHARED_LIBS_FALSE='#'
20928else
20929 WITH_SHARED_LIBS_TRUE='#'
20930 WITH_SHARED_LIBS_FALSE=
20931fi
20932
cristy3ed852e2009-09-05 21:47:34 +000020933#
20934# Enable support for building loadable modules
20935#
cristyaf4cbf32012-10-16 23:47:41 +000020936build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020937
20938# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020939if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020940 withval=$with_modules; with_modules=$withval
20941else
cristy5a1cefd2010-01-06 20:42:35 +000020942 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020943fi
20944
20945
20946# Only allow building loadable modules if we are building shared libraries
20947if test "$with_modules" != 'no' ; then
20948 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020949 { $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 +000020950$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020951 build_modules='no'
20952 else
20953 build_modules='yes'
20954 fi
cristy3ed852e2009-09-05 21:47:34 +000020955fi
cristyc6722092012-10-14 00:19:31 +000020956if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020957
cristy8b350f62009-11-15 23:12:43 +000020958$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020959
cristyfa161182012-12-19 15:45:28 +000020960 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020961fi
cristyc6722092012-10-14 00:19:31 +000020962 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020963 WITH_MODULES_TRUE=
20964 WITH_MODULES_FALSE='#'
20965else
20966 WITH_MODULES_TRUE='#'
20967 WITH_MODULES_FALSE=
20968fi
20969
cristy3ed852e2009-09-05 21:47:34 +000020970
cristy3ed852e2009-09-05 21:47:34 +000020971# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020972# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020973# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020974if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020975 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20976else
20977 enable_delegate_build='no'
20978fi
20979
20980
20981# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020982if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020983 enableval=$enable_deprecated; enable_deprecated=$enableval
20984else
20985 enable_deprecated='no'
20986fi
20987
20988
20989if test "$enable_deprecated" = 'yes'; then
20990
cristy8b350f62009-11-15 23:12:43 +000020991$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020992
20993else
20994 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20995fi
20996
20997# Build a version of ImageMagick which operates uninstalled.
20998# Used to build distributions located via MAGICK_HOME / executable path
20999# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021000if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021001 enableval=$enable_installed; enable_installed=$enableval
21002else
21003 enable_installed='yes'
21004fi
21005
21006
21007if test "$enable_installed" = 'yes'; then
21008
cristy8b350f62009-11-15 23:12:43 +000021009$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021010
21011else
21012 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21013fi
21014
21015# Permit enciphering and deciphering image pixels.
21016# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021017if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021018 enableval=$enable_cipher; enable_cipher=$enableval
21019else
21020 enable_cipher='yes'
21021fi
21022
21023
21024if test "$enable_cipher" = 'yes'; then
21025
cristy8b350f62009-11-15 23:12:43 +000021026$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021027
21028fi
21029
cristy6e3607c2011-09-13 13:59:17 +000021030# Build a zero-configuration version of ImageMagick.
21031# Check whether --enable-zero-configuration was given.
21032if test "${enable_zero_configuration+set}" = set; then :
21033 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021034else
cristy6e3607c2011-09-13 13:59:17 +000021035 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021036fi
21037
21038
cristy6e3607c2011-09-13 13:59:17 +000021039if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021040
cristy6e3607c2011-09-13 13:59:17 +000021041$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021042
cristy81af5702011-09-13 14:20:58 +000021043 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021044fi
21045
21046# Build a high dynamic range version of ImageMagick.
21047# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021048if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021049 enableval=$enable_hdri; enable_hdri=$enableval
21050else
cristy191c0b72012-08-12 16:29:52 +000021051 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021052fi
21053
21054
21055MAGICK_HDRI=""
21056if test "$enable_hdri" = 'yes'; then
21057 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021058 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021059 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021060else
21061 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021062fi
21063
cristye52f12f2012-12-31 15:32:36 +000021064cat >>confdefs.h <<_ACEOF
21065#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21066_ACEOF
21067
21068MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21069CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021070CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021071
cristy3ed852e2009-09-05 21:47:34 +000021072# Build a version of ImageMagick with assert statements.
21073# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021074if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021075 enableval=$enable_assert; enable_assert=$enableval
21076else
21077 enable_assert='yes'
21078fi
21079
21080
21081if test "$enable_assert" = 'no'; then
21082
cristy8b350f62009-11-15 23:12:43 +000021083$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021084
21085fi
21086
cristya448bd22011-10-14 12:38:13 +000021087# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021088
21089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21090$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21091 # Check whether --enable-maintainer-mode was given.
21092if test "${enable_maintainer_mode+set}" = set; then :
21093 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21094else
21095 USE_MAINTAINER_MODE=no
21096fi
21097
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21099$as_echo "$USE_MAINTAINER_MODE" >&6; }
21100 if test $USE_MAINTAINER_MODE = yes; then
21101 MAINTAINER_MODE_TRUE=
21102 MAINTAINER_MODE_FALSE='#'
21103else
21104 MAINTAINER_MODE_TRUE='#'
21105 MAINTAINER_MODE_FALSE=
21106fi
21107
21108 MAINT=$MAINTAINER_MODE_TRUE
21109
21110
cristy3ed852e2009-09-05 21:47:34 +000021111
cristy944e51f2013-04-16 18:45:02 +000021112# Enable hugepages support
21113# Check whether --enable-hugepages was given.
21114if test "${enable_hugepages+set}" = set; then :
21115 enableval=$enable_hugepages; enable_hugepages=$enableval
21116else
21117 enable_hugepages='no'
21118fi
21119
21120
cristy3ed852e2009-09-05 21:47:34 +000021121# Enable ccmalloc memory debugging support
21122# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021123if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021124 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21125else
21126 enable_ccmalloc='no'
21127fi
21128
21129
21130# Enable Electric Fence memory debugging support
21131# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021132if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021133 enableval=$enable_efence; enable_efence=$enableval
21134else
21135 enable_efence='no'
21136fi
21137
21138
21139# Enable prof-based profiling support
21140# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021141if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021142 enableval=$enable_prof; enable_prof=$enableval
21143else
21144 enable_prof='no'
21145fi
21146
21147
21148# Enable gprof-based profiling support
21149# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021150if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021151 enableval=$enable_gprof; enable_gprof=$enableval
21152else
21153 enable_gprof='no'
21154fi
21155
21156
21157# Enable gcov-based profiling support
21158# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021159if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021160 enableval=$enable_gcov; enable_gcov=$enableval
21161else
21162 enable_gcov='no'
21163fi
21164
21165
21166enable_profiling='no'
21167if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21168 enable_profiling='yes'
21169 if test "$libtool_build_shared_libs" = 'yes'; then
21170 echo "Warning: Can not profile code using shared libraries"
21171 fi
21172fi
21173
21174# Magick API method prefix
21175
21176# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021177if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021178 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021179else
cristyfc3d0222012-02-07 15:05:57 +000021180 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021181fi
21182
21183
cristyfc3d0222012-02-07 15:05:57 +000021184if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021185
21186cat >>confdefs.h <<_ACEOF
21187#define NAMESPACE_PREFIX $with_method_prefix
21188_ACEOF
21189
cristyfc3d0222012-02-07 15:05:57 +000021190 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021191fi
21192
cristy71d8c202012-03-20 17:05:01 +000021193# Enable legacy support (default no)
21194# Check whether --enable-legacy-support was given.
21195if test "${enable_legacy_support+set}" = set; then :
21196 enableval=$enable_legacy_support; with_legacy_support=$enableval
21197else
21198 with_legacy_support='no'
21199fi
21200
21201 if test "$with_legacy_support" != 'no'; then
21202 LEGACY_SUPPORT_TRUE=
21203 LEGACY_SUPPORT_FALSE='#'
21204else
21205 LEGACY_SUPPORT_TRUE='#'
21206 LEGACY_SUPPORT_FALSE=
21207fi
21208
21209
cristy3ed852e2009-09-05 21:47:34 +000021210# Number of bits in a Quantum
21211
21212# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021213if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021214 withval=$with_quantum_depth; with_quantum_depth=$withval
21215else
21216 with_quantum_depth=16
21217fi
21218
21219
21220if test "$with_quantum_depth" != '8'; then
21221 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21222fi
21223
21224case "${with_quantum_depth}" in
21225 8 ) ;;
21226 16 ) ;;
21227 32 ) ;;
21228 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021229 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021230esac
21231QUANTUM_DEPTH="$with_quantum_depth"
21232
21233cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021234#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021235_ACEOF
21236
cristya371edf2013-02-06 13:42:17 +000021237MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021238CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021239CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021240
cristy01ff9f32012-12-01 18:15:29 +000021241# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021242MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021243if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021244 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021245fi
cristy01ff9f32012-12-01 18:15:29 +000021246
21247
cristy3ed852e2009-09-05 21:47:34 +000021248# Set pixel cache threshold
21249
21250# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021251if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021252 withval=$with_cache; with_cache=$withval
21253else
21254 with_cache=''
21255fi
21256
21257
21258if test "$with_cache" != ''; then
21259
21260cat >>confdefs.h <<_ACEOF
21261#define PixelCacheThreshold $with_cache
21262_ACEOF
21263
21264 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21265fi
21266
21267# Disable/Enable support for full delegate paths
21268
21269# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021270if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021271 withval=$with_frozenpaths; with_frozenpaths=$withval
21272else
21273 with_frozenpaths='no'
21274fi
21275
21276
21277# Enable build/install of Magick++
21278
21279# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021280if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021281 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21282else
21283 with_magick_plus_plus='yes'
21284fi
21285
21286
cristy3a75f062012-09-08 23:29:40 +000021287# Encode the this name into the shared library.
21288
21289# Check whether --with-package-release-name was given.
21290if test "${with_package_release_name+set}" = set; then :
21291 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21292fi
21293
21294
21295
cristy3ed852e2009-09-05 21:47:34 +000021296# Disable build/install of PerlMagick.
21297
21298# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021299if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021300 withval=$with_perl; with_perl=$withval
21301else
cristyb5f4e2f2010-04-25 00:49:11 +000021302 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021303fi
21304
21305
21306# Options to pass when configuring PerlMagick
21307
21308# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021309if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021310 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021311fi
21312
21313
cristy3ed852e2009-09-05 21:47:34 +000021314
21315# Enable umem, object-caching memory allocation library.
21316
21317# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021318if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021319 withval=$with_umem; with_umem=$withval
21320else
21321 with_umem='no'
21322fi
21323
21324if test "$with_umem" != 'yes' ; then
21325 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21326fi
21327
21328#
21329# Specify path to shared libstdc++ if not in normal location
21330#
21331
21332# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021333if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021334 withval=$with_libstdc; with_libstdc=$withval
21335else
21336 with_libstdc=''
21337fi
21338
21339
21340if test "$with_libstdc" != ''; then
21341 if test -d "$with_libstdc"; then
21342 LIBSTDCLDFLAGS="-L$with_libstdc"
21343 fi
21344fi
21345
21346
21347# Does gcc required -traditional?
21348if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021350$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021351if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021352 $as_echo_n "(cached) " >&6
21353else
21354 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021356/* end confdefs.h. */
21357#include <sgtty.h>
21358Autoconf TIOCGETP
21359_ACEOF
21360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021361 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021362 ac_cv_prog_gcc_traditional=yes
21363else
21364 ac_cv_prog_gcc_traditional=no
21365fi
21366rm -f conftest*
21367
21368
21369 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021371/* end confdefs.h. */
21372#include <termio.h>
21373Autoconf TCGETA
21374_ACEOF
21375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021376 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021377 ac_cv_prog_gcc_traditional=yes
21378fi
21379rm -f conftest*
21380
21381 fi
21382fi
cristy8b350f62009-11-15 23:12:43 +000021383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021384$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21385 if test $ac_cv_prog_gcc_traditional = yes; then
21386 CC="$CC -traditional"
21387 fi
21388fi
21389
21390
21391########
21392#
21393# Set defines required to build DLLs and modules using MinGW
21394#
21395########
21396# These options are set for multi-thread DLL module build
21397# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21398# module: _DLL
21399# executable/Magick++: _DLL _MAGICKMOD_
21400MODULE_EXTRA_CPPFLAGS=''
21401LIBRARY_EXTRA_CPPFLAGS=''
21402if test "${native_win32_build}" = 'yes'; then
21403 if test "${libtool_build_shared_libs}" = 'yes'; then
21404 CPPFLAGS="$CPPFLAGS -D_DLL"
21405 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21406 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21407 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021408 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021409 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21410 else
21411 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21412 fi
21413 else
21414 CPPFLAGS="$CPPFLAGS -D_LIB"
21415 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21416 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21417 fi
21418 if test "$with_threads" = 'yes'; then
21419 CPPFLAGS="$CPPFLAGS -D_MT"
21420 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21421 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21422 fi
21423fi
21424
21425
21426
21427# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021429$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021430if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021431 $as_echo_n "(cached) " >&6
21432else
cristy8b350f62009-11-15 23:12:43 +000021433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021434/* end confdefs.h. */
21435#include <stdlib.h>
21436#include <stdarg.h>
21437#include <string.h>
21438#include <float.h>
21439
21440int
21441main ()
21442{
21443
21444 ;
21445 return 0;
21446}
21447_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021448if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021449 ac_cv_header_stdc=yes
21450else
cristy8b350f62009-11-15 23:12:43 +000021451 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021452fi
cristy3ed852e2009-09-05 21:47:34 +000021453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21454
21455if test $ac_cv_header_stdc = yes; then
21456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021458/* end confdefs.h. */
21459#include <string.h>
21460
21461_ACEOF
21462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021463 $EGREP "memchr" >/dev/null 2>&1; then :
21464
cristy3ed852e2009-09-05 21:47:34 +000021465else
21466 ac_cv_header_stdc=no
21467fi
21468rm -f conftest*
21469
21470fi
21471
21472if test $ac_cv_header_stdc = yes; then
21473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021475/* end confdefs.h. */
21476#include <stdlib.h>
21477
21478_ACEOF
21479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021480 $EGREP "free" >/dev/null 2>&1; then :
21481
cristy3ed852e2009-09-05 21:47:34 +000021482else
21483 ac_cv_header_stdc=no
21484fi
21485rm -f conftest*
21486
21487fi
21488
21489if test $ac_cv_header_stdc = yes; then
21490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021491 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021492 :
21493else
cristy8b350f62009-11-15 23:12:43 +000021494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021495/* end confdefs.h. */
21496#include <ctype.h>
21497#include <stdlib.h>
21498#if ((' ' & 0x0FF) == 0x020)
21499# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21500# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21501#else
21502# define ISLOWER(c) \
21503 (('a' <= (c) && (c) <= 'i') \
21504 || ('j' <= (c) && (c) <= 'r') \
21505 || ('s' <= (c) && (c) <= 'z'))
21506# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21507#endif
21508
21509#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21510int
21511main ()
21512{
21513 int i;
21514 for (i = 0; i < 256; i++)
21515 if (XOR (islower (i), ISLOWER (i))
21516 || toupper (i) != TOUPPER (i))
21517 return 2;
21518 return 0;
21519}
21520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021521if ac_fn_c_try_run "$LINENO"; then :
21522
cristy3ed852e2009-09-05 21:47:34 +000021523else
cristy8b350f62009-11-15 23:12:43 +000021524 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021525fi
cristy8b350f62009-11-15 23:12:43 +000021526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21527 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021528fi
21529
cristy3ed852e2009-09-05 21:47:34 +000021530fi
21531fi
cristy8b350f62009-11-15 23:12:43 +000021532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021533$as_echo "$ac_cv_header_stdc" >&6; }
21534if test $ac_cv_header_stdc = yes; then
21535
cristy8b350f62009-11-15 23:12:43 +000021536$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021537
21538fi
21539
21540if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021541 { $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 +000021542 header files. Compilation cannot proceed. Please install the ANSI C
21543 headers and rerun this script." >&5
21544$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21545 header files. Compilation cannot proceed. Please install the ANSI C
21546 headers and rerun this script." >&2;};
21547fi
cristya0b81c32010-01-22 02:54:33 +000021548
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21550$as_echo_n "checking whether to enable assertions... " >&6; }
21551 # Check whether --enable-assert was given.
21552if test "${enable_assert+set}" = set; then :
21553 enableval=$enable_assert; ac_enable_assert=$enableval
21554 if test "x$enableval" = xno; then :
21555
21556$as_echo "#define NDEBUG 1" >>confdefs.h
21557
21558elif test "x$enableval" != xyes; then :
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21560$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21561 ac_enable_assert=yes
21562fi
21563else
21564 ac_enable_assert=yes
21565fi
21566
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21568$as_echo "$ac_enable_assert" >&6; }
21569
cristy3ed852e2009-09-05 21:47:34 +000021570ac_header_dirent=no
21571for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21572 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021574$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021575if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021576 $as_echo_n "(cached) " >&6
21577else
cristy8b350f62009-11-15 23:12:43 +000021578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021579/* end confdefs.h. */
21580#include <sys/types.h>
21581#include <$ac_hdr>
21582
21583int
21584main ()
21585{
21586if ((DIR *) 0)
21587return 0;
21588 ;
21589 return 0;
21590}
21591_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021592if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021593 eval "$as_ac_Header=yes"
21594else
cristy8b350f62009-11-15 23:12:43 +000021595 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021596fi
cristy3ed852e2009-09-05 21:47:34 +000021597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21598fi
cristy8b350f62009-11-15 23:12:43 +000021599eval ac_res=\$$as_ac_Header
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021601$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021602if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021603 cat >>confdefs.h <<_ACEOF
21604#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21605_ACEOF
21606
21607ac_header_dirent=$ac_hdr; break
21608fi
21609
21610done
21611# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21612if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021614$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021615if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021616 $as_echo_n "(cached) " >&6
21617else
21618 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021620/* end confdefs.h. */
21621
21622/* Override any GCC internal prototype to avoid an error.
21623 Use char because int might match the return type of a GCC
21624 builtin and then its argument prototype would still apply. */
21625#ifdef __cplusplus
21626extern "C"
21627#endif
21628char opendir ();
21629int
21630main ()
21631{
21632return opendir ();
21633 ;
21634 return 0;
21635}
21636_ACEOF
21637for ac_lib in '' dir; do
21638 if test -z "$ac_lib"; then
21639 ac_res="none required"
21640 else
21641 ac_res=-l$ac_lib
21642 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21643 fi
cristy8b350f62009-11-15 23:12:43 +000021644 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021645 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021646fi
cristy8b350f62009-11-15 23:12:43 +000021647rm -f core conftest.err conftest.$ac_objext \
21648 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021649 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021650 break
21651fi
21652done
cristyda16f162011-02-19 23:52:17 +000021653if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021654
cristy3ed852e2009-09-05 21:47:34 +000021655else
21656 ac_cv_search_opendir=no
21657fi
21658rm conftest.$ac_ext
21659LIBS=$ac_func_search_save_LIBS
21660fi
cristy8b350f62009-11-15 23:12:43 +000021661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021662$as_echo "$ac_cv_search_opendir" >&6; }
21663ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021664if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21666
21667fi
21668
21669else
cristy8b350f62009-11-15 23:12:43 +000021670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021671$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021672if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021673 $as_echo_n "(cached) " >&6
21674else
21675 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021677/* end confdefs.h. */
21678
21679/* Override any GCC internal prototype to avoid an error.
21680 Use char because int might match the return type of a GCC
21681 builtin and then its argument prototype would still apply. */
21682#ifdef __cplusplus
21683extern "C"
21684#endif
21685char opendir ();
21686int
21687main ()
21688{
21689return opendir ();
21690 ;
21691 return 0;
21692}
21693_ACEOF
21694for ac_lib in '' x; do
21695 if test -z "$ac_lib"; then
21696 ac_res="none required"
21697 else
21698 ac_res=-l$ac_lib
21699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21700 fi
cristy8b350f62009-11-15 23:12:43 +000021701 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021702 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021703fi
cristy8b350f62009-11-15 23:12:43 +000021704rm -f core conftest.err conftest.$ac_objext \
21705 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021706 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021707 break
21708fi
21709done
cristyda16f162011-02-19 23:52:17 +000021710if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021711
cristy3ed852e2009-09-05 21:47:34 +000021712else
21713 ac_cv_search_opendir=no
21714fi
21715rm conftest.$ac_ext
21716LIBS=$ac_func_search_save_LIBS
21717fi
cristy8b350f62009-11-15 23:12:43 +000021718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021719$as_echo "$ac_cv_search_opendir" >&6; }
21720ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021721if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21723
21724fi
21725
21726fi
21727
21728
21729# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021730for 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 +000021731do :
21732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21733ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021734if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021735 cat >>confdefs.h <<_ACEOF
21736#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21737_ACEOF
21738
21739fi
21740
21741done
21742
21743
21744########
21745#
21746# Checks for typedefs, structures, and compiler characteristics.
21747#
21748########
21749
cristy8b350f62009-11-15 23:12:43 +000021750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021751$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021752if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021753 $as_echo_n "(cached) " >&6
21754else
cristy8b350f62009-11-15 23:12:43 +000021755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021756/* end confdefs.h. */
21757
cristy14fefe52012-05-21 00:59:18 +000021758 #include <stdbool.h>
21759 #ifndef bool
21760 "error: bool is not defined"
21761 #endif
21762 #ifndef false
21763 "error: false is not defined"
21764 #endif
21765 #if false
21766 "error: false is not 0"
21767 #endif
21768 #ifndef true
21769 "error: true is not defined"
21770 #endif
21771 #if true != 1
21772 "error: true is not 1"
21773 #endif
21774 #ifndef __bool_true_false_are_defined
21775 "error: __bool_true_false_are_defined is not defined"
21776 #endif
cristy3ed852e2009-09-05 21:47:34 +000021777
cristy14fefe52012-05-21 00:59:18 +000021778 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021779
cristy14fefe52012-05-21 00:59:18 +000021780 char a[true == 1 ? 1 : -1];
21781 char b[false == 0 ? 1 : -1];
21782 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21783 char d[(bool) 0.5 == true ? 1 : -1];
21784 /* See body of main program for 'e'. */
21785 char f[(_Bool) 0.0 == false ? 1 : -1];
21786 char g[true];
21787 char h[sizeof (_Bool)];
21788 char i[sizeof s.t];
21789 enum { j = false, k = true, l = false * true, m = true * 256 };
21790 /* The following fails for
21791 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21792 _Bool n[m];
21793 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21794 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21795 /* Catch a bug in an HP-UX C compiler. See
21796 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21797 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21798 */
21799 _Bool q = true;
21800 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021801
21802int
21803main ()
21804{
21805
cristy14fefe52012-05-21 00:59:18 +000021806 bool e = &s;
21807 *pq |= q;
21808 *pq |= ! q;
21809 /* Refer to every declared value, to avoid compiler optimizations. */
21810 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21811 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021812
21813 ;
21814 return 0;
21815}
21816_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021817if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021818 ac_cv_header_stdbool_h=yes
21819else
cristy8b350f62009-11-15 23:12:43 +000021820 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021821fi
cristy3ed852e2009-09-05 21:47:34 +000021822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823fi
cristy8b350f62009-11-15 23:12:43 +000021824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021825$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021826 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021827if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021828
21829cat >>confdefs.h <<_ACEOF
21830#define HAVE__BOOL 1
21831_ACEOF
21832
21833
21834fi
21835
cristy14fefe52012-05-21 00:59:18 +000021836
cristy3ed852e2009-09-05 21:47:34 +000021837if test $ac_cv_header_stdbool_h = yes; then
21838
cristy8b350f62009-11-15 23:12:43 +000021839$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021840
21841fi
21842
cristy8b350f62009-11-15 23:12:43 +000021843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021844$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021845if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021846 $as_echo_n "(cached) " >&6
21847else
cristy8b350f62009-11-15 23:12:43 +000021848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021849/* end confdefs.h. */
21850
21851int
21852main ()
21853{
21854
21855volatile int x;
21856int * volatile y = (int *) 0;
21857return !x && !y;
21858 ;
21859 return 0;
21860}
21861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021862if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021863 ac_cv_c_volatile=yes
21864else
cristy8b350f62009-11-15 23:12:43 +000021865 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021866fi
cristy3ed852e2009-09-05 21:47:34 +000021867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21868fi
cristy8b350f62009-11-15 23:12:43 +000021869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021870$as_echo "$ac_cv_c_volatile" >&6; }
21871if test $ac_cv_c_volatile = no; then
21872
cristy8b350f62009-11-15 23:12:43 +000021873$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021874
21875fi
21876
cristy8b350f62009-11-15 23:12:43 +000021877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021878$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021879if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021880 $as_echo_n "(cached) " >&6
21881else
cristy8b350f62009-11-15 23:12:43 +000021882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021883/* end confdefs.h. */
21884#define x(y) #y
21885
21886char *s = x(teststring);
21887_ACEOF
21888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021889 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021890 ac_cv_c_stringize=no
21891else
21892 ac_cv_c_stringize=yes
21893fi
21894rm -f conftest*
21895
21896fi
cristy8b350f62009-11-15 23:12:43 +000021897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021898$as_echo "$ac_cv_c_stringize" >&6; }
21899if test $ac_cv_c_stringize = yes; then
21900
cristy8b350f62009-11-15 23:12:43 +000021901$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021902
21903fi
21904
cristy8b350f62009-11-15 23:12:43 +000021905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021906$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021907if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021908 $as_echo_n "(cached) " >&6
21909else
cristy8b350f62009-11-15 23:12:43 +000021910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021911/* end confdefs.h. */
21912#include <sys/types.h>
21913#include <sys/stat.h>
21914
21915#if defined S_ISBLK && defined S_IFDIR
21916extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21917#endif
21918
21919#if defined S_ISBLK && defined S_IFCHR
21920extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21921#endif
21922
21923#if defined S_ISLNK && defined S_IFREG
21924extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21925#endif
21926
21927#if defined S_ISSOCK && defined S_IFREG
21928extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21929#endif
21930
21931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021932if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021933 ac_cv_header_stat_broken=no
21934else
cristy8b350f62009-11-15 23:12:43 +000021935 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021936fi
cristy3ed852e2009-09-05 21:47:34 +000021937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21938fi
cristy8b350f62009-11-15 23:12:43 +000021939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021940$as_echo "$ac_cv_header_stat_broken" >&6; }
21941if test $ac_cv_header_stat_broken = yes; then
21942
cristy8b350f62009-11-15 23:12:43 +000021943$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021944
21945fi
21946
cristy8b350f62009-11-15 23:12:43 +000021947{ $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 +000021948$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021949if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021950 $as_echo_n "(cached) " >&6
21951else
cristy8b350f62009-11-15 23:12:43 +000021952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021953/* end confdefs.h. */
21954#include <sys/types.h>
21955#include <sys/time.h>
21956#include <time.h>
21957
21958int
21959main ()
21960{
21961if ((struct tm *) 0)
21962return 0;
21963 ;
21964 return 0;
21965}
21966_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021967if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021968 ac_cv_header_time=yes
21969else
cristy8b350f62009-11-15 23:12:43 +000021970 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021971fi
cristy3ed852e2009-09-05 21:47:34 +000021972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973fi
cristy8b350f62009-11-15 23:12:43 +000021974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021975$as_echo "$ac_cv_header_time" >&6; }
21976if test $ac_cv_header_time = yes; then
21977
cristy8b350f62009-11-15 23:12:43 +000021978$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021979
21980fi
21981
cristy8b350f62009-11-15 23:12:43 +000021982{ $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 +000021983$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021984if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021985 $as_echo_n "(cached) " >&6
21986else
cristy8b350f62009-11-15 23:12:43 +000021987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021988/* end confdefs.h. */
21989#include <sys/types.h>
21990#include <time.h>
21991
21992int
21993main ()
21994{
21995struct tm tm;
21996 int *p = &tm.tm_sec;
21997 return !p;
21998 ;
21999 return 0;
22000}
22001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022002if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022003 ac_cv_struct_tm=time.h
22004else
cristy8b350f62009-11-15 23:12:43 +000022005 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022006fi
cristy3ed852e2009-09-05 21:47:34 +000022007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22008fi
cristy8b350f62009-11-15 23:12:43 +000022009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022010$as_echo "$ac_cv_struct_tm" >&6; }
22011if test $ac_cv_struct_tm = sys/time.h; then
22012
cristy8b350f62009-11-15 23:12:43 +000022013$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022014
22015fi
22016
cristy92703d82010-04-26 00:18:18 +000022017ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22018#include <$ac_cv_struct_tm>
22019
22020"
cristyda16f162011-02-19 23:52:17 +000022021if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022022
22023cat >>confdefs.h <<_ACEOF
22024#define HAVE_STRUCT_TM_TM_ZONE 1
22025_ACEOF
22026
22027
22028fi
22029
22030if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22031
22032$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22033
22034else
22035 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22036"
cristyda16f162011-02-19 23:52:17 +000022037if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022038 ac_have_decl=1
22039else
22040 ac_have_decl=0
22041fi
22042
22043cat >>confdefs.h <<_ACEOF
22044#define HAVE_DECL_TZNAME $ac_have_decl
22045_ACEOF
22046
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22048$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022049if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022050 $as_echo_n "(cached) " >&6
22051else
22052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22053/* end confdefs.h. */
22054#include <time.h>
22055#if !HAVE_DECL_TZNAME
22056extern char *tzname[];
22057#endif
22058
22059int
22060main ()
22061{
22062return tzname[0][0];
22063 ;
22064 return 0;
22065}
22066_ACEOF
22067if ac_fn_c_try_link "$LINENO"; then :
22068 ac_cv_var_tzname=yes
22069else
22070 ac_cv_var_tzname=no
22071fi
22072rm -f core conftest.err conftest.$ac_objext \
22073 conftest$ac_exeext conftest.$ac_ext
22074fi
22075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22076$as_echo "$ac_cv_var_tzname" >&6; }
22077 if test $ac_cv_var_tzname = yes; then
22078
22079$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22080
22081 fi
22082fi
22083
cristy8b350f62009-11-15 23:12:43 +000022084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022085$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022086if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022087 $as_echo_n "(cached) " >&6
22088else
22089 echo '#! /bin/cat
22090exit 69
22091' >conftest
22092chmod u+x conftest
22093(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22094if test $? -ne 69; then
22095 ac_cv_sys_interpreter=yes
22096else
22097 ac_cv_sys_interpreter=no
22098fi
22099rm -f conftest
22100fi
cristy8b350f62009-11-15 23:12:43 +000022101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022102$as_echo "$ac_cv_sys_interpreter" >&6; }
22103interpval=$ac_cv_sys_interpreter
22104
22105
cristye80f9cb2013-01-09 01:09:31 +000022106#
22107# Checks for language qualifiers and semantics.
22108#
22109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22110$as_echo_n "checking whether char is unsigned... " >&6; }
22111if ${ac_cv_c_char_unsigned+:} false; then :
22112 $as_echo_n "(cached) " >&6
22113else
22114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22115/* end confdefs.h. */
22116$ac_includes_default
22117int
22118main ()
22119{
22120static int test_array [1 - 2 * !(((char) -1) < 0)];
22121test_array [0] = 0;
22122return test_array [0];
22123
22124 ;
22125 return 0;
22126}
22127_ACEOF
22128if ac_fn_c_try_compile "$LINENO"; then :
22129 ac_cv_c_char_unsigned=no
22130else
22131 ac_cv_c_char_unsigned=yes
22132fi
22133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22134fi
22135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22136$as_echo "$ac_cv_c_char_unsigned" >&6; }
22137if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22138 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22139
22140fi
22141
22142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22143$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22144if ${ac_cv_c_const+:} false; then :
22145 $as_echo_n "(cached) " >&6
22146else
22147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22148/* end confdefs.h. */
22149
22150int
22151main ()
22152{
22153
22154#ifndef __cplusplus
22155 /* Ultrix mips cc rejects this sort of thing. */
22156 typedef int charset[2];
22157 const charset cs = { 0, 0 };
22158 /* SunOS 4.1.1 cc rejects this. */
22159 char const *const *pcpcc;
22160 char **ppc;
22161 /* NEC SVR4.0.2 mips cc rejects this. */
22162 struct point {int x, y;};
22163 static struct point const zero = {0,0};
22164 /* AIX XL C 1.02.0.0 rejects this.
22165 It does not let you subtract one const X* pointer from another in
22166 an arm of an if-expression whose if-part is not a constant
22167 expression */
22168 const char *g = "string";
22169 pcpcc = &g + (g ? g-g : 0);
22170 /* HPUX 7.0 cc rejects these. */
22171 ++pcpcc;
22172 ppc = (char**) pcpcc;
22173 pcpcc = (char const *const *) ppc;
22174 { /* SCO 3.2v4 cc rejects this sort of thing. */
22175 char tx;
22176 char *t = &tx;
22177 char const *s = 0 ? (char *) 0 : (char const *) 0;
22178
22179 *t++ = 0;
22180 if (s) return 0;
22181 }
22182 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22183 int x[] = {25, 17};
22184 const int *foo = &x[0];
22185 ++foo;
22186 }
22187 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22188 typedef const int *iptr;
22189 iptr p = 0;
22190 ++p;
22191 }
22192 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22193 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22194 struct s { int j; const int *ap[3]; } bx;
22195 struct s *b = &bx; b->j = 5;
22196 }
22197 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22198 const int foo = 10;
22199 if (!foo) return 0;
22200 }
22201 return !cs[0] && !zero.x;
22202#endif
22203
22204 ;
22205 return 0;
22206}
22207_ACEOF
22208if ac_fn_c_try_compile "$LINENO"; then :
22209 ac_cv_c_const=yes
22210else
22211 ac_cv_c_const=no
22212fi
22213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22214fi
22215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22216$as_echo "$ac_cv_c_const" >&6; }
22217if test $ac_cv_c_const = no; then
22218
22219$as_echo "#define const /**/" >>confdefs.h
22220
22221fi
22222
cristy8b350f62009-11-15 23:12:43 +000022223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022224$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022225if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022226 $as_echo_n "(cached) " >&6
22227else
22228 ac_cv_c_inline=no
22229for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022231/* end confdefs.h. */
22232#ifndef __cplusplus
22233typedef int foo_t;
22234static $ac_kw foo_t static_foo () {return 0; }
22235$ac_kw foo_t foo () {return 0; }
22236#endif
22237
22238_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022239if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022240 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022241fi
cristy3ed852e2009-09-05 21:47:34 +000022242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22243 test "$ac_cv_c_inline" != no && break
22244done
22245
22246fi
cristy8b350f62009-11-15 23:12:43 +000022247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022248$as_echo "$ac_cv_c_inline" >&6; }
22249
cristy3ed852e2009-09-05 21:47:34 +000022250case $ac_cv_c_inline in
22251 inline | yes) ;;
22252 *)
22253 case $ac_cv_c_inline in
22254 no) ac_val=;;
22255 *) ac_val=$ac_cv_c_inline;;
22256 esac
22257 cat >>confdefs.h <<_ACEOF
22258#ifndef __cplusplus
22259#define inline $ac_val
22260#endif
22261_ACEOF
22262 ;;
22263esac
22264
cristy8b350f62009-11-15 23:12:43 +000022265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022266$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022267if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022268 $as_echo_n "(cached) " >&6
22269else
22270 ac_cv_c_restrict=no
22271 # The order here caters to the fact that C++ does not require restrict.
22272 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022274/* end confdefs.h. */
22275typedef int * int_ptr;
22276 int foo (int_ptr $ac_kw ip) {
22277 return ip[0];
22278 }
22279int
22280main ()
22281{
22282int s[1];
22283 int * $ac_kw t = s;
22284 t[0] = 0;
22285 return foo(t)
22286 ;
22287 return 0;
22288}
22289_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022290if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022291 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022292fi
cristy3ed852e2009-09-05 21:47:34 +000022293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22294 test "$ac_cv_c_restrict" != no && break
22295 done
22296
22297fi
cristy8b350f62009-11-15 23:12:43 +000022298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022299$as_echo "$ac_cv_c_restrict" >&6; }
22300
cristy3ed852e2009-09-05 21:47:34 +000022301 case $ac_cv_c_restrict in
22302 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022303 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022304 ;;
22305 *) cat >>confdefs.h <<_ACEOF
22306#define restrict $ac_cv_c_restrict
22307_ACEOF
22308 ;;
22309 esac
22310
cristye80f9cb2013-01-09 01:09:31 +000022311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22312$as_echo_n "checking for working volatile... " >&6; }
22313if ${ac_cv_c_volatile+:} false; then :
22314 $as_echo_n "(cached) " >&6
22315else
22316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22317/* end confdefs.h. */
22318
22319int
22320main ()
22321{
22322
22323volatile int x;
22324int * volatile y = (int *) 0;
22325return !x && !y;
22326 ;
22327 return 0;
22328}
22329_ACEOF
22330if ac_fn_c_try_compile "$LINENO"; then :
22331 ac_cv_c_volatile=yes
22332else
22333 ac_cv_c_volatile=no
22334fi
22335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22336fi
22337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22338$as_echo "$ac_cv_c_volatile" >&6; }
22339if test $ac_cv_c_volatile = no; then
22340
22341$as_echo "#define volatile /**/" >>confdefs.h
22342
22343fi
22344
cristy3ed852e2009-09-05 21:47:34 +000022345
22346# If words are stored with the most significant byte first (like
22347# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022349$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022350if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022351 $as_echo_n "(cached) " >&6
22352else
22353 ac_cv_c_bigendian=unknown
22354 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022356/* end confdefs.h. */
22357#ifndef __APPLE_CC__
22358 not a universal capable compiler
22359 #endif
22360 typedef int dummy;
22361
22362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022363if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022364
22365 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022366 # there are at least two -arch flags with different values.
22367 ac_arch=
22368 ac_prev=
22369 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22370 if test -n "$ac_prev"; then
22371 case $ac_word in
22372 i?86 | x86_64 | ppc | ppc64)
22373 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22374 ac_arch=$ac_word
22375 else
22376 ac_cv_c_bigendian=universal
22377 break
22378 fi
22379 ;;
22380 esac
22381 ac_prev=
22382 elif test "x$ac_word" = "x-arch"; then
22383 ac_prev=arch
22384 fi
22385 done
cristy3ed852e2009-09-05 21:47:34 +000022386fi
cristy3ed852e2009-09-05 21:47:34 +000022387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22388 if test $ac_cv_c_bigendian = unknown; then
22389 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022391/* end confdefs.h. */
22392#include <sys/types.h>
22393 #include <sys/param.h>
22394
22395int
22396main ()
22397{
22398#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22399 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22400 && LITTLE_ENDIAN)
22401 bogus endian macros
22402 #endif
22403
22404 ;
22405 return 0;
22406}
22407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022408if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022409 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022411/* end confdefs.h. */
22412#include <sys/types.h>
22413 #include <sys/param.h>
22414
22415int
22416main ()
22417{
22418#if BYTE_ORDER != BIG_ENDIAN
22419 not big endian
22420 #endif
22421
22422 ;
22423 return 0;
22424}
22425_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022426if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022427 ac_cv_c_bigendian=yes
22428else
cristy8b350f62009-11-15 23:12:43 +000022429 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022430fi
cristy3ed852e2009-09-05 21:47:34 +000022431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022432fi
cristy3ed852e2009-09-05 21:47:34 +000022433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22434 fi
22435 if test $ac_cv_c_bigendian = unknown; then
22436 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022438/* end confdefs.h. */
22439#include <limits.h>
22440
22441int
22442main ()
22443{
22444#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22445 bogus endian macros
22446 #endif
22447
22448 ;
22449 return 0;
22450}
22451_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022452if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022453 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022455/* end confdefs.h. */
22456#include <limits.h>
22457
22458int
22459main ()
22460{
22461#ifndef _BIG_ENDIAN
22462 not big endian
22463 #endif
22464
22465 ;
22466 return 0;
22467}
22468_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022469if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022470 ac_cv_c_bigendian=yes
22471else
cristy8b350f62009-11-15 23:12:43 +000022472 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022473fi
cristy3ed852e2009-09-05 21:47:34 +000022474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022475fi
cristy3ed852e2009-09-05 21:47:34 +000022476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22477 fi
22478 if test $ac_cv_c_bigendian = unknown; then
22479 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022480 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022481 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022483/* end confdefs.h. */
22484short int ascii_mm[] =
22485 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22486 short int ascii_ii[] =
22487 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22488 int use_ascii (int i) {
22489 return ascii_mm[i] + ascii_ii[i];
22490 }
22491 short int ebcdic_ii[] =
22492 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22493 short int ebcdic_mm[] =
22494 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22495 int use_ebcdic (int i) {
22496 return ebcdic_mm[i] + ebcdic_ii[i];
22497 }
22498 extern int foo;
22499
22500int
22501main ()
22502{
22503return use_ascii (foo) == use_ebcdic (foo);
22504 ;
22505 return 0;
22506}
22507_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022508if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022509 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22510 ac_cv_c_bigendian=yes
22511 fi
22512 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22513 if test "$ac_cv_c_bigendian" = unknown; then
22514 ac_cv_c_bigendian=no
22515 else
22516 # finding both strings is unlikely to happen, but who knows?
22517 ac_cv_c_bigendian=unknown
22518 fi
22519 fi
cristy3ed852e2009-09-05 21:47:34 +000022520fi
cristy3ed852e2009-09-05 21:47:34 +000022521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22522else
cristy8b350f62009-11-15 23:12:43 +000022523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022524/* end confdefs.h. */
22525$ac_includes_default
22526int
22527main ()
22528{
22529
22530 /* Are we little or big endian? From Harbison&Steele. */
22531 union
22532 {
22533 long int l;
22534 char c[sizeof (long int)];
22535 } u;
22536 u.l = 1;
22537 return u.c[sizeof (long int) - 1] == 1;
22538
22539 ;
22540 return 0;
22541}
22542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022543if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022544 ac_cv_c_bigendian=no
22545else
cristy8b350f62009-11-15 23:12:43 +000022546 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022547fi
cristy8b350f62009-11-15 23:12:43 +000022548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22549 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022550fi
22551
cristy3ed852e2009-09-05 21:47:34 +000022552 fi
22553fi
cristy8b350f62009-11-15 23:12:43 +000022554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022555$as_echo "$ac_cv_c_bigendian" >&6; }
22556 case $ac_cv_c_bigendian in #(
22557 yes)
cristy8b350f62009-11-15 23:12:43 +000022558 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022559;; #(
22560 no)
22561 ;; #(
22562 universal)
22563
cristy8b350f62009-11-15 23:12:43 +000022564$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022565
22566 ;; #(
22567 *)
cristy98dddb52010-11-04 00:30:15 +000022568 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022569 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022570 esac
22571
22572
cristy501c8042011-05-26 17:46:28 +000022573# Define to a suitable type, if standard headers do not define it.
22574ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22575case $ac_cv_c_int8_t in #(
22576 no|yes) ;; #(
22577 *)
cristy3ed852e2009-09-05 21:47:34 +000022578
22579cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022580#define int8_t $ac_cv_c_int8_t
22581_ACEOF
22582;;
22583esac
22584
22585ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22586case $ac_cv_c_int16_t in #(
22587 no|yes) ;; #(
22588 *)
22589
22590cat >>confdefs.h <<_ACEOF
22591#define int16_t $ac_cv_c_int16_t
22592_ACEOF
22593;;
22594esac
22595
22596ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22597case $ac_cv_c_int32_t in #(
22598 no|yes) ;; #(
22599 *)
22600
22601cat >>confdefs.h <<_ACEOF
22602#define int32_t $ac_cv_c_int32_t
22603_ACEOF
22604;;
22605esac
22606
22607ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22608case $ac_cv_c_int64_t in #(
22609 no|yes) ;; #(
22610 *)
22611
22612cat >>confdefs.h <<_ACEOF
22613#define int64_t $ac_cv_c_int64_t
22614_ACEOF
22615;;
22616esac
22617
22618
cristy045228a2013-06-23 11:00:16 +000022619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22620$as_echo_n "checking for unsigned long long int... " >&6; }
22621if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022622 $as_echo_n "(cached) " >&6
22623else
cristy045228a2013-06-23 11:00:16 +000022624 ac_cv_type_unsigned_long_long_int=yes
22625 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022627/* end confdefs.h. */
22628
22629 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022630 implementations with broken preprocessors. Perhaps this can
22631 be revisited in 2012. In the meantime, code should not expect
22632 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022633 /* Test literals. */
22634 long long int ll = 9223372036854775807ll;
22635 long long int nll = -9223372036854775807LL;
22636 unsigned long long int ull = 18446744073709551615ULL;
22637 /* Test constant expressions. */
22638 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022639 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022640 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022641 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022642 int i = 63;
22643int
22644main ()
22645{
22646/* Test availability of runtime routines for shift and division. */
22647 long long int llmax = 9223372036854775807ll;
22648 unsigned long long int ullmax = 18446744073709551615ull;
22649 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022650 | (llmax / ll) | (llmax % ll)
22651 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22652 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022653 ;
22654 return 0;
22655}
22656
22657_ACEOF
22658if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022659
22660else
22661 ac_cv_type_unsigned_long_long_int=no
22662fi
22663rm -f core conftest.err conftest.$ac_objext \
22664 conftest$ac_exeext conftest.$ac_ext
22665 fi
22666fi
22667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22668$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22669 if test $ac_cv_type_unsigned_long_long_int = yes; then
22670
22671$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22672
22673 fi
22674
22675
22676
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22678$as_echo_n "checking for long long int... " >&6; }
22679if ${ac_cv_type_long_long_int+:} false; then :
22680 $as_echo_n "(cached) " >&6
22681else
cristy501c8042011-05-26 17:46:28 +000022682 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022683 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022684 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22685 if test $ac_cv_type_long_long_int = yes; then
22686 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022687 :
cristy501c8042011-05-26 17:46:28 +000022688else
22689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22690/* end confdefs.h. */
22691#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022692 #ifndef LLONG_MAX
22693 # define HALF \
22694 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22695 # define LLONG_MAX (HALF - 1 + HALF)
22696 #endif
cristy501c8042011-05-26 17:46:28 +000022697int
22698main ()
22699{
22700long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022701 int i;
22702 for (i = 0; ; i++)
22703 {
22704 long long int m = n << i;
22705 if (m >> i != n)
22706 return 1;
22707 if (LLONG_MAX / 2 < m)
22708 break;
22709 }
22710 return 0;
cristy501c8042011-05-26 17:46:28 +000022711 ;
22712 return 0;
22713}
22714_ACEOF
22715if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022716
cristy501c8042011-05-26 17:46:28 +000022717else
22718 ac_cv_type_long_long_int=no
22719fi
22720rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22721 conftest.$ac_objext conftest.beam conftest.$ac_ext
22722fi
22723
cristy5ed9c6e2013-07-14 21:20:31 +000022724 fi
cristy045228a2013-06-23 11:00:16 +000022725 fi
cristy501c8042011-05-26 17:46:28 +000022726fi
22727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22728$as_echo "$ac_cv_type_long_long_int" >&6; }
22729 if test $ac_cv_type_long_long_int = yes; then
22730
22731$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22732
22733 fi
22734
22735
22736
22737 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22738if test "x$ac_cv_type_intmax_t" = xyes; then :
22739
22740$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22741
22742else
22743 test $ac_cv_type_long_long_int = yes \
22744 && ac_type='long long int' \
22745 || ac_type='long int'
22746
22747cat >>confdefs.h <<_ACEOF
22748#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022749_ACEOF
22750
22751fi
22752
22753
cristy501c8042011-05-26 17:46:28 +000022754
22755 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22756if test "x$ac_cv_type_intptr_t" = xyes; then :
22757
22758$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022759
cristy3ed852e2009-09-05 21:47:34 +000022760else
cristy501c8042011-05-26 17:46:28 +000022761 for ac_type in 'int' 'long int' 'long long int'; do
22762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22763/* end confdefs.h. */
22764$ac_includes_default
22765int
22766main ()
22767{
22768static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022769test_array [0] = 0;
22770return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022771
22772 ;
22773 return 0;
22774}
22775_ACEOF
22776if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022777
22778cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022779#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022780_ACEOF
22781
cristy501c8042011-05-26 17:46:28 +000022782 ac_type=
22783fi
22784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22785 test -z "$ac_type" && break
22786 done
cristy3ed852e2009-09-05 21:47:34 +000022787fi
22788
22789
cristy3ed852e2009-09-05 21:47:34 +000022790
cristy501c8042011-05-26 17:46:28 +000022791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22792$as_echo_n "checking for long double... " >&6; }
22793if ${ac_cv_type_long_double+:} false; then :
22794 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022795else
cristy501c8042011-05-26 17:46:28 +000022796 if test "$GCC" = yes; then
22797 ac_cv_type_long_double=yes
22798 else
22799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22800/* end confdefs.h. */
22801/* The Stardent Vistra knows sizeof (long double), but does
22802 not support it. */
22803 long double foo = 0.0L;
22804int
22805main ()
22806{
22807static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22808 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022809test_array [0] = 0;
22810return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022811
cristy501c8042011-05-26 17:46:28 +000022812 ;
22813 return 0;
22814}
cristy3ed852e2009-09-05 21:47:34 +000022815_ACEOF
cristy501c8042011-05-26 17:46:28 +000022816if ac_fn_c_try_compile "$LINENO"; then :
22817 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022818else
cristy501c8042011-05-26 17:46:28 +000022819 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022820fi
cristy501c8042011-05-26 17:46:28 +000022821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22822 fi
cristy3ed852e2009-09-05 21:47:34 +000022823fi
cristy501c8042011-05-26 17:46:28 +000022824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22825$as_echo "$ac_cv_type_long_double" >&6; }
22826 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022827
cristy501c8042011-05-26 17:46:28 +000022828$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022829
cristy501c8042011-05-26 17:46:28 +000022830 fi
22831
cristy3ed852e2009-09-05 21:47:34 +000022832
cristy8b350f62009-11-15 23:12:43 +000022833 { $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 +000022834$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022835if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022836 $as_echo_n "(cached) " >&6
22837else
cristy8b350f62009-11-15 23:12:43 +000022838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022839/* end confdefs.h. */
22840#include <float.h>
22841 long double const a[] =
22842 {
22843 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22844 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22845 };
22846 long double
22847 f (long double x)
22848 {
22849 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22850 + (x ? f (x) : 'c'));
22851 }
22852
22853int
22854main ()
22855{
22856static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22857 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22858 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22859 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22860 && (int) LDBL_EPSILON == 0
22861 )];
cristy14fefe52012-05-21 00:59:18 +000022862test_array [0] = 0;
22863return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022864
22865 ;
22866 return 0;
22867}
22868_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022869if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022870 ac_cv_type_long_double_wider=yes
22871else
cristy8b350f62009-11-15 23:12:43 +000022872 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022873fi
cristy3ed852e2009-09-05 21:47:34 +000022874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22875fi
cristy8b350f62009-11-15 23:12:43 +000022876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022877$as_echo "$ac_cv_type_long_double_wider" >&6; }
22878 if test $ac_cv_type_long_double_wider = yes; then
22879
cristy8b350f62009-11-15 23:12:43 +000022880$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022881
22882 fi
22883
22884
cristy045228a2013-06-23 11:00:16 +000022885
cristy501c8042011-05-26 17:46:28 +000022886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22887$as_echo_n "checking for long long int... " >&6; }
22888if ${ac_cv_type_long_long_int+:} false; then :
22889 $as_echo_n "(cached) " >&6
22890else
cristy501c8042011-05-26 17:46:28 +000022891 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022892 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022893 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22894 if test $ac_cv_type_long_long_int = yes; then
22895 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022896 :
cristy501c8042011-05-26 17:46:28 +000022897else
22898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22899/* end confdefs.h. */
22900#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022901 #ifndef LLONG_MAX
22902 # define HALF \
22903 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22904 # define LLONG_MAX (HALF - 1 + HALF)
22905 #endif
cristy501c8042011-05-26 17:46:28 +000022906int
22907main ()
22908{
22909long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022910 int i;
22911 for (i = 0; ; i++)
22912 {
22913 long long int m = n << i;
22914 if (m >> i != n)
22915 return 1;
22916 if (LLONG_MAX / 2 < m)
22917 break;
22918 }
22919 return 0;
cristy501c8042011-05-26 17:46:28 +000022920 ;
22921 return 0;
22922}
22923_ACEOF
22924if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022925
cristy501c8042011-05-26 17:46:28 +000022926else
22927 ac_cv_type_long_long_int=no
22928fi
22929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22930 conftest.$ac_objext conftest.beam conftest.$ac_ext
22931fi
22932
cristy5ed9c6e2013-07-14 21:20:31 +000022933 fi
cristy045228a2013-06-23 11:00:16 +000022934 fi
cristy501c8042011-05-26 17:46:28 +000022935fi
22936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22937$as_echo "$ac_cv_type_long_long_int" >&6; }
22938 if test $ac_cv_type_long_long_int = yes; then
22939
22940$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22941
22942 fi
22943
22944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22945$as_echo_n "checking for mbstate_t... " >&6; }
22946if ${ac_cv_type_mbstate_t+:} false; then :
22947 $as_echo_n "(cached) " >&6
22948else
22949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22950/* end confdefs.h. */
22951$ac_includes_default
22952# include <wchar.h>
22953int
22954main ()
22955{
22956mbstate_t x; return sizeof x;
22957 ;
22958 return 0;
22959}
22960_ACEOF
22961if ac_fn_c_try_compile "$LINENO"; then :
22962 ac_cv_type_mbstate_t=yes
22963else
22964 ac_cv_type_mbstate_t=no
22965fi
22966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22967fi
22968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22969$as_echo "$ac_cv_type_mbstate_t" >&6; }
22970 if test $ac_cv_type_mbstate_t = yes; then
22971
22972$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22973
22974 else
22975
22976$as_echo "#define mbstate_t int" >>confdefs.h
22977
22978 fi
22979ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22980if test "x$ac_cv_type_mode_t" = xyes; then :
22981
22982else
22983
22984cat >>confdefs.h <<_ACEOF
22985#define mode_t int
22986_ACEOF
22987
22988fi
22989
22990ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22991if test "x$ac_cv_type_off_t" = xyes; then :
22992
22993else
22994
22995cat >>confdefs.h <<_ACEOF
22996#define off_t long int
22997_ACEOF
22998
22999fi
23000
23001ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23002if test "x$ac_cv_type_pid_t" = xyes; then :
23003
23004else
23005
23006cat >>confdefs.h <<_ACEOF
23007#define pid_t int
23008_ACEOF
23009
23010fi
23011
23012ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23013if test "x$ac_cv_type_size_t" = xyes; then :
23014
23015else
23016
23017cat >>confdefs.h <<_ACEOF
23018#define size_t unsigned int
23019_ACEOF
23020
23021fi
23022
23023ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23024if test "x$ac_cv_type_ssize_t" = xyes; then :
23025
23026else
23027
23028cat >>confdefs.h <<_ACEOF
23029#define ssize_t int
23030_ACEOF
23031
23032fi
23033
23034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23035$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23036if ${ac_cv_type_uid_t+:} false; then :
23037 $as_echo_n "(cached) " >&6
23038else
23039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23040/* end confdefs.h. */
23041#include <sys/types.h>
23042
23043_ACEOF
23044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23045 $EGREP "uid_t" >/dev/null 2>&1; then :
23046 ac_cv_type_uid_t=yes
23047else
23048 ac_cv_type_uid_t=no
23049fi
23050rm -f conftest*
23051
23052fi
23053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23054$as_echo "$ac_cv_type_uid_t" >&6; }
23055if test $ac_cv_type_uid_t = no; then
23056
23057$as_echo "#define uid_t int" >>confdefs.h
23058
23059
23060$as_echo "#define gid_t int" >>confdefs.h
23061
23062fi
23063
23064ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23065case $ac_cv_c_uint8_t in #(
23066 no|yes) ;; #(
23067 *)
23068
23069$as_echo "#define _UINT8_T 1" >>confdefs.h
23070
23071
23072cat >>confdefs.h <<_ACEOF
23073#define uint8_t $ac_cv_c_uint8_t
23074_ACEOF
23075;;
23076 esac
23077
23078ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23079case $ac_cv_c_uint16_t in #(
23080 no|yes) ;; #(
23081 *)
23082
23083
23084cat >>confdefs.h <<_ACEOF
23085#define uint16_t $ac_cv_c_uint16_t
23086_ACEOF
23087;;
23088 esac
23089
23090ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23091case $ac_cv_c_uint32_t in #(
23092 no|yes) ;; #(
23093 *)
23094
23095$as_echo "#define _UINT32_T 1" >>confdefs.h
23096
23097
23098cat >>confdefs.h <<_ACEOF
23099#define uint32_t $ac_cv_c_uint32_t
23100_ACEOF
23101;;
23102 esac
23103
23104ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23105case $ac_cv_c_uint64_t in #(
23106 no|yes) ;; #(
23107 *)
23108
23109$as_echo "#define _UINT64_T 1" >>confdefs.h
23110
23111
23112cat >>confdefs.h <<_ACEOF
23113#define uint64_t $ac_cv_c_uint64_t
23114_ACEOF
23115;;
23116 esac
23117
23118
cristy501c8042011-05-26 17:46:28 +000023119
23120 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23121if test "x$ac_cv_type_uintmax_t" = xyes; then :
23122
23123$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23124
23125else
23126 test $ac_cv_type_unsigned_long_long_int = yes \
23127 && ac_type='unsigned long long int' \
23128 || ac_type='unsigned long int'
23129
23130cat >>confdefs.h <<_ACEOF
23131#define uintmax_t $ac_type
23132_ACEOF
23133
23134fi
23135
23136
23137
23138 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23139if test "x$ac_cv_type_uintptr_t" = xyes; then :
23140
23141$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23142
23143else
23144 for ac_type in 'unsigned int' 'unsigned long int' \
23145 'unsigned long long int'; do
23146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23147/* end confdefs.h. */
23148$ac_includes_default
23149int
23150main ()
23151{
23152static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023153test_array [0] = 0;
23154return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023155
23156 ;
23157 return 0;
23158}
23159_ACEOF
23160if ac_fn_c_try_compile "$LINENO"; then :
23161
23162cat >>confdefs.h <<_ACEOF
23163#define uintptr_t $ac_type
23164_ACEOF
23165
23166 ac_type=
23167fi
23168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23169 test -z "$ac_type" && break
23170 done
23171fi
23172
23173
23174
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23176$as_echo_n "checking for unsigned long long int... " >&6; }
23177if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23178 $as_echo_n "(cached) " >&6
23179else
cristy045228a2013-06-23 11:00:16 +000023180 ac_cv_type_unsigned_long_long_int=yes
23181 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023183/* end confdefs.h. */
23184
23185 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023186 implementations with broken preprocessors. Perhaps this can
23187 be revisited in 2012. In the meantime, code should not expect
23188 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023189 /* Test literals. */
23190 long long int ll = 9223372036854775807ll;
23191 long long int nll = -9223372036854775807LL;
23192 unsigned long long int ull = 18446744073709551615ULL;
23193 /* Test constant expressions. */
23194 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023195 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023196 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023197 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023198 int i = 63;
23199int
23200main ()
23201{
23202/* Test availability of runtime routines for shift and division. */
23203 long long int llmax = 9223372036854775807ll;
23204 unsigned long long int ullmax = 18446744073709551615ull;
23205 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023206 | (llmax / ll) | (llmax % ll)
23207 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23208 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023209 ;
23210 return 0;
23211}
23212
23213_ACEOF
23214if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023215
cristy501c8042011-05-26 17:46:28 +000023216else
23217 ac_cv_type_unsigned_long_long_int=no
23218fi
23219rm -f core conftest.err conftest.$ac_objext \
23220 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023221 fi
cristy501c8042011-05-26 17:46:28 +000023222fi
23223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23224$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23225 if test $ac_cv_type_unsigned_long_long_int = yes; then
23226
23227$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23228
23229 fi
23230
23231
cristyfec31822013-05-23 12:32:12 +000023232# Float_t and double_t are intended to be the the most efficient type.
23233ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23234"
23235if test "x$ac_cv_type_float_t" = xyes; then :
23236
23237cat >>confdefs.h <<_ACEOF
23238#define HAVE_FLOAT_T 1
23239_ACEOF
23240
23241
23242fi
23243
23244ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23245"
23246if test "x$ac_cv_type_double_t" = xyes; then :
23247
23248cat >>confdefs.h <<_ACEOF
23249#define HAVE_DOUBLE_T 1
23250_ACEOF
23251
23252
23253fi
23254
23255# The cast to long int works around a bug in the HP C Compiler
23256# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23257# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23258# This bug is HP SR number 8606223364.
23259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23260$as_echo_n "checking size of float_t... " >&6; }
23261if ${ac_cv_sizeof_float_t+:} false; then :
23262 $as_echo_n "(cached) " >&6
23263else
23264 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23265"; then :
23266
23267else
23268 if test "$ac_cv_type_float_t" = yes; then
23269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23271as_fn_error 77 "cannot compute sizeof (float_t)
23272See \`config.log' for more details" "$LINENO" 5; }
23273 else
23274 ac_cv_sizeof_float_t=0
23275 fi
23276fi
23277
23278fi
23279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23280$as_echo "$ac_cv_sizeof_float_t" >&6; }
23281
23282
23283
23284cat >>confdefs.h <<_ACEOF
23285#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23286_ACEOF
23287
23288
23289# The cast to long int works around a bug in the HP C Compiler
23290# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23291# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23292# This bug is HP SR number 8606223364.
23293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23294$as_echo_n "checking size of double_t... " >&6; }
23295if ${ac_cv_sizeof_double_t+:} false; then :
23296 $as_echo_n "(cached) " >&6
23297else
23298 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23299"; then :
23300
23301else
23302 if test "$ac_cv_type_double_t" = yes; then
23303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23305as_fn_error 77 "cannot compute sizeof (double_t)
23306See \`config.log' for more details" "$LINENO" 5; }
23307 else
23308 ac_cv_sizeof_double_t=0
23309 fi
23310fi
23311
23312fi
23313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23314$as_echo "$ac_cv_sizeof_double_t" >&6; }
23315
23316
23317
23318cat >>confdefs.h <<_ACEOF
23319#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23320_ACEOF
23321
23322
23323
cristy9b86f202012-11-28 21:55:35 +000023324# Get size of float, double and long double for comparaison.
23325# The cast to long int works around a bug in the HP C Compiler
23326# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23327# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23328# This bug is HP SR number 8606223364.
23329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23330$as_echo_n "checking size of float... " >&6; }
23331if ${ac_cv_sizeof_float+:} false; then :
23332 $as_echo_n "(cached) " >&6
23333else
23334 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23335
23336else
23337 if test "$ac_cv_type_float" = yes; then
23338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23340as_fn_error 77 "cannot compute sizeof (float)
23341See \`config.log' for more details" "$LINENO" 5; }
23342 else
23343 ac_cv_sizeof_float=0
23344 fi
23345fi
23346
23347fi
23348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23349$as_echo "$ac_cv_sizeof_float" >&6; }
23350
23351
23352
23353cat >>confdefs.h <<_ACEOF
23354#define SIZEOF_FLOAT $ac_cv_sizeof_float
23355_ACEOF
23356
23357
23358# The cast to long int works around a bug in the HP C Compiler
23359# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23360# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23361# This bug is HP SR number 8606223364.
23362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23363$as_echo_n "checking size of double... " >&6; }
23364if ${ac_cv_sizeof_double+:} false; then :
23365 $as_echo_n "(cached) " >&6
23366else
23367 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23368
23369else
23370 if test "$ac_cv_type_double" = yes; then
23371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23373as_fn_error 77 "cannot compute sizeof (double)
23374See \`config.log' for more details" "$LINENO" 5; }
23375 else
23376 ac_cv_sizeof_double=0
23377 fi
23378fi
23379
23380fi
23381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23382$as_echo "$ac_cv_sizeof_double" >&6; }
23383
23384
23385
23386cat >>confdefs.h <<_ACEOF
23387#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23388_ACEOF
23389
23390
cristyfec31822013-05-23 12:32:12 +000023391# The cast to long int works around a bug in the HP C Compiler
23392# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23393# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23394# This bug is HP SR number 8606223364.
23395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23396$as_echo_n "checking size of long double... " >&6; }
23397if ${ac_cv_sizeof_long_double+:} false; then :
23398 $as_echo_n "(cached) " >&6
23399else
23400 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23401
23402else
23403 if test "$ac_cv_type_long_double" = yes; then
23404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23406as_fn_error 77 "cannot compute sizeof (long double)
23407See \`config.log' for more details" "$LINENO" 5; }
23408 else
23409 ac_cv_sizeof_long_double=0
23410 fi
23411fi
23412
23413fi
23414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23415$as_echo "$ac_cv_sizeof_long_double" >&6; }
23416
23417
23418
23419cat >>confdefs.h <<_ACEOF
23420#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23421_ACEOF
23422
23423
cristyf0cf9a22012-10-24 12:05:01 +000023424
cristy3ed852e2009-09-05 21:47:34 +000023425# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23426# The cast to long int works around a bug in the HP C Compiler
23427# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23428# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23429# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023431$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023432if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023433 $as_echo_n "(cached) " >&6
23434else
cristy8b350f62009-11-15 23:12:43 +000023435 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 +000023436
cristy3ed852e2009-09-05 21:47:34 +000023437else
cristy8b350f62009-11-15 23:12:43 +000023438 if test "$ac_cv_type_signed_short" = yes; then
23439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023441as_fn_error 77 "cannot compute sizeof (signed short)
23442See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023443 else
23444 ac_cv_sizeof_signed_short=0
23445 fi
23446fi
cristy8b350f62009-11-15 23:12:43 +000023447
cristy3ed852e2009-09-05 21:47:34 +000023448fi
cristy8b350f62009-11-15 23:12:43 +000023449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023450$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23451
23452
23453
23454cat >>confdefs.h <<_ACEOF
23455#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23456_ACEOF
23457
23458
23459
23460# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23461# The cast to long int works around a bug in the HP C Compiler
23462# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23463# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23464# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023466$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023467if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023468 $as_echo_n "(cached) " >&6
23469else
cristy8b350f62009-11-15 23:12:43 +000023470 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 +000023471
cristy3ed852e2009-09-05 21:47:34 +000023472else
cristy8b350f62009-11-15 23:12:43 +000023473 if test "$ac_cv_type_unsigned_short" = yes; then
23474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023476as_fn_error 77 "cannot compute sizeof (unsigned short)
23477See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023478 else
23479 ac_cv_sizeof_unsigned_short=0
23480 fi
23481fi
cristy8b350f62009-11-15 23:12:43 +000023482
cristy3ed852e2009-09-05 21:47:34 +000023483fi
cristy8b350f62009-11-15 23:12:43 +000023484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023485$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23486
23487
23488
23489cat >>confdefs.h <<_ACEOF
23490#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23491_ACEOF
23492
23493
23494
23495# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23496# The cast to long int works around a bug in the HP C Compiler
23497# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23498# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23499# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023501$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023502if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023503 $as_echo_n "(cached) " >&6
23504else
cristy8b350f62009-11-15 23:12:43 +000023505 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 +000023506
cristy3ed852e2009-09-05 21:47:34 +000023507else
cristy8b350f62009-11-15 23:12:43 +000023508 if test "$ac_cv_type_signed_int" = yes; then
23509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023511as_fn_error 77 "cannot compute sizeof (signed int)
23512See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023513 else
23514 ac_cv_sizeof_signed_int=0
23515 fi
23516fi
cristy8b350f62009-11-15 23:12:43 +000023517
cristy3ed852e2009-09-05 21:47:34 +000023518fi
cristy8b350f62009-11-15 23:12:43 +000023519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023520$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23521
23522
23523
23524cat >>confdefs.h <<_ACEOF
23525#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23526_ACEOF
23527
23528
23529
23530# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23531# The cast to long int works around a bug in the HP C Compiler
23532# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23533# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23534# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023536$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023537if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023538 $as_echo_n "(cached) " >&6
23539else
cristy8b350f62009-11-15 23:12:43 +000023540 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 +000023541
cristy3ed852e2009-09-05 21:47:34 +000023542else
cristy8b350f62009-11-15 23:12:43 +000023543 if test "$ac_cv_type_unsigned_int" = yes; then
23544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023546as_fn_error 77 "cannot compute sizeof (unsigned int)
23547See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023548 else
23549 ac_cv_sizeof_unsigned_int=0
23550 fi
23551fi
cristy8b350f62009-11-15 23:12:43 +000023552
cristy3ed852e2009-09-05 21:47:34 +000023553fi
cristy8b350f62009-11-15 23:12:43 +000023554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023555$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23556
23557
23558
23559cat >>confdefs.h <<_ACEOF
23560#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23561_ACEOF
23562
23563
23564
23565# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23566# The cast to long int works around a bug in the HP C Compiler
23567# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23568# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23569# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023571$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023572if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023573 $as_echo_n "(cached) " >&6
23574else
cristy8b350f62009-11-15 23:12:43 +000023575 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 +000023576
cristy3ed852e2009-09-05 21:47:34 +000023577else
cristy8b350f62009-11-15 23:12:43 +000023578 if test "$ac_cv_type_signed_long" = yes; then
23579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023581as_fn_error 77 "cannot compute sizeof (signed long)
23582See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023583 else
23584 ac_cv_sizeof_signed_long=0
23585 fi
23586fi
cristy8b350f62009-11-15 23:12:43 +000023587
cristy3ed852e2009-09-05 21:47:34 +000023588fi
cristy8b350f62009-11-15 23:12:43 +000023589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023590$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23591
23592
23593
23594cat >>confdefs.h <<_ACEOF
23595#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23596_ACEOF
23597
23598
23599
23600# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23601# The cast to long int works around a bug in the HP C Compiler
23602# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23603# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23604# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023606$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023607if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023608 $as_echo_n "(cached) " >&6
23609else
cristy8b350f62009-11-15 23:12:43 +000023610 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 +000023611
cristy3ed852e2009-09-05 21:47:34 +000023612else
cristy8b350f62009-11-15 23:12:43 +000023613 if test "$ac_cv_type_unsigned_long" = yes; then
23614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023616as_fn_error 77 "cannot compute sizeof (unsigned long)
23617See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023618 else
23619 ac_cv_sizeof_unsigned_long=0
23620 fi
23621fi
cristy8b350f62009-11-15 23:12:43 +000023622
cristy3ed852e2009-09-05 21:47:34 +000023623fi
cristy8b350f62009-11-15 23:12:43 +000023624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023625$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23626
23627
23628
23629cat >>confdefs.h <<_ACEOF
23630#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23631_ACEOF
23632
23633
23634
23635# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23636# 'signed long long' is not supported then the value defined is zero.
23637# The cast to long int works around a bug in the HP C Compiler
23638# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23639# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23640# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023642$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023643if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023644 $as_echo_n "(cached) " >&6
23645else
cristy8b350f62009-11-15 23:12:43 +000023646 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 +000023647
cristy3ed852e2009-09-05 21:47:34 +000023648else
cristy8b350f62009-11-15 23:12:43 +000023649 if test "$ac_cv_type_signed_long_long" = yes; then
23650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023652as_fn_error 77 "cannot compute sizeof (signed long long)
23653See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023654 else
23655 ac_cv_sizeof_signed_long_long=0
23656 fi
23657fi
cristy8b350f62009-11-15 23:12:43 +000023658
cristy3ed852e2009-09-05 21:47:34 +000023659fi
cristy8b350f62009-11-15 23:12:43 +000023660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023661$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23662
23663
23664
23665cat >>confdefs.h <<_ACEOF
23666#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23667_ACEOF
23668
23669
23670
23671# Obtain size of a 'unsigned long long' and define as
23672# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23673# supported then the value defined is zero.
23674# The cast to long int works around a bug in the HP C Compiler
23675# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23676# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23677# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023679$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023680if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023681 $as_echo_n "(cached) " >&6
23682else
cristy8b350f62009-11-15 23:12:43 +000023683 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 +000023684
cristy3ed852e2009-09-05 21:47:34 +000023685else
cristy8b350f62009-11-15 23:12:43 +000023686 if test "$ac_cv_type_unsigned_long_long" = yes; then
23687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023689as_fn_error 77 "cannot compute sizeof (unsigned long long)
23690See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023691 else
23692 ac_cv_sizeof_unsigned_long_long=0
23693 fi
23694fi
cristy8b350f62009-11-15 23:12:43 +000023695
cristy3ed852e2009-09-05 21:47:34 +000023696fi
cristy8b350f62009-11-15 23:12:43 +000023697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023698$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23699
23700
23701
23702cat >>confdefs.h <<_ACEOF
23703#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23704_ACEOF
23705
23706
23707
cristyfec31822013-05-23 12:32:12 +000023708# Obtain size of off_t and define as SIZEOF_OFF_T
23709# The cast to long int works around a bug in the HP C Compiler
23710# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23711# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23712# This bug is HP SR number 8606223364.
23713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23714$as_echo_n "checking size of off_t... " >&6; }
23715if ${ac_cv_sizeof_off_t+:} false; then :
23716 $as_echo_n "(cached) " >&6
23717else
23718 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23719
23720else
23721 if test "$ac_cv_type_off_t" = yes; then
23722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23724as_fn_error 77 "cannot compute sizeof (off_t)
23725See \`config.log' for more details" "$LINENO" 5; }
23726 else
23727 ac_cv_sizeof_off_t=0
23728 fi
23729fi
23730
23731fi
23732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23733$as_echo "$ac_cv_sizeof_off_t" >&6; }
23734
23735
23736
23737cat >>confdefs.h <<_ACEOF
23738#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23739_ACEOF
23740
23741
23742
23743# Obtain size of size_t and define as SIZEOF_SIZE_T
23744# The cast to long int works around a bug in the HP C Compiler
23745# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23746# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23747# This bug is HP SR number 8606223364.
23748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23749$as_echo_n "checking size of size_t... " >&6; }
23750if ${ac_cv_sizeof_size_t+:} false; then :
23751 $as_echo_n "(cached) " >&6
23752else
23753 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23754
23755else
23756 if test "$ac_cv_type_size_t" = yes; then
23757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23759as_fn_error 77 "cannot compute sizeof (size_t)
23760See \`config.log' for more details" "$LINENO" 5; }
23761 else
23762 ac_cv_sizeof_size_t=0
23763 fi
23764fi
23765
23766fi
23767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23768$as_echo "$ac_cv_sizeof_size_t" >&6; }
23769
23770
23771
23772cat >>confdefs.h <<_ACEOF
23773#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23774_ACEOF
23775
23776
23777
23778# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23779# The cast to long int works around a bug in the HP C Compiler
23780# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23781# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23782# This bug is HP SR number 8606223364.
23783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23784$as_echo_n "checking size of ssize_t... " >&6; }
23785if ${ac_cv_sizeof_ssize_t+:} false; then :
23786 $as_echo_n "(cached) " >&6
23787else
23788 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23789
23790else
23791 if test "$ac_cv_type_ssize_t" = yes; then
23792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23794as_fn_error 77 "cannot compute sizeof (ssize_t)
23795See \`config.log' for more details" "$LINENO" 5; }
23796 else
23797 ac_cv_sizeof_ssize_t=0
23798 fi
23799fi
23800
23801fi
23802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23803$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23804
23805
23806
23807cat >>confdefs.h <<_ACEOF
23808#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23809_ACEOF
23810
23811
23812
cristy3ed852e2009-09-05 21:47:34 +000023813# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23814# The cast to long int works around a bug in the HP C Compiler
23815# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23816# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23817# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023819$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023820if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023821 $as_echo_n "(cached) " >&6
23822else
cristy8b350f62009-11-15 23:12:43 +000023823 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 +000023824
cristy3ed852e2009-09-05 21:47:34 +000023825else
cristy8b350f62009-11-15 23:12:43 +000023826 if test "$ac_cv_type_unsigned_intp" = yes; then
23827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023829as_fn_error 77 "cannot compute sizeof (unsigned int*)
23830See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023831 else
23832 ac_cv_sizeof_unsigned_intp=0
23833 fi
23834fi
cristy8b350f62009-11-15 23:12:43 +000023835
cristy3ed852e2009-09-05 21:47:34 +000023836fi
cristy8b350f62009-11-15 23:12:43 +000023837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023838$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23839
23840
23841
23842cat >>confdefs.h <<_ACEOF
23843#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23844_ACEOF
23845
23846
23847
23848#
23849# Compute sized types for current CPU and compiler options.
23850#
23851
cristy8b350f62009-11-15 23:12:43 +000023852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023853$as_echo_n "checking for signed 8-bit type... " >&6; }
23854INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23856$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023857
23858
cristy8b350f62009-11-15 23:12:43 +000023859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023860$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23861UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23863$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023864
23865
cristy8b350f62009-11-15 23:12:43 +000023866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023867$as_echo_n "checking for signed 16-bit type... " >&6; }
23868INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23870$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023871
23872
cristy8b350f62009-11-15 23:12:43 +000023873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023874$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23875UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23877$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023878
23879
cristy8b350f62009-11-15 23:12:43 +000023880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023881$as_echo_n "checking for signed 32-bit type... " >&6; }
23882INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023883INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023884if test $ac_cv_sizeof_signed_int -eq 4; then
23885 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023886 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023887elif test $ac_cv_sizeof_signed_long -eq 4; then
23888 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023889 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023890fi
cristyad38abe2012-12-23 23:03:21 +000023891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23892$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023893
23894
cristy6d5e20f2011-04-25 13:48:54 +000023895
cristy8b350f62009-11-15 23:12:43 +000023896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023897$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23898UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023899UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023900if test $ac_cv_sizeof_unsigned_int -eq 4; then
23901 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023902 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023903elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23904 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023905 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023906fi
cristyad38abe2012-12-23 23:03:21 +000023907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23908$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023909
23910
cristy6d5e20f2011-04-25 13:48:54 +000023911
cristy8b350f62009-11-15 23:12:43 +000023912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023913$as_echo_n "checking for signed 64-bit type... " >&6; }
23914INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023915INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023916if test $ac_cv_sizeof_signed_long -eq 8; then
23917 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023918 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023919elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23920 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023921 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023922fi
cristy3a99dcf2011-12-17 01:29:40 +000023923case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023924 mingw* )
23925 INT64_F='"I64"'
23926 ;;
23927esac
cristyad38abe2012-12-23 23:03:21 +000023928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23929$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023930
23931
cristy6d5e20f2011-04-25 13:48:54 +000023932
cristy8b350f62009-11-15 23:12:43 +000023933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023934$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23935UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023936UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023937if test $ac_cv_sizeof_unsigned_long -eq 8; then
23938 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023939 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023940elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23941 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023942 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023943fi
cristy3a99dcf2011-12-17 01:29:40 +000023944case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023945 mingw* )
23946 UINT64_F='"I64"'
23947 ;;
23948esac
cristyad38abe2012-12-23 23:03:21 +000023949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23950$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023951
23952
cristy6d5e20f2011-04-25 13:48:54 +000023953
cristy8b350f62009-11-15 23:12:43 +000023954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023955$as_echo_n "checking for unsigned maximum type... " >&6; }
23956UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023957UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023958if test "$UINT64_T" != 'none'; then
23959 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023960 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023961elif test "$UINT32_T" != 'none'; then
23962 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023963 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023964fi
cristyad38abe2012-12-23 23:03:21 +000023965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23966$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023967
23968
cristy6d5e20f2011-04-25 13:48:54 +000023969
cristy8b350f62009-11-15 23:12:43 +000023970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023971$as_echo_n "checking for pointer difference type... " >&6; }
23972UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023973UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023974if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23975 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023976 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023977elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23978 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023979 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023980fi
cristyad38abe2012-12-23 23:03:21 +000023981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23982$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023983
23984
cristy6d5e20f2011-04-25 13:48:54 +000023985
cristy8b350f62009-11-15 23:12:43 +000023986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023987$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023989/* end confdefs.h. */
23990
23991int
23992main ()
23993{
23994{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23995 ;
23996 return 0;
23997}
23998_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023999if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24001$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024002else
cristyad38abe2012-12-23 23:03:21 +000024003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24004$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024006$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024008/* end confdefs.h. */
24009
24010int
24011main ()
24012{
24013{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24014 ;
24015 return 0;
24016}
24017_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024018if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24020$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024021
cristy8b350f62009-11-15 23:12:43 +000024022$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024023
24024else
cristyad38abe2012-12-23 23:03:21 +000024025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24026$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024027
cristy8b350f62009-11-15 23:12:43 +000024028$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024029
24030fi
cristy3ed852e2009-09-05 21:47:34 +000024031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24032fi
cristy3ed852e2009-09-05 21:47:34 +000024033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24034
24035########
24036#
24037# Check for functions
24038#
24039########
cristy8b350f62009-11-15 23:12:43 +000024040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024041$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024042if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024043 $as_echo_n "(cached) " >&6
24044else
cristy8b350f62009-11-15 23:12:43 +000024045 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024046 ac_cv_func_closedir_void=yes
24047else
cristy8b350f62009-11-15 23:12:43 +000024048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024049/* end confdefs.h. */
24050$ac_includes_default
24051#include <$ac_header_dirent>
24052#ifndef __cplusplus
24053int closedir ();
24054#endif
24055
24056int
24057main ()
24058{
24059return closedir (opendir (".")) != 0;
24060 ;
24061 return 0;
24062}
24063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024064if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024065 ac_cv_func_closedir_void=no
24066else
cristy8b350f62009-11-15 23:12:43 +000024067 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024068fi
cristy8b350f62009-11-15 23:12:43 +000024069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24070 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024071fi
24072
cristy3ed852e2009-09-05 21:47:34 +000024073fi
cristy8b350f62009-11-15 23:12:43 +000024074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024075$as_echo "$ac_cv_func_closedir_void" >&6; }
24076if test $ac_cv_func_closedir_void = yes; then
24077
cristy8b350f62009-11-15 23:12:43 +000024078$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024079
24080fi
24081
cristycd4c5312009-11-22 01:19:08 +000024082
24083
24084
24085 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024086do :
24087 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024088ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24089"
cristy98dddb52010-11-04 00:30:15 +000024090if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024091 cat >>confdefs.h <<_ACEOF
24092#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24093_ACEOF
24094
24095fi
24096
24097done
24098
cristycd4c5312009-11-22 01:19:08 +000024099
24100
24101
24102
24103
24104
24105
cristy3ed852e2009-09-05 21:47:34 +000024106for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024107do :
24108 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024109if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024110 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024111#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024112_ACEOF
24113
24114fi
24115done
24116
cristy8b350f62009-11-15 23:12:43 +000024117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024118$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024119if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024120 $as_echo_n "(cached) " >&6
24121else
cristy8b350f62009-11-15 23:12:43 +000024122 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024123 ac_cv_func_mmap_fixed_mapped=no
24124else
cristy8b350f62009-11-15 23:12:43 +000024125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024126/* end confdefs.h. */
24127$ac_includes_default
24128/* malloc might have been renamed as rpl_malloc. */
24129#undef malloc
24130
24131/* Thanks to Mike Haertel and Jim Avera for this test.
24132 Here is a matrix of mmap possibilities:
24133 mmap private not fixed
24134 mmap private fixed at somewhere currently unmapped
24135 mmap private fixed at somewhere already mapped
24136 mmap shared not fixed
24137 mmap shared fixed at somewhere currently unmapped
24138 mmap shared fixed at somewhere already mapped
24139 For private mappings, we should verify that changes cannot be read()
24140 back from the file, nor mmap's back from the file at a different
24141 address. (There have been systems where private was not correctly
24142 implemented like the infamous i386 svr4.0, and systems where the
24143 VM page cache was not coherent with the file system buffer cache
24144 like early versions of FreeBSD and possibly contemporary NetBSD.)
24145 For shared mappings, we should conversely verify that changes get
24146 propagated back to all the places they're supposed to be.
24147
24148 Grep wants private fixed already mapped.
24149 The main things grep needs to know about mmap are:
24150 * does it exist and is it safe to write into the mmap'd area
24151 * how to use it (BSD variants) */
24152
24153#include <fcntl.h>
24154#include <sys/mman.h>
24155
24156#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24157char *malloc ();
24158#endif
24159
24160/* This mess was copied from the GNU getpagesize.h. */
24161#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024162# ifdef _SC_PAGESIZE
24163# define getpagesize() sysconf(_SC_PAGESIZE)
24164# else /* no _SC_PAGESIZE */
24165# ifdef HAVE_SYS_PARAM_H
24166# include <sys/param.h>
24167# ifdef EXEC_PAGESIZE
24168# define getpagesize() EXEC_PAGESIZE
24169# else /* no EXEC_PAGESIZE */
24170# ifdef NBPG
24171# define getpagesize() NBPG * CLSIZE
24172# ifndef CLSIZE
24173# define CLSIZE 1
24174# endif /* no CLSIZE */
24175# else /* no NBPG */
24176# ifdef NBPC
24177# define getpagesize() NBPC
24178# else /* no NBPC */
24179# ifdef PAGESIZE
24180# define getpagesize() PAGESIZE
24181# endif /* PAGESIZE */
24182# endif /* no NBPC */
24183# endif /* no NBPG */
24184# endif /* no EXEC_PAGESIZE */
24185# else /* no HAVE_SYS_PARAM_H */
24186# define getpagesize() 8192 /* punt totally */
24187# endif /* no HAVE_SYS_PARAM_H */
24188# endif /* no _SC_PAGESIZE */
24189
24190#endif /* no HAVE_GETPAGESIZE */
24191
24192int
24193main ()
24194{
24195 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024196 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024197 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024198 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024199
24200 pagesize = getpagesize ();
24201
24202 /* First, make a file with some known garbage in it. */
24203 data = (char *) malloc (pagesize);
24204 if (!data)
24205 return 1;
24206 for (i = 0; i < pagesize; ++i)
24207 *(data + i) = rand ();
24208 umask (0);
24209 fd = creat ("conftest.mmap", 0600);
24210 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024211 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024212 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024213 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024214 close (fd);
24215
cristycd4c5312009-11-22 01:19:08 +000024216 /* Next, check that the tail of a page is zero-filled. File must have
24217 non-zero length, otherwise we risk SIGBUS for entire page. */
24218 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24219 if (fd2 < 0)
24220 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024221 cdata2 = "";
24222 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024223 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024224 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024225 if (data2 == MAP_FAILED)
24226 return 6;
24227 for (i = 0; i < pagesize; ++i)
24228 if (*(data2 + i))
24229 return 7;
24230 close (fd2);
24231 if (munmap (data2, pagesize))
24232 return 8;
24233
cristy3ed852e2009-09-05 21:47:34 +000024234 /* Next, try to mmap the file at a fixed address which already has
24235 something else allocated at it. If we can, also make sure that
24236 we see the same garbage. */
24237 fd = open ("conftest.mmap", O_RDWR);
24238 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024239 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024240 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24241 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024242 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024243 for (i = 0; i < pagesize; ++i)
24244 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024245 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024246
24247 /* Finally, make sure that changes to the mapped area do not
24248 percolate back to the file as seen by read(). (This is a bug on
24249 some variants of i386 svr4.0.) */
24250 for (i = 0; i < pagesize; ++i)
24251 *(data2 + i) = *(data2 + i) + 1;
24252 data3 = (char *) malloc (pagesize);
24253 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024254 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024255 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024256 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024257 for (i = 0; i < pagesize; ++i)
24258 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024259 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024260 close (fd);
24261 return 0;
24262}
24263_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024264if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024265 ac_cv_func_mmap_fixed_mapped=yes
24266else
cristy8b350f62009-11-15 23:12:43 +000024267 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024268fi
cristy8b350f62009-11-15 23:12:43 +000024269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24270 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024271fi
24272
cristy3ed852e2009-09-05 21:47:34 +000024273fi
cristy8b350f62009-11-15 23:12:43 +000024274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024275$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24276if test $ac_cv_func_mmap_fixed_mapped = yes; then
24277
cristy8b350f62009-11-15 23:12:43 +000024278$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024279
24280fi
cristycd4c5312009-11-22 01:19:08 +000024281rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024282
cristy3ed852e2009-09-05 21:47:34 +000024283for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024284do :
24285 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024286if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024287 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024288#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024289_ACEOF
24290
24291fi
24292
24293done
24294
cristy3ed852e2009-09-05 21:47:34 +000024295for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024296do :
24297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24298ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024299if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024300 cat >>confdefs.h <<_ACEOF
24301#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24302_ACEOF
24303
24304fi
24305done
24306
24307if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024309$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024310if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024311 $as_echo_n "(cached) " >&6
24312else
cristy8b350f62009-11-15 23:12:43 +000024313 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024314 ac_cv_func_fork_works=cross
24315else
cristy8b350f62009-11-15 23:12:43 +000024316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024317/* end confdefs.h. */
24318$ac_includes_default
24319int
24320main ()
24321{
24322
24323 /* By Ruediger Kuhlmann. */
24324 return fork () < 0;
24325
24326 ;
24327 return 0;
24328}
24329_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024330if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024331 ac_cv_func_fork_works=yes
24332else
cristy8b350f62009-11-15 23:12:43 +000024333 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024334fi
cristy8b350f62009-11-15 23:12:43 +000024335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24336 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024337fi
24338
cristy3ed852e2009-09-05 21:47:34 +000024339fi
cristy8b350f62009-11-15 23:12:43 +000024340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024341$as_echo "$ac_cv_func_fork_works" >&6; }
24342
24343else
24344 ac_cv_func_fork_works=$ac_cv_func_fork
24345fi
24346if test "x$ac_cv_func_fork_works" = xcross; then
24347 case $host in
24348 *-*-amigaos* | *-*-msdosdjgpp*)
24349 # Override, as these systems have only a dummy fork() stub
24350 ac_cv_func_fork_works=no
24351 ;;
24352 *)
24353 ac_cv_func_fork_works=yes
24354 ;;
24355 esac
cristy8b350f62009-11-15 23:12:43 +000024356 { $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 +000024357$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24358fi
24359ac_cv_func_vfork_works=$ac_cv_func_vfork
24360if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024362$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024363if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024364 $as_echo_n "(cached) " >&6
24365else
cristy8b350f62009-11-15 23:12:43 +000024366 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024367 ac_cv_func_vfork_works=cross
24368else
cristy8b350f62009-11-15 23:12:43 +000024369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024370/* end confdefs.h. */
24371/* Thanks to Paul Eggert for this test. */
24372$ac_includes_default
24373#include <sys/wait.h>
24374#ifdef HAVE_VFORK_H
24375# include <vfork.h>
24376#endif
24377/* On some sparc systems, changes by the child to local and incoming
24378 argument registers are propagated back to the parent. The compiler
24379 is told about this with #include <vfork.h>, but some compilers
24380 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24381 static variable whose address is put into a register that is
24382 clobbered by the vfork. */
24383static void
24384#ifdef __cplusplus
24385sparc_address_test (int arg)
24386# else
24387sparc_address_test (arg) int arg;
24388#endif
24389{
24390 static pid_t child;
24391 if (!child) {
24392 child = vfork ();
24393 if (child < 0) {
24394 perror ("vfork");
24395 _exit(2);
24396 }
24397 if (!child) {
24398 arg = getpid();
24399 write(-1, "", 0);
24400 _exit (arg);
24401 }
24402 }
24403}
24404
24405int
24406main ()
24407{
24408 pid_t parent = getpid ();
24409 pid_t child;
24410
24411 sparc_address_test (0);
24412
24413 child = vfork ();
24414
24415 if (child == 0) {
24416 /* Here is another test for sparc vfork register problems. This
24417 test uses lots of local variables, at least as many local
24418 variables as main has allocated so far including compiler
24419 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24420 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24421 reuse the register of parent for one of the local variables,
24422 since it will think that parent can't possibly be used any more
24423 in this routine. Assigning to the local variable will thus
24424 munge parent in the parent process. */
24425 pid_t
24426 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24427 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24428 /* Convince the compiler that p..p7 are live; otherwise, it might
24429 use the same hardware register for all 8 local variables. */
24430 if (p != p1 || p != p2 || p != p3 || p != p4
24431 || p != p5 || p != p6 || p != p7)
24432 _exit(1);
24433
24434 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24435 from child file descriptors. If the child closes a descriptor
24436 before it execs or exits, this munges the parent's descriptor
24437 as well. Test for this by closing stdout in the child. */
24438 _exit(close(fileno(stdout)) != 0);
24439 } else {
24440 int status;
24441 struct stat st;
24442
24443 while (wait(&status) != child)
24444 ;
24445 return (
24446 /* Was there some problem with vforking? */
24447 child < 0
24448
24449 /* Did the child fail? (This shouldn't happen.) */
24450 || status
24451
24452 /* Did the vfork/compiler bug occur? */
24453 || parent != getpid()
24454
24455 /* Did the file descriptor bug occur? */
24456 || fstat(fileno(stdout), &st) != 0
24457 );
24458 }
24459}
24460_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024461if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024462 ac_cv_func_vfork_works=yes
24463else
cristy8b350f62009-11-15 23:12:43 +000024464 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024465fi
cristy8b350f62009-11-15 23:12:43 +000024466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24467 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024468fi
24469
cristy3ed852e2009-09-05 21:47:34 +000024470fi
cristy8b350f62009-11-15 23:12:43 +000024471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024472$as_echo "$ac_cv_func_vfork_works" >&6; }
24473
24474fi;
24475if test "x$ac_cv_func_fork_works" = xcross; then
24476 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024477 { $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 +000024478$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24479fi
24480
24481if test "x$ac_cv_func_vfork_works" = xyes; then
24482
cristy8b350f62009-11-15 23:12:43 +000024483$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024484
24485else
24486
cristy8b350f62009-11-15 23:12:43 +000024487$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024488
24489fi
24490if test "x$ac_cv_func_fork_works" = xyes; then
24491
cristy8b350f62009-11-15 23:12:43 +000024492$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024493
24494fi
24495
cristy8b350f62009-11-15 23:12:43 +000024496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024497$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024498if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024499 $as_echo_n "(cached) " >&6
24500else
cristy8b350f62009-11-15 23:12:43 +000024501 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024502 ac_cv_func_memcmp_working=no
24503else
cristy8b350f62009-11-15 23:12:43 +000024504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024505/* end confdefs.h. */
24506$ac_includes_default
24507int
24508main ()
24509{
24510
24511 /* Some versions of memcmp are not 8-bit clean. */
24512 char c0 = '\100', c1 = '\200', c2 = '\201';
24513 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24514 return 1;
24515
24516 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24517 or more and with at least one buffer not starting on a 4-byte boundary.
24518 William Lewis provided this test program. */
24519 {
24520 char foo[21];
24521 char bar[21];
24522 int i;
24523 for (i = 0; i < 4; i++)
24524 {
24525 char *a = foo + i;
24526 char *b = bar + i;
24527 strcpy (a, "--------01111111");
24528 strcpy (b, "--------10000000");
24529 if (memcmp (a, b, 16) >= 0)
24530 return 1;
24531 }
24532 return 0;
24533 }
24534
24535 ;
24536 return 0;
24537}
24538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024539if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024540 ac_cv_func_memcmp_working=yes
24541else
cristy8b350f62009-11-15 23:12:43 +000024542 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024543fi
cristy8b350f62009-11-15 23:12:43 +000024544rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24545 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024546fi
24547
cristy3ed852e2009-09-05 21:47:34 +000024548fi
cristy8b350f62009-11-15 23:12:43 +000024549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024550$as_echo "$ac_cv_func_memcmp_working" >&6; }
24551test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24552 *" memcmp.$ac_objext "* ) ;;
24553 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24554 ;;
24555esac
24556
24557
cristy3ed852e2009-09-05 21:47:34 +000024558for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024559do :
24560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24561ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024562if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024563 cat >>confdefs.h <<_ACEOF
24564#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24565_ACEOF
24566
24567fi
24568
24569done
24570
cristy8b350f62009-11-15 23:12:43 +000024571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024572$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024573if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024574 $as_echo_n "(cached) " >&6
24575else
24576 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24577 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24578 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024580/* end confdefs.h. */
24581$ac_includes_default
24582#ifdef HAVE_SYS_SELECT_H
24583# include <sys/select.h>
24584#endif
24585#ifdef HAVE_SYS_SOCKET_H
24586# include <sys/socket.h>
24587#endif
24588
24589int
24590main ()
24591{
24592extern int select ($ac_arg1,
24593 $ac_arg234, $ac_arg234, $ac_arg234,
24594 $ac_arg5);
24595 ;
24596 return 0;
24597}
24598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024599if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024600 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024601fi
cristy3ed852e2009-09-05 21:47:34 +000024602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24603 done
24604 done
24605done
24606# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024607: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024608
24609fi
cristy8b350f62009-11-15 23:12:43 +000024610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024611$as_echo "$ac_cv_func_select_args" >&6; }
24612ac_save_IFS=$IFS; IFS=','
24613set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24614IFS=$ac_save_IFS
24615shift
24616
24617cat >>confdefs.h <<_ACEOF
24618#define SELECT_TYPE_ARG1 $1
24619_ACEOF
24620
24621
24622cat >>confdefs.h <<_ACEOF
24623#define SELECT_TYPE_ARG234 ($2)
24624_ACEOF
24625
24626
24627cat >>confdefs.h <<_ACEOF
24628#define SELECT_TYPE_ARG5 ($3)
24629_ACEOF
24630
24631rm -f conftest*
24632
cristyda16f162011-02-19 23:52:17 +000024633if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024634 $as_echo_n "(cached) " >&6
24635else
24636 ac_cv_func_setvbuf_reversed=no
24637fi
24638
24639
cristy8b350f62009-11-15 23:12:43 +000024640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024641$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024642if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024643 $as_echo_n "(cached) " >&6
24644else
cristy8b350f62009-11-15 23:12:43 +000024645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024646/* end confdefs.h. */
24647#include <sys/types.h>
24648#include <signal.h>
24649
24650int
24651main ()
24652{
24653return *(signal (0, 0)) (0) == 1;
24654 ;
24655 return 0;
24656}
24657_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024658if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024659 ac_cv_type_signal=int
24660else
cristy8b350f62009-11-15 23:12:43 +000024661 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024662fi
cristy3ed852e2009-09-05 21:47:34 +000024663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24664fi
cristy8b350f62009-11-15 23:12:43 +000024665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024666$as_echo "$ac_cv_type_signal" >&6; }
24667
24668cat >>confdefs.h <<_ACEOF
24669#define RETSIGTYPE $ac_cv_type_signal
24670_ACEOF
24671
24672
cristy8b350f62009-11-15 23:12:43 +000024673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024674$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024675if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024676 $as_echo_n "(cached) " >&6
24677else
cristy8b350f62009-11-15 23:12:43 +000024678 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024679 ac_cv_func_strtod=no
24680else
cristy8b350f62009-11-15 23:12:43 +000024681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024682/* end confdefs.h. */
24683
24684$ac_includes_default
24685#ifndef strtod
24686double strtod ();
24687#endif
24688int
24689main()
24690{
24691 {
24692 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24693 char *string = " +69";
24694 char *term;
24695 double value;
24696 value = strtod (string, &term);
24697 if (value != 69 || term != (string + 4))
24698 return 1;
24699 }
24700
24701 {
24702 /* Under Solaris 2.4, strtod returns the wrong value for the
24703 terminating character under some conditions. */
24704 char *string = "NaN";
24705 char *term;
24706 strtod (string, &term);
24707 if (term != string && *(term - 1) == 0)
24708 return 1;
24709 }
24710 return 0;
24711}
24712
24713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024714if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024715 ac_cv_func_strtod=yes
24716else
cristy8b350f62009-11-15 23:12:43 +000024717 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024718fi
cristy8b350f62009-11-15 23:12:43 +000024719rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24720 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024721fi
24722
cristy3ed852e2009-09-05 21:47:34 +000024723fi
cristy8b350f62009-11-15 23:12:43 +000024724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024725$as_echo "$ac_cv_func_strtod" >&6; }
24726if test $ac_cv_func_strtod = no; then
24727 case " $LIBOBJS " in
24728 *" strtod.$ac_objext "* ) ;;
24729 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24730 ;;
24731esac
24732
cristy8b350f62009-11-15 23:12:43 +000024733ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024734if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024735
cristy3ed852e2009-09-05 21:47:34 +000024736fi
24737
cristy3ed852e2009-09-05 21:47:34 +000024738if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024740$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024741if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024742 $as_echo_n "(cached) " >&6
24743else
24744 ac_check_lib_save_LIBS=$LIBS
24745LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024747/* end confdefs.h. */
24748
24749/* Override any GCC internal prototype to avoid an error.
24750 Use char because int might match the return type of a GCC
24751 builtin and then its argument prototype would still apply. */
24752#ifdef __cplusplus
24753extern "C"
24754#endif
24755char pow ();
24756int
24757main ()
24758{
24759return pow ();
24760 ;
24761 return 0;
24762}
24763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024764if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024765 ac_cv_lib_m_pow=yes
24766else
cristy8b350f62009-11-15 23:12:43 +000024767 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024768fi
cristy8b350f62009-11-15 23:12:43 +000024769rm -f core conftest.err conftest.$ac_objext \
24770 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024771LIBS=$ac_check_lib_save_LIBS
24772fi
cristy8b350f62009-11-15 23:12:43 +000024773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024774$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024775if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024776 POW_LIB=-lm
24777else
cristy8b350f62009-11-15 23:12:43 +000024778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024779$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24780fi
24781
24782fi
24783
24784fi
24785
cristy7d4a1d62011-10-13 15:54:12 +000024786ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24787if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24788 ac_have_decl=1
24789else
24790 ac_have_decl=0
24791fi
24792
24793cat >>confdefs.h <<_ACEOF
24794#define HAVE_DECL_STRERROR_R $ac_have_decl
24795_ACEOF
24796
24797for ac_func in strerror_r
24798do :
24799 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24800if test "x$ac_cv_func_strerror_r" = xyes; then :
24801 cat >>confdefs.h <<_ACEOF
24802#define HAVE_STRERROR_R 1
24803_ACEOF
24804
24805fi
24806done
24807
24808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24809$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24810if ${ac_cv_func_strerror_r_char_p+:} false; then :
24811 $as_echo_n "(cached) " >&6
24812else
24813
24814 ac_cv_func_strerror_r_char_p=no
24815 if test $ac_cv_have_decl_strerror_r = yes; then
24816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24817/* end confdefs.h. */
24818$ac_includes_default
24819int
24820main ()
24821{
24822
24823 char buf[100];
24824 char x = *strerror_r (0, buf, sizeof buf);
24825 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024826 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024827
24828 ;
24829 return 0;
24830}
24831_ACEOF
24832if ac_fn_c_try_compile "$LINENO"; then :
24833 ac_cv_func_strerror_r_char_p=yes
24834fi
24835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24836 else
24837 # strerror_r is not declared. Choose between
24838 # systems that have relatively inaccessible declarations for the
24839 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24840 # former has a strerror_r that returns char*, while the latter
24841 # has a strerror_r that returns `int'.
24842 # This test should segfault on the DEC system.
24843 if test "$cross_compiling" = yes; then :
24844 :
24845else
24846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24847/* end confdefs.h. */
24848$ac_includes_default
24849 extern char *strerror_r ();
24850int
24851main ()
24852{
24853char buf[100];
24854 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024855 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024856 ;
24857 return 0;
24858}
24859_ACEOF
24860if ac_fn_c_try_run "$LINENO"; then :
24861 ac_cv_func_strerror_r_char_p=yes
24862fi
24863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24864 conftest.$ac_objext conftest.beam conftest.$ac_ext
24865fi
24866
24867 fi
24868
24869fi
24870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24871$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24872if test $ac_cv_func_strerror_r_char_p = yes; then
24873
24874$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24875
24876fi
24877
cristy3ed852e2009-09-05 21:47:34 +000024878for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024879do :
24880 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024881if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024882 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024883#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024884_ACEOF
24885
cristy8b350f62009-11-15 23:12:43 +000024886ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024887if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024888
cristy8b350f62009-11-15 23:12:43 +000024889$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024890
24891fi
24892
24893fi
24894done
24895
24896
24897
cristy161b9262010-03-20 19:34:32 +000024898#
24899# Find math library
24900#
24901MATH_LIBS=''
24902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24903$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024904if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024905 $as_echo_n "(cached) " >&6
24906else
24907 ac_check_lib_save_LIBS=$LIBS
24908LIBS="-lm $LIBS"
24909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24910/* end confdefs.h. */
24911
24912/* Override any GCC internal prototype to avoid an error.
24913 Use char because int might match the return type of a GCC
24914 builtin and then its argument prototype would still apply. */
24915#ifdef __cplusplus
24916extern "C"
24917#endif
24918char sqrt ();
24919int
24920main ()
24921{
24922return sqrt ();
24923 ;
24924 return 0;
24925}
24926_ACEOF
24927if ac_fn_c_try_link "$LINENO"; then :
24928 ac_cv_lib_m_sqrt=yes
24929else
24930 ac_cv_lib_m_sqrt=no
24931fi
24932rm -f core conftest.err conftest.$ac_objext \
24933 conftest$ac_exeext conftest.$ac_ext
24934LIBS=$ac_check_lib_save_LIBS
24935fi
24936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24937$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024938if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024939 MATH_LIBS="-lm"
24940fi
24941
24942LIBS="$MATH_LIBS $LIBS"
24943
24944
cristy85572162013-01-04 19:19:32 +000024945#
24946# Find socket library
24947#
cristy8a5d7f42013-01-06 15:24:33 +000024948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
24949$as_echo_n "checking for library containing gethostbyname... " >&6; }
24950if ${ac_cv_search_gethostbyname+:} false; then :
24951 $as_echo_n "(cached) " >&6
24952else
24953 ac_func_search_save_LIBS=$LIBS
24954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24955/* end confdefs.h. */
24956
24957/* Override any GCC internal prototype to avoid an error.
24958 Use char because int might match the return type of a GCC
24959 builtin and then its argument prototype would still apply. */
24960#ifdef __cplusplus
24961extern "C"
24962#endif
24963char gethostbyname ();
24964int
24965main ()
24966{
24967return gethostbyname ();
24968 ;
24969 return 0;
24970}
24971_ACEOF
24972for ac_lib in '' resolv nsl; do
24973 if test -z "$ac_lib"; then
24974 ac_res="none required"
24975 else
24976 ac_res=-l$ac_lib
24977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24978 fi
24979 if ac_fn_c_try_link "$LINENO"; then :
24980 ac_cv_search_gethostbyname=$ac_res
24981fi
24982rm -f core conftest.err conftest.$ac_objext \
24983 conftest$ac_exeext
24984 if ${ac_cv_search_gethostbyname+:} false; then :
24985 break
24986fi
24987done
24988if ${ac_cv_search_gethostbyname+:} false; then :
24989
24990else
24991 ac_cv_search_gethostbyname=no
24992fi
24993rm conftest.$ac_ext
24994LIBS=$ac_func_search_save_LIBS
24995fi
24996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
24997$as_echo "$ac_cv_search_gethostbyname" >&6; }
24998ac_res=$ac_cv_search_gethostbyname
24999if test "$ac_res" != no; then :
25000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25001
25002fi
25003
cristy85572162013-01-04 19:19:32 +000025004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25005$as_echo_n "checking for library containing socket... " >&6; }
25006if ${ac_cv_search_socket+:} false; then :
25007 $as_echo_n "(cached) " >&6
25008else
25009 ac_func_search_save_LIBS=$LIBS
25010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25011/* end confdefs.h. */
25012
25013/* Override any GCC internal prototype to avoid an error.
25014 Use char because int might match the return type of a GCC
25015 builtin and then its argument prototype would still apply. */
25016#ifdef __cplusplus
25017extern "C"
25018#endif
25019char socket ();
25020int
25021main ()
25022{
25023return socket ();
25024 ;
25025 return 0;
25026}
25027_ACEOF
25028for ac_lib in '' socket; do
25029 if test -z "$ac_lib"; then
25030 ac_res="none required"
25031 else
25032 ac_res=-l$ac_lib
25033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25034 fi
25035 if ac_fn_c_try_link "$LINENO"; then :
25036 ac_cv_search_socket=$ac_res
25037fi
25038rm -f core conftest.err conftest.$ac_objext \
25039 conftest$ac_exeext
25040 if ${ac_cv_search_socket+:} false; then :
25041 break
25042fi
25043done
25044if ${ac_cv_search_socket+:} false; then :
25045
25046else
25047 ac_cv_search_socket=no
25048fi
25049rm conftest.$ac_ext
25050LIBS=$ac_func_search_save_LIBS
25051fi
25052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25053$as_echo "$ac_cv_search_socket" >&6; }
25054ac_res=$ac_cv_search_socket
25055if test "$ac_res" != no; then :
25056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25057
cristy85572162013-01-04 19:19:32 +000025058
cristy8a5d7f42013-01-06 15:24:33 +000025059$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025060
cristy03f187e2013-01-24 00:22:19 +000025061 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025062
25063fi
25064
25065
25066for 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 +000025067do :
25068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25069ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025070if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025071 cat >>confdefs.h <<_ACEOF
25072#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25073_ACEOF
25074
25075fi
25076done
25077
25078
cristye43a45e2009-09-28 14:49:00 +000025079#
25080# Check for clock_gettime().
25081#
cristy8b350f62009-11-15 23:12:43 +000025082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025083$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025084if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025085 $as_echo_n "(cached) " >&6
25086else
25087 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025089/* end confdefs.h. */
25090
25091/* Override any GCC internal prototype to avoid an error.
25092 Use char because int might match the return type of a GCC
25093 builtin and then its argument prototype would still apply. */
25094#ifdef __cplusplus
25095extern "C"
25096#endif
25097char clock_gettime ();
25098int
25099main ()
25100{
25101return clock_gettime ();
25102 ;
25103 return 0;
25104}
25105_ACEOF
25106for ac_lib in '' rt; do
25107 if test -z "$ac_lib"; then
25108 ac_res="none required"
25109 else
25110 ac_res=-l$ac_lib
25111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25112 fi
cristy8b350f62009-11-15 23:12:43 +000025113 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025114 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025115fi
cristy8b350f62009-11-15 23:12:43 +000025116rm -f core conftest.err conftest.$ac_objext \
25117 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025118 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025119 break
25120fi
25121done
cristyda16f162011-02-19 23:52:17 +000025122if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025123
cristye43a45e2009-09-28 14:49:00 +000025124else
25125 ac_cv_search_clock_gettime=no
25126fi
25127rm conftest.$ac_ext
25128LIBS=$ac_func_search_save_LIBS
25129fi
cristy8b350f62009-11-15 23:12:43 +000025130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025131$as_echo "$ac_cv_search_clock_gettime" >&6; }
25132ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025133if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25135
25136
cristy8b350f62009-11-15 23:12:43 +000025137$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025138
cristy8b350f62009-11-15 23:12:43 +000025139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025140$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025142/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025143
25144 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025145int
25146main ()
25147{
25148clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025149 ;
25150 return 0;
25151}
25152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025153if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025154
cristyad38abe2012-12-23 23:03:21 +000025155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25156$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025157
cristy8b350f62009-11-15 23:12:43 +000025158$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025159
25160
25161else
cristyad38abe2012-12-23 23:03:21 +000025162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25163$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025164
25165fi
cristye43a45e2009-09-28 14:49:00 +000025166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25167
25168else
25169
cristy8b350f62009-11-15 23:12:43 +000025170 for ac_func in gettimeofday ftime
25171do :
25172 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25173ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025174if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025175 cat >>confdefs.h <<_ACEOF
25176#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25177_ACEOF
25178 break
25179fi
25180done
25181
25182
25183
25184fi
25185
25186
cristy3ed852e2009-09-05 21:47:34 +000025187########
25188#
25189# Check for function prototypes
25190#
25191########
25192
cristy8b350f62009-11-15 23:12:43 +000025193ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025194#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025195"
cristyda16f162011-02-19 23:52:17 +000025196if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025197 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025198else
cristy8b350f62009-11-15 23:12:43 +000025199 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025200fi
25201
cristy3ed852e2009-09-05 21:47:34 +000025202cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025203#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025205ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025206#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025207"
cristyda16f162011-02-19 23:52:17 +000025208if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025209 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025210else
cristy8b350f62009-11-15 23:12:43 +000025211 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025212fi
25213
cristy3ed852e2009-09-05 21:47:34 +000025214cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025215#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025216_ACEOF
25217
25218
cristy8b350f62009-11-15 23:12:43 +000025219ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025220#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025221"
cristyda16f162011-02-19 23:52:17 +000025222if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025223 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025224else
cristy8b350f62009-11-15 23:12:43 +000025225 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025226fi
25227
cristy3ed852e2009-09-05 21:47:34 +000025228cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025229#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025230_ACEOF
25231
25232
cristy8b350f62009-11-15 23:12:43 +000025233ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025234#include <stdio.h>
25235#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025236"
cristyda16f162011-02-19 23:52:17 +000025237if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025238 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025239else
cristy8b350f62009-11-15 23:12:43 +000025240 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025241fi
25242
cristy3ed852e2009-09-05 21:47:34 +000025243cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025244#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025245_ACEOF
25246
25247
cristy3ed852e2009-09-05 21:47:34 +000025248########
25249#
25250# C++ Support Tests (For Magick++)
25251#
25252########
25253have_magick_plus_plus='no'
25254if test "$with_magick_plus_plus" = 'yes'; then
25255 OLIBS="$LIBS"
25256 LIBS=''
25257 ac_ext=cpp
25258ac_cpp='$CXXCPP $CPPFLAGS'
25259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25262
25263
25264 # Full set of headers used...
25265 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25266 # functional iomanip iosfwd iostream iterator list string strstream utility
25267 ac_ext=cpp
25268ac_cpp='$CXXCPP $CPPFLAGS'
25269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25272
25273 ac_ext=cpp
25274ac_cpp='$CXXCPP $CPPFLAGS'
25275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25278if test -z "$CXX"; then
25279 if test -n "$CCC"; then
25280 CXX=$CCC
25281 else
25282 if test -n "$ac_tool_prefix"; then
25283 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25284 do
25285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25286set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025288$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025289if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025290 $as_echo_n "(cached) " >&6
25291else
25292 if test -n "$CXX"; then
25293 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25294else
25295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25296for as_dir in $PATH
25297do
25298 IFS=$as_save_IFS
25299 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025300 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025302 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025304 break 2
25305 fi
25306done
cristy8b350f62009-11-15 23:12:43 +000025307 done
cristy3ed852e2009-09-05 21:47:34 +000025308IFS=$as_save_IFS
25309
25310fi
25311fi
25312CXX=$ac_cv_prog_CXX
25313if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025315$as_echo "$CXX" >&6; }
25316else
cristy8b350f62009-11-15 23:12:43 +000025317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025318$as_echo "no" >&6; }
25319fi
25320
25321
25322 test -n "$CXX" && break
25323 done
25324fi
25325if test -z "$CXX"; then
25326 ac_ct_CXX=$CXX
25327 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25328do
25329 # Extract the first word of "$ac_prog", so it can be a program name with args.
25330set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025332$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025333if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025334 $as_echo_n "(cached) " >&6
25335else
25336 if test -n "$ac_ct_CXX"; then
25337 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25338else
25339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25340for as_dir in $PATH
25341do
25342 IFS=$as_save_IFS
25343 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025344 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025346 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025348 break 2
25349 fi
25350done
cristy8b350f62009-11-15 23:12:43 +000025351 done
cristy3ed852e2009-09-05 21:47:34 +000025352IFS=$as_save_IFS
25353
25354fi
25355fi
25356ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25357if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025359$as_echo "$ac_ct_CXX" >&6; }
25360else
cristy8b350f62009-11-15 23:12:43 +000025361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025362$as_echo "no" >&6; }
25363fi
25364
25365
25366 test -n "$ac_ct_CXX" && break
25367done
25368
25369 if test "x$ac_ct_CXX" = x; then
25370 CXX="g++"
25371 else
25372 case $cross_compiling:$ac_tool_warned in
25373yes:)
cristy8b350f62009-11-15 23:12:43 +000025374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25376ac_tool_warned=yes ;;
25377esac
25378 CXX=$ac_ct_CXX
25379 fi
25380fi
25381
25382 fi
25383fi
25384# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025385$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025386set X $ac_compile
25387ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025388for ac_option in --version -v -V -qversion; do
25389 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025390case "(($ac_try" in
25391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25392 *) ac_try_echo=$ac_try;;
25393esac
cristy8b350f62009-11-15 23:12:43 +000025394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25395$as_echo "$ac_try_echo"; } >&5
25396 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025397 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025398 if test -s conftest.err; then
25399 sed '10a\
25400... rest of stderr output deleted ...
25401 10q' conftest.err >conftest.er1
25402 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025403 fi
cristycd4c5312009-11-22 01:19:08 +000025404 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25406 test $ac_status = 0; }
25407done
cristy3ed852e2009-09-05 21:47:34 +000025408
cristy8b350f62009-11-15 23:12:43 +000025409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025410$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025411if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025412 $as_echo_n "(cached) " >&6
25413else
cristy8b350f62009-11-15 23:12:43 +000025414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025415/* end confdefs.h. */
25416
25417int
25418main ()
25419{
25420#ifndef __GNUC__
25421 choke me
25422#endif
25423
25424 ;
25425 return 0;
25426}
25427_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025428if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025429 ac_compiler_gnu=yes
25430else
cristy8b350f62009-11-15 23:12:43 +000025431 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025432fi
cristy3ed852e2009-09-05 21:47:34 +000025433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25434ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25435
25436fi
cristy8b350f62009-11-15 23:12:43 +000025437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025438$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25439if test $ac_compiler_gnu = yes; then
25440 GXX=yes
25441else
25442 GXX=
25443fi
25444ac_test_CXXFLAGS=${CXXFLAGS+set}
25445ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025447$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025448if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025449 $as_echo_n "(cached) " >&6
25450else
25451 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25452 ac_cxx_werror_flag=yes
25453 ac_cv_prog_cxx_g=no
25454 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025456/* end confdefs.h. */
25457
25458int
25459main ()
25460{
25461
25462 ;
25463 return 0;
25464}
25465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025466if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025467 ac_cv_prog_cxx_g=yes
25468else
cristy8b350f62009-11-15 23:12:43 +000025469 CXXFLAGS=""
25470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025471/* end confdefs.h. */
25472
25473int
25474main ()
25475{
25476
25477 ;
25478 return 0;
25479}
25480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025481if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025482
cristy8b350f62009-11-15 23:12:43 +000025483else
25484 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025485 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025487/* end confdefs.h. */
25488
25489int
25490main ()
25491{
25492
25493 ;
25494 return 0;
25495}
25496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025497if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025498 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025499fi
cristy3ed852e2009-09-05 21:47:34 +000025500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25501fi
cristy3ed852e2009-09-05 21:47:34 +000025502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25503fi
cristy3ed852e2009-09-05 21:47:34 +000025504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25505 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25506fi
cristy8b350f62009-11-15 23:12:43 +000025507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025508$as_echo "$ac_cv_prog_cxx_g" >&6; }
25509if test "$ac_test_CXXFLAGS" = set; then
25510 CXXFLAGS=$ac_save_CXXFLAGS
25511elif test $ac_cv_prog_cxx_g = yes; then
25512 if test "$GXX" = yes; then
25513 CXXFLAGS="-g -O2"
25514 else
25515 CXXFLAGS="-g"
25516 fi
25517else
25518 if test "$GXX" = yes; then
25519 CXXFLAGS="-O2"
25520 else
25521 CXXFLAGS=
25522 fi
25523fi
25524ac_ext=cpp
25525ac_cpp='$CXXCPP $CPPFLAGS'
25526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25529
cristy73bd4a52010-10-05 11:24:23 +000025530depcc="$CXX" am_compiler_list=
25531
25532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25533$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025534if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025535 $as_echo_n "(cached) " >&6
25536else
25537 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25538 # We make a subdir and do the tests there. Otherwise we can end up
25539 # making bogus files that we don't know about and never remove. For
25540 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025541 # making a dummy file named 'D' -- because '-MD' means "put the output
25542 # in D".
cristy7247bba2012-02-05 16:37:27 +000025543 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025544 mkdir conftest.dir
25545 # Copy depcomp to subdir because otherwise we won't find it if we're
25546 # using a relative directory.
25547 cp "$am_depcomp" conftest.dir
25548 cd conftest.dir
25549 # We will build objects and dependencies in a subdirectory because
25550 # it helps to detect inapplicable dependency modes. For instance
25551 # both Tru64's cc and ICC support -MD to output dependencies as a
25552 # side effect of compilation, but ICC will put the dependencies in
25553 # the current directory while Tru64 will put them in the object
25554 # directory.
25555 mkdir sub
25556
25557 am_cv_CXX_dependencies_compiler_type=none
25558 if test "$am_compiler_list" = ""; then
25559 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25560 fi
25561 am__universal=false
25562 case " $depcc " in #(
25563 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25564 esac
25565
25566 for depmode in $am_compiler_list; do
25567 # Setup a source with many dependencies, because some compilers
25568 # like to wrap large dependency lists on column 80 (with \), and
25569 # we should not choose a depcomp mode which is confused by this.
25570 #
25571 # We need to recreate these files for each test, as the compiler may
25572 # overwrite some of them when testing with obscure command lines.
25573 # This happens at least with the AIX C compiler.
25574 : > sub/conftest.c
25575 for i in 1 2 3 4 5 6; do
25576 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025577 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25578 # Solaris 10 /bin/sh.
25579 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025580 done
25581 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25582
cristyc0890a62012-07-19 00:18:20 +000025583 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025584 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025585 # handle '-M -o', and we need to detect this. Also, some Intel
25586 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025587 am__obj=sub/conftest.${OBJEXT-o}
25588 am__minus_obj="-o $am__obj"
25589 case $depmode in
25590 gcc)
25591 # This depmode causes a compiler race in universal mode.
25592 test "$am__universal" = false || continue
25593 ;;
25594 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025595 # After this tag, mechanisms are not by side-effect, so they'll
25596 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025597 if test "x$enable_dependency_tracking" = xyes; then
25598 continue
25599 else
25600 break
25601 fi
25602 ;;
cristy7247bba2012-02-05 16:37:27 +000025603 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025604 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025605 # not run yet. These depmodes are late enough in the game, and
25606 # so weak that their functioning should not be impacted.
25607 am__obj=conftest.${OBJEXT-o}
25608 am__minus_obj=
25609 ;;
25610 none) break ;;
25611 esac
25612 if depmode=$depmode \
25613 source=sub/conftest.c object=$am__obj \
25614 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25615 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25616 >/dev/null 2>conftest.err &&
25617 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25618 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25619 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25620 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25621 # icc doesn't choke on unknown options, it will just issue warnings
25622 # or remarks (even with -Werror). So we grep stderr for any message
25623 # that says an option was ignored or not supported.
25624 # When given -MP, icc 7.0 and 7.1 complain thusly:
25625 # icc: Command line warning: ignoring option '-M'; no argument required
25626 # The diagnosis changed in icc 8.0:
25627 # icc: Command line remark: option '-MP' not supported
25628 if (grep 'ignoring option' conftest.err ||
25629 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25630 am_cv_CXX_dependencies_compiler_type=$depmode
25631 break
25632 fi
25633 fi
25634 done
25635
25636 cd ..
25637 rm -rf conftest.dir
25638else
25639 am_cv_CXX_dependencies_compiler_type=none
25640fi
25641
25642fi
25643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25644$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25645CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25646
25647 if
25648 test "x$enable_dependency_tracking" != xno \
25649 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25650 am__fastdepCXX_TRUE=
25651 am__fastdepCXX_FALSE='#'
25652else
25653 am__fastdepCXX_TRUE='#'
25654 am__fastdepCXX_FALSE=
25655fi
25656
25657
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25659$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025660if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025661 $as_echo_n "(cached) " >&6
25662else
25663
25664 ac_ext=cpp
25665ac_cpp='$CXXCPP $CPPFLAGS'
25666ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25667ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25668ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25669
25670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25671/* end confdefs.h. */
25672
25673int f(int x){return 1;}
25674int f(char x){return 1;}
25675int f(bool x){return 1;}
25676
25677int
25678main ()
25679{
25680bool b = true; return f(b);
25681 ;
25682 return 0;
25683}
25684_ACEOF
25685if ac_fn_cxx_try_compile "$LINENO"; then :
25686 ax_cv_cxx_bool=yes
25687else
25688 ax_cv_cxx_bool=no
25689fi
25690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25691 ac_ext=cpp
25692ac_cpp='$CXXCPP $CPPFLAGS'
25693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25696
25697
25698fi
25699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25700$as_echo "$ax_cv_cxx_bool" >&6; }
25701if test "$ax_cv_cxx_bool" = yes; then
25702
25703$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25704
25705fi
25706
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25708$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025709if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025710 $as_echo_n "(cached) " >&6
25711else
25712
25713 ac_ext=cpp
25714ac_cpp='$CXXCPP $CPPFLAGS'
25715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25718
25719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25720/* end confdefs.h. */
25721namespace Outer { namespace Inner { int i = 0; }}
25722int
25723main ()
25724{
25725using namespace Outer::Inner; return i;
25726 ;
25727 return 0;
25728}
25729_ACEOF
25730if ac_fn_cxx_try_compile "$LINENO"; then :
25731 ax_cv_cxx_namespaces=yes
25732else
25733 ax_cv_cxx_namespaces=no
25734fi
25735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25736 ac_ext=cpp
25737ac_cpp='$CXXCPP $CPPFLAGS'
25738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25741
25742
25743fi
25744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25745$as_echo "$ax_cv_cxx_namespaces" >&6; }
25746if test "$ax_cv_cxx_namespaces" = yes; then
25747
25748$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25749
25750fi
25751
25752
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25754$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025755if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025756 $as_echo_n "(cached) " >&6
25757else
25758
25759 ac_ext=cpp
25760ac_cpp='$CXXCPP $CPPFLAGS'
25761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25764
25765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25766/* end confdefs.h. */
25767#include <iostream>
25768 std::istream& is = std::cin;
25769int
25770main ()
25771{
25772
25773 ;
25774 return 0;
25775}
25776_ACEOF
25777if ac_fn_cxx_try_compile "$LINENO"; then :
25778 ax_cv_cxx_have_std_namespace=yes
25779else
25780 ax_cv_cxx_have_std_namespace=no
25781fi
25782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25783 ac_ext=cpp
25784ac_cpp='$CXXCPP $CPPFLAGS'
25785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25788
25789
25790fi
25791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25792$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25793 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25794
25795$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25796
25797 fi
25798
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25800$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025801if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025802 $as_echo_n "(cached) " >&6
25803else
25804
25805
25806 ac_ext=cpp
25807ac_cpp='$CXXCPP $CPPFLAGS'
25808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25811
25812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25813/* end confdefs.h. */
25814#include <iostream>
25815#include <map>
25816#include <iomanip>
25817#include <cmath>
25818#ifdef HAVE_NAMESPACES
25819using namespace std;
25820#endif
25821int
25822main ()
25823{
25824return 0;
25825 ;
25826 return 0;
25827}
25828_ACEOF
25829if ac_fn_cxx_try_compile "$LINENO"; then :
25830 ac_cv_cxx_have_std_libs=yes
25831else
25832 ac_cv_cxx_have_std_libs=no
25833fi
25834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25835 ac_ext=cpp
25836ac_cpp='$CXXCPP $CPPFLAGS'
25837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25840
25841
25842fi
25843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25844$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25845if test "$ac_cv_cxx_have_std_libs" = yes; then
25846
25847$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25848
25849fi
25850
cristy3ed852e2009-09-05 21:47:34 +000025851
25852 OPENMP_CXXFLAGS=
25853 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025854if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025855 enableval=$enable_openmp;
25856fi
25857
25858 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25860$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025861if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025862 $as_echo_n "(cached) " >&6
25863else
cristy8b350f62009-11-15 23:12:43 +000025864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25865/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025866
25867#ifndef _OPENMP
25868 choke me
25869#endif
25870#include <omp.h>
25871int main () { return omp_get_num_threads (); }
25872
25873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025874if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025875 ac_cv_prog_cxx_openmp='none needed'
25876else
cristy8b350f62009-11-15 23:12:43 +000025877 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025878 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25879 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025880 ac_save_CXXFLAGS=$CXXFLAGS
25881 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25883/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025884
25885#ifndef _OPENMP
25886 choke me
25887#endif
25888#include <omp.h>
25889int main () { return omp_get_num_threads (); }
25890
25891_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025892if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025893 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025894fi
cristy8b350f62009-11-15 23:12:43 +000025895rm -f core conftest.err conftest.$ac_objext \
25896 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025897 CXXFLAGS=$ac_save_CXXFLAGS
25898 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25899 break
25900 fi
25901 done
25902fi
cristy8b350f62009-11-15 23:12:43 +000025903rm -f core conftest.err conftest.$ac_objext \
25904 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025905fi
cristy8b350f62009-11-15 23:12:43 +000025906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025907$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25908 case $ac_cv_prog_cxx_openmp in #(
25909 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025910 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025911 *)
cristy8b350f62009-11-15 23:12:43 +000025912 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025913 esac
25914 fi
25915
25916
25917 ac_ext=c
25918ac_cpp='$CPP $CPPFLAGS'
25919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25921ac_compiler_gnu=$ac_cv_c_compiler_gnu
25922
25923
cristy8b350f62009-11-15 23:12:43 +000025924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025925$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25926 if \
cristy964cb7f2010-04-25 23:18:00 +000025927 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025928 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025929 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025930 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025931 have_magick_plus_plus='yes'
25932 else
25933 have_magick_plus_plus='no (failed tests)'
25934 fi
cristyad38abe2012-12-23 23:03:21 +000025935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25936$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025937 LIBS="$OLIBS"
25938fi
cristy73bd4a52010-10-05 11:24:23 +000025939 if test "$have_magick_plus_plus" = 'yes'; then
25940 WITH_MAGICK_PLUS_PLUS_TRUE=
25941 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25942else
25943 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25944 WITH_MAGICK_PLUS_PLUS_FALSE=
25945fi
25946
cristy3ed852e2009-09-05 21:47:34 +000025947
25948# Only check for delegate libraries in subdirectories if requested.
25949if test "$enable_delegate_build" != 'no'; then
25950 # Check for delegate sub-directories and add -I & -L options as required.
25951 # This presumes that delegates are installed as detailed in the ImageMagick
25952 # README. If delegates are installed in a standard location where the
25953 # compiler will automatically find them then these options should not be
25954 # required.
25955
25956 #
25957 # Most delegates have includes in the same directory as the library, but not all...
25958 #
25959 # Includes
cristy2542fc62011-12-06 17:50:25 +000025960 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 +000025961 if test -d "$builddir/$dir"; then
25962 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25963 else
25964 if test -d "$srcdirfull/$dir"; then
25965 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25966 fi
25967 fi
25968 done
25969
25970 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025971 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 +000025972 if test -d "$builddir/$dir/.libs"; then
25973 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25974 else
25975 if test -d "$srcdirfull/$dir/.libs"; then
25976 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25977 fi
25978 fi
25979 if test -d "$builddir/$dir"; then
25980 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25981 else
25982 if test -d "$srcdirfull/$dir"; then
25983 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25984 fi
25985 fi
25986 done
25987fi
25988
25989# Assume that delegate headers reside under same directory as ImageMagick
25990# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000025991MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000025992
25993#
25994# Find the X11 RGB database
25995#
cristy8b350f62009-11-15 23:12:43 +000025996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025997$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025998if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025999 $as_echo_n "(cached) " >&6
26000else
26001 # Look for the header file in a standard set of common directories.
26002# Check X11 before X11Rn because it is often a symlink to the current release.
26003 for ac_dir in \
26004 /lib/usr/lib/X11 \
26005 /usr/X11/lib \
26006 /usr/X11R4/lib \
26007 /usr/X11R5/lib \
26008 /usr/X11R6/lib \
26009 /usr/X11R7/lib \
26010 /usr/X386/lib \
26011 /usr/XFree86/lib/X11 \
26012 /usr/athena/lib \
26013 /usr/lib \
26014 /usr/lib/X11 \
26015 /usr/lib/X11R4 \
26016 /usr/lib/X11R5 \
26017 /usr/lib/X11R6 \
26018 /usr/lib/X11R7 \
26019 /usr/local/X11/lib \
26020 /usr/local/X11R4/lib \
26021 /usr/local/X11R5/lib \
26022 /usr/local/X11R6/lib \
26023 /usr/local/lib \
26024 /usr/local/lib/X11 \
26025 /usr/local/lib/X11R4 \
26026 /usr/local/lib/X11R5 \
26027 /usr/local/lib/X11R6 \
26028 /usr/local/lib/X11R7 \
26029 /usr/local/x11r5/lib \
26030 /usr/lpp/Xamples/lib \
26031 /usr/openwin/lib \
26032 /usr/openwin/share/lib \
26033 /usr/unsupported/lib \
26034 /usr/x386/lib \
26035 ; do
26036 if test -f "$ac_dir/X11/rgb.txt"; then
26037 im_cv_x_configure="$ac_dir/X11/"
26038 break
26039 elif test -f "$ac_dir/rgb.txt"; then
26040 im_cv_x_configure="$ac_dir/"
26041 break
26042 fi
26043
26044 done
26045fi
cristy8b350f62009-11-15 23:12:43 +000026046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026047$as_echo "$im_cv_x_configure" >&6; }
26048X11_CONFIGURE_PATH="$im_cv_x_configure"
26049case "${build_os}" in
26050 mingw* )
26051 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26052 ;;
26053esac
26054
26055cat >>confdefs.h <<_ACEOF
26056#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26057_ACEOF
26058
26059
26060#
26061# Find OpenMP library
26062#
26063GOMP_LIBS=''
26064if test "$enable_openmp" != 'no'; then
26065 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026066 # Open64 (passes for GCC but uses different OpenMP implementation)
26067 if test "x$GOMP_LIBS" = x ; then
26068 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26070$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26071if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26072 $as_echo_n "(cached) " >&6
26073else
26074 ac_check_lib_save_LIBS=$LIBS
26075LIBS="-lopenmp $LIBS"
26076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26077/* end confdefs.h. */
26078
26079/* Override any GCC internal prototype to avoid an error.
26080 Use char because int might match the return type of a GCC
26081 builtin and then its argument prototype would still apply. */
26082#ifdef __cplusplus
26083extern "C"
26084#endif
26085char omp_get_num_procs ();
26086int
26087main ()
26088{
26089return omp_get_num_procs ();
26090 ;
26091 return 0;
26092}
26093_ACEOF
26094if ac_fn_c_try_link "$LINENO"; then :
26095 ac_cv_lib_openmp_omp_get_num_procs=yes
26096else
26097 ac_cv_lib_openmp_omp_get_num_procs=no
26098fi
26099rm -f core conftest.err conftest.$ac_objext \
26100 conftest$ac_exeext conftest.$ac_ext
26101LIBS=$ac_check_lib_save_LIBS
26102fi
26103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26104$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26105if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26106 GOMP_LIBS="-lopenmp"
26107fi
26108
26109 fi
26110 fi
26111 # GCC
26112 if test "x$GOMP_LIBS" = x ; then
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026114$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026115if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026116 $as_echo_n "(cached) " >&6
26117else
26118 ac_check_lib_save_LIBS=$LIBS
26119LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026121/* end confdefs.h. */
26122
26123/* Override any GCC internal prototype to avoid an error.
26124 Use char because int might match the return type of a GCC
26125 builtin and then its argument prototype would still apply. */
26126#ifdef __cplusplus
26127extern "C"
26128#endif
26129char GOMP_parallel_start ();
26130int
26131main ()
26132{
26133return GOMP_parallel_start ();
26134 ;
26135 return 0;
26136}
26137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026138if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026139 ac_cv_lib_gomp_GOMP_parallel_start=yes
26140else
cristy8b350f62009-11-15 23:12:43 +000026141 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026142fi
cristy8b350f62009-11-15 23:12:43 +000026143rm -f core conftest.err conftest.$ac_objext \
26144 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026145LIBS=$ac_check_lib_save_LIBS
26146fi
cristy8b350f62009-11-15 23:12:43 +000026147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026148$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026149if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026150 GOMP_LIBS="-lgomp"
26151fi
cristy18307f12011-12-30 01:20:16 +000026152
26153 fi
cristy3ed852e2009-09-05 21:47:34 +000026154 else
cristy18307f12011-12-30 01:20:16 +000026155 # Sun CC
26156 if test "x$GOMP_LIBS" = x ; then
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026158$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026159if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026160 $as_echo_n "(cached) " >&6
26161else
26162 ac_check_lib_save_LIBS=$LIBS
26163LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026165/* end confdefs.h. */
26166
26167/* Override any GCC internal prototype to avoid an error.
26168 Use char because int might match the return type of a GCC
26169 builtin and then its argument prototype would still apply. */
26170#ifdef __cplusplus
26171extern "C"
26172#endif
26173char sunw_mp_register_warn ();
26174int
26175main ()
26176{
26177return sunw_mp_register_warn ();
26178 ;
26179 return 0;
26180}
26181_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026182if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026183 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26184else
cristy8b350f62009-11-15 23:12:43 +000026185 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026186fi
cristy8b350f62009-11-15 23:12:43 +000026187rm -f core conftest.err conftest.$ac_objext \
26188 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026189LIBS=$ac_check_lib_save_LIBS
26190fi
cristy8b350f62009-11-15 23:12:43 +000026191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026192$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026193if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026194 GOMP_LIBS="-lmtsk"
26195fi
cristy18307f12011-12-30 01:20:16 +000026196
26197 fi
26198 # AIX xlc
26199 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026201$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026202if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026203 $as_echo_n "(cached) " >&6
26204else
26205 ac_check_lib_save_LIBS=$LIBS
26206LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026208/* end confdefs.h. */
26209
26210/* Override any GCC internal prototype to avoid an error.
26211 Use char because int might match the return type of a GCC
26212 builtin and then its argument prototype would still apply. */
26213#ifdef __cplusplus
26214extern "C"
26215#endif
26216char _xlsmpFlush ();
26217int
26218main ()
26219{
26220return _xlsmpFlush ();
26221 ;
26222 return 0;
26223}
26224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026225if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026226 ac_cv_lib_xlsmp__xlsmpFlush=yes
26227else
cristy8b350f62009-11-15 23:12:43 +000026228 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026229fi
cristy8b350f62009-11-15 23:12:43 +000026230rm -f core conftest.err conftest.$ac_objext \
26231 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026232LIBS=$ac_check_lib_save_LIBS
26233fi
cristy8b350f62009-11-15 23:12:43 +000026234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026235$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026236if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026237 GOMP_LIBS="-lxlsmp"
26238fi
cristy18307f12011-12-30 01:20:16 +000026239
26240 fi
26241 # SGI IRIX 6.5 MIPSpro C/C++
26242 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026244$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026245if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026246 $as_echo_n "(cached) " >&6
26247else
26248 ac_check_lib_save_LIBS=$LIBS
26249LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026251/* end confdefs.h. */
26252
26253/* Override any GCC internal prototype to avoid an error.
26254 Use char because int might match the return type of a GCC
26255 builtin and then its argument prototype would still apply. */
26256#ifdef __cplusplus
26257extern "C"
26258#endif
26259char mp_destroy ();
26260int
26261main ()
26262{
26263return mp_destroy ();
26264 ;
26265 return 0;
26266}
26267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026268if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026269 ac_cv_lib_mp_mp_destroy=yes
26270else
cristy8b350f62009-11-15 23:12:43 +000026271 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026272fi
cristy8b350f62009-11-15 23:12:43 +000026273rm -f core conftest.err conftest.$ac_objext \
26274 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026275LIBS=$ac_check_lib_save_LIBS
26276fi
cristy8b350f62009-11-15 23:12:43 +000026277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026278$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026279if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026280 GOMP_LIBS="-lmp"
26281fi
cristy18307f12011-12-30 01:20:16 +000026282
26283 fi
cristy3ed852e2009-09-05 21:47:34 +000026284 fi
26285 LIBS="$GOMP_LIBS $LIBS"
26286fi
26287
26288
cristy3ed852e2009-09-05 21:47:34 +000026289
26290
26291#
26292# Check for umem.
26293#
26294have_umem='no'
26295UMEM_LIBS=''
26296if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026298$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26300$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026301 failed=0
26302 passed=0
cristy8b350f62009-11-15 23:12:43 +000026303 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026304if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026305 passed=`expr $passed + 1`
26306else
26307 failed=`expr $failed + 1`
26308fi
26309
26310
cristy8b350f62009-11-15 23:12:43 +000026311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026312$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026313if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026314 $as_echo_n "(cached) " >&6
26315else
26316 ac_check_lib_save_LIBS=$LIBS
26317LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026319/* end confdefs.h. */
26320
26321/* Override any GCC internal prototype to avoid an error.
26322 Use char because int might match the return type of a GCC
26323 builtin and then its argument prototype would still apply. */
26324#ifdef __cplusplus
26325extern "C"
26326#endif
26327char umem_alloc ();
26328int
26329main ()
26330{
26331return umem_alloc ();
26332 ;
26333 return 0;
26334}
26335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026336if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026337 ac_cv_lib_umem_umem_alloc=yes
26338else
cristy8b350f62009-11-15 23:12:43 +000026339 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026340fi
cristy8b350f62009-11-15 23:12:43 +000026341rm -f core conftest.err conftest.$ac_objext \
26342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026343LIBS=$ac_check_lib_save_LIBS
26344fi
cristy8b350f62009-11-15 23:12:43 +000026345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026346$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026347if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026348 passed=`expr $passed + 1`
26349else
26350 failed=`expr $failed + 1`
26351fi
26352
cristy8b350f62009-11-15 23:12:43 +000026353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026354$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026355if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026356 $as_echo_n "(cached) " >&6
26357else
26358 ac_check_lib_save_LIBS=$LIBS
26359LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026361/* end confdefs.h. */
26362
26363/* Override any GCC internal prototype to avoid an error.
26364 Use char because int might match the return type of a GCC
26365 builtin and then its argument prototype would still apply. */
26366#ifdef __cplusplus
26367extern "C"
26368#endif
26369char umem_free ();
26370int
26371main ()
26372{
26373return umem_free ();
26374 ;
26375 return 0;
26376}
26377_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026378if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026379 ac_cv_lib_umem_umem_free=yes
26380else
cristy8b350f62009-11-15 23:12:43 +000026381 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026382fi
cristy8b350f62009-11-15 23:12:43 +000026383rm -f core conftest.err conftest.$ac_objext \
26384 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026385LIBS=$ac_check_lib_save_LIBS
26386fi
cristy8b350f62009-11-15 23:12:43 +000026387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026388$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026389if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026390 passed=`expr $passed + 1`
26391else
26392 failed=`expr $failed + 1`
26393fi
26394
cristy8b350f62009-11-15 23:12:43 +000026395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026396$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26397 if test $passed -gt 0; then
26398 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26400$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026401 have_umem='no (failed tests)'
26402 else
26403 UMEM_LIBS='-lumem'
26404 LIBS="$UMEM_LIBS $LIBS"
26405
cristy8b350f62009-11-15 23:12:43 +000026406$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026407
cristyad38abe2012-12-23 23:03:21 +000026408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26409$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026410 have_umem='yes'
26411 fi
26412 else
cristyad38abe2012-12-23 23:03:21 +000026413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26414$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026415 fi
26416fi
cristy73bd4a52010-10-05 11:24:23 +000026417 if test "$have_umem" = 'yes'; then
26418 HasUMEM_TRUE=
26419 HasUMEM_FALSE='#'
26420else
26421 HasUMEM_TRUE='#'
26422 HasUMEM_FALSE=
26423fi
26424
cristy3ed852e2009-09-05 21:47:34 +000026425
26426
26427#
26428# Add support for ccmalloc memory debugging library if requested
26429#
26430have_ccmalloc='no'
26431CCMALLOC_LIBS=''
26432if test "$enable_ccmalloc" = 'yes'; then
26433 # Extract the first word of "ccmalloc", so it can be a program name with args.
26434set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026437if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026438 $as_echo_n "(cached) " >&6
26439else
26440 case $CCMALLOCDelegate in
26441 [\\/]* | ?:[\\/]*)
26442 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26443 ;;
26444 *)
26445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26446for as_dir in $PATH
26447do
26448 IFS=$as_save_IFS
26449 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026450 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026452 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026454 break 2
26455 fi
26456done
cristy8b350f62009-11-15 23:12:43 +000026457 done
cristy3ed852e2009-09-05 21:47:34 +000026458IFS=$as_save_IFS
26459
26460 ;;
26461esac
26462fi
26463CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26464if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026466$as_echo "$CCMALLOCDelegate" >&6; }
26467else
cristy8b350f62009-11-15 23:12:43 +000026468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026469$as_echo "no" >&6; }
26470fi
26471
26472
26473 if test -n "$CCMALLOCDelegate"; then
26474 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26475 OLIBS="$LIBS"
26476 # Assume that gcc is used with ccmalloc.
26477 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026479$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026480if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026481 $as_echo_n "(cached) " >&6
26482else
26483 ac_check_lib_save_LIBS=$LIBS
26484LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026486/* end confdefs.h. */
26487
26488/* Override any GCC internal prototype to avoid an error.
26489 Use char because int might match the return type of a GCC
26490 builtin and then its argument prototype would still apply. */
26491#ifdef __cplusplus
26492extern "C"
26493#endif
26494char ccmalloc_malloc ();
26495int
26496main ()
26497{
26498return ccmalloc_malloc ();
26499 ;
26500 return 0;
26501}
26502_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026503if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026504 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26505else
cristy8b350f62009-11-15 23:12:43 +000026506 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026507fi
cristy8b350f62009-11-15 23:12:43 +000026508rm -f core conftest.err conftest.$ac_objext \
26509 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026510LIBS=$ac_check_lib_save_LIBS
26511fi
cristy8b350f62009-11-15 23:12:43 +000026512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026513$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026514if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026515 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26516fi
26517
26518 if test -n "$CCMALLOC_LIBS"; then
26519 LIBS="$OLIBS"
26520 LIBS="$LIBS $CCMALLOC_LIBS"
26521 have_ccmalloc='yes'
26522 else
26523 LIBS="$OLIBS"
26524 fi
26525 fi
26526fi
26527
26528#
cristy944e51f2013-04-16 18:45:02 +000026529# Add support for 'huge pages' if requested
26530#
26531if test "x$enable_hugepages" != "xno"; then :
26532
26533
26534$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26535
26536
26537fi
26538
26539#
cristy3ed852e2009-09-05 21:47:34 +000026540# Add support for efence memory debugging library if requested
26541#
26542if test "$enable_efence" = 'yes'; then
26543 EFENCE_LIBS='-lefence'
26544 LIBS="$EFENCE_LIBS $LIBS"
26545fi
26546
cristy3ed852e2009-09-05 21:47:34 +000026547
26548#
26549# Check for BZLIB
26550#
26551
26552
26553# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026554if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026555 withval=$with_bzlib; with_bzlib=$withval
26556else
26557 with_bzlib='yes'
26558fi
26559
26560
26561if test "$with_bzlib" != 'yes'; then
26562 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26563fi
26564
26565have_bzlib='no'
26566if test "$with_bzlib" != 'no'; then
26567 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26569$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026571$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26573$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026574 failed=0
26575 passed=0
26576 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026577 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026578if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026579 passed=`expr $passed + 1`
26580else
26581 failed=`expr $failed + 1`
26582fi
26583
26584
cristy8b350f62009-11-15 23:12:43 +000026585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026586$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026587if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026588 $as_echo_n "(cached) " >&6
26589else
26590 ac_check_lib_save_LIBS=$LIBS
26591LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026593/* end confdefs.h. */
26594
26595/* Override any GCC internal prototype to avoid an error.
26596 Use char because int might match the return type of a GCC
26597 builtin and then its argument prototype would still apply. */
26598#ifdef __cplusplus
26599extern "C"
26600#endif
26601char BZ2_bzDecompress ();
26602int
26603main ()
26604{
26605return BZ2_bzDecompress ();
26606 ;
26607 return 0;
26608}
26609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026610if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026611 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26612else
cristy8b350f62009-11-15 23:12:43 +000026613 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026614fi
cristy8b350f62009-11-15 23:12:43 +000026615rm -f core conftest.err conftest.$ac_objext \
26616 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026617LIBS=$ac_check_lib_save_LIBS
26618fi
cristy8b350f62009-11-15 23:12:43 +000026619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026620$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026621if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026622 found_libbz=`expr $found_libbz + 1`
26623fi
26624
26625 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026627$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026628if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026629 $as_echo_n "(cached) " >&6
26630else
26631 ac_check_lib_save_LIBS=$LIBS
26632LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026634/* end confdefs.h. */
26635
26636/* Override any GCC internal prototype to avoid an error.
26637 Use char because int might match the return type of a GCC
26638 builtin and then its argument prototype would still apply. */
26639#ifdef __cplusplus
26640extern "C"
26641#endif
26642char _imp__BZ2_decompress ();
26643int
26644main ()
26645{
26646return _imp__BZ2_decompress ();
26647 ;
26648 return 0;
26649}
26650_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026651if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026652 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26653else
cristy8b350f62009-11-15 23:12:43 +000026654 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026655fi
cristy8b350f62009-11-15 23:12:43 +000026656rm -f core conftest.err conftest.$ac_objext \
26657 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026658LIBS=$ac_check_lib_save_LIBS
26659fi
cristy8b350f62009-11-15 23:12:43 +000026660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026661$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026662if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026663 found_libbz=`expr $found_libbz + 1`
26664fi
26665
26666 fi
26667 if test $found_libbz -gt 0; then
26668 passed=`expr $passed + 1`
26669 else
26670 failed=`expr $failed + 1`
26671 fi
cristy8b350f62009-11-15 23:12:43 +000026672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026673$as_echo_n "checking if BZLIB package is complete... " >&6; }
26674 if test $passed -gt 0; then
26675 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26677$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026678 have_bzlib='no (failed tests)'
26679 else
26680 BZLIB_LIBS='-lbz2'
26681 LIBS="$BZLIB_LIBS $LIBS"
26682
cristy8b350f62009-11-15 23:12:43 +000026683$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026684
cristyad38abe2012-12-23 23:03:21 +000026685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26686$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026687 have_bzlib='yes'
26688 fi
26689 else
cristyad38abe2012-12-23 23:03:21 +000026690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26691$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026692 fi
26693fi
cristy73bd4a52010-10-05 11:24:23 +000026694 if test "$have_bzlib" = 'yes'; then
26695 BZLIB_DELEGATE_TRUE=
26696 BZLIB_DELEGATE_FALSE='#'
26697else
26698 BZLIB_DELEGATE_TRUE='#'
26699 BZLIB_DELEGATE_FALSE=
26700fi
26701
cristy3ed852e2009-09-05 21:47:34 +000026702
26703
26704#
26705# Find the X11 include and library directories.
26706#
26707IPC_LIBS=''
26708X11_LIBS=''
26709XEXT_LIBS=''
26710XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026712$as_echo_n "checking for X... " >&6; }
26713
26714
26715# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026716if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026717 withval=$with_x;
26718fi
26719
26720# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26721if test "x$with_x" = xno; then
26722 # The user explicitly disabled X.
26723 have_x=disabled
26724else
26725 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026726 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026727 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026728 $as_echo_n "(cached) " >&6
26729else
26730 # One or both of the vars are not set, and there is no cached value.
26731ac_x_includes=no ac_x_libraries=no
26732rm -f -r conftest.dir
26733if mkdir conftest.dir; then
26734 cd conftest.dir
26735 cat >Imakefile <<'_ACEOF'
26736incroot:
26737 @echo incroot='${INCROOT}'
26738usrlibdir:
26739 @echo usrlibdir='${USRLIBDIR}'
26740libdir:
26741 @echo libdir='${LIBDIR}'
26742_ACEOF
26743 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026744 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026745 for ac_var in incroot usrlibdir libdir; do
26746 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26747 done
26748 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26749 for ac_extension in a so sl dylib la dll; do
26750 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26751 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26752 ac_im_usrlibdir=$ac_im_libdir; break
26753 fi
26754 done
26755 # Screen out bogus values from the imake configuration. They are
26756 # bogus both because they are the default anyway, and because
26757 # using them would break gcc on systems where it needs fixed includes.
26758 case $ac_im_incroot in
26759 /usr/include) ac_x_includes= ;;
26760 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26761 esac
26762 case $ac_im_usrlibdir in
26763 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26764 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26765 esac
26766 fi
26767 cd ..
26768 rm -f -r conftest.dir
26769fi
26770
26771# Standard set of common directories for X headers.
26772# Check X11 before X11Rn because it is often a symlink to the current release.
26773ac_x_header_dirs='
26774/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026775/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026776/usr/X11R6/include
26777/usr/X11R5/include
26778/usr/X11R4/include
26779
26780/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026781/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026782/usr/include/X11R6
26783/usr/include/X11R5
26784/usr/include/X11R4
26785
26786/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026787/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026788/usr/local/X11R6/include
26789/usr/local/X11R5/include
26790/usr/local/X11R4/include
26791
26792/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026793/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026794/usr/local/include/X11R6
26795/usr/local/include/X11R5
26796/usr/local/include/X11R4
26797
26798/usr/X386/include
26799/usr/x386/include
26800/usr/XFree86/include/X11
26801
26802/usr/include
26803/usr/local/include
26804/usr/unsupported/include
26805/usr/athena/include
26806/usr/local/x11r5/include
26807/usr/lpp/Xamples/include
26808
26809/usr/openwin/include
26810/usr/openwin/share/include'
26811
26812if test "$ac_x_includes" = no; then
26813 # Guess where to find include files, by looking for Xlib.h.
26814 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026816/* end confdefs.h. */
26817#include <X11/Xlib.h>
26818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026819if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026820 # We can compile using X headers with no special include directory.
26821ac_x_includes=
26822else
cristyc7083c12009-10-14 03:16:55 +000026823 for ac_dir in $ac_x_header_dirs; do
26824 if test -r "$ac_dir/X11/Xlib.h"; then
26825 ac_x_includes=$ac_dir
26826 break
26827 fi
26828done
26829fi
cristyda16f162011-02-19 23:52:17 +000026830rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026831fi # $ac_x_includes = no
26832
26833if test "$ac_x_libraries" = no; then
26834 # Check for the libraries.
26835 # See if we find them without any special options.
26836 # Don't add to $LIBS permanently.
26837 ac_save_LIBS=$LIBS
26838 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026840/* end confdefs.h. */
26841#include <X11/Xlib.h>
26842int
26843main ()
26844{
26845XrmInitialize ()
26846 ;
26847 return 0;
26848}
26849_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026850if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026851 LIBS=$ac_save_LIBS
26852# We can link X programs with no special library path.
26853ac_x_libraries=
26854else
cristy8b350f62009-11-15 23:12:43 +000026855 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026856for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26857do
26858 # Don't even attempt the hair of trying to link an X program!
26859 for ac_extension in a so sl dylib la dll; do
26860 if test -r "$ac_dir/libX11.$ac_extension"; then
26861 ac_x_libraries=$ac_dir
26862 break 2
26863 fi
26864 done
26865done
26866fi
cristy8b350f62009-11-15 23:12:43 +000026867rm -f core conftest.err conftest.$ac_objext \
26868 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026869fi # $ac_x_libraries = no
26870
26871case $ac_x_includes,$ac_x_libraries in #(
26872 no,* | *,no | *\'*)
26873 # Didn't find X, or a directory has "'" in its name.
26874 ac_cv_have_x="have_x=no";; #(
26875 *)
26876 # Record where we found X for the cache.
26877 ac_cv_have_x="have_x=yes\
26878 ac_x_includes='$ac_x_includes'\
26879 ac_x_libraries='$ac_x_libraries'"
26880esac
26881fi
26882;; #(
26883 *) have_x=yes;;
26884 esac
26885 eval "$ac_cv_have_x"
26886fi # $with_x != no
26887
26888if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026890$as_echo "$have_x" >&6; }
26891 no_x=yes
26892else
26893 # If each of the values was on the command line, it overrides each guess.
26894 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26895 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26896 # Update the cache value to reflect the command line values.
26897 ac_cv_have_x="have_x=yes\
26898 ac_x_includes='$x_includes'\
26899 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026901$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26902fi
26903
cristy3ed852e2009-09-05 21:47:34 +000026904if test "$no_x" = yes; then
26905 # Not all programs may use this symbol, but it does not hurt to define it.
26906
cristy8b350f62009-11-15 23:12:43 +000026907$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026908
26909 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26910else
26911 if test -n "$x_includes"; then
26912 X_CFLAGS="$X_CFLAGS -I$x_includes"
26913 fi
26914
26915 # It would also be nice to do this for all -L options, not just this one.
26916 if test -n "$x_libraries"; then
26917 X_LIBS="$X_LIBS -L$x_libraries"
26918 # For Solaris; some versions of Sun CC require a space after -R and
26919 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026921$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26922 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26923 ac_xsave_c_werror_flag=$ac_c_werror_flag
26924 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026926/* end confdefs.h. */
26927
26928int
26929main ()
26930{
26931
26932 ;
26933 return 0;
26934}
26935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026936if ac_fn_c_try_link "$LINENO"; then :
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026938$as_echo "no" >&6; }
26939 X_LIBS="$X_LIBS -R$x_libraries"
26940else
cristy8b350f62009-11-15 23:12:43 +000026941 LIBS="$ac_xsave_LIBS -R $x_libraries"
26942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026943/* end confdefs.h. */
26944
26945int
26946main ()
26947{
26948
26949 ;
26950 return 0;
26951}
26952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026953if ac_fn_c_try_link "$LINENO"; then :
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026955$as_echo "yes" >&6; }
26956 X_LIBS="$X_LIBS -R $x_libraries"
26957else
cristy8b350f62009-11-15 23:12:43 +000026958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026959$as_echo "neither works" >&6; }
26960fi
cristy8b350f62009-11-15 23:12:43 +000026961rm -f core conftest.err conftest.$ac_objext \
26962 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026963fi
cristy8b350f62009-11-15 23:12:43 +000026964rm -f core conftest.err conftest.$ac_objext \
26965 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026966 ac_c_werror_flag=$ac_xsave_c_werror_flag
26967 LIBS=$ac_xsave_LIBS
26968 fi
26969
26970 # Check for system-dependent libraries X programs must link with.
26971 # Do this before checking for the system-independent R6 libraries
26972 # (-lICE), since we may need -lsocket or whatever for X linking.
26973
26974 if test "$ISC" = yes; then
26975 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26976 else
26977 # Martyn Johnson says this is needed for Ultrix, if the X
26978 # libraries were built with DECnet support. And Karl Berry says
26979 # the Alpha needs dnet_stub (dnet does not exist).
26980 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026982/* end confdefs.h. */
26983
26984/* Override any GCC internal prototype to avoid an error.
26985 Use char because int might match the return type of a GCC
26986 builtin and then its argument prototype would still apply. */
26987#ifdef __cplusplus
26988extern "C"
26989#endif
26990char XOpenDisplay ();
26991int
26992main ()
26993{
26994return XOpenDisplay ();
26995 ;
26996 return 0;
26997}
26998_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026999if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027000
cristy8b350f62009-11-15 23:12:43 +000027001else
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027003$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027004if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027005 $as_echo_n "(cached) " >&6
27006else
27007 ac_check_lib_save_LIBS=$LIBS
27008LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027010/* end confdefs.h. */
27011
27012/* Override any GCC internal prototype to avoid an error.
27013 Use char because int might match the return type of a GCC
27014 builtin and then its argument prototype would still apply. */
27015#ifdef __cplusplus
27016extern "C"
27017#endif
27018char dnet_ntoa ();
27019int
27020main ()
27021{
27022return dnet_ntoa ();
27023 ;
27024 return 0;
27025}
27026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027027if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027028 ac_cv_lib_dnet_dnet_ntoa=yes
27029else
cristy8b350f62009-11-15 23:12:43 +000027030 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027031fi
cristy8b350f62009-11-15 23:12:43 +000027032rm -f core conftest.err conftest.$ac_objext \
27033 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027034LIBS=$ac_check_lib_save_LIBS
27035fi
cristy8b350f62009-11-15 23:12:43 +000027036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027037$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027038if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027039 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27040fi
27041
27042 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027044$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027045if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027046 $as_echo_n "(cached) " >&6
27047else
27048 ac_check_lib_save_LIBS=$LIBS
27049LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027051/* end confdefs.h. */
27052
27053/* Override any GCC internal prototype to avoid an error.
27054 Use char because int might match the return type of a GCC
27055 builtin and then its argument prototype would still apply. */
27056#ifdef __cplusplus
27057extern "C"
27058#endif
27059char dnet_ntoa ();
27060int
27061main ()
27062{
27063return dnet_ntoa ();
27064 ;
27065 return 0;
27066}
27067_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027068if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027069 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27070else
cristy8b350f62009-11-15 23:12:43 +000027071 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027072fi
cristy8b350f62009-11-15 23:12:43 +000027073rm -f core conftest.err conftest.$ac_objext \
27074 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027075LIBS=$ac_check_lib_save_LIBS
27076fi
cristy8b350f62009-11-15 23:12:43 +000027077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027078$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027079if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027080 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27081fi
27082
27083 fi
27084fi
cristy8b350f62009-11-15 23:12:43 +000027085rm -f core conftest.err conftest.$ac_objext \
27086 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027087 LIBS="$ac_xsave_LIBS"
27088
27089 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27090 # to get the SysV transport functions.
27091 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27092 # needs -lnsl.
27093 # The nsl library prevents programs from opening the X display
27094 # on Irix 5.2, according to T.E. Dickey.
27095 # The functions gethostbyname, getservbyname, and inet_addr are
27096 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027097 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027098if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027099
cristy3ed852e2009-09-05 21:47:34 +000027100fi
27101
cristy3ed852e2009-09-05 21:47:34 +000027102 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027104$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027105if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027106 $as_echo_n "(cached) " >&6
27107else
27108 ac_check_lib_save_LIBS=$LIBS
27109LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027111/* end confdefs.h. */
27112
27113/* Override any GCC internal prototype to avoid an error.
27114 Use char because int might match the return type of a GCC
27115 builtin and then its argument prototype would still apply. */
27116#ifdef __cplusplus
27117extern "C"
27118#endif
27119char gethostbyname ();
27120int
27121main ()
27122{
27123return gethostbyname ();
27124 ;
27125 return 0;
27126}
27127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027128if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027129 ac_cv_lib_nsl_gethostbyname=yes
27130else
cristy8b350f62009-11-15 23:12:43 +000027131 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027132fi
cristy8b350f62009-11-15 23:12:43 +000027133rm -f core conftest.err conftest.$ac_objext \
27134 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027135LIBS=$ac_check_lib_save_LIBS
27136fi
cristy8b350f62009-11-15 23:12:43 +000027137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027138$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027139if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027140 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27141fi
27142
27143 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027145$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027146if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027147 $as_echo_n "(cached) " >&6
27148else
27149 ac_check_lib_save_LIBS=$LIBS
27150LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027152/* end confdefs.h. */
27153
27154/* Override any GCC internal prototype to avoid an error.
27155 Use char because int might match the return type of a GCC
27156 builtin and then its argument prototype would still apply. */
27157#ifdef __cplusplus
27158extern "C"
27159#endif
27160char gethostbyname ();
27161int
27162main ()
27163{
27164return gethostbyname ();
27165 ;
27166 return 0;
27167}
27168_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027169if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027170 ac_cv_lib_bsd_gethostbyname=yes
27171else
cristy8b350f62009-11-15 23:12:43 +000027172 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027173fi
cristy8b350f62009-11-15 23:12:43 +000027174rm -f core conftest.err conftest.$ac_objext \
27175 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027176LIBS=$ac_check_lib_save_LIBS
27177fi
cristy8b350f62009-11-15 23:12:43 +000027178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027179$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027180if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027181 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27182fi
27183
27184 fi
27185 fi
27186
27187 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27188 # socket/setsockopt and other routines are undefined under SCO ODT
27189 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27190 # on later versions), says Simon Leinen: it contains gethostby*
27191 # variants that don't use the name server (or something). -lsocket
27192 # must be given before -lnsl if both are needed. We assume that
27193 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027194 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027195if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027196
cristy3ed852e2009-09-05 21:47:34 +000027197fi
27198
cristy3ed852e2009-09-05 21:47:34 +000027199 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027201$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027202if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027203 $as_echo_n "(cached) " >&6
27204else
27205 ac_check_lib_save_LIBS=$LIBS
27206LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027208/* end confdefs.h. */
27209
27210/* Override any GCC internal prototype to avoid an error.
27211 Use char because int might match the return type of a GCC
27212 builtin and then its argument prototype would still apply. */
27213#ifdef __cplusplus
27214extern "C"
27215#endif
27216char connect ();
27217int
27218main ()
27219{
27220return connect ();
27221 ;
27222 return 0;
27223}
27224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027225if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027226 ac_cv_lib_socket_connect=yes
27227else
cristy8b350f62009-11-15 23:12:43 +000027228 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027229fi
cristy8b350f62009-11-15 23:12:43 +000027230rm -f core conftest.err conftest.$ac_objext \
27231 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027232LIBS=$ac_check_lib_save_LIBS
27233fi
cristy8b350f62009-11-15 23:12:43 +000027234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027235$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027236if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027237 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27238fi
27239
27240 fi
27241
27242 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027243 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027244if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027245
cristy3ed852e2009-09-05 21:47:34 +000027246fi
27247
cristy3ed852e2009-09-05 21:47:34 +000027248 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027250$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027251if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027252 $as_echo_n "(cached) " >&6
27253else
27254 ac_check_lib_save_LIBS=$LIBS
27255LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027257/* end confdefs.h. */
27258
27259/* Override any GCC internal prototype to avoid an error.
27260 Use char because int might match the return type of a GCC
27261 builtin and then its argument prototype would still apply. */
27262#ifdef __cplusplus
27263extern "C"
27264#endif
27265char remove ();
27266int
27267main ()
27268{
27269return remove ();
27270 ;
27271 return 0;
27272}
27273_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027274if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027275 ac_cv_lib_posix_remove=yes
27276else
cristy8b350f62009-11-15 23:12:43 +000027277 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027278fi
cristy8b350f62009-11-15 23:12:43 +000027279rm -f core conftest.err conftest.$ac_objext \
27280 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027281LIBS=$ac_check_lib_save_LIBS
27282fi
cristy8b350f62009-11-15 23:12:43 +000027283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027284$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027285if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027286 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27287fi
27288
27289 fi
27290
27291 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027292 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027293if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027294
cristy3ed852e2009-09-05 21:47:34 +000027295fi
27296
cristy3ed852e2009-09-05 21:47:34 +000027297 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027299$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027300if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027301 $as_echo_n "(cached) " >&6
27302else
27303 ac_check_lib_save_LIBS=$LIBS
27304LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027306/* end confdefs.h. */
27307
27308/* Override any GCC internal prototype to avoid an error.
27309 Use char because int might match the return type of a GCC
27310 builtin and then its argument prototype would still apply. */
27311#ifdef __cplusplus
27312extern "C"
27313#endif
27314char shmat ();
27315int
27316main ()
27317{
27318return shmat ();
27319 ;
27320 return 0;
27321}
27322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027323if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027324 ac_cv_lib_ipc_shmat=yes
27325else
cristy8b350f62009-11-15 23:12:43 +000027326 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027327fi
cristy8b350f62009-11-15 23:12:43 +000027328rm -f core conftest.err conftest.$ac_objext \
27329 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027330LIBS=$ac_check_lib_save_LIBS
27331fi
cristy8b350f62009-11-15 23:12:43 +000027332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027333$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027334if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027335 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27336fi
27337
27338 fi
27339 fi
27340
27341 # Check for libraries that X11R6 Xt/Xaw programs need.
27342 ac_save_LDFLAGS=$LDFLAGS
27343 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27344 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27345 # check for ICE first), but we must link in the order -lSM -lICE or
27346 # we get undefined symbols. So assume we have SM if we have ICE.
27347 # These have to be linked with before -lX11, unlike the other
27348 # libraries we check for below, so use a different variable.
27349 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027351$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027352if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027353 $as_echo_n "(cached) " >&6
27354else
27355 ac_check_lib_save_LIBS=$LIBS
27356LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027358/* end confdefs.h. */
27359
27360/* Override any GCC internal prototype to avoid an error.
27361 Use char because int might match the return type of a GCC
27362 builtin and then its argument prototype would still apply. */
27363#ifdef __cplusplus
27364extern "C"
27365#endif
27366char IceConnectionNumber ();
27367int
27368main ()
27369{
27370return IceConnectionNumber ();
27371 ;
27372 return 0;
27373}
27374_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027375if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027376 ac_cv_lib_ICE_IceConnectionNumber=yes
27377else
cristy8b350f62009-11-15 23:12:43 +000027378 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027379fi
cristy8b350f62009-11-15 23:12:43 +000027380rm -f core conftest.err conftest.$ac_objext \
27381 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027382LIBS=$ac_check_lib_save_LIBS
27383fi
cristy8b350f62009-11-15 23:12:43 +000027384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027385$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027386if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027387 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27388fi
27389
27390 LDFLAGS=$ac_save_LDFLAGS
27391
27392fi
27393
27394if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27396$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027398$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27400$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027401 LDFLAGS="$LDFLAGS $X_LIBS"
27402 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27403 LIBS="$X11_LIBS $LIBS"
27404 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27405
27406
cristy8b350f62009-11-15 23:12:43 +000027407$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027408
27409 #
27410 # Check for X11 shared memory extension
27411 #
27412 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027413 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027414if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027415 have_shmctl='yes'
27416fi
27417
27418 if test "$have_shmctl" != 'yes'; then
27419 PERSIST_LIBS=$LIBS
27420 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027422/* end confdefs.h. */
27423
27424/* Override any GCC internal prototype to avoid an error.
27425 Use char because int might match the return type of a GCC
27426 builtin and then its argument prototype would still apply. */
27427#ifdef __cplusplus
27428extern "C"
27429#endif
27430char shmctl ();
27431int
27432main ()
27433{
27434return shmctl ();
27435 ;
27436 return 0;
27437}
27438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027439if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027440 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027441fi
cristy8b350f62009-11-15 23:12:43 +000027442rm -f core conftest.err conftest.$ac_objext \
27443 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027444 LIBS=$PERSIST_LIBS
27445 fi
27446
27447 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027449$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027450if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027451 $as_echo_n "(cached) " >&6
27452else
27453 ac_check_lib_save_LIBS=$LIBS
27454LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027456/* end confdefs.h. */
27457
27458/* Override any GCC internal prototype to avoid an error.
27459 Use char because int might match the return type of a GCC
27460 builtin and then its argument prototype would still apply. */
27461#ifdef __cplusplus
27462extern "C"
27463#endif
27464char XShmAttach ();
27465int
27466main ()
27467{
27468return XShmAttach ();
27469 ;
27470 return 0;
27471}
27472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027473if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027474 ac_cv_lib_Xext_XShmAttach=yes
27475else
cristy8b350f62009-11-15 23:12:43 +000027476 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027477fi
cristy8b350f62009-11-15 23:12:43 +000027478rm -f core conftest.err conftest.$ac_objext \
27479 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027480LIBS=$ac_check_lib_save_LIBS
27481fi
cristy8b350f62009-11-15 23:12:43 +000027482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027483$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027484if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027485 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027486$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027487
27488fi
27489
27490 fi
27491
27492 #
27493 # Check for X11 shape extension
27494 #
cristy8b350f62009-11-15 23:12:43 +000027495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027496$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027497if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027498 $as_echo_n "(cached) " >&6
27499else
27500 ac_check_lib_save_LIBS=$LIBS
27501LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027503/* end confdefs.h. */
27504
27505/* Override any GCC internal prototype to avoid an error.
27506 Use char because int might match the return type of a GCC
27507 builtin and then its argument prototype would still apply. */
27508#ifdef __cplusplus
27509extern "C"
27510#endif
27511char XShapeCombineMask ();
27512int
27513main ()
27514{
27515return XShapeCombineMask ();
27516 ;
27517 return 0;
27518}
27519_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027520if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027521 ac_cv_lib_Xext_XShapeCombineMask=yes
27522else
cristy8b350f62009-11-15 23:12:43 +000027523 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027524fi
cristy8b350f62009-11-15 23:12:43 +000027525rm -f core conftest.err conftest.$ac_objext \
27526 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027527LIBS=$ac_check_lib_save_LIBS
27528fi
cristy8b350f62009-11-15 23:12:43 +000027529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027530$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027531if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027532 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027533$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027534
27535fi
27536
cristy8b350f62009-11-15 23:12:43 +000027537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027538$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027539if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027540 $as_echo_n "(cached) " >&6
27541else
27542 ac_check_lib_save_LIBS=$LIBS
27543LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027545/* end confdefs.h. */
27546
27547/* Override any GCC internal prototype to avoid an error.
27548 Use char because int might match the return type of a GCC
27549 builtin and then its argument prototype would still apply. */
27550#ifdef __cplusplus
27551extern "C"
27552#endif
27553char XtSetEventDispatcher ();
27554int
27555main ()
27556{
27557return XtSetEventDispatcher ();
27558 ;
27559 return 0;
27560}
27561_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027562if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027563 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27564else
cristy8b350f62009-11-15 23:12:43 +000027565 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027566fi
cristy8b350f62009-11-15 23:12:43 +000027567rm -f core conftest.err conftest.$ac_objext \
27568 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027569LIBS=$ac_check_lib_save_LIBS
27570fi
cristy8b350f62009-11-15 23:12:43 +000027571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027572$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027573if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027574 XT_LIBS='-lXt'
27575fi
27576
27577 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27578fi
27579if test "$no_x" != 'yes'; then
27580 have_x='yes'
27581else
27582 have_x='no'
27583fi
cristy73bd4a52010-10-05 11:24:23 +000027584 if test "$have_x" = 'yes'; then
27585 X11_DELEGATE_TRUE=
27586 X11_DELEGATE_FALSE='#'
27587else
27588 X11_DELEGATE_TRUE='#'
27589 X11_DELEGATE_FALSE=
27590fi
27591
cristy3ed852e2009-09-05 21:47:34 +000027592
27593
27594
27595
27596#
27597# Check for ZLIB
27598#
27599
27600# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027601if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027602 withval=$with_zlib; with_zlib=$withval
27603else
27604 with_zlib='yes'
27605fi
27606
27607
27608if test "$with_zlib" != 'yes'; then
27609 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27610fi
27611
27612have_zlib='no'
27613ZLIB_LIBS=''
27614if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27616$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027618$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27620$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027621 ZLIB_LIBS=''
27622 failed=0
27623 passed=0
cristy8b350f62009-11-15 23:12:43 +000027624 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027625if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027626 passed=`expr $passed + 1`
27627else
27628 failed=`expr $failed + 1`
27629fi
27630
27631
cristy8b350f62009-11-15 23:12:43 +000027632 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027633if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027634 passed=`expr $passed + 1`
27635else
27636 failed=`expr $failed + 1`
27637fi
27638
27639
cristy8b350f62009-11-15 23:12:43 +000027640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027641$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027642if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027643 $as_echo_n "(cached) " >&6
27644else
27645 ac_check_lib_save_LIBS=$LIBS
27646LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027648/* end confdefs.h. */
27649
27650/* Override any GCC internal prototype to avoid an error.
27651 Use char because int might match the return type of a GCC
27652 builtin and then its argument prototype would still apply. */
27653#ifdef __cplusplus
27654extern "C"
27655#endif
27656char compress ();
27657int
27658main ()
27659{
27660return compress ();
27661 ;
27662 return 0;
27663}
27664_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027665if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027666 ac_cv_lib_z_compress=yes
27667else
cristy8b350f62009-11-15 23:12:43 +000027668 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027669fi
cristy8b350f62009-11-15 23:12:43 +000027670rm -f core conftest.err conftest.$ac_objext \
27671 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027672LIBS=$ac_check_lib_save_LIBS
27673fi
cristy8b350f62009-11-15 23:12:43 +000027674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027675$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027676if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027677 passed=`expr $passed + 1`
27678else
27679 failed=`expr $failed + 1`
27680fi
27681
cristy8b350f62009-11-15 23:12:43 +000027682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027683$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027684if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027685 $as_echo_n "(cached) " >&6
27686else
27687 ac_check_lib_save_LIBS=$LIBS
27688LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027690/* end confdefs.h. */
27691
27692/* Override any GCC internal prototype to avoid an error.
27693 Use char because int might match the return type of a GCC
27694 builtin and then its argument prototype would still apply. */
27695#ifdef __cplusplus
27696extern "C"
27697#endif
27698char uncompress ();
27699int
27700main ()
27701{
27702return uncompress ();
27703 ;
27704 return 0;
27705}
27706_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027707if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027708 ac_cv_lib_z_uncompress=yes
27709else
cristy8b350f62009-11-15 23:12:43 +000027710 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027711fi
cristy8b350f62009-11-15 23:12:43 +000027712rm -f core conftest.err conftest.$ac_objext \
27713 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027714LIBS=$ac_check_lib_save_LIBS
27715fi
cristy8b350f62009-11-15 23:12:43 +000027716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027717$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027718if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027719 passed=`expr $passed + 1`
27720else
27721 failed=`expr $failed + 1`
27722fi
27723
cristy8b350f62009-11-15 23:12:43 +000027724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027725$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027726if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027727 $as_echo_n "(cached) " >&6
27728else
27729 ac_check_lib_save_LIBS=$LIBS
27730LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027732/* end confdefs.h. */
27733
27734/* Override any GCC internal prototype to avoid an error.
27735 Use char because int might match the return type of a GCC
27736 builtin and then its argument prototype would still apply. */
27737#ifdef __cplusplus
27738extern "C"
27739#endif
27740char deflate ();
27741int
27742main ()
27743{
27744return deflate ();
27745 ;
27746 return 0;
27747}
27748_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027749if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027750 ac_cv_lib_z_deflate=yes
27751else
cristy8b350f62009-11-15 23:12:43 +000027752 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027753fi
cristy8b350f62009-11-15 23:12:43 +000027754rm -f core conftest.err conftest.$ac_objext \
27755 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027756LIBS=$ac_check_lib_save_LIBS
27757fi
cristy8b350f62009-11-15 23:12:43 +000027758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027759$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027760if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027761 passed=`expr $passed + 1`
27762else
27763 failed=`expr $failed + 1`
27764fi
27765
cristy8b350f62009-11-15 23:12:43 +000027766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027767$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027768if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027769 $as_echo_n "(cached) " >&6
27770else
27771 ac_check_lib_save_LIBS=$LIBS
27772LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027774/* end confdefs.h. */
27775
27776/* Override any GCC internal prototype to avoid an error.
27777 Use char because int might match the return type of a GCC
27778 builtin and then its argument prototype would still apply. */
27779#ifdef __cplusplus
27780extern "C"
27781#endif
27782char inflate ();
27783int
27784main ()
27785{
27786return inflate ();
27787 ;
27788 return 0;
27789}
27790_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027791if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027792 ac_cv_lib_z_inflate=yes
27793else
cristy8b350f62009-11-15 23:12:43 +000027794 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027795fi
cristy8b350f62009-11-15 23:12:43 +000027796rm -f core conftest.err conftest.$ac_objext \
27797 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027798LIBS=$ac_check_lib_save_LIBS
27799fi
cristy8b350f62009-11-15 23:12:43 +000027800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027801$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027802if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027803 passed=`expr $passed + 1`
27804else
27805 failed=`expr $failed + 1`
27806fi
27807
cristy8b350f62009-11-15 23:12:43 +000027808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027809$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027810if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027811 $as_echo_n "(cached) " >&6
27812else
27813 ac_check_lib_save_LIBS=$LIBS
27814LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027816/* end confdefs.h. */
27817
27818/* Override any GCC internal prototype to avoid an error.
27819 Use char because int might match the return type of a GCC
27820 builtin and then its argument prototype would still apply. */
27821#ifdef __cplusplus
27822extern "C"
27823#endif
27824char gzseek ();
27825int
27826main ()
27827{
27828return gzseek ();
27829 ;
27830 return 0;
27831}
27832_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027833if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027834 ac_cv_lib_z_gzseek=yes
27835else
cristy8b350f62009-11-15 23:12:43 +000027836 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027837fi
cristy8b350f62009-11-15 23:12:43 +000027838rm -f core conftest.err conftest.$ac_objext \
27839 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027840LIBS=$ac_check_lib_save_LIBS
27841fi
cristy8b350f62009-11-15 23:12:43 +000027842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027843$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027844if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027845 passed=`expr $passed + 1`
27846else
27847 failed=`expr $failed + 1`
27848fi
27849
cristy8b350f62009-11-15 23:12:43 +000027850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027851$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027852if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027853 $as_echo_n "(cached) " >&6
27854else
27855 ac_check_lib_save_LIBS=$LIBS
27856LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027858/* end confdefs.h. */
27859
27860/* Override any GCC internal prototype to avoid an error.
27861 Use char because int might match the return type of a GCC
27862 builtin and then its argument prototype would still apply. */
27863#ifdef __cplusplus
27864extern "C"
27865#endif
27866char gztell ();
27867int
27868main ()
27869{
27870return gztell ();
27871 ;
27872 return 0;
27873}
27874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027875if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027876 ac_cv_lib_z_gztell=yes
27877else
cristy8b350f62009-11-15 23:12:43 +000027878 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027879fi
cristy8b350f62009-11-15 23:12:43 +000027880rm -f core conftest.err conftest.$ac_objext \
27881 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027882LIBS=$ac_check_lib_save_LIBS
27883fi
cristy8b350f62009-11-15 23:12:43 +000027884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027885$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027886if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027887 passed=`expr $passed + 1`
27888else
27889 failed=`expr $failed + 1`
27890fi
27891
cristy8b350f62009-11-15 23:12:43 +000027892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027893$as_echo_n "checking if ZLIB package is complete... " >&6; }
27894 if test $passed -gt 0; then
27895 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27897$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027898 have_zlib='no (failed tests)'
27899 else
27900 ZLIB_LIBS='-lz'
27901 LIBS="$ZLIB_LIBS $LIBS"
27902
cristy8b350f62009-11-15 23:12:43 +000027903$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027904
cristyad38abe2012-12-23 23:03:21 +000027905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27906$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027907 have_zlib='yes'
27908 fi
27909 else
cristyad38abe2012-12-23 23:03:21 +000027910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27911$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027912 fi
27913fi
cristy73bd4a52010-10-05 11:24:23 +000027914 if test "$have_zlib" = 'yes'; then
27915 ZLIB_DELEGATE_TRUE=
27916 ZLIB_DELEGATE_FALSE='#'
27917else
27918 ZLIB_DELEGATE_TRUE='#'
27919 ZLIB_DELEGATE_FALSE=
27920fi
27921
cristy3ed852e2009-09-05 21:47:34 +000027922
27923
cristy5eef09f2012-10-16 12:08:28 +000027924# whether modules are built or not.
27925with_ltdl='yes'
27926have_ltdl='no'
27927LTDL_LIBS=''
27928if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000027929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27930$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000027931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
27932$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27934$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000027935 failed=0
27936 passed=0
27937 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
27938if test "x$ac_cv_header_ltdl_h" = xyes; then :
27939 passed=`expr $passed + 1`
27940else
27941 failed=`expr $failed + 1`
27942fi
27943
27944
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
27946$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
27947if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
27948 $as_echo_n "(cached) " >&6
27949else
27950 ac_check_lib_save_LIBS=$LIBS
27951LIBS="-lltdl $LIBS"
27952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27953/* end confdefs.h. */
27954
27955/* Override any GCC internal prototype to avoid an error.
27956 Use char because int might match the return type of a GCC
27957 builtin and then its argument prototype would still apply. */
27958#ifdef __cplusplus
27959extern "C"
27960#endif
27961char lt_dlinit ();
27962int
27963main ()
27964{
27965return lt_dlinit ();
27966 ;
27967 return 0;
27968}
27969_ACEOF
27970if ac_fn_c_try_link "$LINENO"; then :
27971 ac_cv_lib_ltdl_lt_dlinit=yes
27972else
27973 ac_cv_lib_ltdl_lt_dlinit=no
27974fi
27975rm -f core conftest.err conftest.$ac_objext \
27976 conftest$ac_exeext conftest.$ac_ext
27977LIBS=$ac_check_lib_save_LIBS
27978fi
27979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
27980$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
27981if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
27982 passed=`expr $passed + 1`
27983else
27984 failed=`expr $failed + 1`
27985fi
27986
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
27988$as_echo_n "checking if libltdl package is complete... " >&6; }
27989 if test $passed -gt 0 ; then
27990 if test $failed -gt 0 ; then
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27992$as_echo "no -- some components failed test" >&6; }
27993 have_ltdl='no (failed tests)'
27994 else
27995 LTDL_LIBS='-lltdl'
27996 LIBS="$LTDL_LIBS $LIBS"
27997
27998$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
27999
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28001$as_echo "yes" >&6; }
28002 have_ltdl='yes'
28003 fi
28004 else
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28006$as_echo "no" >&6; }
28007 fi
cristyaf4cbf32012-10-16 23:47:41 +000028008 if test "$have_ltdl" != 'yes' ; then
28009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28011as_fn_error 1 "libltdl is required for modules build
28012See \`config.log' for more details" "$LINENO" 5; }
28013 fi
cristy5eef09f2012-10-16 12:08:28 +000028014fi
28015 if test "$have_ltdl" != 'no'; then
28016 WITH_LTDL_TRUE=
28017 WITH_LTDL_FALSE='#'
28018else
28019 WITH_LTDL_TRUE='#'
28020 WITH_LTDL_FALSE=
28021fi
28022
28023
cristy3ed852e2009-09-05 21:47:34 +000028024#
28025# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28026#
28027LIB_DL=''
28028if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028030$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028031if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028032 $as_echo_n "(cached) " >&6
28033else
28034 ac_check_lib_save_LIBS=$LIBS
28035LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028037/* end confdefs.h. */
28038
28039/* Override any GCC internal prototype to avoid an error.
28040 Use char because int might match the return type of a GCC
28041 builtin and then its argument prototype would still apply. */
28042#ifdef __cplusplus
28043extern "C"
28044#endif
28045char dlopen ();
28046int
28047main ()
28048{
28049return dlopen ();
28050 ;
28051 return 0;
28052}
28053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028054if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028055 ac_cv_lib_dl_dlopen=yes
28056else
cristy8b350f62009-11-15 23:12:43 +000028057 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028058fi
cristy8b350f62009-11-15 23:12:43 +000028059rm -f core conftest.err conftest.$ac_objext \
28060 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028061LIBS=$ac_check_lib_save_LIBS
28062fi
cristy8b350f62009-11-15 23:12:43 +000028063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028064$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028065if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028066 LIB_DL='-ldl'
28067fi
28068
28069 LIBS="$LIB_DL $LIBS"
28070fi
28071
28072
28073
28074#
28075# Check for Autotrace delegate library.
28076#
28077
28078# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028079if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028080 withval=$with_autotrace; with_autotrace=$withval
28081else
28082 with_autotrace='no'
28083fi
28084
28085
28086if test "$with_autotrace" != 'yes'; then
28087 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28088fi
28089
28090have_autotrace='no'
28091AUTOTRACE_CFLAGS=""
28092AUTOTRACE_LIBS=""
28093AUTOTRACE_PKG=""
28094if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28096$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028097
28098pkg_failed=no
28099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28100$as_echo_n "checking for AUTOTRACE... " >&6; }
28101
28102if test -n "$AUTOTRACE_CFLAGS"; then
28103 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28104 elif test -n "$PKG_CONFIG"; then
28105 if test -n "$PKG_CONFIG" && \
28106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28107 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28108 ac_status=$?
28109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28110 test $ac_status = 0; }; then
28111 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28112else
28113 pkg_failed=yes
28114fi
28115 else
28116 pkg_failed=untried
28117fi
28118if test -n "$AUTOTRACE_LIBS"; then
28119 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28120 elif test -n "$PKG_CONFIG"; then
28121 if test -n "$PKG_CONFIG" && \
28122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28123 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28124 ac_status=$?
28125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28126 test $ac_status = 0; }; then
28127 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28128else
28129 pkg_failed=yes
28130fi
28131 else
28132 pkg_failed=untried
28133fi
28134
28135
28136
28137if test $pkg_failed = yes; then
28138
28139if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28140 _pkg_short_errors_supported=yes
28141else
28142 _pkg_short_errors_supported=no
28143fi
28144 if test $_pkg_short_errors_supported = yes; then
28145 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28146 else
28147 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28148 fi
28149 # Put the nasty error message in config.log where it belongs
28150 echo "$AUTOTRACE_PKG_ERRORS" >&5
28151
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28153$as_echo "no" >&6; }
28154 have_autotrace=no
28155elif test $pkg_failed = untried; then
28156 have_autotrace=no
28157else
28158 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28159 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28161$as_echo "yes" >&6; }
28162 have_autotrace=yes
28163fi
cristyad38abe2012-12-23 23:03:21 +000028164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28165$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028166fi
28167
28168if test "$have_autotrace" = 'yes'; then
28169 failed=0
28170
cristy8b350f62009-11-15 23:12:43 +000028171$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028172
cristyc6722092012-10-14 00:19:31 +000028173 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028174 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028175 fi
28176fi
28177
cristy73bd4a52010-10-05 11:24:23 +000028178 if test "$have_autotrace" = 'yes'; then
28179 AUTOTRACE_DELEGATE_TRUE=
28180 AUTOTRACE_DELEGATE_FALSE='#'
28181else
28182 AUTOTRACE_DELEGATE_TRUE='#'
28183 AUTOTRACE_DELEGATE_FALSE=
28184fi
28185
cristy3ed852e2009-09-05 21:47:34 +000028186
28187
28188
28189
28190#
28191# Check for Display Postscript delegate library.
28192#
28193
28194# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028195if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028196 withval=$with_dps; with_dps=$withval
28197else
28198 with_dps='yes'
28199fi
28200
28201
28202if test "$with_dps" != 'yes'; then
28203 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28204fi
28205
28206have_dps='no'
28207DPS_LIBS=''
28208if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28210$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028212$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28214$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028215 failed=0
28216 passed=0
28217 PERSIST_CPPFLAGS="$CPPFLAGS"
28218 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028219 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 +000028220if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028221 passed=`expr $passed + 1`
28222else
28223 failed=`expr $failed + 1`
28224fi
28225
28226
28227 # DPS issues:
28228 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28229 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28230 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28231 # ImageMagick itself doesn't use -lXt.
28232 have_libdps='no'
28233 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028235$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028236if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028237 $as_echo_n "(cached) " >&6
28238else
28239 ac_check_lib_save_LIBS=$LIBS
28240LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028242/* end confdefs.h. */
28243
28244/* Override any GCC internal prototype to avoid an error.
28245 Use char because int might match the return type of a GCC
28246 builtin and then its argument prototype would still apply. */
28247#ifdef __cplusplus
28248extern "C"
28249#endif
28250char DPSInitialize ();
28251int
28252main ()
28253{
28254return DPSInitialize ();
28255 ;
28256 return 0;
28257}
28258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028259if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028260 ac_cv_lib_dps_DPSInitialize=yes
28261else
cristy8b350f62009-11-15 23:12:43 +000028262 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028263fi
cristy8b350f62009-11-15 23:12:43 +000028264rm -f core conftest.err conftest.$ac_objext \
28265 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028266LIBS=$ac_check_lib_save_LIBS
28267fi
cristy8b350f62009-11-15 23:12:43 +000028268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028269$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028270if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028271 have_libdps='yes'
28272else
28273 have_libdps='no'
28274fi
28275
28276 if test "$have_libdps" != 'yes'; then
28277 # Unset cache variable so we can try again.
28278 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028280$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028281if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028282 $as_echo_n "(cached) " >&6
28283else
28284 ac_check_lib_save_LIBS=$LIBS
28285LIBS="-ldps -lXt $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 DPSInitialize ();
28296int
28297main ()
28298{
28299return DPSInitialize ();
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_dps_DPSInitialize=yes
28306else
cristy8b350f62009-11-15 23:12:43 +000028307 ac_cv_lib_dps_DPSInitialize=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_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028314$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028315if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028316 have_libdps='yes'
28317else
28318 have_libdps='no'
28319fi
28320
28321 if test "$have_libdps" = 'yes'; then
28322 LIBDPS_XT='-lXt'
28323 fi
28324 fi
28325 if test "$have_libdps" = 'yes'; then
28326 passed=`expr $passed + 1`
28327 else
28328 failed=`expr $failed + 1`
28329 fi
cristy8b350f62009-11-15 23:12:43 +000028330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028331$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028332if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028333 $as_echo_n "(cached) " >&6
28334else
28335 ac_check_lib_save_LIBS=$LIBS
28336LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028338/* end confdefs.h. */
28339
28340/* Override any GCC internal prototype to avoid an error.
28341 Use char because int might match the return type of a GCC
28342 builtin and then its argument prototype would still apply. */
28343#ifdef __cplusplus
28344extern "C"
28345#endif
28346char XDPSPixelsPerPoint ();
28347int
28348main ()
28349{
28350return XDPSPixelsPerPoint ();
28351 ;
28352 return 0;
28353}
28354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028355if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028356 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28357else
cristy8b350f62009-11-15 23:12:43 +000028358 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028359fi
cristy8b350f62009-11-15 23:12:43 +000028360rm -f core conftest.err conftest.$ac_objext \
28361 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028362LIBS=$ac_check_lib_save_LIBS
28363fi
cristy8b350f62009-11-15 23:12:43 +000028364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028365$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028366if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028367 passed=`expr $passed + 1`
28368else
28369 failed=`expr $failed + 1`
28370fi
28371
cristy8b350f62009-11-15 23:12:43 +000028372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028373$as_echo_n "checking if DPS package is complete... " >&6; }
28374 if test $passed -gt 0; then
28375 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28377$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028378 have_dps='no (failed tests)'
28379 CPPFLAGS="$PERSIST_CPPFLAGS"
28380 else
28381 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28382 LIBS="$DPS_LIBS $LIBS"
28383
cristy8b350f62009-11-15 23:12:43 +000028384$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028385
cristyad38abe2012-12-23 23:03:21 +000028386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28387$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028388 have_dps='yes'
28389 fi
28390 else
cristyad38abe2012-12-23 23:03:21 +000028391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28392$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028393 CPPFLAGS=$PERSIST_CPPFLAGS
28394 fi
28395fi
cristy73bd4a52010-10-05 11:24:23 +000028396 if test "$have_dps" = 'yes'; then
28397 DPS_DELEGATE_TRUE=
28398 DPS_DELEGATE_FALSE='#'
28399else
28400 DPS_DELEGATE_TRUE='#'
28401 DPS_DELEGATE_FALSE=
28402fi
28403
cristy3ed852e2009-09-05 21:47:34 +000028404
28405
28406
28407#
28408# Check for DJVU delegate library.
28409#
28410
28411# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028412if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028413 withval=$with_djvu; with_djvu=$withval
28414else
28415 with_djvu='yes'
28416fi
28417
28418
28419if test "$with_djvu" != 'yes'; then
28420 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28421fi
28422
28423have_djvu='no'
28424DJVU_LIBS=''
28425if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28427$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028429$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28431$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028432 failed=0
28433 passed=0
cristy8b350f62009-11-15 23:12:43 +000028434 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 +000028435if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028436 passed=`expr $passed + 1`
28437else
28438 failed=`expr $failed + 1`
28439fi
28440
28441
cristy8b350f62009-11-15 23:12:43 +000028442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028443$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028444if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028445 $as_echo_n "(cached) " >&6
28446else
28447 ac_check_lib_save_LIBS=$LIBS
28448LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028450/* end confdefs.h. */
28451
28452/* Override any GCC internal prototype to avoid an error.
28453 Use char because int might match the return type of a GCC
28454 builtin and then its argument prototype would still apply. */
28455#ifdef __cplusplus
28456extern "C"
28457#endif
28458char ddjvu_context_create ();
28459int
28460main ()
28461{
28462return ddjvu_context_create ();
28463 ;
28464 return 0;
28465}
28466_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028467if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028468 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28469else
cristy8b350f62009-11-15 23:12:43 +000028470 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028471fi
cristy8b350f62009-11-15 23:12:43 +000028472rm -f core conftest.err conftest.$ac_objext \
28473 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028474LIBS=$ac_check_lib_save_LIBS
28475fi
cristy8b350f62009-11-15 23:12:43 +000028476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028477$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028478if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028479 passed=`expr $passed + 1`
28480else
28481 failed=`expr $failed + 1`
28482fi
28483
cristy8b350f62009-11-15 23:12:43 +000028484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028485$as_echo_n "checking if DJVU package is complete... " >&6; }
28486 if test $passed -gt 0; then
28487 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28489$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028490 have_djvu='no (failed tests)'
28491 else
28492 DJVU_LIBS='-ldjvulibre'
28493 LIBS="$DJVU_LIBS $LIBS"
28494
cristy8b350f62009-11-15 23:12:43 +000028495$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028496
cristyad38abe2012-12-23 23:03:21 +000028497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28498$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028499 have_djvu='yes'
28500 fi
28501 else
cristyad38abe2012-12-23 23:03:21 +000028502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28503$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028504 fi
28505fi
cristy73bd4a52010-10-05 11:24:23 +000028506 if test "$have_djvu" = 'yes'; then
28507 DJVU_DELEGATE_TRUE=
28508 DJVU_DELEGATE_FALSE='#'
28509else
28510 DJVU_DELEGATE_TRUE='#'
28511 DJVU_DELEGATE_FALSE=
28512fi
28513
cristy3ed852e2009-09-05 21:47:34 +000028514
28515
28516
28517#
cristy430a7312010-01-21 20:44:04 +000028518# Set DejaVu font directory.
28519#
28520
28521# Check whether --with-dejavu-font-dir was given.
28522if test "${with_dejavu_font_dir+set}" = set; then :
28523 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28524else
28525 with_dejavu_font_dir='default'
28526fi
28527
28528
28529if test "$with_dejavu_font_dir" != 'default'; then
28530 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28531fi
28532
28533
28534#
cristy3ed852e2009-09-05 21:47:34 +000028535# Check for FFTW delegate library.
28536#
28537
28538# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028539if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028540 withval=$with_fftw; with_fftw=$withval
28541else
28542 with_fftw='yes'
28543fi
28544
28545
28546if test "$with_fftw" != 'yes'; then
28547 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28548fi
28549
cristy81beccd2011-10-03 18:17:24 +000028550have_fftw='no'
28551FFTW_LIBS=''
28552if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28554$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28556$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28558$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028559 failed=0
28560 passed=0
28561 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28562if test "x$ac_cv_header_fftw3_h" = xyes; then :
28563 passed=`expr $passed + 1`
28564else
28565 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028566fi
28567
cristy81beccd2011-10-03 18:17:24 +000028568
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28570$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28571if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28572 $as_echo_n "(cached) " >&6
28573else
28574 ac_check_lib_save_LIBS=$LIBS
28575LIBS="-lfftw3 $LIBS"
28576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28577/* end confdefs.h. */
28578
28579/* Override any GCC internal prototype to avoid an error.
28580 Use char because int might match the return type of a GCC
28581 builtin and then its argument prototype would still apply. */
28582#ifdef __cplusplus
28583extern "C"
28584#endif
28585char fftw_execute ();
28586int
28587main ()
28588{
28589return fftw_execute ();
28590 ;
28591 return 0;
28592}
28593_ACEOF
28594if ac_fn_c_try_link "$LINENO"; then :
28595 ac_cv_lib_fftw3_fftw_execute=yes
28596else
28597 ac_cv_lib_fftw3_fftw_execute=no
28598fi
28599rm -f core conftest.err conftest.$ac_objext \
28600 conftest$ac_exeext conftest.$ac_ext
28601LIBS=$ac_check_lib_save_LIBS
28602fi
28603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28604$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28605if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28606 passed=`expr $passed + 1`
28607else
28608 failed=`expr $failed + 1`
28609fi
28610
28611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28612$as_echo_n "checking if FFTW package is complete... " >&6; }
28613 if test $passed -gt 0; then
28614 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28616$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028617 have_fftw='no (failed tests)'
28618 else
28619 FFTW_LIBS='-lfftw3'
28620 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028621
cristy8b350f62009-11-15 23:12:43 +000028622$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028623
cristyad38abe2012-12-23 23:03:21 +000028624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28625$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028626 have_fftw='yes'
28627 fi
28628 else
cristyad38abe2012-12-23 23:03:21 +000028629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28630$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028631 fi
28632fi
cristy73bd4a52010-10-05 11:24:23 +000028633 if test "$have_fftw" = 'yes'; then
28634 FFTW_DELEGATE_TRUE=
28635 FFTW_DELEGATE_FALSE='#'
28636else
28637 FFTW_DELEGATE_TRUE='#'
28638 FFTW_DELEGATE_FALSE=
28639fi
28640
cristy3ed852e2009-09-05 21:47:34 +000028641
28642
28643
28644#
28645# Check for FlashPIX delegate library.
28646#
28647
28648# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028649if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028650 withval=$with_fpx; with_fpx=$withval
28651else
28652 with_fpx='yes'
28653fi
28654
28655
28656if test "$with_fpx" != 'yes'; then
28657 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28658fi
28659
28660have_fpx='no'
28661FPX_LIBS=''
28662if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28664$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028666$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28668$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028669 failed=0
28670 passed=0
28671 ac_ext=cpp
28672ac_cpp='$CXXCPP $CPPFLAGS'
28673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28676
28677
cristy8b350f62009-11-15 23:12:43 +000028678ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028679if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028680 passed=`expr $passed + 1`
28681else
28682 failed=`expr $failed + 1`
28683fi
28684
28685
cristy8b350f62009-11-15 23:12:43 +000028686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028687$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028688if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028689 $as_echo_n "(cached) " >&6
28690else
28691 ac_check_lib_save_LIBS=$LIBS
28692LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028694/* end confdefs.h. */
28695
28696/* Override any GCC internal prototype to avoid an error.
28697 Use char because int might match the return type of a GCC
28698 builtin and then its argument prototype would still apply. */
28699#ifdef __cplusplus
28700extern "C"
28701#endif
28702char FPX_OpenImageByFilename ();
28703int
28704main ()
28705{
28706return FPX_OpenImageByFilename ();
28707 ;
28708 return 0;
28709}
28710_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028711if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028712 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28713else
cristy8b350f62009-11-15 23:12:43 +000028714 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028715fi
cristy8b350f62009-11-15 23:12:43 +000028716rm -f core conftest.err conftest.$ac_objext \
28717 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028718LIBS=$ac_check_lib_save_LIBS
28719fi
cristy8b350f62009-11-15 23:12:43 +000028720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028721$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028722if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028723 passed=`expr $passed + 1`
28724else
28725 failed=`expr $failed + 1`
28726fi
28727
28728 ac_ext=c
28729ac_cpp='$CPP $CPPFLAGS'
28730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28732ac_compiler_gnu=$ac_cv_c_compiler_gnu
28733
cristy8b350f62009-11-15 23:12:43 +000028734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028735$as_echo_n "checking if FlashPIX 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_fpx='no (failed tests)'
28741 else
28742 FPX_LIBS='-lfpx'
28743
cristy8b350f62009-11-15 23:12:43 +000028744$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028745
cristyad38abe2012-12-23 23:03:21 +000028746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28747$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028748 have_fpx='yes'
28749 PERLMAINCC="$CXX"
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_fpx" = 'yes'; then
28757 FPX_DELEGATE_TRUE=
28758 FPX_DELEGATE_FALSE='#'
28759else
28760 FPX_DELEGATE_TRUE='#'
28761 FPX_DELEGATE_FALSE=
28762fi
28763
cristy3ed852e2009-09-05 21:47:34 +000028764
28765
28766
28767#
28768# Check for fontconfig delegate library.
28769#
28770
28771# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028772if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028773 withval=$with_fontconfig; with_fontconfig=$withval
28774else
cristyfc3d0222012-02-07 15:05:57 +000028775 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028776fi
28777
28778
28779if test "$with_fontconfig" != 'yes'; then
28780 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28781fi
28782
28783have_fontconfig='no'
28784FONTCONFIG_CFLAGS=""
28785FONTCONFIG_LIBS=""
28786FONTCONFIG_PKG=""
28787if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28789$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028790
28791pkg_failed=no
28792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28793$as_echo_n "checking for FONTCONFIG... " >&6; }
28794
28795if test -n "$FONTCONFIG_CFLAGS"; then
28796 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28797 elif test -n "$PKG_CONFIG"; then
28798 if test -n "$PKG_CONFIG" && \
28799 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28800 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28801 ac_status=$?
28802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28803 test $ac_status = 0; }; then
28804 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28805else
28806 pkg_failed=yes
28807fi
28808 else
28809 pkg_failed=untried
28810fi
28811if test -n "$FONTCONFIG_LIBS"; then
28812 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28813 elif test -n "$PKG_CONFIG"; then
28814 if test -n "$PKG_CONFIG" && \
28815 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28816 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28817 ac_status=$?
28818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28819 test $ac_status = 0; }; then
28820 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28821else
28822 pkg_failed=yes
28823fi
28824 else
28825 pkg_failed=untried
28826fi
28827
28828
28829
28830if test $pkg_failed = yes; then
28831
28832if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28833 _pkg_short_errors_supported=yes
28834else
28835 _pkg_short_errors_supported=no
28836fi
28837 if test $_pkg_short_errors_supported = yes; then
28838 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28839 else
28840 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28841 fi
28842 # Put the nasty error message in config.log where it belongs
28843 echo "$FONTCONFIG_PKG_ERRORS" >&5
28844
28845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28846$as_echo "no" >&6; }
28847 have_fontconfig=no
28848elif test $pkg_failed = untried; then
28849 have_fontconfig=no
28850else
28851 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28852 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28854$as_echo "yes" >&6; }
28855 have_fontconfig=yes
28856fi
cristyad38abe2012-12-23 23:03:21 +000028857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28858$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028859fi
28860
28861if test "$have_fontconfig" = 'yes'; then
28862
cristy8b350f62009-11-15 23:12:43 +000028863$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028864
cristyc6722092012-10-14 00:19:31 +000028865 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028866 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028867 fi
cristy3ed852e2009-09-05 21:47:34 +000028868fi
28869
cristy73bd4a52010-10-05 11:24:23 +000028870 if test "$have_fontconfig" = 'yes'; then
28871 FONTCONFIG_DELEGATE_TRUE=
28872 FONTCONFIG_DELEGATE_FALSE='#'
28873else
28874 FONTCONFIG_DELEGATE_TRUE='#'
28875 FONTCONFIG_DELEGATE_FALSE=
28876fi
28877
cristy3ed852e2009-09-05 21:47:34 +000028878
28879
28880
28881
28882#
cristy03f187e2013-01-24 00:22:19 +000028883# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028884#
28885
28886# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028887if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028888 withval=$with_freetype; with_freetype=$withval
28889else
28890 with_freetype='yes'
28891fi
28892
28893
cristy3ed852e2009-09-05 21:47:34 +000028894if test "$with_freetype" != 'yes'; then
28895 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28896fi
28897
cristy81beccd2011-10-03 18:17:24 +000028898have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000028899FREETYPE_CFLAGS=""
28900FREETYPE_LIBS=""
28901FREETYPE_PKG=""
28902if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28904$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000028905
28906pkg_failed=no
28907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
28908$as_echo_n "checking for FREETYPE... " >&6; }
28909
28910if test -n "$FREETYPE_CFLAGS"; then
28911 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
28912 elif test -n "$PKG_CONFIG"; then
28913 if test -n "$PKG_CONFIG" && \
28914 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
28915 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
28916 ac_status=$?
28917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28918 test $ac_status = 0; }; then
28919 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
28920else
28921 pkg_failed=yes
28922fi
28923 else
28924 pkg_failed=untried
28925fi
28926if test -n "$FREETYPE_LIBS"; then
28927 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
28928 elif test -n "$PKG_CONFIG"; then
28929 if test -n "$PKG_CONFIG" && \
28930 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
28931 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
28932 ac_status=$?
28933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28934 test $ac_status = 0; }; then
28935 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
28936else
28937 pkg_failed=yes
28938fi
28939 else
28940 pkg_failed=untried
28941fi
28942
28943
28944
28945if test $pkg_failed = yes; then
28946
28947if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28948 _pkg_short_errors_supported=yes
28949else
28950 _pkg_short_errors_supported=no
28951fi
28952 if test $_pkg_short_errors_supported = yes; then
28953 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
28954 else
28955 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
28956 fi
28957 # Put the nasty error message in config.log where it belongs
28958 echo "$FREETYPE_PKG_ERRORS" >&5
28959
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28961$as_echo "no" >&6; }
28962 have_freetype=no
28963elif test $pkg_failed = untried; then
28964 have_freetype=no
28965else
28966 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
28967 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
28968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28969$as_echo "yes" >&6; }
28970 have_freetype=yes
28971fi
cristyad38abe2012-12-23 23:03:21 +000028972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28973$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028974fi
28975
cristy03f187e2013-01-24 00:22:19 +000028976if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028977
cristy8b350f62009-11-15 23:12:43 +000028978$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028979
cristy03f187e2013-01-24 00:22:19 +000028980 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028981fi
cristy03f187e2013-01-24 00:22:19 +000028982
cristy73bd4a52010-10-05 11:24:23 +000028983 if test "$have_freetype" = 'yes'; then
28984 FREETYPE_DELEGATE_TRUE=
28985 FREETYPE_DELEGATE_FALSE='#'
28986else
28987 FREETYPE_DELEGATE_TRUE='#'
28988 FREETYPE_DELEGATE_FALSE=
28989fi
28990
cristy3ed852e2009-09-05 21:47:34 +000028991
28992
28993
cristy03f187e2013-01-24 00:22:19 +000028994
cristy3ed852e2009-09-05 21:47:34 +000028995#
28996# Check for Ghostscript library or framework.
28997#
28998# Test for iapi.h & test for gsapi_new_instance in -lgs
28999# or -framework Ghostscript
29000
29001
29002# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029003if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029004 withval=$with_gslib; with_gslib=$withval
29005else
29006 with_gslib='no'
29007fi
29008
29009
cristyb7931f12009-09-25 10:22:21 +000029010gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029011if test "$with_gslib" != 'yes'; then
29012 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29013fi
29014
29015have_gslib='no'
29016GS_LIBS=''
29017if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29019$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029021$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29023$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029024 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029025 failed=0
29026 passed=0
cristy8b350f62009-11-15 23:12:43 +000029027 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 +000029028if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029029 passed=`expr $passed + 1`
29030else
29031 failed=`expr $failed + 1`
29032fi
29033
29034
cristy8b350f62009-11-15 23:12:43 +000029035 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 +000029036if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029037 passed=`expr $passed + 1`
29038else
29039 failed=`expr $failed + 1`
29040fi
29041
29042
cristy73bd4a52010-10-05 11:24:23 +000029043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29044$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029045if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029046 $as_echo_n "(cached) " >&6
29047else
29048 ac_check_framework_save_LIBS=$LIBS
29049LIBS="-framework Ghostscript $LIBS"
29050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29051/* end confdefs.h. */
29052
29053/* Override any GCC internal prototype to avoid an error.
29054 Use char because int might match the return type of a GCC
29055 builtin and then its argument prototype would still apply. */
29056#ifdef __cplusplus
29057extern "C"
29058#endif
29059char gsapi_new_instance ();
29060int
29061main ()
29062{
29063return gsapi_new_instance ();
29064 ;
29065 return 0;
29066}
29067_ACEOF
29068if ac_fn_c_try_link "$LINENO"; then :
29069 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29070else
29071 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29072fi
29073rm -f core conftest.err conftest.$ac_objext \
29074 conftest$ac_exeext conftest.$ac_ext
29075LIBS=$ac_check_framework_save_LIBS
29076fi
29077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29078$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29079if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29080 framework=`expr $framework + 1`
29081else
29082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029083$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029084if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029085 $as_echo_n "(cached) " >&6
29086else
29087 ac_check_lib_save_LIBS=$LIBS
29088LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029090/* end confdefs.h. */
29091
29092/* Override any GCC internal prototype to avoid an error.
29093 Use char because int might match the return type of a GCC
29094 builtin and then its argument prototype would still apply. */
29095#ifdef __cplusplus
29096extern "C"
29097#endif
29098char gsapi_new_instance ();
29099int
29100main ()
29101{
29102return gsapi_new_instance ();
29103 ;
29104 return 0;
29105}
29106_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029107if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029108 ac_cv_lib_gs_gsapi_new_instance=yes
29109else
cristy8b350f62009-11-15 23:12:43 +000029110 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029111fi
cristy8b350f62009-11-15 23:12:43 +000029112rm -f core conftest.err conftest.$ac_objext \
29113 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029114LIBS=$ac_check_lib_save_LIBS
29115fi
cristy8b350f62009-11-15 23:12:43 +000029116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029117$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029118if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029119 passed=`expr $passed + 1`
29120else
29121 failed=`expr $failed + 1`
29122fi
cristy73bd4a52010-10-05 11:24:23 +000029123
29124fi
cristy8b350f62009-11-15 23:12:43 +000029125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029126$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29127 if test $passed -gt 0; then
29128 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29130$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029131 have_gslib='no (failed tests)'
29132 else
29133 if test $framework -gt 0; then
29134 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029135 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29137$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029138 else
cristyad38abe2012-12-23 23:03:21 +000029139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29140$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029141 GS_LIBS='-lgs'
29142 fi
29143 LIBS="$GS_LIBS $LIBS"
29144
cristy8b350f62009-11-15 23:12:43 +000029145$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029146
29147 have_gslib='yes'
29148 fi
29149 else
cristyad38abe2012-12-23 23:03:21 +000029150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29151$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029152 fi
29153fi
cristy73bd4a52010-10-05 11:24:23 +000029154 if test "$have_gslib" = 'yes'; then
29155 GS_DELEGATE_TRUE=
29156 GS_DELEGATE_FALSE='#'
29157else
29158 GS_DELEGATE_TRUE='#'
29159 GS_DELEGATE_FALSE=
29160fi
29161
cristy3ed852e2009-09-05 21:47:34 +000029162
29163
29164# Set default font search path
29165
29166# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029167if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029168 withval=$with_fontpath; with_fontpath=$withval
29169else
29170 with_fontpath=''
29171fi
29172
29173
29174if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29175 with_fontpath=''
29176else
29177
29178cat >>confdefs.h <<_ACEOF
29179#define MAGICK_FONT_PATH "$with_fontpath"
29180_ACEOF
29181
29182fi
29183if test "$with_fontpath=" != ''; then
29184 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29185fi
29186
29187# Set Ghostscript font directory
29188
29189# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029190if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029191 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29192else
29193 with_gs_font_dir='default'
29194fi
29195
29196
29197if test "$with_gs_font_dir" != 'default'; then
29198 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29199fi
29200
29201
29202#
29203# Check for GVC delegate library.
29204#
29205
29206# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029207if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029208 withval=$with_gvc; with_gvc=$withval
29209else
cristy1b70dc82012-07-01 23:15:05 +000029210 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029211fi
29212
29213
29214if test "$with_gvc" != 'yes'; then
29215 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29216fi
29217
29218GVC_PKG=""
29219if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29221$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029222
29223pkg_failed=no
29224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29225$as_echo_n "checking for GVC... " >&6; }
29226
29227if test -n "$GVC_CFLAGS"; then
29228 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29229 elif test -n "$PKG_CONFIG"; then
29230 if test -n "$PKG_CONFIG" && \
29231 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29232 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29233 ac_status=$?
29234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29235 test $ac_status = 0; }; then
29236 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29237else
29238 pkg_failed=yes
29239fi
29240 else
29241 pkg_failed=untried
29242fi
29243if test -n "$GVC_LIBS"; then
29244 pkg_cv_GVC_LIBS="$GVC_LIBS"
29245 elif test -n "$PKG_CONFIG"; then
29246 if test -n "$PKG_CONFIG" && \
29247 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29248 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29249 ac_status=$?
29250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29251 test $ac_status = 0; }; then
29252 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29253else
29254 pkg_failed=yes
29255fi
29256 else
29257 pkg_failed=untried
29258fi
29259
29260
29261
29262if test $pkg_failed = yes; then
29263
29264if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29265 _pkg_short_errors_supported=yes
29266else
29267 _pkg_short_errors_supported=no
29268fi
29269 if test $_pkg_short_errors_supported = yes; then
29270 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29271 else
29272 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29273 fi
29274 # Put the nasty error message in config.log where it belongs
29275 echo "$GVC_PKG_ERRORS" >&5
29276
29277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29278$as_echo "no" >&6; }
29279 have_gvc=no
29280elif test $pkg_failed = untried; then
29281 have_gvc=no
29282else
29283 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29284 GVC_LIBS=$pkg_cv_GVC_LIBS
29285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29286$as_echo "yes" >&6; }
29287 have_gvc=yes
29288fi
cristyad38abe2012-12-23 23:03:21 +000029289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29290$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029291fi
29292
29293if test "$have_gvc" = 'yes'; then
29294
cristy8b350f62009-11-15 23:12:43 +000029295$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029296
cristyc6722092012-10-14 00:19:31 +000029297 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029298 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29299 fi
29300fi
29301
cristy73bd4a52010-10-05 11:24:23 +000029302 if test "$have_gvc" = 'yes'; then
29303 GVC_DELEGATE_TRUE=
29304 GVC_DELEGATE_FALSE='#'
29305else
29306 GVC_DELEGATE_TRUE='#'
29307 GVC_DELEGATE_FALSE=
29308fi
29309
cristy3ed852e2009-09-05 21:47:34 +000029310
29311
29312
29313
29314#
29315# Check for JBIG delegate library.
29316#
29317
29318
29319# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029320if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029321 withval=$with_jbig; with_jbig=$withval
29322else
29323 with_jbig='yes'
29324fi
29325
29326
29327have_jbig='no'
29328JBIG_LIBS=''
29329if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29331$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029333$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29335$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029336 failed=0
29337 passed=0
cristy8b350f62009-11-15 23:12:43 +000029338 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029339if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029340 passed=`expr $passed + 1`
29341else
29342 failed=`expr $failed + 1`
29343fi
29344
29345
cristy8b350f62009-11-15 23:12:43 +000029346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029347$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029348if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029349 $as_echo_n "(cached) " >&6
29350else
29351 ac_check_lib_save_LIBS=$LIBS
29352LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029354/* end confdefs.h. */
29355
29356/* Override any GCC internal prototype to avoid an error.
29357 Use char because int might match the return type of a GCC
29358 builtin and then its argument prototype would still apply. */
29359#ifdef __cplusplus
29360extern "C"
29361#endif
29362char jbg_dec_init ();
29363int
29364main ()
29365{
29366return jbg_dec_init ();
29367 ;
29368 return 0;
29369}
29370_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029371if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029372 ac_cv_lib_jbig_jbg_dec_init=yes
29373else
cristy8b350f62009-11-15 23:12:43 +000029374 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029375fi
cristy8b350f62009-11-15 23:12:43 +000029376rm -f core conftest.err conftest.$ac_objext \
29377 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029378LIBS=$ac_check_lib_save_LIBS
29379fi
cristy8b350f62009-11-15 23:12:43 +000029380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029381$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029382if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029383 passed=`expr $passed + 1`
29384else
29385 failed=`expr $failed + 1`
29386fi
29387
cristy8b350f62009-11-15 23:12:43 +000029388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029389$as_echo_n "checking if JBIG package is complete... " >&6; }
29390 if test $passed -gt 0; then
29391 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29393$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029394 have_jbig='no (failed tests)'
29395 else
29396 JBIG_LIBS='-ljbig'
29397 LIBS="$JBIG_LIBS $LIBS"
29398
cristy8b350f62009-11-15 23:12:43 +000029399$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029400
cristyad38abe2012-12-23 23:03:21 +000029401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29402$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029403 have_jbig='yes'
29404 fi
29405 else
cristyad38abe2012-12-23 23:03:21 +000029406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29407$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029408 fi
29409fi
cristy73bd4a52010-10-05 11:24:23 +000029410 if test "$have_jbig" = 'yes'; then
29411 JBIG_DELEGATE_TRUE=
29412 JBIG_DELEGATE_FALSE='#'
29413else
29414 JBIG_DELEGATE_TRUE='#'
29415 JBIG_DELEGATE_FALSE=
29416fi
29417
cristy3ed852e2009-09-05 21:47:34 +000029418
29419
29420
29421#
29422# Check for JPEG delegate library.
29423#
29424
29425# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029426if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029427 withval=$with_jpeg; with_jpeg=$withval
29428else
29429 with_jpeg='yes'
29430fi
29431
29432
29433if test "$with_jpeg" != 'yes'; then
29434 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29435fi
29436
29437have_jpeg='no'
29438JPEG_LIBS=''
29439if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29441$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029443$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29445$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029446 failed=0
29447 passed=0
cristy8b350f62009-11-15 23:12:43 +000029448 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029449if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029450 passed=`expr $passed + 1`
29451else
29452 failed=`expr $failed + 1`
29453fi
29454
29455
cristy8b350f62009-11-15 23:12:43 +000029456 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029457if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029458 passed=`expr $passed + 1`
29459else
29460 failed=`expr $failed + 1`
29461fi
29462
29463
cristy8b350f62009-11-15 23:12:43 +000029464 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029465if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029466 passed=`expr $passed + 1`
29467else
29468 failed=`expr $failed + 1`
29469fi
29470
29471
cristy8b350f62009-11-15 23:12:43 +000029472 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029473if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029474 passed=`expr $passed + 1`
29475else
29476 failed=`expr $failed + 1`
29477fi
29478
29479
cristy8b350f62009-11-15 23:12:43 +000029480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029481$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029482if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029483 $as_echo_n "(cached) " >&6
29484else
29485 ac_check_lib_save_LIBS=$LIBS
29486LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029488/* end confdefs.h. */
29489
29490/* Override any GCC internal prototype to avoid an error.
29491 Use char because int might match the return type of a GCC
29492 builtin and then its argument prototype would still apply. */
29493#ifdef __cplusplus
29494extern "C"
29495#endif
29496char jpeg_read_header ();
29497int
29498main ()
29499{
29500return jpeg_read_header ();
29501 ;
29502 return 0;
29503}
29504_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029505if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029506 ac_cv_lib_jpeg_jpeg_read_header=yes
29507else
cristy8b350f62009-11-15 23:12:43 +000029508 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029509fi
cristy8b350f62009-11-15 23:12:43 +000029510rm -f core conftest.err conftest.$ac_objext \
29511 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029512LIBS=$ac_check_lib_save_LIBS
29513fi
cristy8b350f62009-11-15 23:12:43 +000029514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029515$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029516if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029517 passed=`expr $passed + 1`
29518else
29519 failed=`expr $failed + 1`
29520fi
29521
29522
29523# Test for compatible JPEG library
29524if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029526$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029527if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029528 $as_echo_n "(cached) " >&6
29529else
cristy8b350f62009-11-15 23:12:43 +000029530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029531/* end confdefs.h. */
29532#include <stdio.h>
29533#include <stdlib.h>
29534#include <jpeglib.h>
29535
29536int
29537main ()
29538{
29539
29540#if JPEG_LIB_VERSION < 62
29541#error IJG JPEG library must be version 6b or newer!
29542#endif
29543return 0;
29544
29545 ;
29546 return 0;
29547}
29548_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029549if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029550 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29551else
cristy8b350f62009-11-15 23:12:43 +000029552 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029553fi
cristy3ed852e2009-09-05 21:47:34 +000029554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29555fi
cristy8b350f62009-11-15 23:12:43 +000029556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029557$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29558fi
cristy8b350f62009-11-15 23:12:43 +000029559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029560$as_echo_n "checking if JPEG package is complete... " >&6; }
29561 if test $passed -gt 0; then
29562 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29564$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029565 have_jpeg='no (failed tests)'
29566 else
29567 JPEG_LIBS='-ljpeg'
29568 LIBS="$JPEG_LIBS $LIBS"
29569
cristy8b350f62009-11-15 23:12:43 +000029570$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029571
cristyad38abe2012-12-23 23:03:21 +000029572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29573$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029574 have_jpeg='yes'
29575 fi
29576 else
cristyad38abe2012-12-23 23:03:21 +000029577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29578$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029579 fi
29580fi
cristy73bd4a52010-10-05 11:24:23 +000029581 if test "$have_jpeg" = 'yes'; then
29582 JPEG_DELEGATE_TRUE=
29583 JPEG_DELEGATE_FALSE='#'
29584else
29585 JPEG_DELEGATE_TRUE='#'
29586 JPEG_DELEGATE_FALSE=
29587fi
29588
cristy3ed852e2009-09-05 21:47:34 +000029589
29590
29591
29592#
29593# Check for JPEG Version 2 delegate library.
29594#
29595
29596# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029597if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029598 withval=$with_jp2; with_jp2=$withval
29599else
29600 with_jp2='yes'
29601fi
29602
29603
29604if test "$with_jp2" != 'yes'; then
29605 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29606fi
29607
29608have_jp2='no'
29609JP2_LIBS=''
29610if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29612$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029614$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29616$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029617 failed=0
29618 passed=0
cristy8b350f62009-11-15 23:12:43 +000029619 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 +000029620if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029621 passed=`expr $passed + 1`
29622else
29623 failed=`expr $failed + 1`
29624fi
29625
29626
cristy8b350f62009-11-15 23:12:43 +000029627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029628$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029629if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029630 $as_echo_n "(cached) " >&6
29631else
29632 ac_check_lib_save_LIBS=$LIBS
29633LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029635/* end confdefs.h. */
29636
29637/* Override any GCC internal prototype to avoid an error.
29638 Use char because int might match the return type of a GCC
29639 builtin and then its argument prototype would still apply. */
29640#ifdef __cplusplus
29641extern "C"
29642#endif
29643char jas_stream_fopen ();
29644int
29645main ()
29646{
29647return jas_stream_fopen ();
29648 ;
29649 return 0;
29650}
29651_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029652if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029653 ac_cv_lib_jasper_jas_stream_fopen=yes
29654else
cristy8b350f62009-11-15 23:12:43 +000029655 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029656fi
cristy8b350f62009-11-15 23:12:43 +000029657rm -f core conftest.err conftest.$ac_objext \
29658 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029659LIBS=$ac_check_lib_save_LIBS
29660fi
cristy8b350f62009-11-15 23:12:43 +000029661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029662$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029663if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029664 passed=`expr $passed + 1`
29665else
29666 failed=`expr $failed + 1`
29667fi
29668
cristy8b350f62009-11-15 23:12:43 +000029669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029670$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29671 if test $passed -gt 0; then
29672 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29674$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029675 have_jp2='no (failed tests)'
29676 else
29677 JP2_LIBS='-ljasper'
29678 LIBS="$JP2_LIBS $LIBS"
29679
cristy8b350f62009-11-15 23:12:43 +000029680$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029681
cristyad38abe2012-12-23 23:03:21 +000029682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29683$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029684 have_jp2='yes'
29685 fi
29686 else
cristyad38abe2012-12-23 23:03:21 +000029687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29688$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029689 fi
29690fi
cristy73bd4a52010-10-05 11:24:23 +000029691 if test "$have_jp2" = 'yes'; then
29692 JP2_DELEGATE_TRUE=
29693 JP2_DELEGATE_FALSE='#'
29694else
29695 JP2_DELEGATE_TRUE='#'
29696 JP2_DELEGATE_FALSE=
29697fi
29698
cristy3ed852e2009-09-05 21:47:34 +000029699
29700
29701
29702#
29703# Check for LCMS delegate library.
29704#
cristy71203402010-06-18 13:12:03 +000029705# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029706
29707# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029708if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029709 withval=$with_lcms; with_lcms=$withval
29710else
29711 with_lcms='yes'
29712fi
29713
cristy71203402010-06-18 13:12:03 +000029714if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029715 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29716fi
29717
cristy71203402010-06-18 13:12:03 +000029718# Disable LCMS2.
29719
29720# Check whether --with-lcms2 was given.
29721if test "${with_lcms2+set}" = set; then :
29722 withval=$with_lcms2; with_lcms2=$withval
29723else
29724 with_lcms2='yes'
29725fi
29726
29727if test "$with_lcms2" != 'yes' ; then
29728 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29729fi
29730
29731have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029732LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029733if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29735$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29737$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29739$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029740 failed=0
29741 passed=0
29742 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029743
29744 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029745 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029746if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029747 have_lcms_header='yes'
29748fi
29749
29750
29751 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029752
29753$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29754
cristy71203402010-06-18 13:12:03 +000029755 passed=`expr $passed + 1`
29756 fi
29757
29758 # Check for <lcms2/lcms2.h)
29759 if test "$have_lcms_header" != 'yes'; then
29760 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 +000029761if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029762 have_lcms_header='yes'
29763fi
29764
29765
cristy71203402010-06-18 13:12:03 +000029766 if test "$have_lcms_header" = 'yes'; then
29767 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029768
cristy71203402010-06-18 13:12:03 +000029769$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029770
cristy71203402010-06-18 13:12:03 +000029771 fi
cristyd09bcf92010-03-25 03:04:45 +000029772 fi
cristy71203402010-06-18 13:12:03 +000029773
29774 # Failed to find lcms header?
29775 if test "$have_lcms_header" != 'yes'; then
29776 failed=`expr $failed + 1`
29777 fi
29778
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29780$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029781if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029782 $as_echo_n "(cached) " >&6
29783else
29784 ac_check_lib_save_LIBS=$LIBS
29785LIBS="-llcms2 $LIBS"
29786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29787/* end confdefs.h. */
29788
29789/* Override any GCC internal prototype to avoid an error.
29790 Use char because int might match the return type of a GCC
29791 builtin and then its argument prototype would still apply. */
29792#ifdef __cplusplus
29793extern "C"
29794#endif
cristy71203402010-06-18 13:12:03 +000029795char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029796int
29797main ()
29798{
cristy71203402010-06-18 13:12:03 +000029799return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029800 ;
29801 return 0;
29802}
29803_ACEOF
29804if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029805 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029806else
cristy71203402010-06-18 13:12:03 +000029807 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029808fi
29809rm -f core conftest.err conftest.$ac_objext \
29810 conftest$ac_exeext conftest.$ac_ext
29811LIBS=$ac_check_lib_save_LIBS
29812fi
cristy71203402010-06-18 13:12:03 +000029813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29814$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029815if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029816 passed=`expr $passed + 1`
29817else
29818 failed=`expr $failed + 1`
29819fi
29820
cristy71203402010-06-18 13:12:03 +000029821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29822$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029823 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029824 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29826$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029827 have_lcms2='no (failed tests)'
29828 else
29829 LCMS_LIBS='-llcms2'
29830 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29832$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029833 have_lcms2='yes'
29834 fi
cristyd09bcf92010-03-25 03:04:45 +000029835 else
cristyad38abe2012-12-23 23:03:21 +000029836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29837$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029838 fi
29839fi
29840
cristy71203402010-06-18 13:12:03 +000029841#
29842# Check for LCMS v1 (1.11 or later)
29843#
29844if test $have_lcms2 = 'yes'; then
29845 with_lcms='no'
29846fi
29847
29848have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029849if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29851$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29853$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29855$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029856 failed=0
29857 passed=0
29858 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029859
29860 # Check for <lcms.h>
29861 if test "$have_lcms_header" != 'yes'; then
29862 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029863if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029864 have_lcms_header='yes'
29865fi
29866
29867
cristy71203402010-06-18 13:12:03 +000029868 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029869 passed=`expr $passed + 1`
29870
cristy8b350f62009-11-15 23:12:43 +000029871$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029872
cristy71203402010-06-18 13:12:03 +000029873 fi
29874 fi
29875
29876 # Check for <lcms/lcms.h>
29877 if test "$have_lcms_header" != 'yes'; then
29878 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 +000029879if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029880 have_lcms_header='yes'
29881fi
29882
29883
cristy71203402010-06-18 13:12:03 +000029884 if test "$have_lcms_header" = 'yes'; then
29885 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029886
cristy8b350f62009-11-15 23:12:43 +000029887$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029888
cristy71203402010-06-18 13:12:03 +000029889 fi
cristy3ed852e2009-09-05 21:47:34 +000029890 fi
cristy71203402010-06-18 13:12:03 +000029891
29892 # Failed to find lcms header?
29893 if test "$have_lcms_header" != 'yes'; then
29894 failed=`expr $failed + 1`
29895 fi
29896
29897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29898$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029899if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029900 $as_echo_n "(cached) " >&6
29901else
29902 ac_check_lib_save_LIBS=$LIBS
29903LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029905/* end confdefs.h. */
29906
29907/* Override any GCC internal prototype to avoid an error.
29908 Use char because int might match the return type of a GCC
29909 builtin and then its argument prototype would still apply. */
29910#ifdef __cplusplus
29911extern "C"
29912#endif
cristy71203402010-06-18 13:12:03 +000029913char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029914int
29915main ()
29916{
cristy71203402010-06-18 13:12:03 +000029917return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029918 ;
29919 return 0;
29920}
29921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029922if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029923 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029924else
cristy71203402010-06-18 13:12:03 +000029925 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029926fi
cristy8b350f62009-11-15 23:12:43 +000029927rm -f core conftest.err conftest.$ac_objext \
29928 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029929LIBS=$ac_check_lib_save_LIBS
29930fi
cristy71203402010-06-18 13:12:03 +000029931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29932$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029933if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029934 passed=`expr $passed + 1`
29935else
29936 failed=`expr $failed + 1`
29937fi
29938
cristy8b350f62009-11-15 23:12:43 +000029939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029940$as_echo_n "checking if LCMS package is complete... " >&6; }
29941 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029942 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29944$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029945 have_lcms='no (failed tests)'
29946 else
29947 LCMS_LIBS='-llcms'
29948 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29950$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029951 have_lcms='yes'
29952 fi
cristy3ed852e2009-09-05 21:47:34 +000029953 else
cristyad38abe2012-12-23 23:03:21 +000029954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29955$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029956 fi
29957fi
cristy71203402010-06-18 13:12:03 +000029958
cristy73bd4a52010-10-05 11:24:23 +000029959 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29960 LCMS_DELEGATE_TRUE=
29961 LCMS_DELEGATE_FALSE='#'
29962else
29963 LCMS_DELEGATE_TRUE='#'
29964 LCMS_DELEGATE_FALSE=
29965fi
29966
cristy71203402010-06-18 13:12:03 +000029967if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29968
29969$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29970
29971fi
29972
cristy3ed852e2009-09-05 21:47:34 +000029973
29974
29975
29976#
29977# Check for the LQR (Liquid Rescale) delegate library.
29978#
29979
29980# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029981if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029982 withval=$with_lqr; with_lqr=$withval
29983else
29984 with_lqr='yes'
29985fi
29986
29987
29988if test "$with_lqr" != 'yes'; then
29989 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29990fi
29991
29992have_lqr='no'
29993LQR_CFLAGS=""
29994LQR_LIBS=""
29995LQR_PKG=""
29996if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29998$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029999
30000pkg_failed=no
30001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30002$as_echo_n "checking for LQR... " >&6; }
30003
30004if test -n "$LQR_CFLAGS"; then
30005 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30006 elif test -n "$PKG_CONFIG"; then
30007 if test -n "$PKG_CONFIG" && \
30008 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30009 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30010 ac_status=$?
30011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30012 test $ac_status = 0; }; then
30013 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30014else
30015 pkg_failed=yes
30016fi
30017 else
30018 pkg_failed=untried
30019fi
30020if test -n "$LQR_LIBS"; then
30021 pkg_cv_LQR_LIBS="$LQR_LIBS"
30022 elif test -n "$PKG_CONFIG"; then
30023 if test -n "$PKG_CONFIG" && \
30024 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30025 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30026 ac_status=$?
30027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30028 test $ac_status = 0; }; then
30029 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30030else
30031 pkg_failed=yes
30032fi
30033 else
30034 pkg_failed=untried
30035fi
30036
30037
30038
30039if test $pkg_failed = yes; then
30040
30041if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30042 _pkg_short_errors_supported=yes
30043else
30044 _pkg_short_errors_supported=no
30045fi
30046 if test $_pkg_short_errors_supported = yes; then
30047 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30048 else
30049 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30050 fi
30051 # Put the nasty error message in config.log where it belongs
30052 echo "$LQR_PKG_ERRORS" >&5
30053
30054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30055$as_echo "no" >&6; }
30056 have_lqr=no
30057elif test $pkg_failed = untried; then
30058 have_lqr=no
30059else
30060 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30061 LQR_LIBS=$pkg_cv_LQR_LIBS
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30063$as_echo "yes" >&6; }
30064 have_lqr=yes
30065fi
cristyad38abe2012-12-23 23:03:21 +000030066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30067$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030068fi
30069
30070if test "$have_lqr" = 'yes'; then
30071
cristy8b350f62009-11-15 23:12:43 +000030072$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030073
30074 CFLAGS="$LQR_CFLAGS $CFLAGS"
30075fi
30076
cristy73bd4a52010-10-05 11:24:23 +000030077 if test "$have_lqr" = 'yes'; then
30078 LQR_DELEGATE_TRUE=
30079 LQR_DELEGATE_FALSE='#'
30080else
30081 LQR_DELEGATE_TRUE='#'
30082 LQR_DELEGATE_FALSE=
30083fi
30084
cristy3ed852e2009-09-05 21:47:34 +000030085
30086
30087
30088
cristy81beccd2011-10-03 18:17:24 +000030089# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030090
30091# Check whether --with-lzma was given.
30092if test "${with_lzma+set}" = set; then :
30093 withval=$with_lzma; with_lzma=$withval
30094else
30095 with_lzma='yes'
30096fi
30097
cristy81beccd2011-10-03 18:17:24 +000030098if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030099 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30100fi
30101
cristyb94e5002011-11-14 13:20:10 +000030102LZMA_PKG=""
30103if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30105$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030106
30107pkg_failed=no
30108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030109$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030110
30111if test -n "$LZMA_CFLAGS"; then
30112 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30113 elif test -n "$PKG_CONFIG"; then
30114 if test -n "$PKG_CONFIG" && \
30115 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30116 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30117 ac_status=$?
30118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30119 test $ac_status = 0; }; then
30120 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30121else
30122 pkg_failed=yes
30123fi
30124 else
30125 pkg_failed=untried
30126fi
30127if test -n "$LZMA_LIBS"; then
30128 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30129 elif test -n "$PKG_CONFIG"; then
30130 if test -n "$PKG_CONFIG" && \
30131 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30132 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30133 ac_status=$?
30134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30135 test $ac_status = 0; }; then
30136 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30137else
30138 pkg_failed=yes
30139fi
30140 else
30141 pkg_failed=untried
30142fi
30143
30144
30145
30146if test $pkg_failed = yes; then
30147
30148if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30149 _pkg_short_errors_supported=yes
30150else
30151 _pkg_short_errors_supported=no
30152fi
30153 if test $_pkg_short_errors_supported = yes; then
30154 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30155 else
30156 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30157 fi
30158 # Put the nasty error message in config.log where it belongs
30159 echo "$LZMA_PKG_ERRORS" >&5
30160
30161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30162$as_echo "no" >&6; }
30163 have_lzma=no
30164elif test $pkg_failed = untried; then
30165 have_lzma=no
30166else
30167 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30168 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30170$as_echo "yes" >&6; }
30171 have_lzma=yes
30172fi
cristyad38abe2012-12-23 23:03:21 +000030173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30174$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030175fi
30176
cristyb94e5002011-11-14 13:20:10 +000030177if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030178
30179$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30180
cristyc6722092012-10-14 00:19:31 +000030181 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030182 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030183 fi
cristyfbb0ef02010-12-19 02:32:11 +000030184fi
cristyb94e5002011-11-14 13:20:10 +000030185
cristyfbb0ef02010-12-19 02:32:11 +000030186 if test "$have_lzma" = 'yes'; then
30187 LZMA_DELEGATE_TRUE=
30188 LZMA_DELEGATE_FALSE='#'
30189else
30190 LZMA_DELEGATE_TRUE='#'
30191 LZMA_DELEGATE_FALSE=
30192fi
30193
30194
30195
30196
cristyb94e5002011-11-14 13:20:10 +000030197
cristy3ed852e2009-09-05 21:47:34 +000030198#
30199# Check for the OpenEXR delegate library.
30200#
30201
30202# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030203if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030204 withval=$with_openexr; with_openexr=$withval
30205else
30206 with_openexr='yes'
30207fi
30208
30209
30210if test "$with_openexr" != 'yes'; then
30211 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30212fi
30213
30214have_openexr='no'
30215OPENEXR_CFLAGS=""
30216OPENEXR_LIBS=""
30217OPENEXR_PKG=""
30218if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30220$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030221
30222pkg_failed=no
30223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30224$as_echo_n "checking for OPENEXR... " >&6; }
30225
30226if test -n "$OPENEXR_CFLAGS"; then
30227 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30228 elif test -n "$PKG_CONFIG"; then
30229 if test -n "$PKG_CONFIG" && \
30230 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30231 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30232 ac_status=$?
30233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30234 test $ac_status = 0; }; then
30235 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30236else
30237 pkg_failed=yes
30238fi
30239 else
30240 pkg_failed=untried
30241fi
30242if test -n "$OPENEXR_LIBS"; then
30243 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30244 elif test -n "$PKG_CONFIG"; then
30245 if test -n "$PKG_CONFIG" && \
30246 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30247 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30248 ac_status=$?
30249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30250 test $ac_status = 0; }; then
30251 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30252else
30253 pkg_failed=yes
30254fi
30255 else
30256 pkg_failed=untried
30257fi
30258
30259
30260
30261if test $pkg_failed = yes; then
30262
30263if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30264 _pkg_short_errors_supported=yes
30265else
30266 _pkg_short_errors_supported=no
30267fi
30268 if test $_pkg_short_errors_supported = yes; then
30269 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30270 else
30271 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30272 fi
30273 # Put the nasty error message in config.log where it belongs
30274 echo "$OPENEXR_PKG_ERRORS" >&5
30275
30276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30277$as_echo "no" >&6; }
30278 have_openexr=no
30279elif test $pkg_failed = untried; then
30280 have_openexr=no
30281else
30282 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30283 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30285$as_echo "yes" >&6; }
30286 have_openexr=yes
30287fi
cristyad38abe2012-12-23 23:03:21 +000030288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30289$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030290fi
30291
30292if test "$have_openexr" = 'yes'; then
30293
cristy8b350f62009-11-15 23:12:43 +000030294$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030295
cristyc6722092012-10-14 00:19:31 +000030296 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030297 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30298 fi
30299fi
30300
cristy73bd4a52010-10-05 11:24:23 +000030301 if test "$have_openexr" = 'yes'; then
30302 OPENEXR_DELEGATE_TRUE=
30303 OPENEXR_DELEGATE_FALSE='#'
30304else
30305 OPENEXR_DELEGATE_TRUE='#'
30306 OPENEXR_DELEGATE_FALSE=
30307fi
30308
cristy3ed852e2009-09-05 21:47:34 +000030309
30310
30311
30312
30313#
cristy41cbe8a2011-10-27 01:35:18 +000030314# Check for PANGO delegate library.
30315#
30316
30317# Check whether --with-pango was given.
30318if test "${with_pango+set}" = set; then :
30319 withval=$with_pango; with_pango=$withval
30320else
cristyfc3d0222012-02-07 15:05:57 +000030321 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030322fi
30323
30324
30325if test "$with_pango" != 'yes'; then
30326 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30327fi
30328
30329have_pango='no'
cristya054b762012-03-26 23:16:00 +000030330have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030331PANGO_CFLAGS=""
30332PANGO_LIBS=""
30333PANGO_PKG=""
30334if test "x$with_pango" = "xyes"; then
30335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30336$as_echo "-------------------------------------------------------------" >&6; }
30337
30338pkg_failed=no
30339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30340$as_echo_n "checking for PANGO... " >&6; }
30341
30342if test -n "$PANGO_CFLAGS"; then
30343 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30344 elif test -n "$PKG_CONFIG"; then
30345 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030346 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30347 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030348 ac_status=$?
30349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30350 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030351 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030352else
30353 pkg_failed=yes
30354fi
30355 else
30356 pkg_failed=untried
30357fi
30358if test -n "$PANGO_LIBS"; then
30359 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30360 elif test -n "$PKG_CONFIG"; then
30361 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30363 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030364 ac_status=$?
30365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30366 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030367 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030368else
30369 pkg_failed=yes
30370fi
30371 else
30372 pkg_failed=untried
30373fi
30374
30375
30376
30377if test $pkg_failed = yes; then
30378
30379if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30380 _pkg_short_errors_supported=yes
30381else
30382 _pkg_short_errors_supported=no
30383fi
30384 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030385 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030386 else
cristya054b762012-03-26 23:16:00 +000030387 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030388 fi
30389 # Put the nasty error message in config.log where it belongs
30390 echo "$PANGO_PKG_ERRORS" >&5
30391
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30393$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030394 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030395elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030396 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030397else
30398 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30399 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30401$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030402 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030403fi
30404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30405$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030406
30407pkg_failed=no
30408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30409$as_echo_n "checking for PANGO... " >&6; }
30410
30411if test -n "$PANGO_CFLAGS"; then
30412 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30413 elif test -n "$PKG_CONFIG"; then
30414 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030415 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30416 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030417 ac_status=$?
30418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30419 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030420 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030421else
30422 pkg_failed=yes
30423fi
30424 else
30425 pkg_failed=untried
30426fi
30427if test -n "$PANGO_LIBS"; then
30428 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30429 elif test -n "$PKG_CONFIG"; then
30430 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030431 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30432 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030433 ac_status=$?
30434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30435 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030436 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030437else
30438 pkg_failed=yes
30439fi
30440 else
30441 pkg_failed=untried
30442fi
30443
30444
30445
30446if test $pkg_failed = yes; then
30447
30448if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30449 _pkg_short_errors_supported=yes
30450else
30451 _pkg_short_errors_supported=no
30452fi
30453 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030454 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030455 else
cristy2542fc62011-12-06 17:50:25 +000030456 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030457 fi
30458 # Put the nasty error message in config.log where it belongs
30459 echo "$PANGO_PKG_ERRORS" >&5
30460
30461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30462$as_echo "no" >&6; }
30463 have_pango=no
30464elif test $pkg_failed = untried; then
30465 have_pango=no
30466else
30467 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30468 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30470$as_echo "yes" >&6; }
30471 have_pango=yes
30472fi
30473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30474$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030475fi
30476
30477if test "$have_pango" = 'yes'; then
30478
30479$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30480
cristyc6722092012-10-14 00:19:31 +000030481 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030482 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30483 fi
30484fi
30485
cristya054b762012-03-26 23:16:00 +000030486if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030487
cristya054b762012-03-26 23:16:00 +000030488$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030489
cristyc6722092012-10-14 00:19:31 +000030490 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030491 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030492 fi
30493fi
30494
30495 if test "$have_pango" = 'yes'; then
30496 PANGO_DELEGATE_TRUE=
30497 PANGO_DELEGATE_FALSE='#'
30498else
30499 PANGO_DELEGATE_TRUE='#'
30500 PANGO_DELEGATE_FALSE=
30501fi
30502
cristya054b762012-03-26 23:16:00 +000030503 if test "$have_pangocairo" = 'yes'; then
30504 PANGOCAIRO_DELEGATE_TRUE=
30505 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030506else
cristya054b762012-03-26 23:16:00 +000030507 PANGOCAIRO_DELEGATE_TRUE='#'
30508 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030509fi
30510
30511
30512
30513
30514
30515#
cristy3ed852e2009-09-05 21:47:34 +000030516# Check for PNG delegate library.
30517#
30518
30519# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030520if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030521 withval=$with_png; with_png=$withval
30522else
30523 with_png='yes'
30524fi
30525
30526
30527if test "$with_png" != 'yes'; then
30528 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30529fi
30530
cristy81beccd2011-10-03 18:17:24 +000030531have_png='no'
30532PNG_LIBS=''
30533
30534if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30536$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30538$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30540$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030541 failed=0
30542 passed=0
30543 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30544if test "x$ac_cv_header_png_h" = xyes; then :
30545 passed=`expr $passed + 1`
30546else
30547 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030548fi
30549
cristy81beccd2011-10-03 18:17:24 +000030550
30551
30552 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030553 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030554 if test "$have_png" = 'no' ; then
30555 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030556 pnglib='png'
30557 else
30558 pnglib="png1${var}"
30559 fi
30560
30561# Test for compatible LIBPNG library
30562 failed=0
30563 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030564 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030565 if test "${pnglib}" != 'png' ; then
30566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30567$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30569/* end confdefs.h. */
30570#include <stdio.h>
30571#include <stdlib.h>
30572#include <png.h>
30573
30574int
30575main ()
30576{
30577
30578#if PNG_LIBPNG_VER_MINOR != ${var}
30579#error LIBPNG library must be version 1${var}!
30580Kaboom, Kaboom
30581#endif
30582return 0;
30583
30584 ;
30585 return 0;
30586}
30587_ACEOF
30588if ac_fn_c_try_compile "$LINENO"; then :
30589 ac_cv_libpng_ok='yes'
30590else
30591 ac_cv_libpng_ok='no'
30592fi
30593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30594 if test "$ac_cv_libpng_ok" = 'yes' ; then
30595 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30597$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030598 else
30599 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30601$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030602 fi
30603 else
30604 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30606$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030607 fi
30608 fi
30609
30610 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030611 if test "1${var}" = '17' ; then
30612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30613$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30614if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30615 $as_echo_n "(cached) " >&6
30616else
30617 ac_check_lib_save_LIBS=$LIBS
30618LIBS="-lpng17 $LIBS"
30619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30620/* end confdefs.h. */
30621
30622/* Override any GCC internal prototype to avoid an error.
30623 Use char because int might match the return type of a GCC
30624 builtin and then its argument prototype would still apply. */
30625#ifdef __cplusplus
30626extern "C"
30627#endif
30628char png_get_io_ptr ();
30629int
30630main ()
30631{
30632return png_get_io_ptr ();
30633 ;
30634 return 0;
30635}
30636_ACEOF
30637if ac_fn_c_try_link "$LINENO"; then :
30638 ac_cv_lib_png17_png_get_io_ptr=yes
30639else
30640 ac_cv_lib_png17_png_get_io_ptr=no
30641fi
30642rm -f core conftest.err conftest.$ac_objext \
30643 conftest$ac_exeext conftest.$ac_ext
30644LIBS=$ac_check_lib_save_LIBS
30645fi
30646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30647$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30648if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30649 passed=`expr $passed + 1`
30650else
30651 failed=`expr $failed + 1`
30652fi
30653
30654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30655$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30656if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30657 $as_echo_n "(cached) " >&6
30658else
30659 ac_check_lib_save_LIBS=$LIBS
30660LIBS="-lpng17 $LIBS"
30661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30662/* end confdefs.h. */
30663
30664/* Override any GCC internal prototype to avoid an error.
30665 Use char because int might match the return type of a GCC
30666 builtin and then its argument prototype would still apply. */
30667#ifdef __cplusplus
30668extern "C"
30669#endif
30670char png_longjmp ();
30671int
30672main ()
30673{
30674return png_longjmp ();
30675 ;
30676 return 0;
30677}
30678_ACEOF
30679if ac_fn_c_try_link "$LINENO"; then :
30680 ac_cv_lib_png17_png_longjmp=yes
30681else
30682 ac_cv_lib_png17_png_longjmp=no
30683fi
30684rm -f core conftest.err conftest.$ac_objext \
30685 conftest$ac_exeext conftest.$ac_ext
30686LIBS=$ac_check_lib_save_LIBS
30687fi
30688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30689$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30690if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30691 passed=`expr $passed + 1`
30692else
30693 failed=`expr $failed + 1`
30694fi
30695
30696 fi
30697 if test "1${var}" = '16' ; then
30698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30699$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30700if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30701 $as_echo_n "(cached) " >&6
30702else
30703 ac_check_lib_save_LIBS=$LIBS
30704LIBS="-lpng16 $LIBS"
30705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30706/* end confdefs.h. */
30707
30708/* Override any GCC internal prototype to avoid an error.
30709 Use char because int might match the return type of a GCC
30710 builtin and then its argument prototype would still apply. */
30711#ifdef __cplusplus
30712extern "C"
30713#endif
30714char png_get_io_ptr ();
30715int
30716main ()
30717{
30718return png_get_io_ptr ();
30719 ;
30720 return 0;
30721}
30722_ACEOF
30723if ac_fn_c_try_link "$LINENO"; then :
30724 ac_cv_lib_png16_png_get_io_ptr=yes
30725else
30726 ac_cv_lib_png16_png_get_io_ptr=no
30727fi
30728rm -f core conftest.err conftest.$ac_objext \
30729 conftest$ac_exeext conftest.$ac_ext
30730LIBS=$ac_check_lib_save_LIBS
30731fi
30732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30733$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30734if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30735 passed=`expr $passed + 1`
30736else
30737 failed=`expr $failed + 1`
30738fi
30739
30740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30741$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30742if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30743 $as_echo_n "(cached) " >&6
30744else
30745 ac_check_lib_save_LIBS=$LIBS
30746LIBS="-lpng16 $LIBS"
30747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30748/* end confdefs.h. */
30749
30750/* Override any GCC internal prototype to avoid an error.
30751 Use char because int might match the return type of a GCC
30752 builtin and then its argument prototype would still apply. */
30753#ifdef __cplusplus
30754extern "C"
30755#endif
30756char png_longjmp ();
30757int
30758main ()
30759{
30760return png_longjmp ();
30761 ;
30762 return 0;
30763}
30764_ACEOF
30765if ac_fn_c_try_link "$LINENO"; then :
30766 ac_cv_lib_png16_png_longjmp=yes
30767else
30768 ac_cv_lib_png16_png_longjmp=no
30769fi
30770rm -f core conftest.err conftest.$ac_objext \
30771 conftest$ac_exeext conftest.$ac_ext
30772LIBS=$ac_check_lib_save_LIBS
30773fi
30774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
30775$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
30776if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
30777 passed=`expr $passed + 1`
30778else
30779 failed=`expr $failed + 1`
30780fi
30781
30782 fi
cristy81beccd2011-10-03 18:17:24 +000030783 if test "1${var}" = '15' ; then
30784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30785$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30786if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30787 $as_echo_n "(cached) " >&6
30788else
30789 ac_check_lib_save_LIBS=$LIBS
30790LIBS="-lpng15 $LIBS"
30791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30792/* end confdefs.h. */
30793
30794/* Override any GCC internal prototype to avoid an error.
30795 Use char because int might match the return type of a GCC
30796 builtin and then its argument prototype would still apply. */
30797#ifdef __cplusplus
30798extern "C"
30799#endif
30800char png_get_io_ptr ();
30801int
30802main ()
30803{
30804return png_get_io_ptr ();
30805 ;
30806 return 0;
30807}
30808_ACEOF
30809if ac_fn_c_try_link "$LINENO"; then :
30810 ac_cv_lib_png15_png_get_io_ptr=yes
30811else
30812 ac_cv_lib_png15_png_get_io_ptr=no
30813fi
30814rm -f core conftest.err conftest.$ac_objext \
30815 conftest$ac_exeext conftest.$ac_ext
30816LIBS=$ac_check_lib_save_LIBS
30817fi
30818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30819$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30820if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30821 passed=`expr $passed + 1`
30822else
30823 failed=`expr $failed + 1`
30824fi
30825
30826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30827$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30828if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30829 $as_echo_n "(cached) " >&6
30830else
30831 ac_check_lib_save_LIBS=$LIBS
30832LIBS="-lpng15 $LIBS"
30833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30834/* end confdefs.h. */
30835
30836/* Override any GCC internal prototype to avoid an error.
30837 Use char because int might match the return type of a GCC
30838 builtin and then its argument prototype would still apply. */
30839#ifdef __cplusplus
30840extern "C"
30841#endif
30842char png_longjmp ();
30843int
30844main ()
30845{
30846return png_longjmp ();
30847 ;
30848 return 0;
30849}
30850_ACEOF
30851if ac_fn_c_try_link "$LINENO"; then :
30852 ac_cv_lib_png15_png_longjmp=yes
30853else
30854 ac_cv_lib_png15_png_longjmp=no
30855fi
30856rm -f core conftest.err conftest.$ac_objext \
30857 conftest$ac_exeext conftest.$ac_ext
30858LIBS=$ac_check_lib_save_LIBS
30859fi
30860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30861$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30862if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30863 passed=`expr $passed + 1`
30864else
30865 failed=`expr $failed + 1`
30866fi
30867
30868 fi
30869 if test "1${var}" = '14' ; then
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30871$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30872if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30873 $as_echo_n "(cached) " >&6
30874else
30875 ac_check_lib_save_LIBS=$LIBS
30876LIBS="-lpng14 $LIBS"
30877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30878/* end confdefs.h. */
30879
30880/* Override any GCC internal prototype to avoid an error.
30881 Use char because int might match the return type of a GCC
30882 builtin and then its argument prototype would still apply. */
30883#ifdef __cplusplus
30884extern "C"
30885#endif
30886char png_get_io_ptr ();
30887int
30888main ()
30889{
30890return png_get_io_ptr ();
30891 ;
30892 return 0;
30893}
30894_ACEOF
30895if ac_fn_c_try_link "$LINENO"; then :
30896 ac_cv_lib_png14_png_get_io_ptr=yes
30897else
30898 ac_cv_lib_png14_png_get_io_ptr=no
30899fi
30900rm -f core conftest.err conftest.$ac_objext \
30901 conftest$ac_exeext conftest.$ac_ext
30902LIBS=$ac_check_lib_save_LIBS
30903fi
30904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30905$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30906if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30907 passed=`expr $passed + 1`
30908else
30909 failed=`expr $failed + 1`
30910fi
30911
30912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30913$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30914if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30915 $as_echo_n "(cached) " >&6
30916else
30917 ac_check_lib_save_LIBS=$LIBS
30918LIBS="-lpng14 $LIBS"
30919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30920/* end confdefs.h. */
30921
30922/* Override any GCC internal prototype to avoid an error.
30923 Use char because int might match the return type of a GCC
30924 builtin and then its argument prototype would still apply. */
30925#ifdef __cplusplus
30926extern "C"
30927#endif
30928char png_get_io_state ();
30929int
30930main ()
30931{
30932return png_get_io_state ();
30933 ;
30934 return 0;
30935}
30936_ACEOF
30937if ac_fn_c_try_link "$LINENO"; then :
30938 ac_cv_lib_png14_png_get_io_state=yes
30939else
30940 ac_cv_lib_png14_png_get_io_state=no
30941fi
30942rm -f core conftest.err conftest.$ac_objext \
30943 conftest$ac_exeext conftest.$ac_ext
30944LIBS=$ac_check_lib_save_LIBS
30945fi
30946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30947$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30948if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30949 passed=`expr $passed + 1`
30950else
30951 failed=`expr $failed + 1`
30952fi
30953
30954 fi
30955 if test "1${var}" = '12' ; then
30956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30957$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30958if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30959 $as_echo_n "(cached) " >&6
30960else
30961 ac_check_lib_save_LIBS=$LIBS
30962LIBS="-lpng12 $LIBS"
30963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30964/* end confdefs.h. */
30965
30966/* Override any GCC internal prototype to avoid an error.
30967 Use char because int might match the return type of a GCC
30968 builtin and then its argument prototype would still apply. */
30969#ifdef __cplusplus
30970extern "C"
30971#endif
30972char png_get_io_ptr ();
30973int
30974main ()
30975{
30976return png_get_io_ptr ();
30977 ;
30978 return 0;
30979}
30980_ACEOF
30981if ac_fn_c_try_link "$LINENO"; then :
30982 ac_cv_lib_png12_png_get_io_ptr=yes
30983else
30984 ac_cv_lib_png12_png_get_io_ptr=no
30985fi
30986rm -f core conftest.err conftest.$ac_objext \
30987 conftest$ac_exeext conftest.$ac_ext
30988LIBS=$ac_check_lib_save_LIBS
30989fi
30990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30991$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30992if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30993 passed=`expr $passed + 1`
30994else
30995 failed=`expr $failed + 1`
30996fi
30997
30998 fi
30999 if test "1${var}" = '1' ; then
31000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31001$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31002if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31003 $as_echo_n "(cached) " >&6
31004else
31005 ac_check_lib_save_LIBS=$LIBS
31006LIBS="-lpng $LIBS"
31007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31008/* end confdefs.h. */
31009
31010/* Override any GCC internal prototype to avoid an error.
31011 Use char because int might match the return type of a GCC
31012 builtin and then its argument prototype would still apply. */
31013#ifdef __cplusplus
31014extern "C"
31015#endif
31016char png_get_io_ptr ();
31017int
31018main ()
31019{
31020return png_get_io_ptr ();
31021 ;
31022 return 0;
31023}
31024_ACEOF
31025if ac_fn_c_try_link "$LINENO"; then :
31026 ac_cv_lib_png_png_get_io_ptr=yes
31027else
31028 ac_cv_lib_png_png_get_io_ptr=no
31029fi
31030rm -f core conftest.err conftest.$ac_objext \
31031 conftest$ac_exeext conftest.$ac_ext
31032LIBS=$ac_check_lib_save_LIBS
31033fi
31034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31035$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31036if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31037 passed=`expr $passed + 1`
31038else
31039 failed=`expr $failed + 1`
31040fi
31041
31042 fi
31043 if test $passed -gt 0 -a $failed -le 0 ; then
31044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31045$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31046 if test $passed -gt 0 ; then
31047 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31049$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031050 have_png='no (failed tests)'
31051 else
31052 PNG_LIBS="-l${pnglib}"
31053 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031054
cristy8b350f62009-11-15 23:12:43 +000031055$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031056
cristyad38abe2012-12-23 23:03:21 +000031057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31058$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031059 have_png='yes'
31060 fi
31061 fi
31062 fi
31063 fi
31064 fi
31065 done
31066 fi
cristy3ed852e2009-09-05 21:47:34 +000031067fi
cristy64877302011-08-23 19:10:31 +000031068
cristy73bd4a52010-10-05 11:24:23 +000031069 if test "$have_png" = 'yes'; then
31070 PNG_DELEGATE_TRUE=
31071 PNG_DELEGATE_FALSE='#'
31072else
31073 PNG_DELEGATE_TRUE='#'
31074 PNG_DELEGATE_FALSE=
31075fi
31076
cristy3ed852e2009-09-05 21:47:34 +000031077
cristy50d3f5c2011-09-10 20:09:06 +000031078
cristy3ed852e2009-09-05 21:47:34 +000031079
31080
31081#
31082# Check for RSVG delegate library.
31083#
31084
31085# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031086if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031087 withval=$with_rsvg; with_rsvg=$withval
31088else
cristy1164d5f2012-08-15 00:58:25 +000031089 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031090fi
31091
31092
31093if test "$with_rsvg" != 'yes'; then
31094 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31095fi
31096
31097have_rsvg='no'
31098have_cairo='no'
31099RSVG_CFLAGS=""
31100RSVG_LIBS=""
31101RSVG_PKG=""
31102if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31104$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031105
31106pkg_failed=no
31107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31108$as_echo_n "checking for RSVG... " >&6; }
31109
31110if test -n "$RSVG_CFLAGS"; then
31111 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31112 elif test -n "$PKG_CONFIG"; then
31113 if test -n "$PKG_CONFIG" && \
31114 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31115 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31116 ac_status=$?
31117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31118 test $ac_status = 0; }; then
31119 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31120else
31121 pkg_failed=yes
31122fi
31123 else
31124 pkg_failed=untried
31125fi
31126if test -n "$RSVG_LIBS"; then
31127 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31128 elif test -n "$PKG_CONFIG"; then
31129 if test -n "$PKG_CONFIG" && \
31130 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31131 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31132 ac_status=$?
31133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31134 test $ac_status = 0; }; then
31135 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31136else
31137 pkg_failed=yes
31138fi
31139 else
31140 pkg_failed=untried
31141fi
31142
31143
31144
31145if test $pkg_failed = yes; then
31146
31147if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31148 _pkg_short_errors_supported=yes
31149else
31150 _pkg_short_errors_supported=no
31151fi
31152 if test $_pkg_short_errors_supported = yes; then
31153 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31154 else
31155 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31156 fi
31157 # Put the nasty error message in config.log where it belongs
31158 echo "$RSVG_PKG_ERRORS" >&5
31159
31160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31161$as_echo "no" >&6; }
31162 have_rsvg=no
31163elif test $pkg_failed = untried; then
31164 have_rsvg=no
31165else
31166 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31167 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31169$as_echo "yes" >&6; }
31170 have_rsvg=yes
31171fi
cristyad38abe2012-12-23 23:03:21 +000031172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31173$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031174
31175pkg_failed=no
31176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31177$as_echo_n "checking for CAIRO_SVG... " >&6; }
31178
31179if test -n "$CAIRO_SVG_CFLAGS"; then
31180 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31181 elif test -n "$PKG_CONFIG"; then
31182 if test -n "$PKG_CONFIG" && \
31183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31184 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31185 ac_status=$?
31186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31187 test $ac_status = 0; }; then
31188 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31189else
31190 pkg_failed=yes
31191fi
31192 else
31193 pkg_failed=untried
31194fi
31195if test -n "$CAIRO_SVG_LIBS"; then
31196 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31197 elif test -n "$PKG_CONFIG"; then
31198 if test -n "$PKG_CONFIG" && \
31199 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31200 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31201 ac_status=$?
31202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31203 test $ac_status = 0; }; then
31204 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31205else
31206 pkg_failed=yes
31207fi
31208 else
31209 pkg_failed=untried
31210fi
31211
31212
31213
31214if test $pkg_failed = yes; then
31215
31216if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31217 _pkg_short_errors_supported=yes
31218else
31219 _pkg_short_errors_supported=no
31220fi
31221 if test $_pkg_short_errors_supported = yes; then
31222 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31223 else
31224 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31225 fi
31226 # Put the nasty error message in config.log where it belongs
31227 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31228
31229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31230$as_echo "no" >&6; }
31231 have_cairo=no
31232elif test $pkg_failed = untried; then
31233 have_cairo=no
31234else
31235 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31236 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31238$as_echo "yes" >&6; }
31239 have_cairo=yes
31240fi
cristyad38abe2012-12-23 23:03:21 +000031241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31242$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031243fi
31244
31245if test "$have_rsvg" = 'yes'; then
31246
cristy8b350f62009-11-15 23:12:43 +000031247$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031248
cristyc6722092012-10-14 00:19:31 +000031249 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031250 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31251 fi
31252fi
31253
31254if test "$have_cairo" = 'yes'; then
31255
cristy8b350f62009-11-15 23:12:43 +000031256$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031257
cristyc6722092012-10-14 00:19:31 +000031258 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031259 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31260 fi
31261fi
31262
cristy73bd4a52010-10-05 11:24:23 +000031263 if test "$have_rsvg" = 'yes'; then
31264 RSVG_DELEGATE_TRUE=
31265 RSVG_DELEGATE_FALSE='#'
31266else
31267 RSVG_DELEGATE_TRUE='#'
31268 RSVG_DELEGATE_FALSE=
31269fi
31270
31271 if test "$have_cairo" = 'yes'; then
31272 CAIRO_DELEGATE_TRUE=
31273 CAIRO_DELEGATE_FALSE='#'
31274else
31275 CAIRO_DELEGATE_TRUE='#'
31276 CAIRO_DELEGATE_FALSE=
31277fi
31278
cristy3ed852e2009-09-05 21:47:34 +000031279
31280
31281
31282
31283#
31284# Check for TIFF delegate library.
31285#
31286
31287# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031288if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031289 withval=$with_tiff; with_tiff=$withval
31290else
31291 with_tiff='yes'
31292fi
31293
31294
31295if test "$with_tiff" != 'yes'; then
31296 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31297fi
31298
31299have_tiff='no'
31300TIFF_LIBS=''
31301if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31303$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031305$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31307$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031308 failed=0
31309 passed=0
cristy8b350f62009-11-15 23:12:43 +000031310 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031311if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031312 passed=`expr $passed + 1`
31313else
31314 failed=`expr $failed + 1`
31315fi
31316
31317
cristy8b350f62009-11-15 23:12:43 +000031318 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031319if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031320 passed=`expr $passed + 1`
31321else
31322 failed=`expr $failed + 1`
31323fi
31324
31325
cristy8b350f62009-11-15 23:12:43 +000031326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031327$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031328if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031329 $as_echo_n "(cached) " >&6
31330else
31331 ac_check_lib_save_LIBS=$LIBS
31332LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031334/* end confdefs.h. */
31335
31336/* Override any GCC internal prototype to avoid an error.
31337 Use char because int might match the return type of a GCC
31338 builtin and then its argument prototype would still apply. */
31339#ifdef __cplusplus
31340extern "C"
31341#endif
31342char TIFFOpen ();
31343int
31344main ()
31345{
31346return TIFFOpen ();
31347 ;
31348 return 0;
31349}
31350_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031351if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031352 ac_cv_lib_tiff_TIFFOpen=yes
31353else
cristy8b350f62009-11-15 23:12:43 +000031354 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031355fi
cristy8b350f62009-11-15 23:12:43 +000031356rm -f core conftest.err conftest.$ac_objext \
31357 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031358LIBS=$ac_check_lib_save_LIBS
31359fi
cristy8b350f62009-11-15 23:12:43 +000031360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031361$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031362if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031363 passed=`expr $passed + 1`
31364else
31365 failed=`expr $failed + 1`
31366fi
31367
cristy8b350f62009-11-15 23:12:43 +000031368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031369$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031370if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031371 $as_echo_n "(cached) " >&6
31372else
31373 ac_check_lib_save_LIBS=$LIBS
31374LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031376/* end confdefs.h. */
31377
31378/* Override any GCC internal prototype to avoid an error.
31379 Use char because int might match the return type of a GCC
31380 builtin and then its argument prototype would still apply. */
31381#ifdef __cplusplus
31382extern "C"
31383#endif
31384char TIFFClientOpen ();
31385int
31386main ()
31387{
31388return TIFFClientOpen ();
31389 ;
31390 return 0;
31391}
31392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031393if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031394 ac_cv_lib_tiff_TIFFClientOpen=yes
31395else
cristy8b350f62009-11-15 23:12:43 +000031396 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031397fi
cristy8b350f62009-11-15 23:12:43 +000031398rm -f core conftest.err conftest.$ac_objext \
31399 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031400LIBS=$ac_check_lib_save_LIBS
31401fi
cristy8b350f62009-11-15 23:12:43 +000031402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031403$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031404if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031405 passed=`expr $passed + 1`
31406else
31407 failed=`expr $failed + 1`
31408fi
31409
cristy8b350f62009-11-15 23:12:43 +000031410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031411$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031412if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031413 $as_echo_n "(cached) " >&6
31414else
31415 ac_check_lib_save_LIBS=$LIBS
31416LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031418/* end confdefs.h. */
31419
31420/* Override any GCC internal prototype to avoid an error.
31421 Use char because int might match the return type of a GCC
31422 builtin and then its argument prototype would still apply. */
31423#ifdef __cplusplus
31424extern "C"
31425#endif
31426char TIFFIsByteSwapped ();
31427int
31428main ()
31429{
31430return TIFFIsByteSwapped ();
31431 ;
31432 return 0;
31433}
31434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031435if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031436 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31437else
cristy8b350f62009-11-15 23:12:43 +000031438 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031439fi
cristy8b350f62009-11-15 23:12:43 +000031440rm -f core conftest.err conftest.$ac_objext \
31441 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031442LIBS=$ac_check_lib_save_LIBS
31443fi
cristy8b350f62009-11-15 23:12:43 +000031444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031445$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031446if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031447 passed=`expr $passed + 1`
31448else
31449 failed=`expr $failed + 1`
31450fi
31451
cristy8b350f62009-11-15 23:12:43 +000031452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031453$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031454if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031455 $as_echo_n "(cached) " >&6
31456else
31457 ac_check_lib_save_LIBS=$LIBS
31458LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031460/* end confdefs.h. */
31461
31462/* Override any GCC internal prototype to avoid an error.
31463 Use char because int might match the return type of a GCC
31464 builtin and then its argument prototype would still apply. */
31465#ifdef __cplusplus
31466extern "C"
31467#endif
31468char TIFFReadRGBATile ();
31469int
31470main ()
31471{
31472return TIFFReadRGBATile ();
31473 ;
31474 return 0;
31475}
31476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031477if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031478 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31479else
cristy8b350f62009-11-15 23:12:43 +000031480 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031481fi
cristy8b350f62009-11-15 23:12:43 +000031482rm -f core conftest.err conftest.$ac_objext \
31483 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031484LIBS=$ac_check_lib_save_LIBS
31485fi
cristy8b350f62009-11-15 23:12:43 +000031486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031487$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031488if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031489 passed=`expr $passed + 1`
31490else
31491 failed=`expr $failed + 1`
31492fi
31493
cristy8b350f62009-11-15 23:12:43 +000031494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031495$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031496if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031497 $as_echo_n "(cached) " >&6
31498else
31499 ac_check_lib_save_LIBS=$LIBS
31500LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031502/* end confdefs.h. */
31503
31504/* Override any GCC internal prototype to avoid an error.
31505 Use char because int might match the return type of a GCC
31506 builtin and then its argument prototype would still apply. */
31507#ifdef __cplusplus
31508extern "C"
31509#endif
31510char TIFFReadRGBAStrip ();
31511int
31512main ()
31513{
31514return TIFFReadRGBAStrip ();
31515 ;
31516 return 0;
31517}
31518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031519if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031520 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31521else
cristy8b350f62009-11-15 23:12:43 +000031522 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031523fi
cristy8b350f62009-11-15 23:12:43 +000031524rm -f core conftest.err conftest.$ac_objext \
31525 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031526LIBS=$ac_check_lib_save_LIBS
31527fi
cristy8b350f62009-11-15 23:12:43 +000031528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031529$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031530if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031531 passed=`expr $passed + 1`
31532else
31533 failed=`expr $failed + 1`
31534fi
31535
cristy8b350f62009-11-15 23:12:43 +000031536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031537$as_echo_n "checking if TIFF package is complete... " >&6; }
31538 if test $passed -gt 0; then
31539 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31541$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031542 have_tiff='no (failed tests)'
31543 else
31544 TIFF_LIBS='-ltiff'
31545 LIBS="$TIFF_LIBS $LIBS"
31546
cristy8b350f62009-11-15 23:12:43 +000031547$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031548
cristyad38abe2012-12-23 23:03:21 +000031549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31550$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031551 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031552 for ac_header in tiffconf.h
31553do :
31554 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031555if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031556 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031557#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031558_ACEOF
31559
31560fi
31561
31562done
31563
cristy8b350f62009-11-15 23:12:43 +000031564 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031565 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31566 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31567 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031568do :
31569 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31570ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031571if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031572 cat >>confdefs.h <<_ACEOF
31573#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31574_ACEOF
31575
31576fi
31577done
31578
31579 fi
31580 else
cristyad38abe2012-12-23 23:03:21 +000031581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31582$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031583 fi
31584fi
cristy73bd4a52010-10-05 11:24:23 +000031585 if test "$have_tiff" = 'yes'; then
31586 TIFF_DELEGATE_TRUE=
31587 TIFF_DELEGATE_FALSE='#'
31588else
31589 TIFF_DELEGATE_TRUE='#'
31590 TIFF_DELEGATE_FALSE=
31591fi
31592
cristy3ed852e2009-09-05 21:47:34 +000031593
31594
31595
31596#
cristyb1860752011-03-14 00:27:46 +000031597# Check for WEBP delegate library.
31598#
31599
31600# Check whether --with-webp was given.
31601if test "${with_webp+set}" = set; then :
31602 withval=$with_webp; with_webp=$withval
31603else
31604 with_webp='yes'
31605fi
31606
31607
31608if test "$with_webp" != 'yes'; then
31609 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31610fi
31611
31612have_webp='no'
31613WEBP_LIBS=''
31614if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31616$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31618$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31620$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031621 failed=0
31622 passed=0
31623 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31624if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31625 passed=`expr $passed + 1`
31626else
31627 failed=`expr $failed + 1`
31628fi
31629
31630
cristy6d670312013-03-22 23:23:01 +000031631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31632$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31633if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031634 $as_echo_n "(cached) " >&6
31635else
31636 ac_check_lib_save_LIBS=$LIBS
31637LIBS="-lwebp $LIBS"
31638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31639/* end confdefs.h. */
31640
31641/* Override any GCC internal prototype to avoid an error.
31642 Use char because int might match the return type of a GCC
31643 builtin and then its argument prototype would still apply. */
31644#ifdef __cplusplus
31645extern "C"
31646#endif
cristy6d670312013-03-22 23:23:01 +000031647char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031648int
31649main ()
31650{
cristy6d670312013-03-22 23:23:01 +000031651return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031652 ;
31653 return 0;
31654}
31655_ACEOF
31656if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031657 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031658else
cristy6d670312013-03-22 23:23:01 +000031659 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031660fi
31661rm -f core conftest.err conftest.$ac_objext \
31662 conftest$ac_exeext conftest.$ac_ext
31663LIBS=$ac_check_lib_save_LIBS
31664fi
cristy6d670312013-03-22 23:23:01 +000031665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31666$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31667if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031668 passed=`expr $passed + 1`
31669else
31670 failed=`expr $failed + 1`
31671fi
31672
31673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31674$as_echo_n "checking if WEBP package is complete... " >&6; }
31675 if test $passed -gt 0; then
31676 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31678$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031679 have_webp='no (failed tests)'
31680 else
31681 WEBP_LIBS='-lwebp'
31682 LIBS="$WEBP_LIBS $LIBS"
31683
31684$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31685
cristyad38abe2012-12-23 23:03:21 +000031686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31687$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031688 have_webp='yes'
31689 fi
31690 else
cristyad38abe2012-12-23 23:03:21 +000031691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31692$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031693 fi
31694fi
31695 if test "$have_webp" = 'yes'; then
31696 WEBP_DELEGATE_TRUE=
31697 WEBP_DELEGATE_FALSE='#'
31698else
31699 WEBP_DELEGATE_TRUE='#'
31700 WEBP_DELEGATE_FALSE=
31701fi
31702
31703
31704
31705
31706#
cristy3ed852e2009-09-05 21:47:34 +000031707# Set Windows font directory.
31708#
31709
31710# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031711if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031712 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31713else
31714 with_windows_font_dir=''
31715fi
31716
31717if test "$with_windows_font_dir" != '' ; then
31718 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31719fi
31720
31721
31722#
31723# Check for WMF delegate library.
31724#
31725
31726# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031727if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031728 withval=$with_wmf; with_wmf=$withval
31729else
cristyfc3d0222012-02-07 15:05:57 +000031730 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031731fi
31732
31733
31734if test "$with_wmf" != 'yes'; then
31735 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31736fi
31737
31738have_wmf='no'
31739WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031740WMF_LIBS_DEPS=''
31741OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031742if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31744$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031746$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31748$as_echo "" >&6; }
31749 have_libwmf='no'
31750 have_libwmflite='no'
31751 have_libwmf_ipa_h='no'
31752
31753 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31754"
31755if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31756 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031757fi
31758
31759
cristy03f7cf92011-12-15 01:40:41 +000031760 if test "$have_libwmf_ipa_h" = 'yes'; then
31761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31762$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31763if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031764 $as_echo_n "(cached) " >&6
31765else
31766 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031767LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031769/* end confdefs.h. */
31770
31771/* Override any GCC internal prototype to avoid an error.
31772 Use char because int might match the return type of a GCC
31773 builtin and then its argument prototype would still apply. */
31774#ifdef __cplusplus
31775extern "C"
31776#endif
cristy03f7cf92011-12-15 01:40:41 +000031777char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031778int
31779main ()
31780{
cristy03f7cf92011-12-15 01:40:41 +000031781return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031782 ;
31783 return 0;
31784}
31785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031786if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031787 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031788else
cristy03f7cf92011-12-15 01:40:41 +000031789 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031790fi
cristy8b350f62009-11-15 23:12:43 +000031791rm -f core conftest.err conftest.$ac_objext \
31792 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031793LIBS=$ac_check_lib_save_LIBS
31794fi
cristy03f7cf92011-12-15 01:40:41 +000031795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31796$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31797if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31798 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031799fi
31800
cristy03f7cf92011-12-15 01:40:41 +000031801 if test "$have_libwmflite" = 'yes'; then
31802
31803$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31804
31805 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031806 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031807 have_wmf='yes'
31808 else
31809 WMF_LIBS_DEPS=''
31810 WMF_CONFIG_LIBS=`libwmf-config --libs`
31811 for lib in xml2 expat freetype jpeg png z; do
31812 testlib="-l${lib}"
31813 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31814 done
31815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31816$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31817if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31818 $as_echo_n "(cached) " >&6
31819else
31820 ac_check_lib_save_LIBS=$LIBS
31821LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31823/* end confdefs.h. */
31824
31825/* Override any GCC internal prototype to avoid an error.
31826 Use char because int might match the return type of a GCC
31827 builtin and then its argument prototype would still apply. */
31828#ifdef __cplusplus
31829extern "C"
31830#endif
31831char wmf_api_create ();
31832int
31833main ()
31834{
31835return wmf_api_create ();
31836 ;
31837 return 0;
31838}
31839_ACEOF
31840if ac_fn_c_try_link "$LINENO"; then :
31841 ac_cv_lib_wmf_wmf_api_create=yes
31842else
31843 ac_cv_lib_wmf_wmf_api_create=no
31844fi
31845rm -f core conftest.err conftest.$ac_objext \
31846 conftest$ac_exeext conftest.$ac_ext
31847LIBS=$ac_check_lib_save_LIBS
31848fi
31849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31850$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31851if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31852 have_libwmf='yes'
31853fi
31854
31855 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031856
cristy8b350f62009-11-15 23:12:43 +000031857$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031858
cristy03f7cf92011-12-15 01:40:41 +000031859 WMF_LIBS='-lwmf'
31860 LIBS="$WMF_LIBS $LIBS"
31861 have_wmf='yes'
31862 else
31863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31864$as_echo "no -- some components failed test" >&6; }
31865 have_wmf='no (failed tests)'
31866 have_wmflite='no (failed tests)'
31867 LIBS="$OLIBS"
31868 WMF_LIBS=''
31869 fi
glennrp33e524b2011-08-24 17:41:57 +000031870 fi
cristy03f7cf92011-12-15 01:40:41 +000031871 fi
31872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31873$as_echo_n "checking if WMF package is complete... " >&6; }
31874 if test "$have_wmf" = 'yes'; then
31875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31876$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031877 else
cristy03f7cf92011-12-15 01:40:41 +000031878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31879$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031880 fi
cristy3ed852e2009-09-05 21:47:34 +000031881fi
cristy73bd4a52010-10-05 11:24:23 +000031882 if test "$have_wmf" = 'yes'; then
31883 WMF_DELEGATE_TRUE=
31884 WMF_DELEGATE_FALSE='#'
31885else
31886 WMF_DELEGATE_TRUE='#'
31887 WMF_DELEGATE_FALSE=
31888fi
31889
cristy3ed852e2009-09-05 21:47:34 +000031890
31891
31892
cristy81beccd2011-10-03 18:17:24 +000031893
31894
cristy3ed852e2009-09-05 21:47:34 +000031895#
31896# Check for XML delegate library.
31897#
31898
31899# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031900if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031901 withval=$with_xml; with_xml=$withval
31902else
cristyfc3d0222012-02-07 15:05:57 +000031903 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031904fi
31905
31906
cristy81beccd2011-10-03 18:17:24 +000031907if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031908 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31909fi
31910
cristy81beccd2011-10-03 18:17:24 +000031911have_xml='no'
31912XML_LIBS=''
31913if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31915$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31917$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31919$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031920 PERSIST_LDFLAGS=$LDFLAGS
31921 PERSIST_CPPFLAGS=$CPPFLAGS
31922 xml2_config=''
31923 # Extract the first word of "xml2-config", so it can be a program name with args.
31924set dummy xml2-config; ac_word=$2
31925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31926$as_echo_n "checking for $ac_word... " >&6; }
31927if ${ac_cv_path_xml2_config+:} false; then :
31928 $as_echo_n "(cached) " >&6
31929else
31930 case $xml2_config in
31931 [\\/]* | ?:[\\/]*)
31932 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31933 ;;
31934 *)
31935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31936for as_dir in $PATH
31937do
31938 IFS=$as_save_IFS
31939 test -z "$as_dir" && as_dir=.
31940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000031942 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31944 break 2
31945 fi
31946done
31947 done
31948IFS=$as_save_IFS
31949
31950 ;;
31951esac
31952fi
31953xml2_config=$ac_cv_path_xml2_config
31954if test -n "$xml2_config"; then
31955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31956$as_echo "$xml2_config" >&6; }
31957else
31958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31959$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031960fi
31961
cristy81beccd2011-10-03 18:17:24 +000031962 if test -n "$xml2_config"; then
31963 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31964 # the shared library installed under /usr/lib, whereas the package
31965 # installs itself under $prefix/libxml and $prefix/lib.
31966 xml2_prefix=`xml2-config --prefix`
31967 if test -d "${xml2_prefix}/include/libxml2"; then
31968 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31969 fi
31970 if test "${xml2_prefix}" != '/usr'; then
31971 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31972 fi
31973 fi
31974 failed=0
31975 passed=0
31976 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31977if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31978 passed=`expr $passed + 1`
31979else
31980 failed=`expr $failed + 1`
31981fi
31982
31983
31984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31985$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31986if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31987 $as_echo_n "(cached) " >&6
31988else
31989 ac_check_lib_save_LIBS=$LIBS
31990LIBS="-lxml2 $LIBS"
31991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31992/* end confdefs.h. */
31993
31994/* Override any GCC internal prototype to avoid an error.
31995 Use char because int might match the return type of a GCC
31996 builtin and then its argument prototype would still apply. */
31997#ifdef __cplusplus
31998extern "C"
31999#endif
32000char xmlSAXVersion ();
32001int
32002main ()
32003{
32004return xmlSAXVersion ();
32005 ;
32006 return 0;
32007}
32008_ACEOF
32009if ac_fn_c_try_link "$LINENO"; then :
32010 ac_cv_lib_xml2_xmlSAXVersion=yes
32011else
32012 ac_cv_lib_xml2_xmlSAXVersion=no
32013fi
32014rm -f core conftest.err conftest.$ac_objext \
32015 conftest$ac_exeext conftest.$ac_ext
32016LIBS=$ac_check_lib_save_LIBS
32017fi
32018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32019$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32020if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32021 passed=`expr $passed + 1`
32022else
32023 failed=`expr $failed + 1`
32024fi
32025
32026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32027$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32028if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32029 $as_echo_n "(cached) " >&6
32030else
32031 ac_check_lib_save_LIBS=$LIBS
32032LIBS="-lxml2 $LIBS"
32033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32034/* end confdefs.h. */
32035
32036/* Override any GCC internal prototype to avoid an error.
32037 Use char because int might match the return type of a GCC
32038 builtin and then its argument prototype would still apply. */
32039#ifdef __cplusplus
32040extern "C"
32041#endif
32042char xmlParseChunk ();
32043int
32044main ()
32045{
32046return xmlParseChunk ();
32047 ;
32048 return 0;
32049}
32050_ACEOF
32051if ac_fn_c_try_link "$LINENO"; then :
32052 ac_cv_lib_xml2_xmlParseChunk=yes
32053else
32054 ac_cv_lib_xml2_xmlParseChunk=no
32055fi
32056rm -f core conftest.err conftest.$ac_objext \
32057 conftest$ac_exeext conftest.$ac_ext
32058LIBS=$ac_check_lib_save_LIBS
32059fi
32060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32061$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32062if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32063 passed=`expr $passed + 1`
32064else
32065 failed=`expr $failed + 1`
32066fi
32067
32068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32069$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32070if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32071 $as_echo_n "(cached) " >&6
32072else
32073 ac_check_lib_save_LIBS=$LIBS
32074LIBS="-lxml2 $LIBS"
32075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32076/* end confdefs.h. */
32077
32078/* Override any GCC internal prototype to avoid an error.
32079 Use char because int might match the return type of a GCC
32080 builtin and then its argument prototype would still apply. */
32081#ifdef __cplusplus
32082extern "C"
32083#endif
32084char xmlCreatePushParserCtxt ();
32085int
32086main ()
32087{
32088return xmlCreatePushParserCtxt ();
32089 ;
32090 return 0;
32091}
32092_ACEOF
32093if ac_fn_c_try_link "$LINENO"; then :
32094 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32095else
32096 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32097fi
32098rm -f core conftest.err conftest.$ac_objext \
32099 conftest$ac_exeext conftest.$ac_ext
32100LIBS=$ac_check_lib_save_LIBS
32101fi
32102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32103$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32104if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32105 passed=`expr $passed + 1`
32106else
32107 failed=`expr $failed + 1`
32108fi
32109
32110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32111$as_echo_n "checking if XML package is complete... " >&6; }
32112 if test $passed -gt 0; then
32113 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32115$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032116 have_xml='no (failed tests)'
32117 LDFLAGS="$PERSIST_LDFLAGS"
32118 CPPFLAGS="$PERSIST_CPPFLAGS"
32119 else
32120 XML_LIBS='-lxml2'
32121 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032122
cristy8b350f62009-11-15 23:12:43 +000032123$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032124
cristyad38abe2012-12-23 23:03:21 +000032125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32126$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032127 have_xml='yes'
32128 fi
32129 else
cristyad38abe2012-12-23 23:03:21 +000032130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32131$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032132 fi
32133fi
cristy73bd4a52010-10-05 11:24:23 +000032134 if test "$have_xml" = 'yes'; then
32135 XML_DELEGATE_TRUE=
32136 XML_DELEGATE_FALSE='#'
32137else
32138 XML_DELEGATE_TRUE='#'
32139 XML_DELEGATE_FALSE=
32140fi
32141
cristy3ed852e2009-09-05 21:47:34 +000032142
32143
32144
32145# Substitute compiler name to build/link PerlMagick
32146#
32147
32148
32149#
32150# Configure install Paths
32151#
cristy7def36a2011-10-28 19:04:41 +000032152
cristy2a11bef2011-10-28 18:33:11 +000032153# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032154INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032155INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32156DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032157case "${build_os}" in
32158 mingw* )
32159 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32160 ;;
32161esac
32162
32163cat >>confdefs.h <<_ACEOF
32164#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32165_ACEOF
32166
32167
cristy3ed852e2009-09-05 21:47:34 +000032168
cristye52f12f2012-12-31 15:32:36 +000032169# Path to ImageMagick header files (arch part)
32170INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32171DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32172case "${build_os}" in
32173 mingw* )
32174 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32175 ;;
32176esac
32177
32178cat >>confdefs.h <<_ACEOF
32179#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32180_ACEOF
32181
32182
32183
cristy3ed852e2009-09-05 21:47:34 +000032184# Subdirectory under lib to place ImageMagick lib files
32185LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32186
32187cat >>confdefs.h <<_ACEOF
32188#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32189_ACEOF
32190
32191
32192# Path to ImageMagick bin directory
32193EXECUTABLE_PATH="${BIN_DIR}"
32194DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32195case "${build_os}" in
32196 mingw* )
32197 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32198 ;;
32199esac
32200
32201cat >>confdefs.h <<_ACEOF
32202#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32203_ACEOF
32204
32205
32206
32207# Path to ImageMagick lib
32208LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32209DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32210case "${build_os}" in
32211 mingw* )
32212 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32213 ;;
32214esac
32215
32216cat >>confdefs.h <<_ACEOF
32217#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32218_ACEOF
32219
32220
32221
cristy3ed852e2009-09-05 21:47:34 +000032222#
cristy8d0ff762013-03-10 20:33:28 +000032223# path to local binaries
32224if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32225 LIB_BIN_BASEDIRNAME="bin"
32226fi
32227
32228cat >>confdefs.h <<_ACEOF
32229#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32230_ACEOF
32231
32232
32233
32234if test "x$LIB_BIN_DIR" = "x"; then
32235 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32236fi
32237
32238
32239LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32240
32241LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32242
32243
32244#
cristy01ff9f32012-12-01 18:15:29 +000032245# path to modules lib
32246if test "x$MODULES_BASEDIRNAME" = "x"; then
32247 MODULES_BASEDIRNAME="modules"
32248fi
cristy3ed852e2009-09-05 21:47:34 +000032249
32250cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032251#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032252_ACEOF
32253
cristy01ff9f32012-12-01 18:15:29 +000032254
32255
32256if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032257 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32258else
cristy3ed852e2009-09-05 21:47:34 +000032259
32260cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032261#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032262_ACEOF
32263
cristycf4a3c22012-12-02 21:47:25 +000032264fi
cristy01ff9f32012-12-01 18:15:29 +000032265
32266
cristy371d4812012-12-01 19:48:10 +000032267MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032268
32269MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32270
32271
32272#
32273# path to coders lib
32274if test "x$CODER_DIRNAME" = "x"; then
32275 CODER_DIRNAME="coders"
32276fi
32277
32278cat >>confdefs.h <<_ACEOF
32279#define CODER_DIRNAME "$CODER_DIRNAME"
32280_ACEOF
32281
32282
32283
cristy371d4812012-12-01 19:48:10 +000032284CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032285CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032286
32287
32288#
32289# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032290#
32291# path to coders lib
32292if test "x$FILTER_DIRNAME" = "x"; then
32293 FILTER_DIRNAME="filters"
32294fi
cristy3ed852e2009-09-05 21:47:34 +000032295
32296cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032297#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032298_ACEOF
32299
cristy3ed852e2009-09-05 21:47:34 +000032300
cristy3ed852e2009-09-05 21:47:34 +000032301
cristy371d4812012-12-01 19:48:10 +000032302FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032303FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032304
32305
32306#
32307# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032308DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032309DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32310DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032311case "${build_os}" in
32312 mingw* )
32313 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32314 ;;
32315esac
32316
32317cat >>confdefs.h <<_ACEOF
32318#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32319_ACEOF
32320
32321
32322
cristy2a11bef2011-10-28 18:33:11 +000032323# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032324CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032325
32326cat >>confdefs.h <<_ACEOF
32327#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32328_ACEOF
32329
cristy7def36a2011-10-28 19:04:41 +000032330CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032331DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32332case "${build_os}" in
32333 mingw* )
32334 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32335 ;;
32336esac
32337
32338cat >>confdefs.h <<_ACEOF
32339#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32340_ACEOF
32341
32342
32343
cristy2a11bef2011-10-28 18:33:11 +000032344# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032345SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032346
32347cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032348#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032349_ACEOF
32350
cristy670aa3c2011-11-03 00:54:00 +000032351SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032352DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032353case "${build_os}" in
32354 mingw* )
cristy4f820712011-04-01 12:35:43 +000032355 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032356 ;;
32357esac
32358
32359cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032360#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032361_ACEOF
32362
32363
32364
cristy54378032012-12-04 15:52:20 +000032365#
32366# Subdirectory to place architecture-dependent configuration files.
32367if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32368 SHAREARCH_BASEDIRNAME="config"
32369fi
cristy670aa3c2011-11-03 00:54:00 +000032370
32371cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032372#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032373_ACEOF
32374
cristy54378032012-12-04 15:52:20 +000032375
32376
32377if test "x$SHAREARCH_DIRNAME" = "x"; then
32378 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32379else
cristy670aa3c2011-11-03 00:54:00 +000032380
32381cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032382#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032383_ACEOF
32384
cristy54378032012-12-04 15:52:20 +000032385fi
32386
32387
32388SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32389
32390SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032391
32392
cristy3ed852e2009-09-05 21:47:34 +000032393#
32394# program_transform_name is formed for use in a Makefile, so create a
32395# modified version for use in a shell script.
32396configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32397
32398# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32400$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032402$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32404$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032405AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032406BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032407BZIPDelegateDefault='bzip2'
32408BrowseDelegateDefault='xdg-open'
32409CGMDecodeDelegateDefault='ralcgm'
32410CatDelegateDefault='cat'
32411DNGDecodeDelegateDefault='ufraw-batch'
32412GVCDecodeDelegateDefault='dot'
32413DVIDecodeDelegateDefault='dvips'
32414EchoDelegateDefault='echo'
32415EditorDelegateDefault='xterm'
32416FIGDecodeDelegateDefault='fig2dev'
32417ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32418DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32419MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32420GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032421HPGLDecodeDelegateDefault='hp2xx'
32422HTMLDecodeDelegateDefault='html2ps'
32423ILBMDecodeDelegateDefault='ilbmtoppm'
32424ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032425JXRDecodeDelegateDefault='JxrDecApp'
32426JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032427LPDelegateDefault='lp'
32428LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032429LaunchDelegateDefault='gimp'
32430MANDelegateDefault='groff'
32431MPEGDecodeDelegateDefault='ffmpeg'
32432MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032433MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032434MVDelegateDefault='mv'
32435PCLDelegateDefault='pcl6'
32436PGPDecodeDelegateDefault='pgpv'
32437POVDelegateDefault='povray'
32438if test "$native_win32_build" = 'yes'; then
32439 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032440elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032441 PSDelegateDefault='gsc'
32442else
32443 PSDelegateDefault='gs'
32444fi
32445RLEEncodeDelegateDefault='rawtorle'
32446RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032447RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032448SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032449SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032450TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032451UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032452WMFDecodeDelegateDefault='wmf2eps'
32453WWWDecodeDelegateDefault='curl'
32454XPSDelegateDefault='gxps'
32455ZipDelegateDefault='gzip'
32456
32457# Search for delegates
32458# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32459set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032462if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032463 $as_echo_n "(cached) " >&6
32464else
32465 case $AutotraceDecodeDelegate in
32466 [\\/]* | ?:[\\/]*)
32467 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32468 ;;
32469 *)
32470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32471for as_dir in $PATH
32472do
32473 IFS=$as_save_IFS
32474 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032477 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032479 break 2
32480 fi
32481done
cristy8b350f62009-11-15 23:12:43 +000032482 done
cristy3ed852e2009-09-05 21:47:34 +000032483IFS=$as_save_IFS
32484
32485 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32486 ;;
32487esac
32488fi
32489AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32490if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032492$as_echo "$AutotraceDecodeDelegate" >&6; }
32493else
cristy8b350f62009-11-15 23:12:43 +000032494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032495$as_echo "no" >&6; }
32496fi
32497
32498
cristy3ed852e2009-09-05 21:47:34 +000032499# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32500set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032503if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032504 $as_echo_n "(cached) " >&6
32505else
32506 case $BlenderDecodeDelegate in
32507 [\\/]* | ?:[\\/]*)
32508 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32509 ;;
32510 *)
32511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32512for as_dir in $PATH
32513do
32514 IFS=$as_save_IFS
32515 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032518 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032520 break 2
32521 fi
32522done
cristy8b350f62009-11-15 23:12:43 +000032523 done
cristy3ed852e2009-09-05 21:47:34 +000032524IFS=$as_save_IFS
32525
32526 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32527 ;;
32528esac
32529fi
32530BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32531if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032533$as_echo "$BlenderDecodeDelegate" >&6; }
32534else
cristy8b350f62009-11-15 23:12:43 +000032535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032536$as_echo "no" >&6; }
32537fi
32538
32539
32540# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32541set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032544if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032545 $as_echo_n "(cached) " >&6
32546else
32547 case $BZIPDelegate in
32548 [\\/]* | ?:[\\/]*)
32549 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32550 ;;
32551 *)
32552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32553for as_dir in $PATH
32554do
32555 IFS=$as_save_IFS
32556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032559 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032561 break 2
32562 fi
32563done
cristy8b350f62009-11-15 23:12:43 +000032564 done
cristy3ed852e2009-09-05 21:47:34 +000032565IFS=$as_save_IFS
32566
32567 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32568 ;;
32569esac
32570fi
32571BZIPDelegate=$ac_cv_path_BZIPDelegate
32572if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032574$as_echo "$BZIPDelegate" >&6; }
32575else
cristy8b350f62009-11-15 23:12:43 +000032576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032577$as_echo "no" >&6; }
32578fi
32579
32580
cristyc59f0e72012-08-27 12:59:33 +000032581for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32582do
32583 # Extract the first word of "$ac_prog", so it can be a program name with args.
32584set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032586$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032587if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032588 $as_echo_n "(cached) " >&6
32589else
32590 case $BrowseDelegate in
32591 [\\/]* | ?:[\\/]*)
32592 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32593 ;;
32594 *)
32595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32596for as_dir in $PATH
32597do
32598 IFS=$as_save_IFS
32599 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032600 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032602 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032604 break 2
32605 fi
32606done
cristy8b350f62009-11-15 23:12:43 +000032607 done
cristy3ed852e2009-09-05 21:47:34 +000032608IFS=$as_save_IFS
32609
cristy3ed852e2009-09-05 21:47:34 +000032610 ;;
32611esac
32612fi
32613BrowseDelegate=$ac_cv_path_BrowseDelegate
32614if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032616$as_echo "$BrowseDelegate" >&6; }
32617else
cristy8b350f62009-11-15 23:12:43 +000032618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032619$as_echo "no" >&6; }
32620fi
32621
32622
cristyc59f0e72012-08-27 12:59:33 +000032623 test -n "$BrowseDelegate" && break
32624done
32625test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32626
cristy3ed852e2009-09-05 21:47:34 +000032627# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32628set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032630$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032631if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032632 $as_echo_n "(cached) " >&6
32633else
32634 case $CGMDecodeDelegate in
32635 [\\/]* | ?:[\\/]*)
32636 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32637 ;;
32638 *)
32639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32640for as_dir in $PATH
32641do
32642 IFS=$as_save_IFS
32643 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032646 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032648 break 2
32649 fi
32650done
cristy8b350f62009-11-15 23:12:43 +000032651 done
cristy3ed852e2009-09-05 21:47:34 +000032652IFS=$as_save_IFS
32653
32654 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32655 ;;
32656esac
32657fi
32658CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32659if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032661$as_echo "$CGMDecodeDelegate" >&6; }
32662else
cristy8b350f62009-11-15 23:12:43 +000032663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032664$as_echo "no" >&6; }
32665fi
32666
32667
32668# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32669set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032671$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032672if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032673 $as_echo_n "(cached) " >&6
32674else
32675 case $CatDelegate in
32676 [\\/]* | ?:[\\/]*)
32677 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32678 ;;
32679 *)
32680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32681for as_dir in $PATH
32682do
32683 IFS=$as_save_IFS
32684 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032685 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032687 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032689 break 2
32690 fi
32691done
cristy8b350f62009-11-15 23:12:43 +000032692 done
cristy3ed852e2009-09-05 21:47:34 +000032693IFS=$as_save_IFS
32694
32695 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32696 ;;
32697esac
32698fi
32699CatDelegate=$ac_cv_path_CatDelegate
32700if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032702$as_echo "$CatDelegate" >&6; }
32703else
cristy8b350f62009-11-15 23:12:43 +000032704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032705$as_echo "no" >&6; }
32706fi
32707
32708
32709# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32710set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032712$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032713if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032714 $as_echo_n "(cached) " >&6
32715else
32716 case $DNGDecodeDelegate in
32717 [\\/]* | ?:[\\/]*)
32718 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32719 ;;
32720 *)
32721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32722for as_dir in $PATH
32723do
32724 IFS=$as_save_IFS
32725 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032726 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032728 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032730 break 2
32731 fi
32732done
cristy8b350f62009-11-15 23:12:43 +000032733 done
cristy3ed852e2009-09-05 21:47:34 +000032734IFS=$as_save_IFS
32735
32736 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32737 ;;
32738esac
32739fi
32740DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32741if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032743$as_echo "$DNGDecodeDelegate" >&6; }
32744else
cristy8b350f62009-11-15 23:12:43 +000032745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032746$as_echo "no" >&6; }
32747fi
32748
32749
32750# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32751set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032753$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032754if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032755 $as_echo_n "(cached) " >&6
32756else
32757 case $GVCDecodeDelegate in
32758 [\\/]* | ?:[\\/]*)
32759 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32760 ;;
32761 *)
32762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32763for as_dir in $PATH
32764do
32765 IFS=$as_save_IFS
32766 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032767 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032769 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032771 break 2
32772 fi
32773done
cristy8b350f62009-11-15 23:12:43 +000032774 done
cristy3ed852e2009-09-05 21:47:34 +000032775IFS=$as_save_IFS
32776
32777 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32778 ;;
32779esac
32780fi
32781GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32782if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032784$as_echo "$GVCDecodeDelegate" >&6; }
32785else
cristy8b350f62009-11-15 23:12:43 +000032786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032787$as_echo "no" >&6; }
32788fi
32789
32790
32791# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32792set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032794$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032795if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032796 $as_echo_n "(cached) " >&6
32797else
32798 case $DVIDecodeDelegate in
32799 [\\/]* | ?:[\\/]*)
32800 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32801 ;;
32802 *)
32803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32804for as_dir in $PATH
32805do
32806 IFS=$as_save_IFS
32807 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032808 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032810 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032812 break 2
32813 fi
32814done
cristy8b350f62009-11-15 23:12:43 +000032815 done
cristy3ed852e2009-09-05 21:47:34 +000032816IFS=$as_save_IFS
32817
32818 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32819 ;;
32820esac
32821fi
32822DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32823if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032825$as_echo "$DVIDecodeDelegate" >&6; }
32826else
cristy8b350f62009-11-15 23:12:43 +000032827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032828$as_echo "no" >&6; }
32829fi
32830
32831
32832# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32833set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032835$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032836if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032837 $as_echo_n "(cached) " >&6
32838else
32839 case $EchoDelegate in
32840 [\\/]* | ?:[\\/]*)
32841 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32842 ;;
32843 *)
32844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32845for as_dir in $PATH
32846do
32847 IFS=$as_save_IFS
32848 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032851 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032853 break 2
32854 fi
32855done
cristy8b350f62009-11-15 23:12:43 +000032856 done
cristy3ed852e2009-09-05 21:47:34 +000032857IFS=$as_save_IFS
32858
32859 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32860 ;;
32861esac
32862fi
32863EchoDelegate=$ac_cv_path_EchoDelegate
32864if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032866$as_echo "$EchoDelegate" >&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
32873# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32874set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032877if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032878 $as_echo_n "(cached) " >&6
32879else
32880 case $EditorDelegate in
32881 [\\/]* | ?:[\\/]*)
32882 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32883 ;;
32884 *)
32885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32886for as_dir in $PATH
32887do
32888 IFS=$as_save_IFS
32889 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032890 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032892 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032894 break 2
32895 fi
32896done
cristy8b350f62009-11-15 23:12:43 +000032897 done
cristy3ed852e2009-09-05 21:47:34 +000032898IFS=$as_save_IFS
32899
32900 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32901 ;;
32902esac
32903fi
32904EditorDelegate=$ac_cv_path_EditorDelegate
32905if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032907$as_echo "$EditorDelegate" >&6; }
32908else
cristy8b350f62009-11-15 23:12:43 +000032909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032910$as_echo "no" >&6; }
32911fi
32912
32913
32914# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32915set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032917$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032918if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032919 $as_echo_n "(cached) " >&6
32920else
32921 case $FIGDecodeDelegate in
32922 [\\/]* | ?:[\\/]*)
32923 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32924 ;;
32925 *)
32926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32927for as_dir in $PATH
32928do
32929 IFS=$as_save_IFS
32930 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032931 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032933 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032935 break 2
32936 fi
32937done
cristy8b350f62009-11-15 23:12:43 +000032938 done
cristy3ed852e2009-09-05 21:47:34 +000032939IFS=$as_save_IFS
32940
32941 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32942 ;;
32943esac
32944fi
32945FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32946if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032948$as_echo "$FIGDecodeDelegate" >&6; }
32949else
cristy8b350f62009-11-15 23:12:43 +000032950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032951$as_echo "no" >&6; }
32952fi
32953
32954
32955# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32956set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032958$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032959if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032960 $as_echo_n "(cached) " >&6
32961else
32962 case $ConvertDelegate in
32963 [\\/]* | ?:[\\/]*)
32964 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32965 ;;
32966 *)
32967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32968for as_dir in $PATH
32969do
32970 IFS=$as_save_IFS
32971 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032974 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032976 break 2
32977 fi
32978done
cristy8b350f62009-11-15 23:12:43 +000032979 done
cristy3ed852e2009-09-05 21:47:34 +000032980IFS=$as_save_IFS
32981
32982 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32983 ;;
32984esac
32985fi
32986ConvertDelegate=$ac_cv_path_ConvertDelegate
32987if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032989$as_echo "$ConvertDelegate" >&6; }
32990else
cristy8b350f62009-11-15 23:12:43 +000032991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032992$as_echo "no" >&6; }
32993fi
32994
32995
32996# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32997set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032999$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033000if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033001 $as_echo_n "(cached) " >&6
33002else
33003 case $DisplayDelegate in
33004 [\\/]* | ?:[\\/]*)
33005 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33006 ;;
33007 *)
33008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33009for as_dir in $PATH
33010do
33011 IFS=$as_save_IFS
33012 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033015 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033017 break 2
33018 fi
33019done
cristy8b350f62009-11-15 23:12:43 +000033020 done
cristy3ed852e2009-09-05 21:47:34 +000033021IFS=$as_save_IFS
33022
33023 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33024 ;;
33025esac
33026fi
33027DisplayDelegate=$ac_cv_path_DisplayDelegate
33028if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033030$as_echo "$DisplayDelegate" >&6; }
33031else
cristy8b350f62009-11-15 23:12:43 +000033032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033$as_echo "no" >&6; }
33034fi
33035
33036
33037# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33038set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033041if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033042 $as_echo_n "(cached) " >&6
33043else
33044 case $MogrifyDelegate in
33045 [\\/]* | ?:[\\/]*)
33046 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33047 ;;
33048 *)
33049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33050for as_dir in $PATH
33051do
33052 IFS=$as_save_IFS
33053 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033056 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033058 break 2
33059 fi
33060done
cristy8b350f62009-11-15 23:12:43 +000033061 done
cristy3ed852e2009-09-05 21:47:34 +000033062IFS=$as_save_IFS
33063
33064 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33065 ;;
33066esac
33067fi
33068MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33069if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033071$as_echo "$MogrifyDelegate" >&6; }
33072else
cristy8b350f62009-11-15 23:12:43 +000033073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033074$as_echo "no" >&6; }
33075fi
33076
33077
33078# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33079set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033082if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033083 $as_echo_n "(cached) " >&6
33084else
33085 case $GnuplotDecodeDelegate in
33086 [\\/]* | ?:[\\/]*)
33087 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33088 ;;
33089 *)
33090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33091for as_dir in $PATH
33092do
33093 IFS=$as_save_IFS
33094 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033095 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033097 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033099 break 2
33100 fi
33101done
cristy8b350f62009-11-15 23:12:43 +000033102 done
cristy3ed852e2009-09-05 21:47:34 +000033103IFS=$as_save_IFS
33104
33105 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33106 ;;
33107esac
33108fi
33109GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33110if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033112$as_echo "$GnuplotDecodeDelegate" >&6; }
33113else
cristy8b350f62009-11-15 23:12:43 +000033114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033115$as_echo "no" >&6; }
33116fi
33117
33118
cristy3ed852e2009-09-05 21:47:34 +000033119# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33120set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033122$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033123if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033124 $as_echo_n "(cached) " >&6
33125else
33126 case $HPGLDecodeDelegate in
33127 [\\/]* | ?:[\\/]*)
33128 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33129 ;;
33130 *)
33131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33132for as_dir in $PATH
33133do
33134 IFS=$as_save_IFS
33135 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033136 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033138 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033140 break 2
33141 fi
33142done
cristy8b350f62009-11-15 23:12:43 +000033143 done
cristy3ed852e2009-09-05 21:47:34 +000033144IFS=$as_save_IFS
33145
33146 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33147 ;;
33148esac
33149fi
33150HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33151if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033153$as_echo "$HPGLDecodeDelegate" >&6; }
33154else
cristy8b350f62009-11-15 23:12:43 +000033155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033156$as_echo "no" >&6; }
33157fi
33158
33159
33160# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33161set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033163$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033164if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033165 $as_echo_n "(cached) " >&6
33166else
33167 case $HTMLDecodeDelegate in
33168 [\\/]* | ?:[\\/]*)
33169 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33170 ;;
33171 *)
33172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33173for as_dir in $PATH
33174do
33175 IFS=$as_save_IFS
33176 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033177 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033179 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033181 break 2
33182 fi
33183done
cristy8b350f62009-11-15 23:12:43 +000033184 done
cristy3ed852e2009-09-05 21:47:34 +000033185IFS=$as_save_IFS
33186
33187 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33188 ;;
33189esac
33190fi
33191HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33192if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033194$as_echo "$HTMLDecodeDelegate" >&6; }
33195else
cristy8b350f62009-11-15 23:12:43 +000033196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033197$as_echo "no" >&6; }
33198fi
33199
33200
33201# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33202set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033204$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033205if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033206 $as_echo_n "(cached) " >&6
33207else
33208 case $ILBMDecodeDelegate in
33209 [\\/]* | ?:[\\/]*)
33210 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33211 ;;
33212 *)
33213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33214for as_dir in $PATH
33215do
33216 IFS=$as_save_IFS
33217 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033218 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033220 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033222 break 2
33223 fi
33224done
cristy8b350f62009-11-15 23:12:43 +000033225 done
cristy3ed852e2009-09-05 21:47:34 +000033226IFS=$as_save_IFS
33227
33228 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33229 ;;
33230esac
33231fi
33232ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33233if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033235$as_echo "$ILBMDecodeDelegate" >&6; }
33236else
cristy8b350f62009-11-15 23:12:43 +000033237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033238$as_echo "no" >&6; }
33239fi
33240
33241
33242# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33243set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033245$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033246if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033247 $as_echo_n "(cached) " >&6
33248else
33249 case $ILBMEncodeDelegate in
33250 [\\/]* | ?:[\\/]*)
33251 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33252 ;;
33253 *)
33254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33255for as_dir in $PATH
33256do
33257 IFS=$as_save_IFS
33258 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033259 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033261 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033263 break 2
33264 fi
33265done
cristy8b350f62009-11-15 23:12:43 +000033266 done
cristy3ed852e2009-09-05 21:47:34 +000033267IFS=$as_save_IFS
33268
33269 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33270 ;;
33271esac
33272fi
33273ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33274if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033276$as_echo "$ILBMEncodeDelegate" >&6; }
33277else
cristy8b350f62009-11-15 23:12:43 +000033278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033279$as_echo "no" >&6; }
33280fi
33281
33282
cristy71f53d52013-04-27 13:33:59 +000033283# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33284set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33286$as_echo_n "checking for $ac_word... " >&6; }
33287if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33288 $as_echo_n "(cached) " >&6
33289else
33290 case $JXRDecodeDelegate in
33291 [\\/]* | ?:[\\/]*)
33292 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33293 ;;
33294 *)
33295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33296for as_dir in $PATH
33297do
33298 IFS=$as_save_IFS
33299 test -z "$as_dir" && as_dir=.
33300 for ac_exec_ext in '' $ac_executable_extensions; do
33301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33302 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33304 break 2
33305 fi
33306done
33307 done
33308IFS=$as_save_IFS
33309
33310 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33311 ;;
33312esac
33313fi
33314JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33315if test -n "$JXRDecodeDelegate"; then
33316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33317$as_echo "$JXRDecodeDelegate" >&6; }
33318else
33319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33320$as_echo "no" >&6; }
33321fi
33322
33323
33324# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33325set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33327$as_echo_n "checking for $ac_word... " >&6; }
33328if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33329 $as_echo_n "(cached) " >&6
33330else
33331 case $JXREncodeDelegate in
33332 [\\/]* | ?:[\\/]*)
33333 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33334 ;;
33335 *)
33336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33337for as_dir in $PATH
33338do
33339 IFS=$as_save_IFS
33340 test -z "$as_dir" && as_dir=.
33341 for ac_exec_ext in '' $ac_executable_extensions; do
33342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33343 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33345 break 2
33346 fi
33347done
33348 done
33349IFS=$as_save_IFS
33350
33351 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33352 ;;
33353esac
33354fi
33355JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33356if test -n "$JXREncodeDelegate"; then
33357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33358$as_echo "$JXREncodeDelegate" >&6; }
33359else
33360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33361$as_echo "no" >&6; }
33362fi
33363
33364
cristy3ed852e2009-09-05 21:47:34 +000033365# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33366set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033368$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033369if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033370 $as_echo_n "(cached) " >&6
33371else
33372 case $LPDelegate in
33373 [\\/]* | ?:[\\/]*)
33374 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33375 ;;
33376 *)
33377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33378for as_dir in $PATH
33379do
33380 IFS=$as_save_IFS
33381 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033382 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033384 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033386 break 2
33387 fi
33388done
cristy8b350f62009-11-15 23:12:43 +000033389 done
cristy3ed852e2009-09-05 21:47:34 +000033390IFS=$as_save_IFS
33391
33392 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33393 ;;
33394esac
33395fi
33396LPDelegate=$ac_cv_path_LPDelegate
33397if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033399$as_echo "$LPDelegate" >&6; }
33400else
cristy8b350f62009-11-15 23:12:43 +000033401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033402$as_echo "no" >&6; }
33403fi
33404
33405
33406# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33407set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033409$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033410if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033411 $as_echo_n "(cached) " >&6
33412else
33413 case $LPRDelegate in
33414 [\\/]* | ?:[\\/]*)
33415 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33416 ;;
33417 *)
33418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33419for as_dir in $PATH
33420do
33421 IFS=$as_save_IFS
33422 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033423 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033425 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033427 break 2
33428 fi
33429done
cristy8b350f62009-11-15 23:12:43 +000033430 done
cristy3ed852e2009-09-05 21:47:34 +000033431IFS=$as_save_IFS
33432
33433 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33434 ;;
33435esac
33436fi
33437LPRDelegate=$ac_cv_path_LPRDelegate
33438if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033440$as_echo "$LPRDelegate" >&6; }
33441else
cristy8b350f62009-11-15 23:12:43 +000033442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033443$as_echo "no" >&6; }
33444fi
33445
33446
cristy3ed852e2009-09-05 21:47:34 +000033447# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33448set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033450$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033451if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033452 $as_echo_n "(cached) " >&6
33453else
33454 case $LaunchDelegate in
33455 [\\/]* | ?:[\\/]*)
33456 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33457 ;;
33458 *)
33459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33460for as_dir in $PATH
33461do
33462 IFS=$as_save_IFS
33463 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033464 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033466 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033468 break 2
33469 fi
33470done
cristy8b350f62009-11-15 23:12:43 +000033471 done
cristy3ed852e2009-09-05 21:47:34 +000033472IFS=$as_save_IFS
33473
33474 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33475 ;;
33476esac
33477fi
33478LaunchDelegate=$ac_cv_path_LaunchDelegate
33479if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033481$as_echo "$LaunchDelegate" >&6; }
33482else
cristy8b350f62009-11-15 23:12:43 +000033483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033484$as_echo "no" >&6; }
33485fi
33486
33487
33488# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33489set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033491$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033492if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033493 $as_echo_n "(cached) " >&6
33494else
33495 case $MANDelegate in
33496 [\\/]* | ?:[\\/]*)
33497 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33498 ;;
33499 *)
33500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33501for as_dir in $PATH
33502do
33503 IFS=$as_save_IFS
33504 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033505 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033507 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033509 break 2
33510 fi
33511done
cristy8b350f62009-11-15 23:12:43 +000033512 done
cristy3ed852e2009-09-05 21:47:34 +000033513IFS=$as_save_IFS
33514
33515 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33516 ;;
33517esac
33518fi
33519MANDelegate=$ac_cv_path_MANDelegate
33520if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033522$as_echo "$MANDelegate" >&6; }
33523else
cristy8b350f62009-11-15 23:12:43 +000033524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033525$as_echo "no" >&6; }
33526fi
33527
33528
33529# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33530set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033532$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033533if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033534 $as_echo_n "(cached) " >&6
33535else
33536 case $MPEGDecodeDelegate in
33537 [\\/]* | ?:[\\/]*)
33538 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33539 ;;
33540 *)
33541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33542for as_dir in $PATH
33543do
33544 IFS=$as_save_IFS
33545 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033546 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033548 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033550 break 2
33551 fi
33552done
cristy8b350f62009-11-15 23:12:43 +000033553 done
cristy3ed852e2009-09-05 21:47:34 +000033554IFS=$as_save_IFS
33555
33556 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33557 ;;
33558esac
33559fi
33560MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33561if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033563$as_echo "$MPEGDecodeDelegate" >&6; }
33564else
cristy8b350f62009-11-15 23:12:43 +000033565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033566$as_echo "no" >&6; }
33567fi
33568
33569
33570# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33571set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033573$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033574if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033575 $as_echo_n "(cached) " >&6
33576else
33577 case $MPEGEncodeDelegate in
33578 [\\/]* | ?:[\\/]*)
33579 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33580 ;;
33581 *)
33582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33583for as_dir in $PATH
33584do
33585 IFS=$as_save_IFS
33586 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033587 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033589 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033591 break 2
33592 fi
33593done
cristy8b350f62009-11-15 23:12:43 +000033594 done
cristy3ed852e2009-09-05 21:47:34 +000033595IFS=$as_save_IFS
33596
33597 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33598 ;;
33599esac
33600fi
33601MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33602if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033604$as_echo "$MPEGEncodeDelegate" >&6; }
33605else
cristy8b350f62009-11-15 23:12:43 +000033606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033607$as_echo "no" >&6; }
33608fi
33609
33610
cristy935c86e2010-06-05 23:50:07 +000033611# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33612set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33614$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033615if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033616 $as_echo_n "(cached) " >&6
33617else
33618 case $MrSIDDecodeDelegate in
33619 [\\/]* | ?:[\\/]*)
33620 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33621 ;;
33622 *)
33623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33624for as_dir in $PATH
33625do
33626 IFS=$as_save_IFS
33627 test -z "$as_dir" && as_dir=.
33628 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033630 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33632 break 2
33633 fi
33634done
33635 done
33636IFS=$as_save_IFS
33637
33638 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33639 ;;
33640esac
33641fi
33642MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33643if test -n "$MrSIDDecodeDelegate"; then
33644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33645$as_echo "$MrSIDDecodeDelegate" >&6; }
33646else
33647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33648$as_echo "no" >&6; }
33649fi
33650
33651
cristy3ed852e2009-09-05 21:47:34 +000033652# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33653set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033655$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033656if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033657 $as_echo_n "(cached) " >&6
33658else
33659 case $MVDelegate in
33660 [\\/]* | ?:[\\/]*)
33661 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33662 ;;
33663 *)
33664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33665for as_dir in $PATH
33666do
33667 IFS=$as_save_IFS
33668 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033669 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033671 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033673 break 2
33674 fi
33675done
cristy8b350f62009-11-15 23:12:43 +000033676 done
cristy3ed852e2009-09-05 21:47:34 +000033677IFS=$as_save_IFS
33678
33679 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33680 ;;
33681esac
33682fi
33683MVDelegate=$ac_cv_path_MVDelegate
33684if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033686$as_echo "$MVDelegate" >&6; }
33687else
cristy8b350f62009-11-15 23:12:43 +000033688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033689$as_echo "no" >&6; }
33690fi
33691
33692
33693# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33694set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033696$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033697if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033698 $as_echo_n "(cached) " >&6
33699else
33700 case $PCLDelegate in
33701 [\\/]* | ?:[\\/]*)
33702 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33703 ;;
33704 *)
33705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33706for as_dir in $PATH
33707do
33708 IFS=$as_save_IFS
33709 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033710 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033712 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033714 break 2
33715 fi
33716done
cristy8b350f62009-11-15 23:12:43 +000033717 done
cristy3ed852e2009-09-05 21:47:34 +000033718IFS=$as_save_IFS
33719
33720 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33721 ;;
33722esac
33723fi
33724PCLDelegate=$ac_cv_path_PCLDelegate
33725if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033727$as_echo "$PCLDelegate" >&6; }
33728else
cristy8b350f62009-11-15 23:12:43 +000033729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033730$as_echo "no" >&6; }
33731fi
33732
33733
33734# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33735set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033737$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033738if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033739 $as_echo_n "(cached) " >&6
33740else
33741 case $PGPDecodeDelegate in
33742 [\\/]* | ?:[\\/]*)
33743 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33744 ;;
33745 *)
33746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33747for as_dir in $PATH
33748do
33749 IFS=$as_save_IFS
33750 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033753 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033755 break 2
33756 fi
33757done
cristy8b350f62009-11-15 23:12:43 +000033758 done
cristy3ed852e2009-09-05 21:47:34 +000033759IFS=$as_save_IFS
33760
33761 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33762 ;;
33763esac
33764fi
33765PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33766if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033768$as_echo "$PGPDecodeDelegate" >&6; }
33769else
cristy8b350f62009-11-15 23:12:43 +000033770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033771$as_echo "no" >&6; }
33772fi
33773
33774
33775# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33776set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033778$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033779if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033780 $as_echo_n "(cached) " >&6
33781else
33782 case $POVDelegate in
33783 [\\/]* | ?:[\\/]*)
33784 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33785 ;;
33786 *)
33787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33788for as_dir in $PATH
33789do
33790 IFS=$as_save_IFS
33791 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033792 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033794 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033796 break 2
33797 fi
33798done
cristy8b350f62009-11-15 23:12:43 +000033799 done
cristy3ed852e2009-09-05 21:47:34 +000033800IFS=$as_save_IFS
33801
33802 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33803 ;;
33804esac
33805fi
33806POVDelegate=$ac_cv_path_POVDelegate
33807if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033809$as_echo "$POVDelegate" >&6; }
33810else
cristy8b350f62009-11-15 23:12:43 +000033811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033812$as_echo "no" >&6; }
33813fi
33814
33815
33816for ac_prog in gsx gsc "$PSDelegateDefault"
33817do
33818 # Extract the first word of "$ac_prog", so it can be a program name with args.
33819set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033821$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033822if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033823 $as_echo_n "(cached) " >&6
33824else
33825 case $PSDelegate in
33826 [\\/]* | ?:[\\/]*)
33827 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33828 ;;
33829 *)
33830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33831for as_dir in $PATH
33832do
33833 IFS=$as_save_IFS
33834 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033835 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033837 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033839 break 2
33840 fi
33841done
cristy8b350f62009-11-15 23:12:43 +000033842 done
cristy3ed852e2009-09-05 21:47:34 +000033843IFS=$as_save_IFS
33844
33845 ;;
33846esac
33847fi
33848PSDelegate=$ac_cv_path_PSDelegate
33849if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033851$as_echo "$PSDelegate" >&6; }
33852else
cristy8b350f62009-11-15 23:12:43 +000033853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033854$as_echo "no" >&6; }
33855fi
33856
33857
33858 test -n "$PSDelegate" && break
33859done
33860test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33861
33862# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33863set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033866if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033867 $as_echo_n "(cached) " >&6
33868else
33869 case $RLEEncodeDelegate in
33870 [\\/]* | ?:[\\/]*)
33871 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33872 ;;
33873 *)
33874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33875for as_dir in $PATH
33876do
33877 IFS=$as_save_IFS
33878 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033879 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033881 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033883 break 2
33884 fi
33885done
cristy8b350f62009-11-15 23:12:43 +000033886 done
cristy3ed852e2009-09-05 21:47:34 +000033887IFS=$as_save_IFS
33888
33889 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33890 ;;
33891esac
33892fi
33893RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33894if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033896$as_echo "$RLEEncodeDelegate" >&6; }
33897else
cristy8b350f62009-11-15 23:12:43 +000033898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033899$as_echo "no" >&6; }
33900fi
33901
33902
33903# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33904set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033906$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033907if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033908 $as_echo_n "(cached) " >&6
33909else
33910 case $RMDelegate in
33911 [\\/]* | ?:[\\/]*)
33912 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33913 ;;
33914 *)
33915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33916for as_dir in $PATH
33917do
33918 IFS=$as_save_IFS
33919 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033922 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033924 break 2
33925 fi
33926done
cristy8b350f62009-11-15 23:12:43 +000033927 done
cristy3ed852e2009-09-05 21:47:34 +000033928IFS=$as_save_IFS
33929
33930 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33931 ;;
33932esac
33933fi
33934RMDelegate=$ac_cv_path_RMDelegate
33935if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033937$as_echo "$RMDelegate" >&6; }
33938else
cristy8b350f62009-11-15 23:12:43 +000033939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033940$as_echo "no" >&6; }
33941fi
33942
33943
cristy4689cf02010-02-17 21:15:45 +000033944# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33945set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033948if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033949 $as_echo_n "(cached) " >&6
33950else
33951 case $RSVGDecodeDelegate in
33952 [\\/]* | ?:[\\/]*)
33953 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33954 ;;
33955 *)
33956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33957for as_dir in $PATH
33958do
33959 IFS=$as_save_IFS
33960 test -z "$as_dir" && as_dir=.
33961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033963 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33965 break 2
33966 fi
33967done
33968 done
33969IFS=$as_save_IFS
33970
33971 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33972 ;;
33973esac
33974fi
33975RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33976if test -n "$RSVGDecodeDelegate"; then
33977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33978$as_echo "$RSVGDecodeDelegate" >&6; }
33979else
33980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33981$as_echo "no" >&6; }
33982fi
33983
33984
cristy3ed852e2009-09-05 21:47:34 +000033985# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33986set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033988$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033989if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033990 $as_echo_n "(cached) " >&6
33991else
33992 case $SCANDecodeDelegate in
33993 [\\/]* | ?:[\\/]*)
33994 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33995 ;;
33996 *)
33997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33998for as_dir in $PATH
33999do
34000 IFS=$as_save_IFS
34001 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034004 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034006 break 2
34007 fi
34008done
cristy8b350f62009-11-15 23:12:43 +000034009 done
cristy3ed852e2009-09-05 21:47:34 +000034010IFS=$as_save_IFS
34011
34012 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34013 ;;
34014esac
34015fi
34016SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34017if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034019$as_echo "$SCANDecodeDelegate" >&6; }
34020else
cristy8b350f62009-11-15 23:12:43 +000034021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034022$as_echo "no" >&6; }
34023fi
34024
34025
cristyec6934f2012-08-14 18:38:40 +000034026# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34027set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34029$as_echo_n "checking for $ac_word... " >&6; }
34030if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34031 $as_echo_n "(cached) " >&6
34032else
34033 case $SVGDecodeDelegate in
34034 [\\/]* | ?:[\\/]*)
34035 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34036 ;;
34037 *)
34038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34039for as_dir in $PATH
34040do
34041 IFS=$as_save_IFS
34042 test -z "$as_dir" && as_dir=.
34043 for ac_exec_ext in '' $ac_executable_extensions; do
34044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34045 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34047 break 2
34048 fi
34049done
34050 done
34051IFS=$as_save_IFS
34052
34053 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34054 ;;
34055esac
34056fi
34057SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34058if test -n "$SVGDecodeDelegate"; then
34059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34060$as_echo "$SVGDecodeDelegate" >&6; }
34061else
34062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34063$as_echo "no" >&6; }
34064fi
34065
34066
cristy3ed852e2009-09-05 21:47:34 +000034067# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34068set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034071if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034072 $as_echo_n "(cached) " >&6
34073else
34074 case $TXTDelegate in
34075 [\\/]* | ?:[\\/]*)
34076 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34077 ;;
34078 *)
34079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34080for as_dir in $PATH
34081do
34082 IFS=$as_save_IFS
34083 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034084 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034086 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034088 break 2
34089 fi
34090done
cristy8b350f62009-11-15 23:12:43 +000034091 done
cristy3ed852e2009-09-05 21:47:34 +000034092IFS=$as_save_IFS
34093
34094 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34095 ;;
34096esac
34097fi
34098TXTDelegate=$ac_cv_path_TXTDelegate
34099if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034101$as_echo "$TXTDelegate" >&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
cristy5ac9ac82010-07-29 13:24:24 +000034108# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34109set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34111$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034112if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034113 $as_echo_n "(cached) " >&6
34114else
34115 case $UniconvertorDelegate in
34116 [\\/]* | ?:[\\/]*)
34117 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34118 ;;
34119 *)
34120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34121for as_dir in $PATH
34122do
34123 IFS=$as_save_IFS
34124 test -z "$as_dir" && as_dir=.
34125 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034127 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34129 break 2
34130 fi
34131done
34132 done
34133IFS=$as_save_IFS
34134
34135 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34136 ;;
34137esac
34138fi
34139UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34140if test -n "$UniconvertorDelegate"; then
34141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34142$as_echo "$UniconvertorDelegate" >&6; }
34143else
34144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34145$as_echo "no" >&6; }
34146fi
34147
34148
cristy3ed852e2009-09-05 21:47:34 +000034149# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34150set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034152$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034153if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034154 $as_echo_n "(cached) " >&6
34155else
34156 case $WMFDecodeDelegate in
34157 [\\/]* | ?:[\\/]*)
34158 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34159 ;;
34160 *)
34161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34162for as_dir in $PATH
34163do
34164 IFS=$as_save_IFS
34165 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034166 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034168 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034170 break 2
34171 fi
34172done
cristy8b350f62009-11-15 23:12:43 +000034173 done
cristy3ed852e2009-09-05 21:47:34 +000034174IFS=$as_save_IFS
34175
34176 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34177 ;;
34178esac
34179fi
34180WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34181if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034183$as_echo "$WMFDecodeDelegate" >&6; }
34184else
cristy8b350f62009-11-15 23:12:43 +000034185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034186$as_echo "no" >&6; }
34187fi
34188
34189
34190# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34191set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034193$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034194if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034195 $as_echo_n "(cached) " >&6
34196else
34197 case $WWWDecodeDelegate in
34198 [\\/]* | ?:[\\/]*)
34199 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34200 ;;
34201 *)
34202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34203for as_dir in $PATH
34204do
34205 IFS=$as_save_IFS
34206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034209 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034211 break 2
34212 fi
34213done
cristy8b350f62009-11-15 23:12:43 +000034214 done
cristy3ed852e2009-09-05 21:47:34 +000034215IFS=$as_save_IFS
34216
34217 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34218 ;;
34219esac
34220fi
34221WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34222if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034224$as_echo "$WWWDecodeDelegate" >&6; }
34225else
cristy8b350f62009-11-15 23:12:43 +000034226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034227$as_echo "no" >&6; }
34228fi
34229
34230
34231# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34232set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034234$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034235if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034236 $as_echo_n "(cached) " >&6
34237else
34238 case $XPSDelegate in
34239 [\\/]* | ?:[\\/]*)
34240 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34241 ;;
34242 *)
34243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34244for as_dir in $PATH
34245do
34246 IFS=$as_save_IFS
34247 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034248 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034250 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034252 break 2
34253 fi
34254done
cristy8b350f62009-11-15 23:12:43 +000034255 done
cristy3ed852e2009-09-05 21:47:34 +000034256IFS=$as_save_IFS
34257
34258 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34259 ;;
34260esac
34261fi
34262XPSDelegate=$ac_cv_path_XPSDelegate
34263if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034265$as_echo "$XPSDelegate" >&6; }
34266else
cristy8b350f62009-11-15 23:12:43 +000034267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034268$as_echo "no" >&6; }
34269fi
34270
34271
34272# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34273set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034275$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034276if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034277 $as_echo_n "(cached) " >&6
34278else
34279 case $ZipDelegate in
34280 [\\/]* | ?:[\\/]*)
34281 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34282 ;;
34283 *)
34284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34285for as_dir in $PATH
34286do
34287 IFS=$as_save_IFS
34288 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034291 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034293 break 2
34294 fi
34295done
cristy8b350f62009-11-15 23:12:43 +000034296 done
cristy3ed852e2009-09-05 21:47:34 +000034297IFS=$as_save_IFS
34298
34299 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34300 ;;
34301esac
34302fi
34303ZipDelegate=$ac_cv_path_ZipDelegate
34304if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034306$as_echo "$ZipDelegate" >&6; }
34307else
cristy8b350f62009-11-15 23:12:43 +000034308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034309$as_echo "no" >&6; }
34310fi
34311
34312
34313
34314# Prefer lpr to lp; lp needs options tacked on.
34315if test "$LPRDelegate" != no; then
34316 PrintDelegate="$LPRDelegate"
34317else
34318 PrintDelegate="$LPDelegate -c -s"
34319fi
34320
34321
34322# Installed ImageMagick utiltity paths
34323ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34324DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34325MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34326
34327# Set delegate booleans
34328have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34329have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34330have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34331have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34332have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034333have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034334have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34335have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034336have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34337have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34338
34339#
34340# Test for font directories
34341#
34342type_include_files=''
34343
cristy430a7312010-01-21 20:44:04 +000034344# Dejavu fonts.
34345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34346$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34347dejavu_font_dir=''
34348if test "${with_dejavu_font_dir}" != 'default'; then
34349 dejavu_font_dir="${with_dejavu_font_dir}/"
34350else
34351 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34352 if test -f "${font_dir}DejaVuSerif.ttf"; then
34353 dejavu_font_dir="${font_dir}"
34354 break 1
34355 fi
34356 done
34357fi
34358if test "${dejavu_font_dir}x" != 'x'; then
34359 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34361$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034362else
cristyad38abe2012-12-23 23:03:21 +000034363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34364$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034365fi
34366
34367
cristy3ed852e2009-09-05 21:47:34 +000034368# Windows
34369windows_font_dir=''
34370if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34371 windows_font_dir="${with_windows_font_dir}/"
34372fi
cristy430a7312010-01-21 20:44:04 +000034373if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034374 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34375 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34376 fi
34377 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34378 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34379 fi
34380 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34381 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34382 fi
34383fi
cristy430a7312010-01-21 20:44:04 +000034384if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034385 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34386fi
34387
34388
34389# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034391$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34392ghostscript_font_dir=''
34393if test "${with_gs_font_dir}" != 'default'; then
34394 ghostscript_font_dir="${with_gs_font_dir}/"
34395else
34396 if test "${native_win32_build}" = 'yes'; then
34397 # Native Windows Build
34398 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34399 if test -f "${font_dir}a010013l.pfb"; then
34400 ghostscript_font_dir="$font_dir"
34401 break 1
34402 fi
34403 done
34404 if test "${PSDelegate}" != 'gswin32c'; then
34405 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34406 fi
34407 else
34408 # Linux / Mac OS X / Unix Build
34409 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
34410 if test -f "${font_dir}a010013l.pfb"; then
34411 ghostscript_font_dir="${font_dir}"
34412 break 1
34413 fi
34414 done
34415 if test "${ghostscript_font_dir}x" = 'x'; then
34416 if test "$PSDelegate" != 'gs'; then
34417 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34418 fi
34419 fi
34420 fi
34421fi
34422if test "${ghostscript_font_dir}x" != 'x'; then
34423 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34425$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034426else
cristyad38abe2012-12-23 23:03:21 +000034427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34428$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034429fi
34430
34431case "${build_os}" in
34432 mingw* )
34433 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34434 ;;
34435esac
34436
34437
34438
34439#
34440# Handle case where user doesn't want frozen paths
34441#
34442if test "$with_frozenpaths" != 'yes'; then
34443 # Re-set delegate definitions to default (no paths)
34444 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034445 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34446 BZIPDelegate="$BZIPDelegateDefault"
34447 BrowseDelegate="$BrowseDelegateDefault"
34448 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34449 CatDelegate="$CatDelegateDefault"
34450 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034451 DisplayDelegate="$DisplayDelegateDefault"
34452 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034453 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34454 EchoDelegate="$EchoDelegateDefault"
34455 EditorDelegate="$EditorDelegateDefault"
34456 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34457 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034458 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034459 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34460 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34461 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34462 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034463 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34464 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034465 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034466 LaunchDelegate="$LaunchDelegateDefault"
34467 MANDelegate="$MANDelegateDefault"
34468 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34469 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034470 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034471 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34472 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034473 PCLDelegate="$PCLDelegateDefault"
34474 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34475 POVDelegate="$POVDelegateDefault"
34476 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034477 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34478 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034479 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034480 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034481 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034482 ShowImageDelegate="$ShowImageDelegateDefault"
34483 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034484 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034485 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34486 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34487 XPSDelegate="$XPSDelegateDefault"
34488 ZipDelegate="$ZipDelegateDefault"
34489fi
34490
34491# Delegate substitutions
34492
34493
34494
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504
34505
34506
34507
34508
34509
34510
34511
34512
34513
34514
34515
34516
34517
34518
34519
34520
34521
34522
34523
34524
34525
34526
34527
34528
34529
34530
34531
cristy71f53d52013-04-27 13:33:59 +000034532
34533
cristy3ed852e2009-09-05 21:47:34 +000034534#
34535# RPM support.
34536#
34537RPM=''
34538for ac_prog in gnutar gtar tar
34539do
34540 # Extract the first word of "$ac_prog", so it can be a program name with args.
34541set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034544if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034545 $as_echo_n "(cached) " >&6
34546else
34547 if test -n "$TAR"; then
34548 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34549else
34550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34551for as_dir in $PATH
34552do
34553 IFS=$as_save_IFS
34554 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034555 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034557 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034559 break 2
34560 fi
34561done
cristy8b350f62009-11-15 23:12:43 +000034562 done
cristy3ed852e2009-09-05 21:47:34 +000034563IFS=$as_save_IFS
34564
34565fi
34566fi
34567TAR=$ac_cv_prog_TAR
34568if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034570$as_echo "$TAR" >&6; }
34571else
cristy8b350f62009-11-15 23:12:43 +000034572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034573$as_echo "no" >&6; }
34574fi
34575
34576
34577 test -n "$TAR" && break
34578done
34579
34580for ac_prog in perl
34581do
34582 # Extract the first word of "$ac_prog", so it can be a program name with args.
34583set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034585$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034586if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034587 $as_echo_n "(cached) " >&6
34588else
34589 if test -n "$PERL"; then
34590 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34591else
34592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34593for as_dir in $PATH
34594do
34595 IFS=$as_save_IFS
34596 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034597 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034599 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034601 break 2
34602 fi
34603done
cristy8b350f62009-11-15 23:12:43 +000034604 done
cristy3ed852e2009-09-05 21:47:34 +000034605IFS=$as_save_IFS
34606
34607fi
34608fi
34609PERL=$ac_cv_prog_PERL
34610if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034612$as_echo "$PERL" >&6; }
34613else
cristy8b350f62009-11-15 23:12:43 +000034614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034615$as_echo "no" >&6; }
34616fi
34617
34618
34619 test -n "$PERL" && break
34620done
34621
34622for ac_prog in rpmbuild rpm
34623do
34624 # Extract the first word of "$ac_prog", so it can be a program name with args.
34625set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034627$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034628if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034629 $as_echo_n "(cached) " >&6
34630else
34631 if test -n "$RPM"; then
34632 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34633else
34634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34635for as_dir in $PATH
34636do
34637 IFS=$as_save_IFS
34638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034641 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034643 break 2
34644 fi
34645done
cristy8b350f62009-11-15 23:12:43 +000034646 done
cristy3ed852e2009-09-05 21:47:34 +000034647IFS=$as_save_IFS
34648
34649fi
34650fi
34651RPM=$ac_cv_prog_RPM
34652if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034654$as_echo "$RPM" >&6; }
34655else
cristy8b350f62009-11-15 23:12:43 +000034656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034657$as_echo "no" >&6; }
34658fi
34659
34660
34661 test -n "$RPM" && break
34662done
34663
34664
cristy73bd4a52010-10-05 11:24:23 +000034665ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34666
34667
34668AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34669
34670
34671AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34672
34673
34674AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34675
34676
34677 if test "x$RPM" != "x" ; then
34678 RPM_DELEGATE_TRUE=
34679 RPM_DELEGATE_FALSE='#'
34680else
34681 RPM_DELEGATE_TRUE='#'
34682 RPM_DELEGATE_FALSE=
34683fi
34684
cristy3ed852e2009-09-05 21:47:34 +000034685
34686#
34687# 7ZIP support (http://p7zip.sourceforge.net/)
34688#
34689P7ZIP=''
34690for ac_prog in 7za
34691do
34692 # Extract the first word of "$ac_prog", so it can be a program name with args.
34693set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034695$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034696if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034697 $as_echo_n "(cached) " >&6
34698else
34699 if test -n "$P7ZIP"; then
34700 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34701else
34702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34703for as_dir in $PATH
34704do
34705 IFS=$as_save_IFS
34706 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034707 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034709 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034711 break 2
34712 fi
34713done
cristy8b350f62009-11-15 23:12:43 +000034714 done
cristy3ed852e2009-09-05 21:47:34 +000034715IFS=$as_save_IFS
34716
34717fi
34718fi
34719P7ZIP=$ac_cv_prog_P7ZIP
34720if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034722$as_echo "$P7ZIP" >&6; }
34723else
cristy8b350f62009-11-15 23:12:43 +000034724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034725$as_echo "no" >&6; }
34726fi
34727
34728
34729 test -n "$P7ZIP" && break
34730done
34731
34732
cristy73bd4a52010-10-05 11:24:23 +000034733 if test "x$P7ZIP" != "x" ; then
34734 P7ZIP_DELEGATE_TRUE=
34735 P7ZIP_DELEGATE_FALSE='#'
34736else
34737 P7ZIP_DELEGATE_TRUE='#'
34738 P7ZIP_DELEGATE_FALSE=
34739fi
34740
cristy3ed852e2009-09-05 21:47:34 +000034741
34742#
34743# ZIP support (http://www.info-zip.org/Zip.html)
34744#
34745ZIP=''
34746for ac_prog in zip
34747do
34748 # Extract the first word of "$ac_prog", so it can be a program name with args.
34749set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034751$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034752if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034753 $as_echo_n "(cached) " >&6
34754else
34755 if test -n "$ZIP"; then
34756 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34757else
34758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34759for as_dir in $PATH
34760do
34761 IFS=$as_save_IFS
34762 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034763 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034765 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034767 break 2
34768 fi
34769done
cristy8b350f62009-11-15 23:12:43 +000034770 done
cristy3ed852e2009-09-05 21:47:34 +000034771IFS=$as_save_IFS
34772
34773fi
34774fi
34775ZIP=$ac_cv_prog_ZIP
34776if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034778$as_echo "$ZIP" >&6; }
34779else
cristy8b350f62009-11-15 23:12:43 +000034780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034781$as_echo "no" >&6; }
34782fi
34783
34784
34785 test -n "$ZIP" && break
34786done
34787
34788
cristy73bd4a52010-10-05 11:24:23 +000034789 if test "x$ZIP" != "x" ; then
34790 ZIP_DELEGATE_TRUE=
34791 ZIP_DELEGATE_FALSE='#'
34792else
34793 ZIP_DELEGATE_TRUE='#'
34794 ZIP_DELEGATE_FALSE=
34795fi
34796
cristy3ed852e2009-09-05 21:47:34 +000034797
34798#
34799# GhostPCL related configuration.
34800#
34801PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034802PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034803PCLMonoDevice=pbmraw
34804if test -z "$PCLVersion"; then
34805 PCLVersion='unknown'
34806fi
34807if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34809$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034811$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34813$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034814 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034816$as_echo_n "checking for pcl color device... " >&6; }
34817 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34818 :
34819 else
34820 PCLColorDevice=ppmraw
34821 fi
cristyad38abe2012-12-23 23:03:21 +000034822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34823$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034824
34825 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034827$as_echo_n "checking for pcl CMYK device... " >&6; }
34828 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34829 :
34830 else
34831 PCLCMYKDevice=$PCLColorDevice
34832 fi
cristyad38abe2012-12-23 23:03:21 +000034833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34834$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034835
34836 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034838$as_echo_n "checking for pcl mono device... " >&6; }
34839 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34840 :
34841 else
34842 PCLMonoDevice=$PCLColorDevice
34843 fi
cristyad38abe2012-12-23 23:03:21 +000034844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34845$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034846fi
34847
34848
34849
34850
34851
34852
34853#
34854# GhostXPS related configuration.
34855#
34856XPSColorDevice=ppmraw
34857XPSCMYKDevice=bmpsep8
34858XPSMonoDevice=pbmraw
34859if test -z "$XPSVersion"; then
34860 XPSVersion='unknown'
34861fi
34862if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34864$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034866$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34868$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034869 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034871$as_echo_n "checking for xps color device... " >&6; }
34872 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34873 :
34874 else
34875 XPSColorDevice=ppmraw
34876 fi
cristyad38abe2012-12-23 23:03:21 +000034877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
34878$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034879
34880 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034882$as_echo_n "checking for xps CMYK device... " >&6; }
34883 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34884 :
34885 else
34886 XPSCMYKDevice=$XPSColorDevice
34887 fi
cristyad38abe2012-12-23 23:03:21 +000034888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
34889$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034890
34891 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034893$as_echo_n "checking for xps mono device... " >&6; }
34894 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34895 :
34896 else
34897 XPSMonoDevice=$XPSColorDevice
34898 fi
cristyad38abe2012-12-23 23:03:21 +000034899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
34900$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034901fi
34902
34903
34904
34905
34906
34907
34908#
34909# Ghostscript related configuration.
34910#
cristya97426c2011-02-04 01:41:27 +000034911GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034912GSColorDevice=pnmraw
34913GSCMYKDevice=pam
34914GSMonoDevice=pbmraw
34915GSPDFDevice=pdfwrite
34916GSPSDevice=pswrite
34917GSEPSDevice=epswrite
34918GSVersion='unknown'
34919if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34921$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034923$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34925$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034927$as_echo_n "checking for Ghostscript version... " >&6; }
34928 if GSVersion=`$PSDelegate --version`; then
34929 :
34930 else
34931 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34932 fi
cristyad38abe2012-12-23 23:03:21 +000034933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
34934$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034935
34936 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034938$as_echo_n "checking for gs alpha device... " >&6; }
34939 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34940 :
34941 else
34942 GSAlphaDevice=pnmraw
34943 fi
cristyad38abe2012-12-23 23:03:21 +000034944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
34945$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034946
34947 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034949$as_echo_n "checking for gs color device... " >&6; }
34950 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34951 :
34952 else
34953 GSColorDevice=pnmraw
34954 fi
cristyad38abe2012-12-23 23:03:21 +000034955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
34956$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034957
34958 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034960$as_echo_n "checking for gs CMYK device... " >&6; }
34961 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34962 :
34963 else
34964 GSCMYKDevice=bmpsep8
34965 fi
cristyad38abe2012-12-23 23:03:21 +000034966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
34967$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034968
34969 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034971$as_echo_n "checking for gs mono device... " >&6; }
34972 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34973 :
34974 else
34975 GSMonoDevice=$GSColorDevice
34976 fi
cristyad38abe2012-12-23 23:03:21 +000034977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
34978$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034979
34980 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034982$as_echo_n "checking for gs PDF writing device... " >&6; }
34983 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34984 :
34985 else
34986 GSPDFDevice=nodevice
34987 fi
cristyad38abe2012-12-23 23:03:21 +000034988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
34989$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034990
34991 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034993$as_echo_n "checking for gs PS writing device... " >&6; }
34994 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34995 :
34996 else
34997 GSPSDevice=nodevice
34998 fi
cristyad38abe2012-12-23 23:03:21 +000034999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35000$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035001
35002 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035004$as_echo_n "checking for gs EPS writing device... " >&6; }
35005 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35006 :
35007 else
35008 GSEPSDevice=nodevice
35009 fi
cristyad38abe2012-12-23 23:03:21 +000035010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35011$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035012fi
35013
35014
35015
35016
35017
35018
35019
35020
35021
35022
35023#
35024# PerlMagick-related configuration
35025#
35026
35027# Look for PERL if PerlMagick requested
35028# If name/path of desired PERL interpreter is specified, look for that one first
35029have_perl='no'
35030if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35032$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035034$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35036$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035037 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035039$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035040if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035041 $as_echo_n "(cached) " >&6
35042else
35043 ac_cv_path_PERL="$with_perl"
35044fi
cristy8b350f62009-11-15 23:12:43 +000035045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035046$as_echo "$ac_cv_path_PERL" >&6; };
35047 PERL=$ac_cv_path_PERL
35048 have_perl="$ac_cv_path_PERL"
35049 else
35050 for ac_prog in perl perl5
35051do
35052 # Extract the first word of "$ac_prog", so it can be a program name with args.
35053set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035055$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035056if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035057 $as_echo_n "(cached) " >&6
35058else
35059 case $PERL in
35060 [\\/]* | ?:[\\/]*)
35061 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35062 ;;
35063 *)
35064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35065for as_dir in $PATH
35066do
35067 IFS=$as_save_IFS
35068 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035069 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035071 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035073 break 2
35074 fi
35075done
cristy8b350f62009-11-15 23:12:43 +000035076 done
cristy3ed852e2009-09-05 21:47:34 +000035077IFS=$as_save_IFS
35078
35079 ;;
35080esac
35081fi
35082PERL=$ac_cv_path_PERL
35083if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035085$as_echo "$PERL" >&6; }
35086else
cristy8b350f62009-11-15 23:12:43 +000035087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035088$as_echo "no" >&6; }
35089fi
35090
35091
35092 test -n "$PERL" && break
35093done
35094 if test "$ac_cv_path_PERL"; then
35095 have_perl="$ac_cv_path_PERL"
35096 fi
35097 fi
35098fi
35099
cristy949301e2010-01-06 01:38:40 +000035100if test "$with_perl" != 'yes' ; then
35101 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35102fi
35103
35104PERL_SUPPORTS_DESTDIR='no'
35105
cristy3ed852e2009-09-05 21:47:34 +000035106with_perl_static='no'
35107with_perl_dynamic='no'
35108if test "$have_perl" != 'no'; then
35109 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35110 with_perl_static='yes'
35111 fi
35112 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35113 with_perl_dynamic='yes'
35114 fi
35115 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035116
35117
35118
35119
35120 if test -n "$PERL"; then :
35121
35122 ax_perl_version="5.8.1"
35123
35124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35125$as_echo_n "checking for perl version... " >&6; }
35126
35127 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35128
35129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35130$as_echo "$perl_version" >&6; }
35131
35132 PERL_VERSION=$perl_version
35133
35134
35135
35136
35137
35138 # Used to indicate true or false condition
35139 ax_compare_version=false
35140
35141 # Convert the two version strings to be compared into a format that
35142 # allows a simple string comparison. The end result is that a version
35143 # string of the form 1.12.5-r617 will be converted to the form
35144 # 0001001200050617. In other words, each number is zero padded to four
35145 # digits, and non digits are removed.
35146
35147 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35148 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35149 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35150 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35151 -e 's/[^0-9]//g'`
35152
35153
35154 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35155 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35156 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35157 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35158 -e 's/[^0-9]//g'`
35159
35160
35161 ax_compare_version=`echo "x$ax_compare_version_A
35162x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35163
35164
35165
35166 if test "$ax_compare_version" = "true" ; then
35167
35168 :
35169 PERL_SUPPORTS_DESTDIR='yes'
35170
35171 else
35172 :
35173 PERL_SUPPORTS_DESTDIR='no'
35174
35175 fi
35176
35177
35178else
35179
35180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35181$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35182 PERL_SUPPORTS_DESTDIR='no'
35183
cristy3ed852e2009-09-05 21:47:34 +000035184fi
cristy73bd4a52010-10-05 11:24:23 +000035185
35186fi
35187 if test "$have_perl" != 'no'; then
35188 WITH_PERL_TRUE=
35189 WITH_PERL_FALSE='#'
35190else
35191 WITH_PERL_TRUE='#'
35192 WITH_PERL_FALSE=
35193fi
35194
35195 if test $with_perl_static = 'yes'; then
35196 WITH_PERL_STATIC_TRUE=
35197 WITH_PERL_STATIC_FALSE='#'
35198else
35199 WITH_PERL_STATIC_TRUE='#'
35200 WITH_PERL_STATIC_FALSE=
35201fi
35202
35203 if test $with_perl_dynamic = 'yes'; then
35204 WITH_PERL_DYNAMIC_TRUE=
35205 WITH_PERL_DYNAMIC_FALSE='#'
35206else
35207 WITH_PERL_DYNAMIC_TRUE='#'
35208 WITH_PERL_DYNAMIC_FALSE=
35209fi
35210
cristy3ed852e2009-09-05 21:47:34 +000035211
35212
35213# Determine path to pick up MagickCore library from for use with building PerlMagick
35214MAGICKCORE_PATH="${LIB_DIR}"
35215if test $with_perl_static = 'yes'; then
35216 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35217 libtool_objdir=$objdir
35218
35219 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035220 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035221fi
35222
35223
cristy2a3eb392012-12-17 13:39:20 +000035224# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035225MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035226if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035227 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035228fi
cristy2a3eb392012-12-17 13:39:20 +000035229if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035230 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035231fi
35232if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035233 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035234fi
35235if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035236 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035237fi
35238if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035239 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035240fi
35241if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035242 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035243fi
35244if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035245 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035246fi
35247if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035248 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035249fi
35250if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035251 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035252fi
35253if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035254 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035255fi
35256if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035257 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035258fi
35259if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035260 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035261fi
35262if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035263 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035264fi
35265if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035266 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035267fi
35268if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035269 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035270fi
35271if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035272 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035273fi
35274if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035275 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035276fi
35277if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035278 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035279fi
35280if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035281 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035282fi
35283if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035284 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035285fi
35286if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035287 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035288fi
35289have_ps='no'
35290if test "$have_dps" = 'yes' || \
35291 test "$have_gs" = 'yes' || \
35292 test "${native_win32_build}" = 'yes' ; then
35293 have_ps='yes'
35294fi
35295if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035296 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035297fi
35298if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035299 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035300fi
35301if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035302 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035303fi
35304if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035305 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035306fi
35307if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035308 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035309fi
35310if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035311 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035312fi
cristy3b640ed2013-07-29 00:27:59 +000035313if test "$have_webp" = 'yes' ; then
35314 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35315fi
cristy2a3eb392012-12-17 13:39:20 +000035316if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035317 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035318fi
35319if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035320 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035321fi
35322if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035323 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035324fi
35325if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035326 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035327fi
cristy2a3eb392012-12-17 13:39:20 +000035328# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035329MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035330MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035331
35332
cristyfa161182012-12-19 15:45:28 +000035333
cristy3ed852e2009-09-05 21:47:34 +000035334#
35335# Handle special compiler flags
35336#
35337
35338# Add '-p' if prof source profiling support enabled
35339if test "$enable_prof" = 'yes'; then
35340 CFLAGS="-p $CFLAGS"
35341 CXXFLAGS="-p $CXXFLAGS"
35342 LDFLAGS="-p $LDFLAGS"
35343fi
35344
35345# Add '-pg' if gprof source profiling support enabled
35346if test "$enable_gprof" = 'yes'; then
35347 CFLAGS="-pg $CFLAGS"
35348 CXXFLAGS="-pg $CXXFLAGS"
35349 LDFLAGS="-pg $LDFLAGS"
35350fi
35351
35352# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35353# This is a gcc-specific feature
35354if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035356$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035357if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035358 $as_echo_n "(cached) " >&6
35359else
35360 ac_check_lib_save_LIBS=$LIBS
35361LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035363/* end confdefs.h. */
35364
35365/* Override any GCC internal prototype to avoid an error.
35366 Use char because int might match the return type of a GCC
35367 builtin and then its argument prototype would still apply. */
35368#ifdef __cplusplus
35369extern "C"
35370#endif
35371char _gcov_init ();
35372int
35373main ()
35374{
35375return _gcov_init ();
35376 ;
35377 return 0;
35378}
35379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035380if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035381 ac_cv_lib_gcov__gcov_init=yes
35382else
cristy8b350f62009-11-15 23:12:43 +000035383 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035384fi
cristy8b350f62009-11-15 23:12:43 +000035385rm -f core conftest.err conftest.$ac_objext \
35386 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035387LIBS=$ac_check_lib_save_LIBS
35388fi
cristy8b350f62009-11-15 23:12:43 +000035389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035390$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035391if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035392 cat >>confdefs.h <<_ACEOF
35393#define HAVE_LIBGCOV 1
35394_ACEOF
35395
35396 LIBS="-lgcov $LIBS"
35397
35398fi
35399
cristy8b350f62009-11-15 23:12:43 +000035400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035401$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035402if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035403 $as_echo_n "(cached) " >&6
35404else
35405 ac_check_lib_save_LIBS=$LIBS
35406LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035408/* end confdefs.h. */
35409
35410/* Override any GCC internal prototype to avoid an error.
35411 Use char because int might match the return type of a GCC
35412 builtin and then its argument prototype would still apply. */
35413#ifdef __cplusplus
35414extern "C"
35415#endif
35416char __gcov_init ();
35417int
35418main ()
35419{
35420return __gcov_init ();
35421 ;
35422 return 0;
35423}
35424_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035425if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035426 ac_cv_lib_gcov___gcov_init=yes
35427else
cristy8b350f62009-11-15 23:12:43 +000035428 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035429fi
cristy8b350f62009-11-15 23:12:43 +000035430rm -f core conftest.err conftest.$ac_objext \
35431 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035432LIBS=$ac_check_lib_save_LIBS
35433fi
cristy8b350f62009-11-15 23:12:43 +000035434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035435$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035436if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035437 cat >>confdefs.h <<_ACEOF
35438#define HAVE_LIBGCOV 1
35439_ACEOF
35440
35441 LIBS="-lgcov $LIBS"
35442
35443fi
35444
35445 case "$target_os" in
35446 darwin*)
35447 OSX_GCOV_LDFLAG="-Wl,-single_module"
35448 ;;
35449 *)
35450 OSX_GCOV_LDFLAG=""
35451 ;;
35452 esac
35453
35454 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35455 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35456 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35457fi
35458
35459#
35460# Build library dependency list for libMagickCore
35461#
35462
cristyc6722092012-10-14 00:19:31 +000035463if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035464 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 +000035465else
cristy3a75f062012-09-08 23:29:40 +000035466 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 +000035467fi
35468
35469
35470#
35471# Remove extraneous spaces from output variables (asthetic)
35472#
35473X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35474X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35475X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35476X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35477
35478CC=`echo $CC | sed -e 's/ */ /g'`
35479CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35480CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35481CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035482DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35483LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35484TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35485MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35486#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35487
35488# Pass only user-provided LIBS as "global" libraries
35489LIBS=$USER_LIBS
35490
35491#AC_SUBST(CPPFLAGS)
35492
35493#AC_SUBST(LDFLAGS)
35494#AC_SUBST(X_PRE_LIBS)
35495#AC_SUBST(X_LIBS)
35496#AC_SUBST(X_EXTRA_LIBS)
35497
35498MAGICK_CFLAGS=$CFLAGS
35499MAGICK_CXXFLAGS="$CXXFLAGS"
35500MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35501MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35502MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035503MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035504
35505
35506
35507
35508
35509
35510
35511
35512# Set configured scripts to executable.
35513ac_config_commands="$ac_config_commands default"
35514
cristy2bd4b6e2012-07-22 15:29:11 +000035515ac_config_commands="$ac_config_commands magick.sh.in"
35516
cristy3ed852e2009-09-05 21:47:34 +000035517ac_config_commands="$ac_config_commands MagickCore-config.in"
35518
cristy3ed852e2009-09-05 21:47:34 +000035519ac_config_commands="$ac_config_commands MagickWand-config.in"
35520
cristy3ed852e2009-09-05 21:47:34 +000035521ac_config_commands="$ac_config_commands Magick++-config.in"
35522
35523ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35524
35525
cristyad38abe2012-12-23 23:03:21 +000035526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35527$as_echo "-------------------------------------------------------------" >&6; }
35528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35529$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035530cat >confcache <<\_ACEOF
35531# This file is a shell script that caches the results of configure
35532# tests run on this system so they can be shared between configure
35533# scripts and configure runs, see configure's option --config-cache.
35534# It is not useful on other systems. If it contains results you don't
35535# want to keep, you may remove or edit it.
35536#
35537# config.status only pays attention to the cache file if you give it
35538# the --recheck option to rerun configure.
35539#
35540# `ac_cv_env_foo' variables (set or unset) will be overridden when
35541# loading this file, other *unset* `ac_cv_foo' will be assigned the
35542# following values.
35543
35544_ACEOF
35545
35546# The following way of writing the cache mishandles newlines in values,
35547# but we know of no workaround that is simple, portable, and efficient.
35548# So, we kill variables containing newlines.
35549# Ultrix sh set writes to stderr and can't be redirected directly,
35550# and sets the high bit in the cache file unless we assign to the vars.
35551(
35552 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35553 eval ac_val=\$$ac_var
35554 case $ac_val in #(
35555 *${as_nl}*)
35556 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035557 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035558$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35559 esac
35560 case $ac_var in #(
35561 _ | IFS | as_nl) ;; #(
35562 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035563 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035564 esac ;;
35565 esac
35566 done
35567
35568 (set) 2>&1 |
35569 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35570 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035571 # `set' does not quote correctly, so add quotes: double-quote
35572 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035573 sed -n \
35574 "s/'/'\\\\''/g;
35575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35576 ;; #(
35577 *)
35578 # `set' quotes correctly as required by POSIX, so do not add quotes.
35579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35580 ;;
35581 esac |
35582 sort
35583) |
35584 sed '
35585 /^ac_cv_env_/b end
35586 t clear
35587 :clear
35588 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35589 t end
35590 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35591 :end' >>confcache
35592if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35593 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035594 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035595 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035596$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035597 if test ! -f "$cache_file" || test -h "$cache_file"; then
35598 cat confcache >"$cache_file"
35599 else
35600 case $cache_file in #(
35601 */* | ?:*)
35602 mv -f confcache "$cache_file"$$ &&
35603 mv -f "$cache_file"$$ "$cache_file" ;; #(
35604 *)
35605 mv -f confcache "$cache_file" ;;
35606 esac
35607 fi
35608 fi
cristy3ed852e2009-09-05 21:47:34 +000035609 else
cristy8b350f62009-11-15 23:12:43 +000035610 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035611$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35612 fi
35613fi
35614rm -f confcache
35615
35616test "x$prefix" = xNONE && prefix=$ac_default_prefix
35617# Let make expand exec_prefix.
35618test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35619
35620DEFS=-DHAVE_CONFIG_H
35621
35622ac_libobjs=
35623ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035624U=
cristy3ed852e2009-09-05 21:47:34 +000035625for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35626 # 1. Remove the extension, and $U if already installed.
35627 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35628 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35629 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35630 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035631 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35632 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035633done
35634LIBOBJS=$ac_libobjs
35635
35636LTLIBOBJS=$ac_ltlibobjs
35637
35638
cristyc0890a62012-07-19 00:18:20 +000035639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35640$as_echo_n "checking that generated files are newer than configure... " >&6; }
35641 if test -n "$am_sleep_pid"; then
35642 # Hide warnings about reused PIDs.
35643 wait $am_sleep_pid 2>/dev/null
35644 fi
35645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35646$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035647 if test -n "$EXEEXT"; then
35648 am__EXEEXT_TRUE=
35649 am__EXEEXT_FALSE='#'
35650else
35651 am__EXEEXT_TRUE='#'
35652 am__EXEEXT_FALSE=
35653fi
cristy3ed852e2009-09-05 21:47:34 +000035654
cristy73bd4a52010-10-05 11:24:23 +000035655if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035656 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035657Usually this means the macro was only invoked conditionally." "$LINENO" 5
35658fi
35659if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035660 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035661Usually this means the macro was only invoked conditionally." "$LINENO" 5
35662fi
35663if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035664 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035665Usually this means the macro was only invoked conditionally." "$LINENO" 5
35666fi
35667if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035668 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035669Usually this means the macro was only invoked conditionally." "$LINENO" 5
35670fi
cristy9b86f202012-11-28 21:55:35 +000035671if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35672 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35673Usually this means the macro was only invoked conditionally." "$LINENO" 5
35674fi
cristy73bd4a52010-10-05 11:24:23 +000035675if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035676 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035677Usually this means the macro was only invoked conditionally." "$LINENO" 5
35678fi
35679if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035680 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035681Usually this means the macro was only invoked conditionally." "$LINENO" 5
35682fi
35683if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035684 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035685Usually this means the macro was only invoked conditionally." "$LINENO" 5
35686fi
35687if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035688 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035689Usually this means the macro was only invoked conditionally." "$LINENO" 5
35690fi
cristy73bd4a52010-10-05 11:24:23 +000035691if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035692 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035693Usually this means the macro was only invoked conditionally." "$LINENO" 5
35694fi
35695if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035696 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035697Usually this means the macro was only invoked conditionally." "$LINENO" 5
35698fi
cristy73bd4a52010-10-05 11:24:23 +000035699if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035700 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035701Usually this means the macro was only invoked conditionally." "$LINENO" 5
35702fi
cristy71d8c202012-03-20 17:05:01 +000035703if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35704 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35705Usually this means the macro was only invoked conditionally." "$LINENO" 5
35706fi
cristy73bd4a52010-10-05 11:24:23 +000035707
35708if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035709 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035710Usually this means the macro was only invoked conditionally." "$LINENO" 5
35711fi
35712if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035713 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035714Usually this means the macro was only invoked conditionally." "$LINENO" 5
35715fi
35716if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035717 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035718Usually this means the macro was only invoked conditionally." "$LINENO" 5
35719fi
35720if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035721 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035722Usually this means the macro was only invoked conditionally." "$LINENO" 5
35723fi
35724if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035725 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035726Usually this means the macro was only invoked conditionally." "$LINENO" 5
35727fi
35728if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035729 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035730Usually this means the macro was only invoked conditionally." "$LINENO" 5
35731fi
cristy5eef09f2012-10-16 12:08:28 +000035732if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35733 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35734Usually this means the macro was only invoked conditionally." "$LINENO" 5
35735fi
cristy73bd4a52010-10-05 11:24:23 +000035736if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035737 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035738Usually this means the macro was only invoked conditionally." "$LINENO" 5
35739fi
35740if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035741 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035742Usually this means the macro was only invoked conditionally." "$LINENO" 5
35743fi
35744if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035745 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035746Usually this means the macro was only invoked conditionally." "$LINENO" 5
35747fi
35748if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035749 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035750Usually this means the macro was only invoked conditionally." "$LINENO" 5
35751fi
35752if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035753 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035754Usually this means the macro was only invoked conditionally." "$LINENO" 5
35755fi
35756if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035757 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035758Usually this means the macro was only invoked conditionally." "$LINENO" 5
35759fi
35760if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035761 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035762Usually this means the macro was only invoked conditionally." "$LINENO" 5
35763fi
35764if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035765 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035766Usually this means the macro was only invoked conditionally." "$LINENO" 5
35767fi
35768if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035769 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035770Usually this means the macro was only invoked conditionally." "$LINENO" 5
35771fi
35772if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035773 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035774Usually this means the macro was only invoked conditionally." "$LINENO" 5
35775fi
35776if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035777 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035778Usually this means the macro was only invoked conditionally." "$LINENO" 5
35779fi
35780if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035781 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035782Usually this means the macro was only invoked conditionally." "$LINENO" 5
35783fi
35784if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035785 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035786Usually this means the macro was only invoked conditionally." "$LINENO" 5
35787fi
35788if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035789 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035790Usually this means the macro was only invoked conditionally." "$LINENO" 5
35791fi
cristyfbb0ef02010-12-19 02:32:11 +000035792if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35793 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35794Usually this means the macro was only invoked conditionally." "$LINENO" 5
35795fi
cristy73bd4a52010-10-05 11:24:23 +000035796if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035797 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035798Usually this means the macro was only invoked conditionally." "$LINENO" 5
35799fi
cristy41cbe8a2011-10-27 01:35:18 +000035800if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35801 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35802Usually this means the macro was only invoked conditionally." "$LINENO" 5
35803fi
cristya054b762012-03-26 23:16:00 +000035804if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35805 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035806Usually this means the macro was only invoked conditionally." "$LINENO" 5
35807fi
cristy73bd4a52010-10-05 11:24:23 +000035808if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035809 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035810Usually this means the macro was only invoked conditionally." "$LINENO" 5
35811fi
35812if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035813 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035814Usually this means the macro was only invoked conditionally." "$LINENO" 5
35815fi
35816if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035817 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035818Usually this means the macro was only invoked conditionally." "$LINENO" 5
35819fi
35820if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035821 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035822Usually this means the macro was only invoked conditionally." "$LINENO" 5
35823fi
cristyb1860752011-03-14 00:27:46 +000035824if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35825 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35826Usually this means the macro was only invoked conditionally." "$LINENO" 5
35827fi
cristy73bd4a52010-10-05 11:24:23 +000035828if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035829 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035830Usually this means the macro was only invoked conditionally." "$LINENO" 5
35831fi
35832if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035833 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035834Usually this means the macro was only invoked conditionally." "$LINENO" 5
35835fi
35836if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035837 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035838Usually this means the macro was only invoked conditionally." "$LINENO" 5
35839fi
35840if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035841 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035842Usually this means the macro was only invoked conditionally." "$LINENO" 5
35843fi
35844if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035845 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035846Usually this means the macro was only invoked conditionally." "$LINENO" 5
35847fi
35848if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035849 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035850Usually this means the macro was only invoked conditionally." "$LINENO" 5
35851fi
35852if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035853 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035854Usually this means the macro was only invoked conditionally." "$LINENO" 5
35855fi
35856if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035857 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035858Usually this means the macro was only invoked conditionally." "$LINENO" 5
35859fi
cristy3ed852e2009-09-05 21:47:34 +000035860
cristyda16f162011-02-19 23:52:17 +000035861: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035862ac_write_fail=0
35863ac_clean_files_save=$ac_clean_files
35864ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035865{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035866$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035867as_write_fail=0
35868cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035869#! $SHELL
35870# Generated by $as_me.
35871# Run this file to recreate the current configuration.
35872# Compiler output produced by configure, useful for debugging
35873# configure, is in config.log if it exists.
35874
35875debug=false
35876ac_cs_recheck=false
35877ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035878
cristy8b350f62009-11-15 23:12:43 +000035879SHELL=\${CONFIG_SHELL-$SHELL}
35880export SHELL
35881_ASEOF
35882cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35883## -------------------- ##
35884## M4sh Initialization. ##
35885## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035886
35887# Be more Bourne compatible
35888DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035889if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035890 emulate sh
35891 NULLCMD=:
35892 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35893 # is contrary to our usage. Disable this feature.
35894 alias -g '${1+"$@"}'='"$@"'
35895 setopt NO_GLOB_SUBST
35896else
cristy8b350f62009-11-15 23:12:43 +000035897 case `(set -o) 2>/dev/null` in #(
35898 *posix*) :
35899 set -o posix ;; #(
35900 *) :
35901 ;;
cristy3ed852e2009-09-05 21:47:34 +000035902esac
cristy3ed852e2009-09-05 21:47:34 +000035903fi
35904
35905
cristy3ed852e2009-09-05 21:47:34 +000035906as_nl='
35907'
35908export as_nl
35909# Printing a long string crashes Solaris 7 /usr/bin/printf.
35910as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35911as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35912as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035913# Prefer a ksh shell builtin over an external printf program on Solaris,
35914# but without wasting forks for bash or zsh.
35915if test -z "$BASH_VERSION$ZSH_VERSION" \
35916 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35917 as_echo='print -r --'
35918 as_echo_n='print -rn --'
35919elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035920 as_echo='printf %s\n'
35921 as_echo_n='printf %s'
35922else
35923 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35924 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35925 as_echo_n='/usr/ucb/echo -n'
35926 else
35927 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35928 as_echo_n_body='eval
35929 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035930 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035931 *"$as_nl"*)
35932 expr "X$arg" : "X\\(.*\\)$as_nl";
35933 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35934 esac;
35935 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35936 '
35937 export as_echo_n_body
35938 as_echo_n='sh -c $as_echo_n_body as_echo'
35939 fi
35940 export as_echo_body
35941 as_echo='sh -c $as_echo_body as_echo'
35942fi
35943
35944# The user is always right.
35945if test "${PATH_SEPARATOR+set}" != set; then
35946 PATH_SEPARATOR=:
35947 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35948 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35949 PATH_SEPARATOR=';'
35950 }
35951fi
35952
cristy3ed852e2009-09-05 21:47:34 +000035953
35954# IFS
35955# We need space, tab and new line, in precisely that order. Quoting is
35956# there to prevent editors from complaining about space-tab.
35957# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35958# splitting by setting IFS to empty value.)
35959IFS=" "" $as_nl"
35960
35961# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035962as_myself=
cristy8b350f62009-11-15 23:12:43 +000035963case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035964 *[\\/]* ) as_myself=$0 ;;
35965 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35966for as_dir in $PATH
35967do
35968 IFS=$as_save_IFS
35969 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035970 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35971 done
cristy3ed852e2009-09-05 21:47:34 +000035972IFS=$as_save_IFS
35973
35974 ;;
35975esac
35976# We did not find ourselves, most probably we were run as `sh COMMAND'
35977# in which case we are not to be found in the path.
35978if test "x$as_myself" = x; then
35979 as_myself=$0
35980fi
35981if test ! -f "$as_myself"; then
35982 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035983 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035984fi
35985
cristy8b350f62009-11-15 23:12:43 +000035986# Unset variables that we do not need and which cause bugs (e.g. in
35987# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35988# suppresses any "Segmentation fault" message there. '((' could
35989# trigger a bug in pdksh 5.2.14.
35990for as_var in BASH_ENV ENV MAIL MAILPATH
35991do eval test x\${$as_var+set} = xset \
35992 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035993done
35994PS1='$ '
35995PS2='> '
35996PS4='+ '
35997
35998# NLS nuisances.
35999LC_ALL=C
36000export LC_ALL
36001LANGUAGE=C
36002export LANGUAGE
36003
cristy8b350f62009-11-15 23:12:43 +000036004# CDPATH.
36005(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36006
36007
cristy98dddb52010-11-04 00:30:15 +000036008# as_fn_error STATUS ERROR [LINENO LOG_FD]
36009# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036010# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36011# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036012# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036013as_fn_error ()
36014{
cristy98dddb52010-11-04 00:30:15 +000036015 as_status=$1; test $as_status -eq 0 && as_status=1
36016 if test "$4"; then
36017 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36018 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036019 fi
cristy98dddb52010-11-04 00:30:15 +000036020 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036021 as_fn_exit $as_status
36022} # as_fn_error
36023
36024
36025# as_fn_set_status STATUS
36026# -----------------------
36027# Set $? to STATUS, without forking.
36028as_fn_set_status ()
36029{
36030 return $1
36031} # as_fn_set_status
36032
36033# as_fn_exit STATUS
36034# -----------------
36035# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36036as_fn_exit ()
36037{
36038 set +e
36039 as_fn_set_status $1
36040 exit $1
36041} # as_fn_exit
36042
36043# as_fn_unset VAR
36044# ---------------
36045# Portably unset VAR.
36046as_fn_unset ()
36047{
36048 { eval $1=; unset $1;}
36049}
36050as_unset=as_fn_unset
36051# as_fn_append VAR VALUE
36052# ----------------------
36053# Append the text in VALUE to the end of the definition contained in VAR. Take
36054# advantage of any shell optimizations that allow amortized linear growth over
36055# repeated appends, instead of the typical quadratic growth present in naive
36056# implementations.
36057if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36058 eval 'as_fn_append ()
36059 {
36060 eval $1+=\$2
36061 }'
36062else
36063 as_fn_append ()
36064 {
36065 eval $1=\$$1\$2
36066 }
36067fi # as_fn_append
36068
36069# as_fn_arith ARG...
36070# ------------------
36071# Perform arithmetic evaluation on the ARGs, and store the result in the
36072# global $as_val. Take advantage of shells that can avoid forks. The arguments
36073# must be portable across $(()) and expr.
36074if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36075 eval 'as_fn_arith ()
36076 {
36077 as_val=$(( $* ))
36078 }'
36079else
36080 as_fn_arith ()
36081 {
36082 as_val=`expr "$@" || test $? -eq 1`
36083 }
36084fi # as_fn_arith
36085
36086
cristy3ed852e2009-09-05 21:47:34 +000036087if expr a : '\(a\)' >/dev/null 2>&1 &&
36088 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36089 as_expr=expr
36090else
36091 as_expr=false
36092fi
36093
36094if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36095 as_basename=basename
36096else
36097 as_basename=false
36098fi
36099
cristy8b350f62009-11-15 23:12:43 +000036100if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36101 as_dirname=dirname
36102else
36103 as_dirname=false
36104fi
cristy3ed852e2009-09-05 21:47:34 +000036105
cristy3ed852e2009-09-05 21:47:34 +000036106as_me=`$as_basename -- "$0" ||
36107$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36108 X"$0" : 'X\(//\)$' \| \
36109 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36110$as_echo X/"$0" |
36111 sed '/^.*\/\([^/][^/]*\)\/*$/{
36112 s//\1/
36113 q
36114 }
36115 /^X\/\(\/\/\)$/{
36116 s//\1/
36117 q
36118 }
36119 /^X\/\(\/\).*/{
36120 s//\1/
36121 q
36122 }
36123 s/.*/./; q'`
36124
cristy8b350f62009-11-15 23:12:43 +000036125# Avoid depending upon Character Ranges.
36126as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36127as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36128as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36129as_cr_digits='0123456789'
36130as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036131
36132ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036133case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036134-n*)
cristy8b350f62009-11-15 23:12:43 +000036135 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036136 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036137 xy) ECHO_C='\c';;
36138 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36139 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036140 esac;;
36141*)
36142 ECHO_N='-n';;
36143esac
cristy3ed852e2009-09-05 21:47:34 +000036144
36145rm -f conf$$ conf$$.exe conf$$.file
36146if test -d conf$$.dir; then
36147 rm -f conf$$.dir/conf$$.file
36148else
36149 rm -f conf$$.dir
36150 mkdir conf$$.dir 2>/dev/null
36151fi
36152if (echo >conf$$.file) 2>/dev/null; then
36153 if ln -s conf$$.file conf$$ 2>/dev/null; then
36154 as_ln_s='ln -s'
36155 # ... but there are two gotchas:
36156 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36157 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036158 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036159 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036160 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036161 elif ln conf$$.file conf$$ 2>/dev/null; then
36162 as_ln_s=ln
36163 else
cristy14fefe52012-05-21 00:59:18 +000036164 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036165 fi
36166else
cristy14fefe52012-05-21 00:59:18 +000036167 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036168fi
36169rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36170rmdir conf$$.dir 2>/dev/null
36171
cristy8b350f62009-11-15 23:12:43 +000036172
36173# as_fn_mkdir_p
36174# -------------
36175# Create "$as_dir" as a directory, including parents if necessary.
36176as_fn_mkdir_p ()
36177{
36178
36179 case $as_dir in #(
36180 -*) as_dir=./$as_dir;;
36181 esac
36182 test -d "$as_dir" || eval $as_mkdir_p || {
36183 as_dirs=
36184 while :; do
36185 case $as_dir in #(
36186 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36187 *) as_qdir=$as_dir;;
36188 esac
36189 as_dirs="'$as_qdir' $as_dirs"
36190 as_dir=`$as_dirname -- "$as_dir" ||
36191$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36192 X"$as_dir" : 'X\(//\)[^/]' \| \
36193 X"$as_dir" : 'X\(//\)$' \| \
36194 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36195$as_echo X"$as_dir" |
36196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36197 s//\1/
36198 q
36199 }
36200 /^X\(\/\/\)[^/].*/{
36201 s//\1/
36202 q
36203 }
36204 /^X\(\/\/\)$/{
36205 s//\1/
36206 q
36207 }
36208 /^X\(\/\).*/{
36209 s//\1/
36210 q
36211 }
36212 s/.*/./; q'`
36213 test -d "$as_dir" && break
36214 done
36215 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036216 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036217
36218
36219} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036220if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036221 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036222else
36223 test -d ./-p && rmdir ./-p
36224 as_mkdir_p=false
36225fi
36226
cristy14fefe52012-05-21 00:59:18 +000036227
36228# as_fn_executable_p FILE
36229# -----------------------
36230# Test if FILE is an executable regular file.
36231as_fn_executable_p ()
36232{
36233 test -f "$1" && test -x "$1"
36234} # as_fn_executable_p
36235as_test_x='test -x'
36236as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036237
36238# Sed expression to map a string onto a valid CPP name.
36239as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36240
36241# Sed expression to map a string onto a valid variable name.
36242as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36243
36244
36245exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036246## ----------------------------------- ##
36247## Main body of $CONFIG_STATUS script. ##
36248## ----------------------------------- ##
36249_ASEOF
36250test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036251
cristy8b350f62009-11-15 23:12:43 +000036252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36253# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036254# report actual input values of CONFIG_FILES etc. instead of their
36255# values after options handling.
36256ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036257This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036258generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036259
36260 CONFIG_FILES = $CONFIG_FILES
36261 CONFIG_HEADERS = $CONFIG_HEADERS
36262 CONFIG_LINKS = $CONFIG_LINKS
36263 CONFIG_COMMANDS = $CONFIG_COMMANDS
36264 $ $0 $@
36265
36266on `(hostname || uname -n) 2>/dev/null | sed 1q`
36267"
36268
36269_ACEOF
36270
36271case $ac_config_files in *"
36272"*) set x $ac_config_files; shift; ac_config_files=$*;;
36273esac
36274
36275case $ac_config_headers in *"
36276"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36277esac
36278
36279
36280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36281# Files that config.status was made for.
36282config_files="$ac_config_files"
36283config_headers="$ac_config_headers"
36284config_commands="$ac_config_commands"
36285
36286_ACEOF
36287
36288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36289ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036290\`$as_me' instantiates files and other configuration actions
36291from templates according to the current configuration. Unless the files
36292and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036293
cristy8b350f62009-11-15 23:12:43 +000036294Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036295
36296 -h, --help print this help, then exit
36297 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036298 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036299 -q, --quiet, --silent
36300 do not print progress messages
36301 -d, --debug don't remove temporary files
36302 --recheck update $as_me by reconfiguring in the same conditions
36303 --file=FILE[:TEMPLATE]
36304 instantiate the configuration file FILE
36305 --header=FILE[:TEMPLATE]
36306 instantiate the configuration header FILE
36307
36308Configuration files:
36309$config_files
36310
36311Configuration headers:
36312$config_headers
36313
36314Configuration commands:
36315$config_commands
36316
cristy8b350f62009-11-15 23:12:43 +000036317Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036318
36319_ACEOF
36320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036321ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036322ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036323ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036324configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036325 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036326
cristy14fefe52012-05-21 00:59:18 +000036327Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036328This config.status script is free software; the Free Software Foundation
36329gives unlimited permission to copy, distribute and modify it."
36330
36331ac_pwd='$ac_pwd'
36332srcdir='$srcdir'
36333INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036334MKDIR_P='$MKDIR_P'
36335AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036336test -n "\$AWK" || AWK=awk
36337_ACEOF
36338
36339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36340# The default lists apply if the user does not specify any file.
36341ac_need_defaults=:
36342while test $# != 0
36343do
36344 case $1 in
cristyda16f162011-02-19 23:52:17 +000036345 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036346 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36347 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36348 ac_shift=:
36349 ;;
cristyda16f162011-02-19 23:52:17 +000036350 --*=)
36351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36352 ac_optarg=
36353 ac_shift=:
36354 ;;
cristy3ed852e2009-09-05 21:47:34 +000036355 *)
36356 ac_option=$1
36357 ac_optarg=$2
36358 ac_shift=shift
36359 ;;
36360 esac
36361
36362 case $ac_option in
36363 # Handling of the options.
36364 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36365 ac_cs_recheck=: ;;
36366 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36367 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036368 --config | --confi | --conf | --con | --co | --c )
36369 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036370 --debug | --debu | --deb | --de | --d | -d )
36371 debug=: ;;
36372 --file | --fil | --fi | --f )
36373 $ac_shift
36374 case $ac_optarg in
36375 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036376 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036377 esac
cristy8b350f62009-11-15 23:12:43 +000036378 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036379 ac_need_defaults=false;;
36380 --header | --heade | --head | --hea )
36381 $ac_shift
36382 case $ac_optarg in
36383 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36384 esac
cristy8b350f62009-11-15 23:12:43 +000036385 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036386 ac_need_defaults=false;;
36387 --he | --h)
36388 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036389 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036390Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036391 --help | --hel | -h )
36392 $as_echo "$ac_cs_usage"; exit ;;
36393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36394 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36395 ac_cs_silent=: ;;
36396
36397 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036398 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036399Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036400
cristy8b350f62009-11-15 23:12:43 +000036401 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036402 ac_need_defaults=false ;;
36403
36404 esac
36405 shift
36406done
36407
36408ac_configure_extra_args=
36409
36410if $ac_cs_silent; then
36411 exec 6>/dev/null
36412 ac_configure_extra_args="$ac_configure_extra_args --silent"
36413fi
36414
36415_ACEOF
36416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36417if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036418 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036419 shift
36420 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36421 CONFIG_SHELL='$SHELL'
36422 export CONFIG_SHELL
36423 exec "\$@"
36424fi
36425
36426_ACEOF
36427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36428exec 5>>config.log
36429{
36430 echo
36431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36432## Running $as_me. ##
36433_ASBOX
36434 $as_echo "$ac_log"
36435} >&5
36436
36437_ACEOF
36438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036439#
36440# INIT-COMMANDS
36441#
36442PACKAGE="$PACKAGE"
36443AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36444
36445
36446# The HP-UX ksh and POSIX shell print the target directory to stdout
36447# if CDPATH is set.
36448(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36449
36450sed_quote_subst='$sed_quote_subst'
36451double_quote_subst='$double_quote_subst'
36452delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036453SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36454Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36455GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36456EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36457FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36458SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36459ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36460LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36461macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36462macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36463AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36464DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36465OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36466enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36467enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36468pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36469enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036470PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036471host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36472host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36473host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36474build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36475build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36476build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36477NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36478LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36479max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36480ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36481exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36482lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36483lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36484lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036485lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36486lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036487reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36488reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36489deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36490file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036491file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36492want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36493sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036494AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36495AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036496archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036497STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36498RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36499old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36500old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36501old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36502lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36503CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36504CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36505compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36506GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36507lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36508lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36509lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36510lt_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 +000036511nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36512lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036513objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36514MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36515lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036516lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036517lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036518lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36519lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36520need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036521MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036522DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36523NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36524LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36525OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36526OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36527libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36528shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36529extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36530archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36531enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36532export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36533whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36534compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36535old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36536old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36537archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36538archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36539module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36540module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36541with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36542allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36543no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36544hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036545hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36546hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36547hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36548hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36549hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36550hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36551inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36552link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036553always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36554export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36555exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36556include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36557prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036558postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036559file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36560variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36561need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36562need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36563version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36564runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36565shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36566shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36567libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36568library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36569soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36570install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36571postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36572postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36573finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36574finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36575hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36576sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36577sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36578hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36579enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36580enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36581enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36582old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36583striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36584compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36585predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36586postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36587predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36588postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36589compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36590LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36591reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36592reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36593old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36594compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36595GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36596lt_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 +000036597lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036598lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036599lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36600lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36601archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36602enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36603export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36604whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36605compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36606old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36607old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36608archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36609archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36610module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36611module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36612with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36613allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36614no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36615hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036616hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36617hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36618hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36619hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36620hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36621hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36622inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36623link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036624always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36625export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36626exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36627include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36628prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036629postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036630file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36631hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36632compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36633predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36634postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36635predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36636postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36637compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036638
36639LTCC='$LTCC'
36640LTCFLAGS='$LTCFLAGS'
36641compiler='$compiler_DEFAULT'
36642
cristy0c60a692010-11-04 01:09:47 +000036643# A function that is used when there is no print builtin or printf.
36644func_fallback_echo ()
36645{
36646 eval 'cat <<_LTECHO_EOF
36647\$1
36648_LTECHO_EOF'
36649}
36650
cristy73bd4a52010-10-05 11:24:23 +000036651# Quote evaled strings.
36652for var in SED \
36653GREP \
36654EGREP \
36655FGREP \
cristy0c60a692010-11-04 01:09:47 +000036656SHELL \
36657ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036658LD \
cristy0c60a692010-11-04 01:09:47 +000036659AS \
36660DLLTOOL \
36661OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036662PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036663NM \
36664LN_S \
36665lt_SP2NL \
36666lt_NL2SP \
36667reload_flag \
36668deplibs_check_method \
36669file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036670file_magic_glob \
36671want_nocaseglob \
36672sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036673AR \
36674AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036675archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036676STRIP \
36677RANLIB \
36678CC \
36679CFLAGS \
36680compiler \
36681lt_cv_sys_global_symbol_pipe \
36682lt_cv_sys_global_symbol_to_cdecl \
36683lt_cv_sys_global_symbol_to_c_name_address \
36684lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036685nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036686lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036687lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036688lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036689lt_prog_compiler_static \
36690lt_cv_prog_compiler_c_o \
36691need_locks \
cristyda16f162011-02-19 23:52:17 +000036692MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036693DSYMUTIL \
36694NMEDIT \
36695LIPO \
36696OTOOL \
36697OTOOL64 \
36698shrext_cmds \
36699export_dynamic_flag_spec \
36700whole_archive_flag_spec \
36701compiler_needs_object \
36702with_gnu_ld \
36703allow_undefined_flag \
36704no_undefined_flag \
36705hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036706hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036707exclude_expsyms \
36708include_expsyms \
36709file_list_spec \
36710variables_saved_for_relink \
36711libname_spec \
36712library_names_spec \
36713soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036714install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036715finish_eval \
36716old_striplib \
36717striplib \
36718compiler_lib_search_dirs \
36719predep_objects \
36720postdep_objects \
36721predeps \
36722postdeps \
36723compiler_lib_search_path \
36724LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036725reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036726compiler_CXX \
36727lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036728lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036729lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036730lt_prog_compiler_static_CXX \
36731lt_cv_prog_compiler_c_o_CXX \
36732export_dynamic_flag_spec_CXX \
36733whole_archive_flag_spec_CXX \
36734compiler_needs_object_CXX \
36735with_gnu_ld_CXX \
36736allow_undefined_flag_CXX \
36737no_undefined_flag_CXX \
36738hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036739hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036740exclude_expsyms_CXX \
36741include_expsyms_CXX \
36742file_list_spec_CXX \
36743compiler_lib_search_dirs_CXX \
36744predep_objects_CXX \
36745postdep_objects_CXX \
36746predeps_CXX \
36747postdeps_CXX \
36748compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036749 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036750 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036751 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036752 ;;
36753 *)
36754 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36755 ;;
36756 esac
36757done
36758
36759# Double-quote double-evaled strings.
36760for var in reload_cmds \
36761old_postinstall_cmds \
36762old_postuninstall_cmds \
36763old_archive_cmds \
36764extract_expsyms_cmds \
36765old_archive_from_new_cmds \
36766old_archive_from_expsyms_cmds \
36767archive_cmds \
36768archive_expsym_cmds \
36769module_cmds \
36770module_expsym_cmds \
36771export_symbols_cmds \
36772prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036773postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036774postinstall_cmds \
36775postuninstall_cmds \
36776finish_cmds \
36777sys_lib_search_path_spec \
36778sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036779reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036780old_archive_cmds_CXX \
36781old_archive_from_new_cmds_CXX \
36782old_archive_from_expsyms_cmds_CXX \
36783archive_cmds_CXX \
36784archive_expsym_cmds_CXX \
36785module_cmds_CXX \
36786module_expsym_cmds_CXX \
36787export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036788prelink_cmds_CXX \
36789postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036790 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036791 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036792 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036793 ;;
36794 *)
36795 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36796 ;;
36797 esac
36798done
36799
cristy73bd4a52010-10-05 11:24:23 +000036800ac_aux_dir='$ac_aux_dir'
36801xsi_shell='$xsi_shell'
36802lt_shell_append='$lt_shell_append'
36803
36804# See if we are running on zsh, and set the options which allow our
36805# commands through without removal of \ escapes INIT.
36806if test -n "\${ZSH_VERSION+set}" ; then
36807 setopt NO_GLOB_SUBST
36808fi
36809
36810
36811 PACKAGE='$PACKAGE'
36812 VERSION='$VERSION'
36813 TIMESTAMP='$TIMESTAMP'
36814 RM='$RM'
36815 ofile='$ofile'
36816
36817
36818
36819
36820
36821
cristy3ed852e2009-09-05 21:47:34 +000036822_ACEOF
36823
36824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36825
36826# Handling of arguments.
36827for ac_config_target in $ac_config_targets
36828do
36829 case $ac_config_target in
36830 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036831 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036832 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036833 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36834 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36835 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36836 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36837 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036838 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036839 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036840 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36841 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36842 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36843 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36844 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036845 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036846 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036847 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36848 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36849 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036850 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36851 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000036852 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000036853 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000036854 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000036855 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000036856 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
36857 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
36858 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
36859 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000036860 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36861 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36862 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36863 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36864 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36865 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36866 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36867 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36868 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36869 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36870 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36871 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036872 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36873 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036874 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36875 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036876 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036877 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036878 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036879 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036880 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36881 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36882
cristy98dddb52010-11-04 00:30:15 +000036883 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036884 esac
36885done
36886
36887
36888# If the user did not use the arguments to specify the items to instantiate,
36889# then the envvar interface is used. Set only those that are not.
36890# We use the long form for the default assignment because of an extremely
36891# bizarre bug on SunOS 4.1.3.
36892if $ac_need_defaults; then
36893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36894 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36896fi
36897
36898# Have a temporary directory for convenience. Make it in the build tree
36899# simply because there is no reason against having it here, and in addition,
36900# creating and moving files from /tmp can sometimes cause problems.
36901# Hook for its removal unless debugging.
36902# Note that there is a small window in which the directory will not be cleaned:
36903# after its creation but before its name has been assigned to `$tmp'.
36904$debug ||
36905{
cristyda16f162011-02-19 23:52:17 +000036906 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036907 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036908 : "${ac_tmp:=$tmp}"
36909 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036910' 0
cristy8b350f62009-11-15 23:12:43 +000036911 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036912}
36913# Create a (secure) tmp directory for tmp files.
36914
36915{
36916 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036917 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036918} ||
36919{
36920 tmp=./conf$$-$RANDOM
36921 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036922} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036923ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036924
36925# Set up the scripts for CONFIG_FILES section.
36926# No need to generate them if there are no CONFIG_FILES.
36927# This happens for instance with `./config.status config.h'.
36928if test -n "$CONFIG_FILES"; then
36929
36930
cristy8b350f62009-11-15 23:12:43 +000036931ac_cr=`echo X | tr X '\015'`
36932# On cygwin, bash can eat \r inside `` if the user requested igncr.
36933# But we know of no other shell where ac_cr would be empty at this
36934# point, so we can use a bashism as a fallback.
36935if test "x$ac_cr" = x; then
36936 eval ac_cr=\$\'\\r\'
36937fi
cristy3ed852e2009-09-05 21:47:34 +000036938ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36939if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036940 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036941else
36942 ac_cs_awk_cr=$ac_cr
36943fi
36944
cristyda16f162011-02-19 23:52:17 +000036945echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036946_ACEOF
36947
36948
36949{
36950 echo "cat >conf$$subs.awk <<_ACEOF" &&
36951 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36952 echo "_ACEOF"
36953} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36955ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036956ac_delim='%!_!# '
36957for ac_last_try in false false false false false :; do
36958 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036960
36961 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36962 if test $ac_delim_n = $ac_delim_num; then
36963 break
36964 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036965 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036966 else
36967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36968 fi
36969done
36970rm -f conf$$subs.sh
36971
36972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036973cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036974_ACEOF
36975sed -n '
36976h
36977s/^/S["/; s/!.*/"]=/
36978p
36979g
36980s/^[^!]*!//
36981:repl
36982t repl
36983s/'"$ac_delim"'$//
36984t delim
36985:nl
36986h
cristycd4c5312009-11-22 01:19:08 +000036987s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036988t more1
36989s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36990p
36991n
36992b repl
36993:more1
36994s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36995p
36996g
36997s/.\{148\}//
36998t nl
36999:delim
37000h
cristycd4c5312009-11-22 01:19:08 +000037001s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037002t more2
37003s/["\\]/\\&/g; s/^/"/; s/$/"/
37004p
37005b
37006:more2
37007s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37008p
37009g
37010s/.\{148\}//
37011t delim
37012' <conf$$subs.awk | sed '
37013/^[^""]/{
37014 N
37015 s/\n//
37016}
37017' >>$CONFIG_STATUS || ac_write_fail=1
37018rm -f conf$$subs.awk
37019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37020_ACAWK
cristyda16f162011-02-19 23:52:17 +000037021cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037022 for (key in S) S_is_set[key] = 1
37023 FS = ""
37024
37025}
37026{
37027 line = $ 0
37028 nfields = split(line, field, "@")
37029 substed = 0
37030 len = length(field[1])
37031 for (i = 2; i < nfields; i++) {
37032 key = field[i]
37033 keylen = length(key)
37034 if (S_is_set[key]) {
37035 value = S[key]
37036 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37037 len += length(value) + length(field[++i])
37038 substed = 1
37039 } else
37040 len += 1 + keylen
37041 }
37042
37043 print line
37044}
37045
37046_ACAWK
37047_ACEOF
37048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37049if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37050 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37051else
37052 cat
cristyda16f162011-02-19 23:52:17 +000037053fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037054 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037055_ACEOF
37056
cristy98dddb52010-11-04 00:30:15 +000037057# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37058# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037059# trailing colons and then remove the whole line if VPATH becomes empty
37060# (actually we leave an empty line to preserve line numbers).
37061if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037062 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37063h
37064s///
37065s/^/:/
37066s/[ ]*$/:/
37067s/:\$(srcdir):/:/g
37068s/:\${srcdir}:/:/g
37069s/:@srcdir@:/:/g
37070s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037071s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037072x
37073s/\(=[ ]*\).*/\1/
37074G
37075s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037076s/^[^=]*=[ ]*$//
37077}'
37078fi
37079
37080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37081fi # test -n "$CONFIG_FILES"
37082
37083# Set up the scripts for CONFIG_HEADERS section.
37084# No need to generate them if there are no CONFIG_HEADERS.
37085# This happens for instance with `./config.status Makefile'.
37086if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037087cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037088BEGIN {
37089_ACEOF
37090
37091# Transform confdefs.h into an awk script `defines.awk', embedded as
37092# here-document in config.status, that substitutes the proper values into
37093# config.h.in to produce config.h.
37094
37095# Create a delimiter string that does not exist in confdefs.h, to ease
37096# handling of long lines.
37097ac_delim='%!_!# '
37098for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037099 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37100 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037101 break
37102 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037103 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037104 else
37105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37106 fi
37107done
37108
37109# For the awk script, D is an array of macro values keyed by name,
37110# likewise P contains macro parameters if any. Preserve backslash
37111# newline sequences.
37112
37113ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37114sed -n '
37115s/.\{148\}/&'"$ac_delim"'/g
37116t rset
37117:rset
37118s/^[ ]*#[ ]*define[ ][ ]*/ /
37119t def
37120d
37121:def
37122s/\\$//
37123t bsnl
37124s/["\\]/\\&/g
37125s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37126D["\1"]=" \3"/p
37127s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37128d
37129:bsnl
37130s/["\\]/\\&/g
37131s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37132D["\1"]=" \3\\\\\\n"\\/p
37133t cont
37134s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37135t cont
37136d
37137:cont
37138n
37139s/.\{148\}/&'"$ac_delim"'/g
37140t clear
37141:clear
37142s/\\$//
37143t bsnlc
37144s/["\\]/\\&/g; s/^/"/; s/$/"/p
37145d
37146:bsnlc
37147s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37148b cont
37149' <confdefs.h | sed '
37150s/'"$ac_delim"'/"\\\
37151"/g' >>$CONFIG_STATUS || ac_write_fail=1
37152
37153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37154 for (key in D) D_is_set[key] = 1
37155 FS = ""
37156}
37157/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37158 line = \$ 0
37159 split(line, arg, " ")
37160 if (arg[1] == "#") {
37161 defundef = arg[2]
37162 mac1 = arg[3]
37163 } else {
37164 defundef = substr(arg[1], 2)
37165 mac1 = arg[2]
37166 }
37167 split(mac1, mac2, "(") #)
37168 macro = mac2[1]
37169 prefix = substr(line, 1, index(line, defundef) - 1)
37170 if (D_is_set[macro]) {
37171 # Preserve the white space surrounding the "#".
37172 print prefix "define", macro P[macro] D[macro]
37173 next
37174 } else {
37175 # Replace #undef with comments. This is necessary, for example,
37176 # in the case of _POSIX_SOURCE, which is predefined and required
37177 # on some systems where configure will not decide to define it.
37178 if (defundef == "undef") {
37179 print "/*", prefix defundef, macro, "*/"
37180 next
37181 }
37182 }
37183}
37184{ print }
37185_ACAWK
37186_ACEOF
37187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037188 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037189fi # test -n "$CONFIG_HEADERS"
37190
37191
37192eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37193shift
37194for ac_tag
37195do
37196 case $ac_tag in
37197 :[FHLC]) ac_mode=$ac_tag; continue;;
37198 esac
37199 case $ac_mode$ac_tag in
37200 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037201 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037202 :[FH]-) ac_tag=-:-;;
37203 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37204 esac
37205 ac_save_IFS=$IFS
37206 IFS=:
37207 set x $ac_tag
37208 IFS=$ac_save_IFS
37209 shift
37210 ac_file=$1
37211 shift
37212
37213 case $ac_mode in
37214 :L) ac_source=$1;;
37215 :[FH])
37216 ac_file_inputs=
37217 for ac_f
37218 do
37219 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037220 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037221 *) # Look for the file first in the build tree, then in the source tree
37222 # (if the path is not absolute). The absolute path cannot be DOS-style,
37223 # because $ac_f cannot contain `:'.
37224 test -f "$ac_f" ||
37225 case $ac_f in
37226 [\\/$]*) false;;
37227 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37228 esac ||
cristy98dddb52010-11-04 00:30:15 +000037229 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037230 esac
37231 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037232 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037233 done
37234
37235 # Let's still pretend it is `configure' which instantiates (i.e., don't
37236 # use $as_me), people would be surprised to read:
37237 # /* config.h. Generated by config.status. */
37238 configure_input='Generated from '`
37239 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37240 `' by configure.'
37241 if test x"$ac_file" != x-; then
37242 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037244$as_echo "$as_me: creating $ac_file" >&6;}
37245 fi
37246 # Neutralize special characters interpreted by sed in replacement strings.
37247 case $configure_input in #(
37248 *\&* | *\|* | *\\* )
37249 ac_sed_conf_input=`$as_echo "$configure_input" |
37250 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37251 *) ac_sed_conf_input=$configure_input;;
37252 esac
37253
37254 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037255 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037257 esac
37258 ;;
37259 esac
37260
37261 ac_dir=`$as_dirname -- "$ac_file" ||
37262$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37263 X"$ac_file" : 'X\(//\)[^/]' \| \
37264 X"$ac_file" : 'X\(//\)$' \| \
37265 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37266$as_echo X"$ac_file" |
37267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37268 s//\1/
37269 q
37270 }
37271 /^X\(\/\/\)[^/].*/{
37272 s//\1/
37273 q
37274 }
37275 /^X\(\/\/\)$/{
37276 s//\1/
37277 q
37278 }
37279 /^X\(\/\).*/{
37280 s//\1/
37281 q
37282 }
37283 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037284 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037285 ac_builddir=.
37286
37287case "$ac_dir" in
37288.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37289*)
37290 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37291 # A ".." for each directory in $ac_dir_suffix.
37292 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37293 case $ac_top_builddir_sub in
37294 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37295 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37296 esac ;;
37297esac
37298ac_abs_top_builddir=$ac_pwd
37299ac_abs_builddir=$ac_pwd$ac_dir_suffix
37300# for backward compatibility:
37301ac_top_builddir=$ac_top_build_prefix
37302
37303case $srcdir in
37304 .) # We are building in place.
37305 ac_srcdir=.
37306 ac_top_srcdir=$ac_top_builddir_sub
37307 ac_abs_top_srcdir=$ac_pwd ;;
37308 [\\/]* | ?:[\\/]* ) # Absolute name.
37309 ac_srcdir=$srcdir$ac_dir_suffix;
37310 ac_top_srcdir=$srcdir
37311 ac_abs_top_srcdir=$srcdir ;;
37312 *) # Relative name.
37313 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37314 ac_top_srcdir=$ac_top_build_prefix$srcdir
37315 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37316esac
37317ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37318
37319
37320 case $ac_mode in
37321 :F)
37322 #
37323 # CONFIG_FILE
37324 #
37325
37326 case $INSTALL in
37327 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37328 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37329 esac
cristy73bd4a52010-10-05 11:24:23 +000037330 ac_MKDIR_P=$MKDIR_P
37331 case $MKDIR_P in
37332 [\\/$]* | ?:[\\/]* ) ;;
37333 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37334 esac
cristy3ed852e2009-09-05 21:47:34 +000037335_ACEOF
37336
37337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37338# If the template does not know about datarootdir, expand it.
37339# FIXME: This hack should be removed a few years after 2.60.
37340ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037341ac_sed_dataroot='
37342/datarootdir/ {
37343 p
37344 q
37345}
37346/@datadir@/p
37347/@docdir@/p
37348/@infodir@/p
37349/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037350/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037351case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37352*datarootdir*) ac_datarootdir_seen=yes;;
37353*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037355$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37356_ACEOF
37357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37358 ac_datarootdir_hack='
37359 s&@datadir@&$datadir&g
37360 s&@docdir@&$docdir&g
37361 s&@infodir@&$infodir&g
37362 s&@localedir@&$localedir&g
37363 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037364 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037365esac
37366_ACEOF
37367
37368# Neutralize VPATH when `$srcdir' = `.'.
37369# Shell code in configure.ac might set extrasub.
37370# FIXME: do we really want to maintain this feature?
37371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37372ac_sed_extra="$ac_vpsub
37373$extrasub
37374_ACEOF
37375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37376:t
37377/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37378s|@configure_input@|$ac_sed_conf_input|;t t
37379s&@top_builddir@&$ac_top_builddir_sub&;t t
37380s&@top_build_prefix@&$ac_top_build_prefix&;t t
37381s&@srcdir@&$ac_srcdir&;t t
37382s&@abs_srcdir@&$ac_abs_srcdir&;t t
37383s&@top_srcdir@&$ac_top_srcdir&;t t
37384s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37385s&@builddir@&$ac_builddir&;t t
37386s&@abs_builddir@&$ac_abs_builddir&;t t
37387s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37388s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037389s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037390$ac_datarootdir_hack
37391"
cristyda16f162011-02-19 23:52:17 +000037392eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37393 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037394
37395test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037396 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37397 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37398 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037400which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037401$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037402which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037403
cristyda16f162011-02-19 23:52:17 +000037404 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037405 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037406 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37407 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037408 esac \
cristy98dddb52010-11-04 00:30:15 +000037409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037410 ;;
37411 :H)
37412 #
37413 # CONFIG_HEADER
37414 #
37415 if test x"$ac_file" != x-; then
37416 {
37417 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037418 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37419 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037420 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037421 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037422 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037423$as_echo "$as_me: $ac_file is unchanged" >&6;}
37424 else
37425 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037426 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037428 fi
37429 else
37430 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037431 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037432 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037433 fi
cristy73bd4a52010-10-05 11:24:23 +000037434# Compute "$ac_file"'s index in $config_headers.
37435_am_arg="$ac_file"
37436_am_stamp_count=1
37437for _am_header in $config_headers :; do
37438 case $_am_header in
37439 $_am_arg | $_am_arg:* )
37440 break ;;
37441 * )
37442 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37443 esac
37444done
37445echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37446$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37447 X"$_am_arg" : 'X\(//\)[^/]' \| \
37448 X"$_am_arg" : 'X\(//\)$' \| \
37449 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37450$as_echo X"$_am_arg" |
37451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37452 s//\1/
37453 q
37454 }
37455 /^X\(\/\/\)[^/].*/{
37456 s//\1/
37457 q
37458 }
37459 /^X\(\/\/\)$/{
37460 s//\1/
37461 q
37462 }
37463 /^X\(\/\).*/{
37464 s//\1/
37465 q
37466 }
37467 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037468 ;;
37469
cristy8b350f62009-11-15 23:12:43 +000037470 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037471$as_echo "$as_me: executing $ac_file commands" >&6;}
37472 ;;
37473 esac
37474
37475
37476 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037477 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037478ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37479ac_prefix_conf_PKG=`echo MagickCore`
37480ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37481ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37482ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37483if test ".$ac_prefix_conf_INP" = "."; then
37484 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37485 case "$ac_file" in
37486 *.h) ac_prefix_conf_INP=$ac_file ;;
37487 *)
37488 esac
37489 test ".$ac_prefix_conf_INP" != "." && break
37490 done
37491fi
37492if test ".$ac_prefix_conf_INP" = "."; then
37493 case "$ac_prefix_conf_OUT" in
37494 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37495 ;;
37496 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37497 ;;
37498 *) ac_prefix_conf_INP=config.h
37499 ;;
37500 esac
37501fi
37502if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037503 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037504else
37505 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37506 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37507 fi fi
37508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37509$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37510 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037511 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37512 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37513 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37514 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37515 $as_echo "#endif/" >> conftest.prefix
37516 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37517 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37518 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037519 # now executing _script on _DEF input to create _OUT output file
37520 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37521 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37522 echo ' ' >>$tmp/pconfig.h
37523 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37524
37525 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37526 echo ' ' >>$tmp/pconfig.h
37527 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37528 echo "#endif" >>$tmp/pconfig.h
37529 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37530 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37531$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37532 else
37533 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37534$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37535 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37536 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37537 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37538$as_echo X"$ac_prefix_conf_OUT" |
37539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37540 s//\1/
37541 q
37542 }
37543 /^X\(\/\/\)[^/].*/{
37544 s//\1/
37545 q
37546 }
37547 /^X\(\/\/\)$/{
37548 s//\1/
37549 q
37550 }
37551 /^X\(\/\).*/{
37552 s//\1/
37553 q
37554 }
37555 s/.*/./; q'`
37556 as_dir="$ac_dir"; as_fn_mkdir_p
37557 rm -f "$ac_prefix_conf_OUT"
37558 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37559 fi
37560 cp conftest.prefix _configs.sed
37561 else
cristy98dddb52010-11-04 00:30:15 +000037562 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 +000037563 fi
37564 rm -f conftest.*
37565fi
37566 ;;
37567 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037568 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037569 # are listed without --file. Let's play safe and only enable the eval
37570 # if we detect the quoting.
37571 case $CONFIG_FILES in
37572 *\'*) eval set x "$CONFIG_FILES" ;;
37573 *) set x $CONFIG_FILES ;;
37574 esac
37575 shift
37576 for mf
37577 do
37578 # Strip MF so we end up with the name of the file.
37579 mf=`echo "$mf" | sed -e 's/:.*$//'`
37580 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037581 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037582 # some people rename them; so instead we look at the file content.
37583 # Grep'ing the first line is not enough: some people post-process
37584 # each Makefile.in and add a new line on top of each file to say so.
37585 # Grep'ing the whole file is not good either: AIX grep has a line
37586 # limit of 2048, but all sed's we know have understand at least 4000.
37587 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37588 dirpart=`$as_dirname -- "$mf" ||
37589$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37590 X"$mf" : 'X\(//\)[^/]' \| \
37591 X"$mf" : 'X\(//\)$' \| \
37592 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37593$as_echo X"$mf" |
37594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37595 s//\1/
37596 q
37597 }
37598 /^X\(\/\/\)[^/].*/{
37599 s//\1/
37600 q
37601 }
37602 /^X\(\/\/\)$/{
37603 s//\1/
37604 q
37605 }
37606 /^X\(\/\).*/{
37607 s//\1/
37608 q
37609 }
37610 s/.*/./; q'`
37611 else
37612 continue
37613 fi
37614 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037615 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037616 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37617 test -z "$DEPDIR" && continue
37618 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000037619 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000037620 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037621 # Find all dependency output files, they are included files with
37622 # $(DEPDIR) in their names. We invoke sed twice because it is the
37623 # simplest approach to changing $(DEPDIR) to its actual value in the
37624 # expansion.
37625 for file in `sed -n "
37626 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037627 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037628 # Make sure the directory exists.
37629 test -f "$dirpart/$file" && continue
37630 fdir=`$as_dirname -- "$file" ||
37631$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37632 X"$file" : 'X\(//\)[^/]' \| \
37633 X"$file" : 'X\(//\)$' \| \
37634 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37635$as_echo X"$file" |
37636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37637 s//\1/
37638 q
37639 }
37640 /^X\(\/\/\)[^/].*/{
37641 s//\1/
37642 q
37643 }
37644 /^X\(\/\/\)$/{
37645 s//\1/
37646 q
37647 }
37648 /^X\(\/\).*/{
37649 s//\1/
37650 q
37651 }
37652 s/.*/./; q'`
37653 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37654 # echo "creating $dirpart/$file"
37655 echo '# dummy' > "$dirpart/$file"
37656 done
37657 done
37658}
37659 ;;
37660 "libtool":C)
37661
37662 # See if we are running on zsh, and set the options which allow our
37663 # commands through without removal of \ escapes.
37664 if test -n "${ZSH_VERSION+set}" ; then
37665 setopt NO_GLOB_SUBST
37666 fi
37667
37668 cfgfile="${ofile}T"
37669 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37670 $RM "$cfgfile"
37671
37672 cat <<_LT_EOF >> "$cfgfile"
37673#! $SHELL
37674
37675# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37676# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37677# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37678# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37679#
37680# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037681# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37682# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037683# Written by Gordon Matzigkeit, 1996
37684#
37685# This file is part of GNU Libtool.
37686#
37687# GNU Libtool is free software; you can redistribute it and/or
37688# modify it under the terms of the GNU General Public License as
37689# published by the Free Software Foundation; either version 2 of
37690# the License, or (at your option) any later version.
37691#
37692# As a special exception to the GNU General Public License,
37693# if you distribute this file as part of a program or library that
37694# is built using GNU Libtool, you may include this file under the
37695# same distribution terms that you use for the rest of that program.
37696#
37697# GNU Libtool is distributed in the hope that it will be useful,
37698# but WITHOUT ANY WARRANTY; without even the implied warranty of
37699# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37700# GNU General Public License for more details.
37701#
37702# You should have received a copy of the GNU General Public License
37703# along with GNU Libtool; see the file COPYING. If not, a copy
37704# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37705# obtained by writing to the Free Software Foundation, Inc.,
37706# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37707
37708
37709# The names of the tagged configurations supported by this script.
37710available_tags="CXX "
37711
37712# ### BEGIN LIBTOOL CONFIG
37713
37714# A sed program that does not truncate output.
37715SED=$lt_SED
37716
37717# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37718Xsed="\$SED -e 1s/^X//"
37719
37720# A grep program that handles long lines.
37721GREP=$lt_GREP
37722
37723# An ERE matcher.
37724EGREP=$lt_EGREP
37725
37726# A literal string matcher.
37727FGREP=$lt_FGREP
37728
cristy0c60a692010-11-04 01:09:47 +000037729# Shell to use when invoking shell scripts.
37730SHELL=$lt_SHELL
37731
37732# An echo program that protects backslashes.
37733ECHO=$lt_ECHO
37734
cristy73bd4a52010-10-05 11:24:23 +000037735# Which release of libtool.m4 was used?
37736macro_version=$macro_version
37737macro_revision=$macro_revision
37738
37739# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037740AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037741
37742# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037743DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037744
37745# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037746OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037747
37748# Whether or not to build shared libraries.
37749build_libtool_libs=$enable_shared
37750
37751# Whether or not to build static libraries.
37752build_old_libs=$enable_static
37753
37754# What type of objects to build.
37755pic_mode=$pic_mode
37756
37757# Whether or not to optimize for fast installation.
37758fast_install=$enable_fast_install
37759
cristy99bd5232011-12-07 14:38:20 +000037760# The PATH separator for the build system.
37761PATH_SEPARATOR=$lt_PATH_SEPARATOR
37762
cristy73bd4a52010-10-05 11:24:23 +000037763# The host system.
37764host_alias=$host_alias
37765host=$host
37766host_os=$host_os
37767
37768# The build system.
37769build_alias=$build_alias
37770build=$build
37771build_os=$build_os
37772
37773# A BSD- or MS-compatible name lister.
37774NM=$lt_NM
37775
37776# Whether we need soft or hard links.
37777LN_S=$lt_LN_S
37778
37779# What is the maximum length of a command?
37780max_cmd_len=$max_cmd_len
37781
37782# Object file suffix (normally "o").
37783objext=$ac_objext
37784
37785# Executable file suffix (normally "").
37786exeext=$exeext
37787
37788# whether the shell understands "unset".
37789lt_unset=$lt_unset
37790
37791# turn spaces into newlines.
37792SP2NL=$lt_lt_SP2NL
37793
37794# turn newlines into spaces.
37795NL2SP=$lt_lt_NL2SP
37796
cristyda16f162011-02-19 23:52:17 +000037797# convert \$build file names to \$host format.
37798to_host_file_cmd=$lt_cv_to_host_file_cmd
37799
37800# convert \$build files to toolchain format.
37801to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37802
cristy73bd4a52010-10-05 11:24:23 +000037803# Method to check whether dependent libraries are shared objects.
37804deplibs_check_method=$lt_deplibs_check_method
37805
cristyda16f162011-02-19 23:52:17 +000037806# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037807file_magic_cmd=$lt_file_magic_cmd
37808
cristyda16f162011-02-19 23:52:17 +000037809# How to find potential files when deplibs_check_method = "file_magic".
37810file_magic_glob=$lt_file_magic_glob
37811
37812# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37813want_nocaseglob=$lt_want_nocaseglob
37814
37815# Command to associate shared and link libraries.
37816sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37817
cristy73bd4a52010-10-05 11:24:23 +000037818# The archiver.
37819AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037820
37821# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037822AR_FLAGS=$lt_AR_FLAGS
37823
cristyda16f162011-02-19 23:52:17 +000037824# How to feed a file listing to the archiver.
37825archiver_list_spec=$lt_archiver_list_spec
37826
cristy73bd4a52010-10-05 11:24:23 +000037827# A symbol stripping program.
37828STRIP=$lt_STRIP
37829
37830# Commands used to install an old-style archive.
37831RANLIB=$lt_RANLIB
37832old_postinstall_cmds=$lt_old_postinstall_cmds
37833old_postuninstall_cmds=$lt_old_postuninstall_cmds
37834
cristy0c60a692010-11-04 01:09:47 +000037835# Whether to use a lock for old archive extraction.
37836lock_old_archive_extraction=$lock_old_archive_extraction
37837
cristy73bd4a52010-10-05 11:24:23 +000037838# A C compiler.
37839LTCC=$lt_CC
37840
37841# LTCC compiler flags.
37842LTCFLAGS=$lt_CFLAGS
37843
37844# Take the output of nm and produce a listing of raw symbols and C names.
37845global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37846
37847# Transform the output of nm in a proper C declaration.
37848global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37849
37850# Transform the output of nm in a C name address pair.
37851global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37852
37853# Transform the output of nm in a C name address pair when lib prefix is needed.
37854global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37855
cristyda16f162011-02-19 23:52:17 +000037856# Specify filename containing input files for \$NM.
37857nm_file_list_spec=$lt_nm_file_list_spec
37858
37859# The root where to search for dependent libraries,and in which our libraries should be installed.
37860lt_sysroot=$lt_sysroot
37861
cristy73bd4a52010-10-05 11:24:23 +000037862# The name of the directory that contains temporary libtool files.
37863objdir=$objdir
37864
cristy73bd4a52010-10-05 11:24:23 +000037865# Used to examine libraries when file_magic_cmd begins with "file".
37866MAGIC_CMD=$MAGIC_CMD
37867
37868# Must we lock files when doing compilation?
37869need_locks=$lt_need_locks
37870
cristyda16f162011-02-19 23:52:17 +000037871# Manifest tool.
37872MANIFEST_TOOL=$lt_MANIFEST_TOOL
37873
cristy73bd4a52010-10-05 11:24:23 +000037874# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37875DSYMUTIL=$lt_DSYMUTIL
37876
37877# Tool to change global to local symbols on Mac OS X.
37878NMEDIT=$lt_NMEDIT
37879
37880# Tool to manipulate fat objects and archives on Mac OS X.
37881LIPO=$lt_LIPO
37882
37883# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37884OTOOL=$lt_OTOOL
37885
37886# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37887OTOOL64=$lt_OTOOL64
37888
37889# Old archive suffix (normally "a").
37890libext=$libext
37891
37892# Shared library suffix (normally ".so").
37893shrext_cmds=$lt_shrext_cmds
37894
37895# The commands to extract the exported symbol list from a shared archive.
37896extract_expsyms_cmds=$lt_extract_expsyms_cmds
37897
37898# Variables whose values should be saved in libtool wrapper scripts and
37899# restored at link time.
37900variables_saved_for_relink=$lt_variables_saved_for_relink
37901
37902# Do we need the "lib" prefix for modules?
37903need_lib_prefix=$need_lib_prefix
37904
37905# Do we need a version for libraries?
37906need_version=$need_version
37907
37908# Library versioning type.
37909version_type=$version_type
37910
37911# Shared library runtime path variable.
37912runpath_var=$runpath_var
37913
37914# Shared library path variable.
37915shlibpath_var=$shlibpath_var
37916
37917# Is shlibpath searched before the hard-coded library search path?
37918shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37919
37920# Format of library name prefix.
37921libname_spec=$lt_libname_spec
37922
37923# List of archive names. First name is the real one, the rest are links.
37924# The last name is the one that the linker finds with -lNAME
37925library_names_spec=$lt_library_names_spec
37926
37927# The coded name of the library, if different from the real name.
37928soname_spec=$lt_soname_spec
37929
cristy0c60a692010-11-04 01:09:47 +000037930# Permission mode override for installation of shared libraries.
37931install_override_mode=$lt_install_override_mode
37932
cristy73bd4a52010-10-05 11:24:23 +000037933# Command to use after installation of a shared archive.
37934postinstall_cmds=$lt_postinstall_cmds
37935
37936# Command to use after uninstallation of a shared archive.
37937postuninstall_cmds=$lt_postuninstall_cmds
37938
37939# Commands used to finish a libtool library installation in a directory.
37940finish_cmds=$lt_finish_cmds
37941
37942# As "finish_cmds", except a single script fragment to be evaled but
37943# not shown.
37944finish_eval=$lt_finish_eval
37945
37946# Whether we should hardcode library paths into libraries.
37947hardcode_into_libs=$hardcode_into_libs
37948
37949# Compile-time system search path for libraries.
37950sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37951
37952# Run-time system search path for libraries.
37953sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37954
37955# Whether dlopen is supported.
37956dlopen_support=$enable_dlopen
37957
37958# Whether dlopen of programs is supported.
37959dlopen_self=$enable_dlopen_self
37960
37961# Whether dlopen of statically linked programs is supported.
37962dlopen_self_static=$enable_dlopen_self_static
37963
37964# Commands to strip libraries.
37965old_striplib=$lt_old_striplib
37966striplib=$lt_striplib
37967
37968
37969# The linker used to build libraries.
37970LD=$lt_LD
37971
cristy0c60a692010-11-04 01:09:47 +000037972# How to create reloadable object files.
37973reload_flag=$lt_reload_flag
37974reload_cmds=$lt_reload_cmds
37975
cristy73bd4a52010-10-05 11:24:23 +000037976# Commands used to build an old-style archive.
37977old_archive_cmds=$lt_old_archive_cmds
37978
37979# A language specific compiler.
37980CC=$lt_compiler
37981
37982# Is the compiler the GNU compiler?
37983with_gcc=$GCC
37984
37985# Compiler flag to turn off builtin functions.
37986no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37987
cristy73bd4a52010-10-05 11:24:23 +000037988# Additional compiler flags for building library objects.
37989pic_flag=$lt_lt_prog_compiler_pic
37990
cristyda16f162011-02-19 23:52:17 +000037991# How to pass a linker flag through the compiler.
37992wl=$lt_lt_prog_compiler_wl
37993
cristy73bd4a52010-10-05 11:24:23 +000037994# Compiler flag to prevent dynamic linking.
37995link_static_flag=$lt_lt_prog_compiler_static
37996
37997# Does compiler simultaneously support -c and -o options?
37998compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37999
38000# Whether or not to add -lc for building shared libraries.
38001build_libtool_need_lc=$archive_cmds_need_lc
38002
38003# Whether or not to disallow shared libs when runtime libs are static.
38004allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38005
38006# Compiler flag to allow reflexive dlopens.
38007export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38008
38009# Compiler flag to generate shared objects directly from archives.
38010whole_archive_flag_spec=$lt_whole_archive_flag_spec
38011
38012# Whether the compiler copes with passing no objects directly.
38013compiler_needs_object=$lt_compiler_needs_object
38014
38015# Create an old-style archive from a shared archive.
38016old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38017
38018# Create a temporary old-style archive to link instead of a shared archive.
38019old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38020
38021# Commands used to build a shared archive.
38022archive_cmds=$lt_archive_cmds
38023archive_expsym_cmds=$lt_archive_expsym_cmds
38024
38025# Commands used to build a loadable module if different from building
38026# a shared archive.
38027module_cmds=$lt_module_cmds
38028module_expsym_cmds=$lt_module_expsym_cmds
38029
38030# Whether we are building with GNU ld or not.
38031with_gnu_ld=$lt_with_gnu_ld
38032
38033# Flag that allows shared libraries with undefined symbols to be built.
38034allow_undefined_flag=$lt_allow_undefined_flag
38035
38036# Flag that enforces no undefined symbols.
38037no_undefined_flag=$lt_no_undefined_flag
38038
38039# Flag to hardcode \$libdir into a binary during linking.
38040# This must work even if \$libdir does not exist
38041hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38042
cristy73bd4a52010-10-05 11:24:23 +000038043# Whether we need a single "-rpath" flag with a separated argument.
38044hardcode_libdir_separator=$lt_hardcode_libdir_separator
38045
38046# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38047# DIR into the resulting binary.
38048hardcode_direct=$hardcode_direct
38049
38050# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38051# DIR into the resulting binary and the resulting library dependency is
38052# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38053# library is relocated.
38054hardcode_direct_absolute=$hardcode_direct_absolute
38055
38056# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38057# into the resulting binary.
38058hardcode_minus_L=$hardcode_minus_L
38059
38060# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38061# into the resulting binary.
38062hardcode_shlibpath_var=$hardcode_shlibpath_var
38063
38064# Set to "yes" if building a shared library automatically hardcodes DIR
38065# into the library and all subsequent libraries and executables linked
38066# against it.
38067hardcode_automatic=$hardcode_automatic
38068
38069# Set to yes if linker adds runtime paths of dependent libraries
38070# to runtime path list.
38071inherit_rpath=$inherit_rpath
38072
38073# Whether libtool must link a program against all its dependency libraries.
38074link_all_deplibs=$link_all_deplibs
38075
cristy73bd4a52010-10-05 11:24:23 +000038076# Set to "yes" if exported symbols are required.
38077always_export_symbols=$always_export_symbols
38078
38079# The commands to list exported symbols.
38080export_symbols_cmds=$lt_export_symbols_cmds
38081
38082# Symbols that should not be listed in the preloaded symbols.
38083exclude_expsyms=$lt_exclude_expsyms
38084
38085# Symbols that must always be exported.
38086include_expsyms=$lt_include_expsyms
38087
38088# Commands necessary for linking programs (against libraries) with templates.
38089prelink_cmds=$lt_prelink_cmds
38090
cristyda16f162011-02-19 23:52:17 +000038091# Commands necessary for finishing linking programs.
38092postlink_cmds=$lt_postlink_cmds
38093
cristy73bd4a52010-10-05 11:24:23 +000038094# Specify filename containing input files.
38095file_list_spec=$lt_file_list_spec
38096
38097# How to hardcode a shared library path into an executable.
38098hardcode_action=$hardcode_action
38099
38100# The directories searched by this compiler when creating a shared library.
38101compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38102
38103# Dependencies to place before and after the objects being linked to
38104# create a shared library.
38105predep_objects=$lt_predep_objects
38106postdep_objects=$lt_postdep_objects
38107predeps=$lt_predeps
38108postdeps=$lt_postdeps
38109
38110# The library search path used internally by the compiler when linking
38111# a shared library.
38112compiler_lib_search_path=$lt_compiler_lib_search_path
38113
38114# ### END LIBTOOL CONFIG
38115
38116_LT_EOF
38117
38118 case $host_os in
38119 aix3*)
38120 cat <<\_LT_EOF >> "$cfgfile"
38121# AIX sometimes has problems with the GCC collect2 program. For some
38122# reason, if we set the COLLECT_NAMES environment variable, the problems
38123# vanish in a puff of smoke.
38124if test "X${COLLECT_NAMES+set}" != Xset; then
38125 COLLECT_NAMES=
38126 export COLLECT_NAMES
38127fi
38128_LT_EOF
38129 ;;
38130 esac
38131
38132
38133ltmain="$ac_aux_dir/ltmain.sh"
38134
38135
38136 # We use sed instead of cat because bash on DJGPP gets confused if
38137 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38138 # text mode, it properly converts lines to CR/LF. This bash problem
38139 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038140 sed '$q' "$ltmain" >> "$cfgfile" \
38141 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038142
cristyda16f162011-02-19 23:52:17 +000038143 if test x"$xsi_shell" = xyes; then
38144 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38145func_dirname ()\
38146{\
38147\ case ${1} in\
38148\ */*) func_dirname_result="${1%/*}${2}" ;;\
38149\ * ) func_dirname_result="${3}" ;;\
38150\ esac\
38151} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38152 && mv -f "$cfgfile.tmp" "$cfgfile" \
38153 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38154test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038155
38156
cristyda16f162011-02-19 23:52:17 +000038157 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38158func_basename ()\
38159{\
38160\ func_basename_result="${1##*/}"\
38161} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38162 && mv -f "$cfgfile.tmp" "$cfgfile" \
38163 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38164test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038165
38166
cristyda16f162011-02-19 23:52:17 +000038167 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38168func_dirname_and_basename ()\
38169{\
38170\ case ${1} in\
38171\ */*) func_dirname_result="${1%/*}${2}" ;;\
38172\ * ) func_dirname_result="${3}" ;;\
38173\ esac\
38174\ func_basename_result="${1##*/}"\
38175} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38176 && mv -f "$cfgfile.tmp" "$cfgfile" \
38177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38178test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038179
cristyda16f162011-02-19 23:52:17 +000038180
38181 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38182func_stripname ()\
38183{\
38184\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38185\ # positional parameters, so assign one to ordinary parameter first.\
38186\ func_stripname_result=${3}\
38187\ func_stripname_result=${func_stripname_result#"${1}"}\
38188\ func_stripname_result=${func_stripname_result%"${2}"}\
38189} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38190 && mv -f "$cfgfile.tmp" "$cfgfile" \
38191 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38192test 0 -eq $? || _lt_function_replace_fail=:
38193
38194
38195 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38196func_split_long_opt ()\
38197{\
38198\ func_split_long_opt_name=${1%%=*}\
38199\ func_split_long_opt_arg=${1#*=}\
38200} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38201 && mv -f "$cfgfile.tmp" "$cfgfile" \
38202 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38203test 0 -eq $? || _lt_function_replace_fail=:
38204
38205
38206 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38207func_split_short_opt ()\
38208{\
38209\ func_split_short_opt_arg=${1#??}\
38210\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38211} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38212 && mv -f "$cfgfile.tmp" "$cfgfile" \
38213 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38214test 0 -eq $? || _lt_function_replace_fail=:
38215
38216
38217 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38218func_lo2o ()\
38219{\
38220\ case ${1} in\
38221\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38222\ *) func_lo2o_result=${1} ;;\
38223\ esac\
38224} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38225 && mv -f "$cfgfile.tmp" "$cfgfile" \
38226 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38227test 0 -eq $? || _lt_function_replace_fail=:
38228
38229
38230 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38231func_xform ()\
38232{\
38233 func_xform_result=${1%.*}.lo\
38234} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38235 && mv -f "$cfgfile.tmp" "$cfgfile" \
38236 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38237test 0 -eq $? || _lt_function_replace_fail=:
38238
38239
38240 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38241func_arith ()\
38242{\
38243 func_arith_result=$(( $* ))\
38244} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38245 && mv -f "$cfgfile.tmp" "$cfgfile" \
38246 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38247test 0 -eq $? || _lt_function_replace_fail=:
38248
38249
38250 sed -e '/^func_len ()$/,/^} # func_len /c\
38251func_len ()\
38252{\
38253 func_len_result=${#1}\
38254} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38255 && mv -f "$cfgfile.tmp" "$cfgfile" \
38256 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38257test 0 -eq $? || _lt_function_replace_fail=:
38258
38259fi
38260
38261if test x"$lt_shell_append" = xyes; then
38262 sed -e '/^func_append ()$/,/^} # func_append /c\
38263func_append ()\
38264{\
38265 eval "${1}+=\\${2}"\
38266} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38267 && mv -f "$cfgfile.tmp" "$cfgfile" \
38268 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38269test 0 -eq $? || _lt_function_replace_fail=:
38270
38271
38272 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38273func_append_quoted ()\
38274{\
38275\ func_quote_for_eval "${2}"\
38276\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38277} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38278 && mv -f "$cfgfile.tmp" "$cfgfile" \
38279 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38280test 0 -eq $? || _lt_function_replace_fail=:
38281
38282
38283 # Save a `func_append' function call where possible by direct use of '+='
38284 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38285 && mv -f "$cfgfile.tmp" "$cfgfile" \
38286 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38287 test 0 -eq $? || _lt_function_replace_fail=:
38288else
38289 # Save a `func_append' function call even when '+=' is not available
38290 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38291 && mv -f "$cfgfile.tmp" "$cfgfile" \
38292 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38293 test 0 -eq $? || _lt_function_replace_fail=:
38294fi
38295
38296if test x"$_lt_function_replace_fail" = x":"; then
38297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38298$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38299fi
38300
38301
38302 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038303 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38304 chmod +x "$ofile"
38305
38306
38307 cat <<_LT_EOF >> "$ofile"
38308
38309# ### BEGIN LIBTOOL TAG CONFIG: CXX
38310
38311# The linker used to build libraries.
38312LD=$lt_LD_CXX
38313
cristy0c60a692010-11-04 01:09:47 +000038314# How to create reloadable object files.
38315reload_flag=$lt_reload_flag_CXX
38316reload_cmds=$lt_reload_cmds_CXX
38317
cristy73bd4a52010-10-05 11:24:23 +000038318# Commands used to build an old-style archive.
38319old_archive_cmds=$lt_old_archive_cmds_CXX
38320
38321# A language specific compiler.
38322CC=$lt_compiler_CXX
38323
38324# Is the compiler the GNU compiler?
38325with_gcc=$GCC_CXX
38326
38327# Compiler flag to turn off builtin functions.
38328no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38329
cristy73bd4a52010-10-05 11:24:23 +000038330# Additional compiler flags for building library objects.
38331pic_flag=$lt_lt_prog_compiler_pic_CXX
38332
cristyda16f162011-02-19 23:52:17 +000038333# How to pass a linker flag through the compiler.
38334wl=$lt_lt_prog_compiler_wl_CXX
38335
cristy73bd4a52010-10-05 11:24:23 +000038336# Compiler flag to prevent dynamic linking.
38337link_static_flag=$lt_lt_prog_compiler_static_CXX
38338
38339# Does compiler simultaneously support -c and -o options?
38340compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38341
38342# Whether or not to add -lc for building shared libraries.
38343build_libtool_need_lc=$archive_cmds_need_lc_CXX
38344
38345# Whether or not to disallow shared libs when runtime libs are static.
38346allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38347
38348# Compiler flag to allow reflexive dlopens.
38349export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38350
38351# Compiler flag to generate shared objects directly from archives.
38352whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38353
38354# Whether the compiler copes with passing no objects directly.
38355compiler_needs_object=$lt_compiler_needs_object_CXX
38356
38357# Create an old-style archive from a shared archive.
38358old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38359
38360# Create a temporary old-style archive to link instead of a shared archive.
38361old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38362
38363# Commands used to build a shared archive.
38364archive_cmds=$lt_archive_cmds_CXX
38365archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38366
38367# Commands used to build a loadable module if different from building
38368# a shared archive.
38369module_cmds=$lt_module_cmds_CXX
38370module_expsym_cmds=$lt_module_expsym_cmds_CXX
38371
38372# Whether we are building with GNU ld or not.
38373with_gnu_ld=$lt_with_gnu_ld_CXX
38374
38375# Flag that allows shared libraries with undefined symbols to be built.
38376allow_undefined_flag=$lt_allow_undefined_flag_CXX
38377
38378# Flag that enforces no undefined symbols.
38379no_undefined_flag=$lt_no_undefined_flag_CXX
38380
38381# Flag to hardcode \$libdir into a binary during linking.
38382# This must work even if \$libdir does not exist
38383hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38384
cristy73bd4a52010-10-05 11:24:23 +000038385# Whether we need a single "-rpath" flag with a separated argument.
38386hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38387
38388# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38389# DIR into the resulting binary.
38390hardcode_direct=$hardcode_direct_CXX
38391
38392# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38393# DIR into the resulting binary and the resulting library dependency is
38394# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38395# library is relocated.
38396hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38397
38398# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38399# into the resulting binary.
38400hardcode_minus_L=$hardcode_minus_L_CXX
38401
38402# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38403# into the resulting binary.
38404hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38405
38406# Set to "yes" if building a shared library automatically hardcodes DIR
38407# into the library and all subsequent libraries and executables linked
38408# against it.
38409hardcode_automatic=$hardcode_automatic_CXX
38410
38411# Set to yes if linker adds runtime paths of dependent libraries
38412# to runtime path list.
38413inherit_rpath=$inherit_rpath_CXX
38414
38415# Whether libtool must link a program against all its dependency libraries.
38416link_all_deplibs=$link_all_deplibs_CXX
38417
cristy73bd4a52010-10-05 11:24:23 +000038418# Set to "yes" if exported symbols are required.
38419always_export_symbols=$always_export_symbols_CXX
38420
38421# The commands to list exported symbols.
38422export_symbols_cmds=$lt_export_symbols_cmds_CXX
38423
38424# Symbols that should not be listed in the preloaded symbols.
38425exclude_expsyms=$lt_exclude_expsyms_CXX
38426
38427# Symbols that must always be exported.
38428include_expsyms=$lt_include_expsyms_CXX
38429
38430# Commands necessary for linking programs (against libraries) with templates.
38431prelink_cmds=$lt_prelink_cmds_CXX
38432
cristyda16f162011-02-19 23:52:17 +000038433# Commands necessary for finishing linking programs.
38434postlink_cmds=$lt_postlink_cmds_CXX
38435
cristy73bd4a52010-10-05 11:24:23 +000038436# Specify filename containing input files.
38437file_list_spec=$lt_file_list_spec_CXX
38438
38439# How to hardcode a shared library path into an executable.
38440hardcode_action=$hardcode_action_CXX
38441
38442# The directories searched by this compiler when creating a shared library.
38443compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38444
38445# Dependencies to place before and after the objects being linked to
38446# create a shared library.
38447predep_objects=$lt_predep_objects_CXX
38448postdep_objects=$lt_postdep_objects_CXX
38449predeps=$lt_predeps_CXX
38450postdeps=$lt_postdeps_CXX
38451
38452# The library search path used internally by the compiler when linking
38453# a shared library.
38454compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38455
38456# ### END LIBTOOL TAG CONFIG: CXX
38457_LT_EOF
38458
38459 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038460 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038461 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038462 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038463 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38464 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38465
38466 esac
38467done # for ac_tag
38468
38469
cristy8b350f62009-11-15 23:12:43 +000038470as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038471_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038472ac_clean_files=$ac_clean_files_save
38473
38474test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038475 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038476
38477
38478# configure is writing to config.log, and then calls config.status.
38479# config.status does its own redirection, appending to config.log.
38480# Unfortunately, on DOS this fails, as config.log is still kept open
38481# by configure, so config.status won't be able to write to it; its
38482# output is simply discarded. So we exec the FD to /dev/null,
38483# effectively closing config.log, so it can be properly (re)opened and
38484# appended to by config.status. When coming back to configure, we
38485# need to make the FD available again.
38486if test "$no_create" != yes; then
38487 ac_cs_success=:
38488 ac_config_status_args=
38489 test "$silent" = yes &&
38490 ac_config_status_args="$ac_config_status_args --quiet"
38491 exec 5>/dev/null
38492 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38493 exec 5>>config.log
38494 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38495 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038496 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038497fi
38498if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038500$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38501fi
38502
38503
38504rm -f magick-version
38505
cristy430a7312010-01-21 20:44:04 +000038506result_dejavu_font_dir='none'
38507if test "${dejavu_font_dir}x" != 'x'; then
38508 result_dejavu_font_dir=$dejavu_font_dir
38509fi
38510
cristy3ed852e2009-09-05 21:47:34 +000038511result_ghostscript_font_dir='none'
38512if test "${ghostscript_font_dir}x" != 'x'; then
38513 result_ghostscript_font_dir=$ghostscript_font_dir
38514fi
38515
38516result_windows_font_dir='none'
38517if test "${windows_font_dir}x" != 'x'; then
38518 result_windows_font_dir=${windows_font_dir}
38519fi
38520
cristyad38abe2012-12-23 23:03:21 +000038521{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038522ImageMagick is configured as follows. Please verify that this configuration
38523matches your expectations.
38524
38525Host system type: $host
38526Build system type: $build
38527
38528 Option Value
38529-------------------------------------------------------------------------------
38530Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38531Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038532Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038533GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38534Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38535High Dynamic Range Imagery
38536 --enable-hdri=$enable_hdri $enable_hdri
38537
38538Delegate Configuration:
38539BZLIB --with-bzlib=$with_bzlib $have_bzlib
38540Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038541Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038542DJVU --with-djvu=$with_djvu $have_djvu
38543DPS --with-dps=$with_dps $have_dps
38544FFTW --with-fftw=$with_fftw $have_fftw
38545FlashPIX --with-fpx=$with_fpx $have_fpx
38546FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38547FreeType --with-freetype=$with_freetype $have_freetype
38548GhostPCL None $PCLDelegate ($PCLVersion)
38549GhostXPS None $XPSDelegate ($XPSVersion)
38550Ghostscript None $PSDelegate ($GSVersion)
38551Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38552Ghostscript lib --with-gslib=$with_gslib $have_gslib
38553Graphviz --with-gvc=$with_gvc $have_gvc
38554JBIG --with-jbig=$with_jbig $have_jbig
38555JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38556JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038557LCMS v1 --with-lcms=$with_lcms $have_lcms
38558LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038559LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038560LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038561LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038562Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38563OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038564PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038565PERL --with-perl=$with_perl $have_perl
38566PNG --with-png=$with_png $have_png
38567RSVG --with-rsvg=$with_rsvg $have_rsvg
38568TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038569WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038570Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038571WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038572X11 --with-x=$with_x $have_x
38573XML --with-xml=$with_xml $have_xml
38574ZLIB --with-zlib=$with_zlib $have_zlib
38575
38576X11 Configuration:
38577 X_CFLAGS = $X_CFLAGS
38578 X_PRE_LIBS = $X_PRE_LIBS
38579 X_LIBS = $X_LIBS
38580 X_EXTRA_LIBS = $X_EXTRA_LIBS
38581
38582Options used to compile and link:
38583 PREFIX = $PREFIX_DIR
38584 EXEC-PREFIX = $EXEC_PREFIX_DIR
38585 VERSION = $PACKAGE_VERSION
38586 CC = $CC
38587 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038588 CPPFLAGS = $MAGICK_CPPFLAGS
38589 PCFLAGS = $MAGICK_PCFLAGS
38590 DEFS = $DEFS
38591 LDFLAGS = $LDFLAGS
38592 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38593 LIBS = $MAGICK_LIBS
38594 CXX = $CXX
38595 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038596 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038597 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038598" >&5
cristyad38abe2012-12-23 23:03:21 +000038599$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038600ImageMagick is configured as follows. Please verify that this configuration
38601matches your expectations.
38602
38603Host system type: $host
38604Build system type: $build
38605
38606 Option Value
38607-------------------------------------------------------------------------------
38608Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38609Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038610Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038611GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38612Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38613High Dynamic Range Imagery
38614 --enable-hdri=$enable_hdri $enable_hdri
38615
38616Delegate Configuration:
38617BZLIB --with-bzlib=$with_bzlib $have_bzlib
38618Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038619Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038620DJVU --with-djvu=$with_djvu $have_djvu
38621DPS --with-dps=$with_dps $have_dps
38622FFTW --with-fftw=$with_fftw $have_fftw
38623FlashPIX --with-fpx=$with_fpx $have_fpx
38624FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38625FreeType --with-freetype=$with_freetype $have_freetype
38626GhostPCL None $PCLDelegate ($PCLVersion)
38627GhostXPS None $XPSDelegate ($XPSVersion)
38628Ghostscript None $PSDelegate ($GSVersion)
38629Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38630Ghostscript lib --with-gslib=$with_gslib $have_gslib
38631Graphviz --with-gvc=$with_gvc $have_gvc
38632JBIG --with-jbig=$with_jbig $have_jbig
38633JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38634JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038635LCMS v1 --with-lcms=$with_lcms $have_lcms
38636LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038637LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038638LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038639LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038640Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38641OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038642PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038643PERL --with-perl=$with_perl $have_perl
38644PNG --with-png=$with_png $have_png
38645RSVG --with-rsvg=$with_rsvg $have_rsvg
38646TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038647WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038648Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038649WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038650X11 --with-x=$with_x $have_x
38651XML --with-xml=$with_xml $have_xml
38652ZLIB --with-zlib=$with_zlib $have_zlib
38653
38654X11 Configuration:
38655 X_CFLAGS = $X_CFLAGS
38656 X_PRE_LIBS = $X_PRE_LIBS
38657 X_LIBS = $X_LIBS
38658 X_EXTRA_LIBS = $X_EXTRA_LIBS
38659
38660Options used to compile and link:
38661 PREFIX = $PREFIX_DIR
38662 EXEC-PREFIX = $EXEC_PREFIX_DIR
38663 VERSION = $PACKAGE_VERSION
38664 CC = $CC
38665 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038666 CPPFLAGS = $MAGICK_CPPFLAGS
38667 PCFLAGS = $MAGICK_PCFLAGS
38668 DEFS = $DEFS
38669 LDFLAGS = $LDFLAGS
38670 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38671 LIBS = $MAGICK_LIBS
38672 CXX = $CXX
38673 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038674 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038675 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038676" >&6; }